From fa650562cea914af651407e3a80cf1c550f777d8 Mon Sep 17 00:00:00 2001 From: Shinwoo PARK Date: Sat, 9 May 2026 16:23:17 +0900 Subject: [PATCH] refactor: trim dashboard card copy --- apps/web/src/App.tsx | 14 +++--------- apps/web/test/dashboard-card-copy.test.js | 27 +++++++++++++++++++++++ 2 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 apps/web/test/dashboard-card-copy.test.js diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index e675a49..0cd5f00 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -646,9 +646,6 @@ function Dashboard() { Unified capacity - - Fast glance card for the first two numeric metrics extracted from the merged usage payload. -
@@ -711,9 +708,6 @@ function Dashboard() { Usage metrics - - CodexDash extracts numeric leaf nodes from the aggregated usage payload for quick overview cards. - {metricCards.length === 0 ? ( @@ -742,7 +736,7 @@ function Dashboard() {
@@ -750,9 +744,7 @@ function Dashboard() { Connected OpenAI accounts - - By default, these accounts are merged into one Codex usage view. Switch tabs to inspect individual account payloads and timestamps. - + Merged by default. Inspect each account below. {summary.accounts.length === 0 ? ( @@ -840,7 +832,7 @@ function Dashboard() { { + test('removes verbose dashboard card descriptions and keeps concise labels', () => { + expect(appSource).toContain('Unified capacity'); + expect(appSource).toContain('Usage metrics'); + expect(appSource).toContain('Connected OpenAI accounts'); + expect(appSource).toContain('description="Combined raw JSON."'); + expect(appSource).toContain(">Merged by default. Inspect each account below.<"); + expect(appSource).not.toContain( + 'Fast glance card for the first two numeric metrics extracted from the merged usage payload.', + ); + expect(appSource).not.toContain( + 'CodexDash extracts numeric leaf nodes from the aggregated usage payload for quick overview cards.', + ); + expect(appSource).not.toContain( + 'Raw aggregated JSON merged from every attached OpenAI Codex account.', + ); + expect(appSource).not.toContain( + 'By default, these accounts are merged into one Codex usage view. Switch tabs to inspect individual account payloads and timestamps.', + ); + }); +});