New page /analytics shows the current mandator's expenses across all years,
with drill-down all -> subclass -> account -> booking-text group, year range
and month/quarter/year filters, KPI tiles, a stacked bar chart and a category
list. Filters and drill-down position live in the URL.
- MultiYearRepository reads any mandator/year (read-only, shared cache)
- ExpenseAnalysis flattens all years and answers queries in memory: net
amounts (refunds count negative), accounts keyed by number with the latest
name, bookings counted in the year of their books, year-over-year
comparison over the same months
- Chart.js 4.5.1 vendored in wwwroot/lib/chartjs, wrapped by
wwwroot/js/charts.js and StackedBarChart.razor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bookings like "Narbonne Car" and "Narbonne Food" should roll up into
one series/slice instead of staying separate, so grouping now uses
the text up to the first space via TransactionDataset.GetTextGroup().
Adds two charts to the per-account transactions view: a stacked bar
chart of monthly totals and a pie chart of overall totals, both
grouped by booking text, so recurring bookings (rent, subscriptions,
etc.) are visible at a glance. Chart components are keyed on the
account id so switching accounts remounts them instead of reusing a
stale Plotly instance.