Add Analyse page: expenses over all years with drill-down #4

Merged
clayschaad merged 2 commits from analytics into main 2026-10-22 14:02:09 +00:00

2 commits

Author SHA1 Message Date
95df8f52fd Remove old Ausgaben and Zeitverlauf chart pages
The Analyse page replaces both. Drop the /spendings and /SpendingsOverTime
pages, their menu entries, and ChartService.GetExpensesPerMonthAsync with its
helpers and tests. Vermögen stays until the Analyse page covers assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:00:30 +02:00
b7a6d32ae1 Add Analyse page: expenses over all years with drill-down
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>
2026-10-22 15:55:02 +02:00