Simpl-Resultat/src/components/dashboard
le king fu a060f0e0e0
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 1m46s
feat(onboarding): dashboard empty state, getting-started checklist and re-show button (#352)
A profile without any transaction now opens a dashboard that says what to
do: a welcome card with the expanded getting-started checklist and one
primary action towards the import page, instead of widgets showing 0 $.
With transactions, the compact checklist sits between the title and the
filter panel until it is complete or dismissed.

- `EmptyState` (pure, dashed card from the import source list; a `to`
  action renders a react-router `<Link>`, an `onClick` action a button)
- `OnboardingChecklist` (pure, expanded and compact modes; undone rows
  link to their route, the locked Budget row shows a lock, the "Base and
  up" label and links to the license card; neutral budget row and hidden
  counter until the entitlement is known)
- `DashboardEmptyState` composes both
- `DashboardPage` branches on the hook `status`: loading renders the title,
  help and banner only; error falls back to the v0.15.0 page without the
  list and logs a warning; ready with zero transactions renders the empty
  state outside the `isLoading` veil
- `useOnboardingChecklist` exposes `counters` and `error` for the page
- Users settings: "Show the getting-started checklist" button in the Guide
  section, visible only when the preference is set, with an inline
  confirmation after the click
- FR + EN keys `dashboard.empty.*`, `onboarding.checklist.*`,
  `settings.users.onboarding.*`

Tests: `EmptyState.test.tsx` and `OnboardingChecklist.test.tsx` by direct
call (FilterPanel pattern). No DB migration. CHANGELOG left to #357.

Resolves #352

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-03 19:32:43 -04:00
..
CategoriesV1DiscoveryBanner.tsx feat(categories): add dashboard v1 discovery banner (#118) 2026-04-20 21:11:56 -04:00
CategoryPieChart.tsx fix: make pie chart legend always visible with hover percentages (#23) 2026-03-09 21:17:59 -04:00
DashboardEmptyState.tsx feat(onboarding): dashboard empty state, getting-started checklist and re-show button (#352) 2026-10-03 19:32:43 -04:00
NetWorthTile.tsx feat(dashboard): converge home page on the Cartes report model 2026-07-11 17:13:23 -04:00
OnboardingChecklist.test.tsx feat(onboarding): dashboard empty state, getting-started checklist and re-show button (#352) 2026-10-03 19:32:43 -04:00
OnboardingChecklist.tsx feat(onboarding): dashboard empty state, getting-started checklist and re-show button (#352) 2026-10-03 19:32:43 -04:00
PeriodSelector.tsx fix(ui): apply WebKitGTK date picker workaround to remaining 7 inputs (#188) 2026-05-03 16:19:20 -04:00
RecentTransactionsList.tsx fix: CAD currency, real-time import progress, per-row duplicate control, orphaned sources cleanup, dashboard expenses-only 2026-02-10 12:36:12 +00:00