"use client"; import { useSystemStatus } from "@/hooks/useSystemStatus"; import { motion } from "framer-motion"; import { Activity, Shield, Server, Clock, ArrowLeft, RefreshCw, AlertTriangle } from "lucide-react"; import { DashboardVitals } from "@/components/DashboardVitals"; import Link from "next/link"; export default function SystemStatus() { const { status, diagnostics, loading, error, refetch } = useSystemStatus(); if (loading) { return (

Fetching System State...

); } if (error || !status || !diagnostics) { return (

Diagnostic Failure

{error || "Could not retrieve system data."}

); } return (
{/* Header */}

Platform Observability

Real-time infrastructure and reverse proxy diagnostics.

Uptime {Math.floor(status.uptime.process / 3600)}h {Math.floor((status.uptime.process % 3600) / 60)}m
{/* Infrastructure Vitals Monitor (2026 Studio Edition) */}
{/* Two Column Section */}
{/* Environment Flags (L) */}

Runtime Environment

Refresh Cycle

Diagnostic data is automatically refreshed every 10 seconds. This view monitors active session persistence and reverse proxy stability for Hugging Face Spaces.

{/* Proxy Header Inspector (R) */}

Header Inspector

{Object.keys(diagnostics.headers).length} keys detected
{Object.entries(diagnostics.headers).map(([key, value]) => (
{key} {value}
))}
); } function InfoItem({ label, value, active }: { label: string, value: string, active?: boolean }) { return (
{label}
{active && } {value || "Not Set"}
); }