Files
wallet/ui
grenadeandClaude Fable 5.1 102f659900
ci / gate (push) Canceled after 3m6s
feat(ui): a dashboard of the whole wallet, first after unlock
The default route is now a dashboard (#85): one figure for everything
the wallet holds, priced in USD at 1Click's index prices, and a bar
splitting it by chain. The accounts page moves to /accounts.

Rust reads and prices; the webview draws:
- Each mainnet chain's accounts (the balances read as the accounts page
  does) and its shielded balance (the wormhole cache's unspent leaves,
  no scan), and the intents account's tokens, one view call.
- Prices come from GET /v0/tokens, cached a minute. A price arrives as a
  JSON number, is rendered to 8 places and parsed as a decimal; every
  product is integer arithmetic on base units, brought to 8 decimals
  first so a 24-decimal token cannot overflow u128. Three tests pin it,
  including a million wNEAR.
- What cannot be valued is named, not guessed; a chain not reached yet
  is started, marked, and the UI asks again every five seconds.

The form follows the house data-viz method: a hero figure (48px, the
body sans, proportional figures), and part-to-whole as a single bar
with a 2px surface gap between segments rather than a ring, which
hides close values and has no room for labels. Chains keep a fixed
colour slot for good (Quantus bronze, NEAR Intents blue, three more
validated for later); the legend table beneath carries every value and
holding, so colour never carries a fact alone. Both palettes passed the
validator against the wallet's own surfaces; the light mode's contrast
warning on two slots is what the table answers.

Checked in a dev run: unlock lands on the dashboard, the index priced
QTC at $140.23, both chains read live, and an empty wallet drew the
recessed track. A bar with segments wants a wallet that holds
something, which the operator's will show.

Closes #85

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NUx7SPonBnB3ofU4mH41WT
2026-10-12 12:14:24 +03:00
..
2026-10-12 11:24:22 +03:00