Simpl-Resultat/src
le king fu ff350d75e7
Some checks failed
PR Check / rust (push) Successful in 23m24s
PR Check / frontend (push) Successful in 2m17s
PR Check / frontend (pull_request) Has been cancelled
PR Check / rust (pull_request) Has been cancelled
feat: compare report — MoM / YoY / budget with view toggle (#73)
- Services: getCompareMonthOverMonth(year, month) and getCompareYearOverYear(year)
  return CategoryDelta[] (expense-side, ABS aggregates, parameterised SQL only)
- Shared CategoryDelta type with HighlightMover now aliased to it
- Flesh out useCompare hook: reducer + fetch + automatic year/month inference
  from the shared useReportsPeriod `to` date; budget mode skips fetch and
  delegates to CompareBudgetView which wraps the existing BudgetVsActualTable
- Components: CompareModeTabs (MoM/YoY/Budget tabs), ComparePeriodTable (sortable
  table with signed delta coloring), ComparePeriodChart (diverging horizontal
  bar chart with ChartPatternDefs for SVG patterns), CompareBudgetView
  (fetches budget rows for the current target year/month)
- ReportsComparePage wires everything with PeriodSelector + ViewModeToggle
  (storage key reports-viewmode-compare); chart/table toggle is hidden in budget
  mode since the budget table has its own presentation
- i18n keys: reports.compare.modeMoM / modeYoY / modeBudget in FR + EN
- 4 new vitest cases for the compare services: parameterised boundaries,
  January wrap-around to December previous year, delta conversion with
  previous=0 fallback to null pct, year-over-year spans

Fixes #73

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 14:57:13 -04:00
..
components feat: compare report — MoM / YoY / budget with view toggle (#73) 2026-04-14 14:57:13 -04:00
contexts fix: address reviewer feedback (#54) 2026-04-09 15:46:27 -04:00
hooks feat: compare report — MoM / YoY / budget with view toggle (#73) 2026-04-14 14:57:13 -04:00
i18n feat: compare report — MoM / YoY / budget with view toggle (#73) 2026-04-14 14:57:13 -04:00
pages feat: compare report — MoM / YoY / budget with view toggle (#73) 2026-04-14 14:57:13 -04:00
services feat: compare report — MoM / YoY / budget with view toggle (#73) 2026-04-14 14:57:13 -04:00
shared feat: compare report — MoM / YoY / budget with view toggle (#73) 2026-04-14 14:57:13 -04:00
utils test: add unit tests for dateRange.ts utility 2026-03-10 23:05:32 -04:00
App.tsx refactor: remove pivot report, add sub-route skeletons and shared components (#69) 2026-04-14 14:25:38 -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: add user guide page with print/PDF support 2026-02-16 12:19:29 +00:00
vite-env.d.ts Initial project scaffold: Tauri v2 + React + TypeScript + TailwindCSS v4 2026-02-07 11:05:11 +00:00