diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 16c704d..1bd2b96 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -25,7 +25,7 @@ export default function App() { -
+
diff --git a/frontend/src/components/agents/AgentCard.tsx b/frontend/src/components/agents/AgentCard.tsx index 1a94861..7fdb297 100644 --- a/frontend/src/components/agents/AgentCard.tsx +++ b/frontend/src/components/agents/AgentCard.tsx @@ -1,57 +1,50 @@ -import { Cpu, Activity } from 'lucide-react' +import { motion } from 'framer-motion' export function AgentCard({ agent }: { agent: any }) { - const statusColor = { - online: 'bg-emerald-500', - busy: 'bg-amber-500', - offline: 'bg-zinc-500', - }[agent.status] || 'bg-emerald-500' - const tokenPercent = Math.round((agent.tokens_used / agent.tokens_limit) * 100) const budgetPercent = Math.round((agent.budget_used / agent.budget_limit) * 100) return ( -
+ {/* Header */}
-
+
{agent.name}
-
{agent.runtime} · {agent.model}
- {agent.provider && ( -
- {agent.provider} - {agent.account} -
- )} +
{agent.runtime} · {agent.model}
-
{agent.status}
+
+ {agent.healthy !== false ? 'ONLINE' : 'OFFLINE'} +
+
+ + {/* Account */} +
+ {agent.provider} + {agent.account}
{/* Metrics */} -
+
-
- - CPU % -
-
{agent.cpu}
+
{agent.cpu}
+
CPU %
-
- - RUNS -
-
{agent.active_runs || agent.activeRuns}
+
{agent.activeRuns}
+
RUNS
- {/* Limits */} -
+ {/* Usage */} +
-
+
Tokens {agent.tokens_used?.toLocaleString()} / {agent.tokens_limit?.toLocaleString()}
@@ -61,7 +54,7 @@ export function AgentCard({ agent }: { agent: any }) {
-
+
Budget ${agent.budget_used} / ${agent.budget_limit}
@@ -73,10 +66,10 @@ export function AgentCard({ agent }: { agent: any }) { -
+ ) }