Files
cc-switch/tests/components/sessions/reader
Jason 4e20fad5dc feat(usage): show usage amounts in a chosen currency
Add a Settings tab to the usage page that replaces the Pricing tab: an
amount display section on top (currency + hand-entered exchange rate) and
the existing pricing configuration below.

- Display currencies: USD, CNY, EUR, JPY, TWD, TRY; USD stays the default.
  Rates are entered manually; untouched preset rates are not written to
  settings.json so later preset updates still reach those users.
- Costs stay stored in USD; conversion only happens at display time.
  Converted amounts carry a "≈" prefix and hovers add the USD value.
- Chart data is converted before plotting so axis ticks stay round.
- Yen drops two decimals, and usage amounts now group thousands.
- The sidebar "Today" amount drops decimals from 100 up so it no longer
  squeezes the nav label.
- Settings are device-local (`usageDisplay` in ~/.cc-switch/settings.json).
2026-10-16 19:29:23 +08:00
..