Simpl-Resultat/src
le king fu ffefa90fd0 feat(balance): add BalancePage with chart + accounts table
Three new components composed under a new BalancePage at /balance:

- BalanceOverviewCard — latest aggregate net worth, Δ% vs the
  previous chronological snapshot (rendered as "—" when only
  one snapshot exists), 60-day staleness warning, and a
  "+ Nouveau snapshot" CTA pointing at /balance/snapshot.

- BalanceEvolutionChart — Recharts-based line / stacked-area
  toggle. Line mode plots SUM(value) per snapshot_date with a
  single primary-coloured stroke. Stacked mode transposes the
  byCategory series into one Area per category_key with a
  fixed 10-color palette indexed deterministically. Tooltip
  formats CAD via Intl.NumberFormat.

- BalanceAccountsTable — one row per active account with name,
  category label, latest value, and Δ% over the active period
  (latest_value vs the period anchor). Returns columns
  (3M / 1Y / since-creation / unadjusted) reserved for #142
  with a TODO marker. Action menu includes a disabled "Detail"
  placeholder + functional "Archive" wired through reload().

BalancePage composes the three with an inline period selector
(3M / 6M / 1A / 3A / Tout) and chart-mode toggle, both styled
as segmented controls. State flows through useBalanceOverview.

Route /balance registered before /balance/accounts in App.tsx.

Refs: #141

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 16:07:04 -04:00
..
__fixtures__ test(categories): complete test coverage for migration flow (#123) 2026-04-21 19:25:13 -04:00
__integration__ test(categories): complete test coverage for migration flow (#123) 2026-04-21 19:25:13 -04:00
components feat(balance): add BalancePage with chart + accounts table 2026-04-25 16:07:04 -04:00
contexts fix: address reviewer feedback (#54) 2026-04-09 15:46:27 -04:00
data feat(categories): add v1 IPC seed, i18n keys, and migration v8 (#115) 2026-04-19 16:41:55 -04:00
hooks feat(balance): add useBalanceOverview hook 2026-04-25 16:06:38 -04:00
i18n feat(balance): i18n + CHANGELOG for priced kind 2026-04-25 15:02:18 -04:00
pages feat(balance): add BalancePage with chart + accounts table 2026-04-25 16:07:04 -04:00
services feat(balance): add timeseries aggregator helpers + tests 2026-04-25 16:06:23 -04:00
shared feat(balance): extend balance.service with snapshots + lines (simple kind) 2026-04-25 14:49:19 -04:00
utils feat(reports/highlights): default reference month to previous month + YTD current year, user-changeable (#106) 2026-04-19 08:28:30 -04:00
App.tsx feat(balance): add BalancePage with chart + accounts table 2026-04-25 16:07:04 -04:00
main.tsx Fix updater latest.json and add log viewer in settings 2026-02-28 21:09:10 -05:00
styles.css feat(categories): add categories standard guide page (#117) 2026-04-20 21:02:38 -04:00
vite-env.d.ts Initial project scaffold: Tauri v2 + React + TypeScript + TailwindCSS v4 2026-02-07 11:05:11 +00:00