Simpl-Resultat/src/pages
le king fu 4116db4090
All checks were successful
PR Check / rust (push) Successful in 24m37s
PR Check / frontend (push) Successful in 2m21s
PR Check / rust (pull_request) Successful in 24m25s
PR Check / frontend (pull_request) Successful in 2m26s
refactor(reports/compare): unify MoM/YoY under one Actual-vs-actual mode with reference month picker (#96)
Collapse the three Compare tabs (MoM / YoY / Budget) into two modes. The
new "Actual vs actual" mode exposes an explicit reference-month dropdown
in the header (defaults to the previous month, wraps around January) and
a MoM/YoY sub-toggle. The chart is rewritten to a grouped side-by-side
BarChart with two bars per category (reference period vs comparison
period) so both values are visible at a glance instead of just the
delta. The URL PeriodSelector stays in sync with the reference month.

- useCompare: state splits into { mode: "actual"|"budget", subMode:
  "mom"|"yoy", year, month }. Pure helpers previousMonth(),
  defaultReferencePeriod(), comparisonMeta() extracted for tests
- CompareModeTabs: 2 modes instead of 3
- New CompareSubModeToggle and CompareReferenceMonthPicker components
- ComparePeriodChart: grouped bars via two <Bar dataKey="..."/> on a
  vertical BarChart
- i18n: modeActual / subModeMoM / subModeYoY / referenceMonth (FR+EN),
  retire modeMoM / modeYoY
- 9 new vitest cases covering the pure helpers (January wrap-around for
  both MoM and YoY, default reference period, month/year arithmetic)

Closes #96

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 14:24:11 -04:00
..
AdjustmentsPage.tsx fix: improve split indicator visibility and adjustments layout 2026-02-17 02:01:15 +00:00
BudgetPage.tsx feat: 12-month budget grid, import UX improvements, confirmation dialogs (v0.2.4) 2026-02-14 12:59:11 +00:00
CategoriesPage.tsx Bump version to 0.6.2 — Section subtotals and category detail fix 2026-03-06 16:22:36 -05:00
ChangelogPage.tsx Add bilingual changelog page and file-based release notes 2026-03-05 14:58:54 -05:00
DashboardPage.tsx fix: address reviewer feedback (#31) 2026-03-10 18:53:31 -04:00
DocsPage.tsx docs: update changelog, user guide, and docs page for v0.3.x features 2026-02-19 07:40:00 -05: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
ReportsCategoryPage.tsx feat: category zoom + secure AddKeywordDialog with context menu (#74) 2026-04-14 15:09:17 -04:00
ReportsComparePage.tsx refactor(reports/compare): unify MoM/YoY under one Actual-vs-actual mode with reference month picker (#96) 2026-04-15 14:24:11 -04:00
ReportsHighlightsPage.tsx feat: propagate right-click "add as keyword" to transactions page and highlights list (#75) 2026-04-14 15:15:33 -04:00
ReportsPage.tsx feat: reports hub with highlights panel and detailed highlights page (#71) 2026-04-14 14:47:55 -04:00
ReportsTrendsPage.tsx feat: trends report — global flow + by category with view toggle (#72) 2026-04-14 14:52:34 -04:00
SettingsPage.tsx feat: settings banner when OAuth tokens fall back to file store (#81) 2026-04-14 08:18:41 -04:00
TransactionsPage.tsx feat: propagate right-click "add as keyword" to transactions page and highlights list (#75) 2026-04-14 15:15:33 -04:00