Simpl-Resultat/src/components/reports
le king fu f3e8e94b16 feat(reports): hierarchical real-vs-real compare with subtotals
Render the real-vs-real comparable report as a parent/child category tree
with subtotal rows, mirroring the budget report — rows grouped into
expense/income/transfer sections with per-section and grand totals and a
subtotals-on-top/bottom toggle. The compare service now builds the tree on
top of the flat per-category deltas, so leaf-category figures are unchanged
and the #243 transfer netting is preserved (a balanced transfer group
subtotals to ~0, i.e. the group's net).

- reportService: buildCompareTree() synthesizes subtotal rows from the flat
  leaves + category metadata; getCompareMonthOverMonth/YoY return the tree
  (COMPARE_DELTA_SQL and rowsToDeltas untouched).
- CategoryDelta gains optional parent_id/is_parent/depth/category_type.
- ComparePeriodTable: sections, depth indentation, reorderRows toggle,
  section/grand net totals.
- Cartes top-movers and ComparePeriodChart filter to leaf rows only.
- reorderRows constraint loosened to the two fields it reads.
- i18n (FR+EN) section labels; CHANGELOG entries.

Resolves #247

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-04 17:32:38 -04:00
..
cards feat(reports/cartes): Mensuel/YTD toggle on KPI cards + user guide section (#102) 2026-04-19 09:49:21 -04:00
BudgetVsActualTable.tsx fix: remove duplicated px-3 class and improve readability (#29) 2026-03-09 21:28:46 -04:00
CategoryBarChart.tsx Add box-shadow and z-index to chart tooltips for better visibility (#19) 2026-03-08 12:06:16 -04:00
CategoryDonutChart.tsx feat: category zoom + secure AddKeywordDialog with context menu (#74) 2026-04-14 15:09:17 -04:00
CategoryEvolutionChart.tsx feat: category zoom + secure AddKeywordDialog with context menu (#74) 2026-04-14 15:09:17 -04:00
CategoryOverTimeChart.tsx refactor(reports/trends): rename chart type from 'line' to 'bar' to match actual rendering 2026-04-19 07:26:22 -04:00
CategoryOverTimeTable.tsx Improve visual hierarchy of subtotals and totals in all tables 2026-03-07 09:10:27 -05:00
CategoryTable.tsx Improve visual hierarchy of subtotals and totals in all tables 2026-03-07 09:10:27 -05:00
CategoryTransactionsTable.tsx feat: category zoom + secure AddKeywordDialog with context menu (#74) 2026-04-14 15:09:17 -04:00
CategoryZoomHeader.tsx feat(reports/category): replace select with searchable combobox (#103) 2026-04-18 21:07:47 -04:00
CompareBudgetView.tsx feat: compare report — MoM / YoY / budget with view toggle (#73) 2026-04-14 14:57:13 -04:00
CompareModeTabs.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
ComparePeriodChart.tsx feat(reports): hierarchical real-vs-real compare with subtotals 2026-07-04 17:32:38 -04:00
ComparePeriodTable.tsx feat(reports): hierarchical real-vs-real compare with subtotals 2026-07-04 17:32:38 -04:00
CompareReferenceMonthPicker.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
CompareSubModeToggle.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
HighlightsTopMoversChart.tsx feat: reports hub with highlights panel and detailed highlights page (#71) 2026-04-14 14:47:55 -04:00
HighlightsTopMoversTable.tsx feat: reports hub with highlights panel and detailed highlights page (#71) 2026-04-14 14:47:55 -04:00
HighlightsTopTransactionsList.tsx feat: propagate right-click "add as keyword" to transactions page and highlights list (#75) 2026-04-14 15:15:33 -04:00
HubHighlightsPanel.tsx feat: reports hub with highlights panel and detailed highlights page (#71) 2026-04-14 14:47:55 -04:00
HubNetBalanceTile.tsx feat: reports hub with highlights panel and detailed highlights page (#71) 2026-04-14 14:47:55 -04:00
HubReportNavCard.tsx feat: reports hub with highlights panel and detailed highlights page (#71) 2026-04-14 14:47:55 -04:00
HubTopMoversTile.tsx feat: reports hub with highlights panel and detailed highlights page (#71) 2026-04-14 14:47:55 -04:00
HubTopTransactionsTile.tsx feat: reports hub with highlights panel and detailed highlights page (#71) 2026-04-14 14:47:55 -04:00
MonthlyTrendsChart.tsx Bump version to 0.6.0 — Reports enhancements and comment visibility fix 2026-03-04 21:01:13 -05:00
MonthlyTrendsTable.tsx refactor: remove pivot report, add sub-route skeletons and shared components (#69) 2026-04-14 14:25:38 -04:00
Sparkline.tsx refactor: remove pivot report, add sub-route skeletons and shared components (#69) 2026-04-14 14:25:38 -04:00
TrendsChartTypeToggle.test.ts refactor(reports/trends): rename chart type from 'line' to 'bar' to match actual rendering 2026-04-19 07:26:22 -04:00
TrendsChartTypeToggle.tsx refactor(reports/trends): rename chart type from 'line' to 'bar' to match actual rendering 2026-04-19 07:26:22 -04:00
ViewModeToggle.test.ts refactor: remove pivot report, add sub-route skeletons and shared components (#69) 2026-04-14 14:25:38 -04:00
ViewModeToggle.tsx refactor: remove pivot report, add sub-route skeletons and shared components (#69) 2026-04-14 14:25:38 -04:00