diff --git a/frontend/src/components/agents/AgentCard.tsx b/frontend/src/components/agents/AgentCard.tsx index 5934c1b..1a94861 100644 --- a/frontend/src/components/agents/AgentCard.tsx +++ b/frontend/src/components/agents/AgentCard.tsx @@ -1,6 +1,4 @@ -import { motion } from 'framer-motion' -import { Cpu, Activity, Zap, Wallet } from 'lucide-react' -import { Progress } from '@/components/ui/progress' +import { Cpu, Activity } from 'lucide-react' export function AgentCard({ agent }: { agent: any }) { const statusColor = { @@ -13,84 +11,72 @@ export function AgentCard({ agent }: { agent: any }) { const budgetPercent = Math.round((agent.budget_used / agent.budget_limit) * 100) return ( - +
{/* Header */} -
+
-
-
-
-
{agent.name}
-
{agent.runtime} · {agent.model}
-
+
+
+
{agent.name}
+
{agent.runtime} · {agent.model}
{agent.provider && ( -
-
- {agent.provider} -
-
{agent.account}
+
+ {agent.provider} + {agent.account}
)}
-
{agent.status}
+
{agent.status}
- {/* Main metrics */} -
-
- -
-
{agent.cpu}
-
CPU %
+ {/* Metrics */} +
+
+
+ + CPU %
+
{agent.cpu}
-
- -
-
{agent.active_runs || agent.activeRuns}
-
RUNS
+
+
+ + RUNS
+
{agent.active_runs || agent.activeRuns}
- {/* Per-agent Usage Limits */} -
+ {/* Limits */} +
-
- - Tokens - - - {agent.tokens_used?.toLocaleString()} / {agent.tokens_limit?.toLocaleString()} - +
+ Tokens + {agent.tokens_used?.toLocaleString()} / {agent.tokens_limit?.toLocaleString()} +
+
+
-
-
- - Budget - - - ${agent.budget_used} / ${agent.budget_limit} - +
+ Budget + ${agent.budget_used} / ${agent.budget_limit} +
+
+
-
- +
) } diff --git a/frontend/src/index.css b/frontend/src/index.css index 144d86d..0bc6461 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -27,10 +27,7 @@ body { font-feature-settings: "tnum"; -webkit-font-smoothing: antialiased; } -.card { - background: rgba(24, 24, 27, 0.8); - backdrop-filter: blur(20px); -} +.card, [class*="rounded-"] { border-radius: 4px !important; } ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: hsl(240 3.7% 25%); border-radius: 3px; }