From 22fa74bc360f55ec3a77a6ff467ff7a5f18966ef Mon Sep 17 00:00:00 2001 From: Jon Saad-Falcon <41205309+jonsaadfalcon@users.noreply.github.com> Date: Fri, 27 Mar 2026 14:24:43 -0700 Subject: [PATCH] fix: unified savings card with dividers, large values, clean layout Single card with "Cloud Savings for Agent" header. All metrics (queries, tokens, compute, energy, dollar savings) in one flex row with vertical dividers separating usage | compute+energy | costs. Large bold values above small labels. Consistent typography. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/pages/AgentsPage.tsx | 45 ++++++++++++++++--------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/frontend/src/pages/AgentsPage.tsx b/frontend/src/pages/AgentsPage.tsx index 650f79e3..71cd75fb 100644 --- a/frontend/src/pages/AgentsPage.tsx +++ b/frontend/src/pages/AgentsPage.tsx @@ -1566,38 +1566,39 @@ export function AgentsPage() { const energyKj = energyWh * 3.6; const fmtFlops = flops >= 1e15 ? `${(flops / 1e15).toFixed(1)} PFLOPs` : `${(flops / 1e12).toFixed(1)} TFLOPs`; const hasSavings = inTok + outTok > 0; - const boxStyle = { background: 'var(--color-bg-secondary)', border: '1px solid var(--color-border)' }; return ( -
-

Cloud Savings for Agent

-
-
-

{selectedAgent.total_runs ?? 0}

-

Total Queries

+
+

Cloud Savings for Agent

+
+
+

{selectedAgent.total_runs ?? 0}

+

Total Queries

-
-

{inTok}

-

Input Tokens

+
+

{inTok.toLocaleString()}

+

Input Tokens

-
-

{outTok}

-

Output Tokens

+
+

{outTok.toLocaleString()}

+

Output Tokens

{hasSavings && (<> -
-

{fmtFlops}

-

Compute

+
+
+

{fmtFlops}

+

Compute

-
-

{energyKj.toFixed(2)} kJ

-

Energy

+
+

{energyKj.toFixed(2)} kJ

+

Energy

+
{providers.map((p) => { const cost = (inTok / 1e6) * p.inPer1M + (outTok / 1e6) * p.outPer1M; return ( -
-

${cost.toFixed(4)}

-

{p.label}

+
+

${cost.toFixed(4)}

+

{p.label}

); })}