Simpl-Resultat/src
le king fu a1c3dafcd0
All checks were successful
PR Check / rust (pull_request) Successful in 23m1s
PR Check / frontend (pull_request) Successful in 2m25s
feat(balance): schema & migrations v14/v15 + types (securities, holdings, account.kind) (#210)
Foundations for 'détail par titre' (Étape 2), purely additive — v1-v13 are
untouched and their checksums stay intact.

v14 (balance_holdings_schema.sql, applied verbatim via BALANCE_HOLDINGS_SCHEMA):
- balance_securities: instrument catalogue, symbol normalized + COLLATE NOCASE
  UNIQUE (no case-dupes), asset_type CHECK ('stock','crypto'), currency CAD.
- balance_snapshot_holdings: per-security breakdown of a snapshot line, FK to
  balance_snapshot_lines (CASCADE) + balance_securities (RESTRICT), value
  denormalized, UNIQUE(snapshot_line_id, security_id) + 2 indexes.

v15 (inline): balance_accounts gains kind ('simple'|'detailed', NOT NULL
DEFAULT 'simple', CHECK) + detailed_since DATE; backfills kind='detailed' on
accounts under a priced category. Two single-column ADDs (SQLite), idempotent.

consolidated_schema.sql brought to parity: 2 tables + 2 indexes + kind/
detailed_since columns + the v15 backfill (no-op for the 4 simple starters,
reproduced for future priced starters).

TS types: BalanceAccountKind, BalanceSecurity, BalanceSnapshotHolding (+
WithSecurity join variant); BalanceAccount gains kind + detailed_since;
BalanceAccountWithCategory exposes both kind and category_kind.

Tests: +9 (v14/v15 via V14_SQL/V15_SQL consts + db_through_v13 helper, plus a
consolidated parity test). cargo test 89 passed, npm build + 552 vitest green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 12:52:55 -04:00
..
__fixtures__ test(categories): complete test coverage for migration flow (#123) 2026-04-21 19:25:13 -04:00
__integration__ feat(balance): data layer — vehicle_type + custom_label migrations, starters, service (#202) 2026-06-01 20:37:56 -04:00
components feat(balance): chart vehicle/class toggle + collapsible returns (#204) 2026-06-01 21:05:00 -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): chart vehicle/class toggle + collapsible returns (#204) 2026-06-01 21:05:00 -04:00
i18n docs(balance): ADR 0014 + reject 0012 + guide + changelog (#205) 2026-06-01 21:15:06 -04:00
pages feat(balance): chart vehicle/class toggle + collapsible returns (#204) 2026-06-01 21:05:00 -04:00
services feat(balance): chart vehicle/class toggle + collapsible returns (#204) 2026-06-01 21:05:00 -04:00
shared feat(balance): schema & migrations v14/v15 + types (securities, holdings, account.kind) (#210) 2026-06-06 12:52:55 -04:00
utils feat(balance): account form vehicle field + category rename via custom_label (#203) 2026-06-01 20:50:40 -04:00
App.tsx refactor(settings): split monolithic Settings page into 3 sub-pages (#190) 2026-05-03 09:50:02 -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