From f89ad3cb1cae95e1b02ca3ab37b5140d94d37a9c Mon Sep 17 00:00:00 2001 From: Wintermute Date: Sun, 3 May 2026 16:17:12 +0000 Subject: [PATCH] feat(admin): hide revoked toggle on Agents page --- admin/src/pages/Agents.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/admin/src/pages/Agents.tsx b/admin/src/pages/Agents.tsx index 39eb839bf..825619375 100644 --- a/admin/src/pages/Agents.tsx +++ b/admin/src/pages/Agents.tsx @@ -35,6 +35,7 @@ interface ApiKey { export function AgentsPage() { const [agents, setAgents] = useState([]); + const [hideRevoked, setHideRevoked] = useState(true); const [showRegister, setShowRegister] = useState(false); const [showCredentials, setShowCredentials] = useState<{ clientId: string; clientSecret: string; name: string } | null>(null); const [showApiKeyCreate, setShowApiKeyCreate] = useState(false); @@ -49,7 +50,10 @@ export function AgentsPage() { <>

Agents

-
+
+
@@ -75,7 +79,7 @@ export function AgentsPage() { - {agents.map(a => ( + {agents.filter(a => !hideRevoked || a.status !== 'revoked').map(a => ( a.auth_type === 'oauth' ? setSelectedAgent(a) : null} style={{ cursor: a.auth_type === 'oauth' ? 'pointer' : 'default' }}> {a.name || a.client_name}