Simpl-Resultat/src/pages
le king fu 372a785834 fix(balance): hide period selector, chart and table on empty /balance (S2)
Before this commit, /balance rendered the BalanceOnboardingCard plus the
period selector + evolution chart + accounts table whenever the user had
no accounts or no snapshot. The lower three components surfaced their
own empty states, producing 3 stacked "no data" messages under the
onboarding card.

Lifts the (accountsCount, hasAnySnapshot) computation out of the inline
IIFE and uses a single isEmpty branch: empty profiles see only the
BalanceOnboardingCard; populated profiles see the full overview.

No logic change — only JSX restructuring. Tests covering useBalanceOverview
and BalanceOnboardingCard remain green (61 tests passing).

Suggestion S2 from PR #184 review (#187).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 16:28:41 -04:00
..
settings refactor(settings): split monolithic Settings page into 3 sub-pages (#190) 2026-05-03 09:50:02 -04:00
AccountsPage.tsx feat(balance): improve category deletion UX with linked-accounts message 2026-04-25 15:01:44 -04:00
AdjustmentsPage.tsx fix: improve split indicator visibility and adjustments layout 2026-02-17 02:01:15 +00:00
BalancePage.tsx fix(balance): hide period selector, chart and table on empty /balance (S2) 2026-05-03 16:28:41 -04:00
BudgetPage.tsx feat: 12-month budget grid, import UX improvements, confirmation dialogs (v0.2.4) 2026-02-14 12:59:11 +00:00
CategoriesMigrationPage.tsx refactor(settings): split monolithic Settings page into 3 sub-pages (#190) 2026-05-03 09:50:02 -04:00
CategoriesPage.tsx Bump version to 0.6.2 — Section subtotals and category detail fix 2026-03-06 16:22:36 -05:00
CategoriesStandardGuidePage.tsx refactor(settings): split monolithic Settings page into 3 sub-pages (#190) 2026-05-03 09:50:02 -04:00
ChangelogPage.tsx refactor(settings): split monolithic Settings page into 3 sub-pages (#190) 2026-05-03 09:50:02 -04:00
DashboardPage.tsx feat(categories): add dashboard v1 discovery banner (#118) 2026-04-20 21:11:56 -04:00
DocsPage.tsx refactor(settings): split monolithic Settings page into 3 sub-pages (#190) 2026-05-03 09:50:02 -04:00
ImportPage.tsx feat: persist template selection and add update template button 2026-02-15 13:16:55 +00:00
ProfileSelectionPage.tsx fix: wrap rehash updateProfile in try/catch for best-effort (#54) 2026-04-09 15:46:27 -04:00
ReportsCartesPage.tsx feat(reports/cartes): Mensuel/YTD toggle on KPI cards + user guide section (#102) 2026-04-19 09:49:21 -04:00
ReportsCategoryPage.tsx feat: category zoom + secure AddKeywordDialog with context menu (#74) 2026-04-14 15:09:17 -04:00
ReportsComparePage.tsx feat(reports/compare): 8-column table with monthly + cumulative YTD blocks (#104) 2026-04-18 21:17:32 -04:00
ReportsHighlightsPage.tsx feat(reports/highlights): default reference month to previous month + YTD current year, user-changeable (#106) 2026-04-19 08:28:30 -04:00
ReportsPage.tsx feat(reports/cartes): new KPI dashboard sub-report with sparklines, top movers, budget adherence and seasonality (#97) 2026-04-15 19:44:58 -04:00
ReportsTrendsPage.tsx feat(reports/trends): add stacked-area chart option for category view (#105) 2026-04-19 07:23:49 -04:00
SnapshotEditPage.tsx fix(ui): close native date picker after selection on WebKitGTK (#177) 2026-05-02 15:55:57 -04:00
TransactionsPage.tsx feat(transactions): inline transfer icon + FK error message 2026-04-25 16:38:46 -04:00