4 Commits
Author SHA1 Message Date
Jason 3168b00f57 Revert "fix(sidebar): show only the numbers in the usage Today badge"
This reverts commit 6fcbb0546a.
2026-10-19 18:01:47 +08:00
Jason 6fcbb0546a fix(sidebar): show only the numbers in the usage Today badge
Drop the "Today" prefix from the badge next to Usage even when a single
item is shown; the full wording stays in the hover tip and the
accessible name, matching the two-item layout.
2026-10-17 15:35:47 +08:00
Jason b194cc09ac feat(usage): show requests or cache hit rate in the sidebar Today label
The sidebar Today label can now show requests and cache hit rate besides
cost and tokens. Up to two items can be picked, since two already take
both lines of the sidebar row; once two are ticked the rest are greyed
out. Items are kept in menu order, and the hit rate is left out before
the first request of the day.

The setting becomes a list, sidebarTodayItems, where an empty list means
hidden. The old single-value sidebarToday key was never released, so it
is not read.
2026-10-16 19:29:24 +08:00
Jason 8f3337d993 feat(usage): choose what the sidebar Today label shows
The usage settings tab gets a "Sidebar Today" control: cost (default),
tokens, both, or hidden. Tokens use the same real-consumption total as
the usage page card, and a zero part is left out.

The sidebar row no longer lets the trailing text squeeze the item name:
the name keeps its width and the trailing text wraps at the space. With
both values the row shows only the two numbers on two lines; the full
"Today ..." text moves to the hover tooltip and the accessible name.
2026-10-16 19:29:23 +08:00