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}