From 6b6ea56437fcd673d8cf38c24a76ff9b123ea936 Mon Sep 17 00:00:00 2001 From: Jack Wotherspoon Date: Mon, 13 Apr 2026 13:03:41 -0400 Subject: [PATCH] fix(core): fix quota footer for non-auto models and improve display (#25121) --- packages/cli/src/config/footerItems.ts | 4 +- .../cli/src/ui/components/Footer.test.tsx | 4 +- packages/cli/src/ui/components/Footer.tsx | 4 +- .../ui/components/FooterConfigDialog.test.tsx | 2 +- .../src/ui/components/FooterConfigDialog.tsx | 2 +- .../__snapshots__/Footer.test.tsx.snap | 10 +-- ...ts-the-active-item-in-the-preview.snap.svg | 18 ++--- ...s-correctly-with-default-settings.snap.svg | 18 ++--- ...Show-footer-labels-is-toggled-off.snap.svg | 16 ++--- .../FooterConfigDialog.test.tsx.snap | 22 +++--- packages/core/src/config/config.test.ts | 72 +++++++++++++++++++ packages/core/src/config/config.ts | 56 ++++++++------- 12 files changed, 153 insertions(+), 75 deletions(-) diff --git a/packages/cli/src/config/footerItems.ts b/packages/cli/src/config/footerItems.ts index 9f3943b692..612418a48f 100644 --- a/packages/cli/src/config/footerItems.ts +++ b/packages/cli/src/config/footerItems.ts @@ -34,8 +34,8 @@ export const ALL_ITEMS = [ }, { id: 'quota', - header: '/stats', - description: 'Remaining usage on daily limit (not shown when unavailable)', + header: 'quota', + description: 'Percentage of daily limit used (not shown when unavailable)', }, { id: 'memory-usage', diff --git a/packages/cli/src/ui/components/Footer.test.tsx b/packages/cli/src/ui/components/Footer.test.tsx index bb2e0c5e4d..277a8d3b13 100644 --- a/packages/cli/src/ui/components/Footer.test.tsx +++ b/packages/cli/src/ui/components/Footer.test.tsx @@ -281,7 +281,7 @@ describe('