Simpl-Resultat/src/components
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
..
adjustments feat: add Budget and Adjustments pages with full functionality 2026-02-12 00:58:43 +00:00
balance feat(balance): starter accounts + opt-in modal + ADR 0012 2026-05-02 11:59:45 -04:00
budget fix: remove double sign negation for previous year actuals (#34) 2026-03-11 12:02:58 -04:00
categories feat(categories): add categories standard guide page (#117) 2026-04-20 21:02:38 -04:00
categories-migration feat(categories): add 3-step migration page + categoryMigrationService (#121) 2026-04-20 21:31:21 -04:00
dashboard feat(categories): add dashboard v1 discovery banner (#118) 2026-04-20 21:11:56 -04:00
import fix: replace refresh icon with save icon on update template button 2026-02-16 12:01:14 +00:00
layout feat(balance): add sidebar Bilan entry 2026-04-25 16:07:13 -04:00
profile fix: wrap rehash updateProfile in try/catch for best-effort (#54) 2026-04-09 15:46:27 -04:00
reports feat(reports/cartes): Mensuel/YTD toggle on KPI cards + user guide section (#102) 2026-04-19 09:49:21 -04:00
settings feat(prices): Settings revocation toggle for price_fetching_consent 2026-04-27 08:41:15 -04:00
shared fix(reports): render category combobox in hierarchical DFS order (#126) 2026-04-21 20:58:53 -04:00
transactions feat(transactions): inline transfer icon + FK error message 2026-04-25 16:38:46 -04:00