diff --git a/devfront/src/features/clients/ClientsPage.tsx b/devfront/src/features/clients/ClientsPage.tsx index 2672c268..07667634 100644 --- a/devfront/src/features/clients/ClientsPage.tsx +++ b/devfront/src/features/clients/ClientsPage.tsx @@ -87,7 +87,8 @@ function ClientsPage() { const clients = data?.items || []; const totalClients = clients.length; - // TODO: Add real stats for active sessions and auth failures + const activeClients = clients.filter((client) => client.status === "active").length; + // TODO: Replace with real session/auth-failure metrics when backend endpoints are available. type StatTone = "up" | "down" | "stable"; type StatItem = { labelKey: string; @@ -110,10 +111,10 @@ function ClientsPage() { { labelKey: "ui.dev.clients.stats.active_sessions", labelFallback: "ν™œμ„± μ„Έμ…˜", - value: "-", - deltaKey: "ui.dev.clients.stats.not_impl", - deltaFallback: "Not impl", - tone: "stable" as const, + value: activeClients.toString(), + deltaKey: "ui.dev.clients.stats.realtime", + deltaFallback: "Realtime", + tone: "up" as const, }, { labelKey: "ui.dev.clients.stats.auth_failures",