Analyse page: income, net and assets views; narrow-screen layout #6
Loading…
Reference in a new issue
No description provided.
Delete branch "analytics-income-assets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Step 4 of the analytics plan, items 2, 4 and 5: income, net and assets views on the Analyse page (replacing the old Vermögen chart page) and a narrow-screen layout pass.
Views
A switch at the top selects Ausgaben | Einnahmen | Netto | Vermögen, stored in the URL as
view=. Switching starts the drill-down from the top, because the subclasses differ per view.ViewService): kept in the account currency and converted withIFxConverter, which is asked once per currency.worse/betterinstead ofup/down.Code
ExpenseAnalysis→AccountingAnalysiswithAnalyticsView(Expenses, Income, Net, Assets), andGetExpenseAnalysisAsync→GetAnalysisAsync. The running year's last month now comes from all bookings, not just expenses.AnalyticsResult.Openinggives the balance at the start of the range for Vermögen.charts.js: the stacked bar chart takes an optionaltotalLine.Removed
/Assets) and its menu entry. Plotly is now only used by the booking-text charts on the Transactions page.Narrow screens
At 400 px the page was wider than the screen.
wwwroot/js/viewport.js); the ☰ toggle still opens it. The header dropdowns are narrower, and the app name hides below 520 px.Test plan
dotnet build: no warningsdotnet test: 88/88 pass, including 7 newAccountingAnalysisTestShouldtests (income signs, net ordering, month-end balances with opening, balance at period end, FX conversion asked once, comparison at the same month, assets drill-down ends at the account)Note on the data (not a code issue)
The Vermögen view shows each year as its books say. In the real data, some closing balances don't match the next year's opening balances. These are probably bookings added to a year after the next one was opened:
🤖 Generated with Claude Code
- View switch Ausgaben | Einnahmen | Netto | Vermögen (URL: view=). ExpenseAnalysis becomes AccountingAnalysis: - Income: bookings from income accounts positive, to them negative - Net: income positive, expenses negative, ordered by size; bar chart with a net line, savings-rate tile, no treemap (areas can't be negative) - Assets: month-end balances of asset accounts in CHF (foreign balances converted once per currency, like the balance sheet); periods take their last balance, drill-down ends at the account - Change colours follow the view: more expenses red, more income/assets green - Old Vermögen chart page and its menu entry removed - Narrow screens: side menu starts collapsed below 700px, slimmer header, wrapping button groups, two KPI tiles per row, pinned name column in the year table Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>