From 0c4a48a7d32fc305ed37584348ff65dca291db86 Mon Sep 17 00:00:00 2001 From: kyy Date: Mon, 23 Feb 2026 16:47:05 +0900 Subject: [PATCH] =?UTF-8?q?=ED=99=9C=EC=84=B1=20=EC=84=B8=EC=85=98=20Activ?= =?UTF-8?q?e=20=EC=95=B1=20=EC=88=98=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- devfront/src/features/clients/ClientsPage.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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",