forked from baron/baron-sso
활성 세션 Active 앱 수 반영
This commit is contained in:
@@ -87,7 +87,8 @@ function ClientsPage() {
|
|||||||
|
|
||||||
const clients = data?.items || [];
|
const clients = data?.items || [];
|
||||||
const totalClients = clients.length;
|
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 StatTone = "up" | "down" | "stable";
|
||||||
type StatItem = {
|
type StatItem = {
|
||||||
labelKey: string;
|
labelKey: string;
|
||||||
@@ -110,10 +111,10 @@ function ClientsPage() {
|
|||||||
{
|
{
|
||||||
labelKey: "ui.dev.clients.stats.active_sessions",
|
labelKey: "ui.dev.clients.stats.active_sessions",
|
||||||
labelFallback: "활성 세션",
|
labelFallback: "활성 세션",
|
||||||
value: "-",
|
value: activeClients.toString(),
|
||||||
deltaKey: "ui.dev.clients.stats.not_impl",
|
deltaKey: "ui.dev.clients.stats.realtime",
|
||||||
deltaFallback: "Not impl",
|
deltaFallback: "Realtime",
|
||||||
tone: "stable" as const,
|
tone: "up" as const,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
labelKey: "ui.dev.clients.stats.auth_failures",
|
labelKey: "ui.dev.clients.stats.auth_failures",
|
||||||
|
|||||||
Reference in New Issue
Block a user