Simpl-Resultat/src
le king fu cd0a2b826f feat(balance): starter accounts + opt-in modal + ADR 0012
Part 1 — New profiles: seed 4 starter accounts in
consolidated_schema.sql (Compte chèque/CELI/REER/Compte
non-enregistré, currency CAD, is_active=1) right after the
balance_categories seeds. Categories resolved via SELECT subquery
on the seeded `key` values for robustness.

Part 2 — Existing profiles: StarterAccountsModal proposes the same
4 starters at first /balance visit. Default-checked checkboxes,
collision rule (case-insensitive trim name + matching category)
disables matches with a "Déjà présent" tooltip. The atomic helper
`proposeStarterAccounts` wraps the inserts in BEGIN/COMMIT (rolls
back on error). user_preferences.balance_starter_proposed records
{shown_at, accepted} so the modal never reappears, dismissed or
confirmed.

Part 3 — docs/adr/0012-balance-two-level-model.md (Proposed):
captures the future vehicles × compositions model for reflection,
no code change. Numbered 0012 because 0011 was already taken by
the providers-best-effort-yahoo ADR. Linked from architecture.md
ADR table and Bilan section.

Tests: StarterAccountsModal.test.tsx covers STARTER_ACCOUNTS shape,
getStarterCollisions (case-insensitive trim, category-scoped) and
proposeStarterAccounts (insert order, COMMIT, ROLLBACK on failure).
No render tests — mirrors the BalanceOnboardingCard pattern (no
jsdom configured).

Resolves #179
2026-05-02 11:59:45 -04:00
..
__fixtures__ test(categories): complete test coverage for migration flow (#123) 2026-04-21 19:25:13 -04:00
__integration__ feat(balance): add asset_type column to balance_categories 2026-04-28 19:54:04 -04:00
components feat(balance): starter accounts + opt-in modal + ADR 0012 2026-05-02 11:59:45 -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 fix(balance): atomic snapshot save with BEGIN/COMMIT + cleanup migration 2026-05-01 07:33:44 -04:00
i18n feat(balance): starter accounts + opt-in modal + ADR 0012 2026-05-02 11:59:45 -04:00
pages feat(balance): starter accounts + opt-in modal + ADR 0012 2026-05-02 11:59:45 -04:00
services feat(balance): starter accounts + opt-in modal + ADR 0012 2026-05-02 11:59:45 -04:00
shared feat(balance): add asset_type column to balance_categories 2026-04-28 19:54:04 -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