Commit Graph

4 Commits

Author SHA1 Message Date
9a8d13fcfb feat(03-02): wire collapsible sections into DashboardContent
- Add CATEGORY_TYPES_ALL constant and isOverBudget direction-aware helper
- Derive groupedSections via useMemo (filters empty groups, computes totals)
- Initialize openSections state with smart defaults (over-budget expanded)
- State resets on month navigation via key={budgetId} on DashboardContent
- Insert CollapsibleSections between chart grid and QuickAdd
- Add skeleton placeholders for collapsible sections area in DashboardSkeleton

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 15:13:41 +01:00
21ce6d8230 feat(03-01): add CSS animation tokens, i18n keys, and carryover display
- Add collapsible-open/close keyframes and CSS animation tokens to index.css
- Add dashboard.sections and dashboard.carryoverIncludes keys to en.json and de.json
- Add optional subtitle/subtitleClassName props to StatCard
- Extend SummaryStrip balance prop with carryoverSubtitle/carryoverIsNegative
- Compute and pass carryover subtitle from DashboardContent to SummaryStrip
2026-03-17 15:07:08 +01:00
01674e18fb feat(02-03): refactor DashboardPage with month navigation and 3-column chart grid
- Replace hardcoded current month with useMonthParam (URL search params)
- Add MonthNavigator in PageShell action slot
- Replace old recharts pie + progress bars with ExpenseDonutChart, IncomeBarChart, SpendBarChart
- Add empty-month prompt with create/generate buttons
- Memoize all derived data with useMemo
- Move QuickAddPicker below chart grid per plan
2026-03-16 14:21:55 +01:00
a533e06f8c feat(01-02): integrate PageShell, SummaryStrip, and DashboardSkeleton into DashboardPage
- Replace inline SummaryCard with SummaryStrip component (responsive 3-card grid)
- Replace inline h1 header with PageShell wrapper
- Replace loading null returns with DashboardSkeleton pulse animation
- Replace hardcoded green/red color classes with semantic tokens (text-on-budget, text-over-budget, bg-on-budget, bg-over-budget)
- Derive budgetedIncome/budgetedExpenses for variance display

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:20:21 +01:00