Category analysis: recursive tree + monthly average column#55
Merged
Conversation
Users can wrap categories under Einnahmen/Ausgaben umbrellas, making the tree 3+ levels deep. The detail view only rendered two levels, and the donut/treemap charted top-level categories only — so with a single umbrella root they collapsed to one meaningless box. - Controller now emits a full recursive node tree (own + descendant totals, empty subtrees pruned) instead of a flattened two-level structure. - Detail view uses a PrimeVue TreeTable so every level expands. - Charts descend past single wrapper roots to the first level with a real breakdown, so they work regardless of how the tree is grouped.
- Kategorien page: new 'Mtl. Durchschnitt' column next to Buchungen — each category's own total over the months since the first transaction. - Analysis: 'Mtl. Durchschnitt' column per active view, counting only the months up to the currently selected month (subtree-rolled, matching Betrag).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
1. Full recursive tree (any depth)
Categories wrapped under Einnahmen/Ausgaben umbrellas make the tree 3+ levels deep. Previously the detail view showed only 2 levels and the donut/treemap collapsed to a single box.
TreeTable— every level expands.2. 'Mtl. Durchschnitt' (monthly average) column
Tests
test_aggregates_across_arbitrary_nesting_depthasserts the 3rd level reaches the payload.test_monthly_average_counts_only_months_up_to_selected_month(analysis) andtest_index_exposes_monthly_average(Kategorien).