Skip to content

feat(budget): add month navigation and enhanced statistics charts#37

Merged
NexaFlowFrance merged 1 commit intoNexaFlowFrance:mainfrom
victorprouff:feature/budget-statistics-enhancements
Mar 8, 2026
Merged

feat(budget): add month navigation and enhanced statistics charts#37
NexaFlowFrance merged 1 commit intoNexaFlowFrance:mainfrom
victorprouff:feature/budget-statistics-enhancements

Conversation

@victorprouff
Copy link
Copy Markdown
Contributor

Summary

  • Month navigation: adds ← / → arrows in the Budget page header to navigate between months. The selected month is shared across all tabs (Entries, Statistics, Limits) and all data reloads reactively.
  • Monthly evolution chart: new GET /api/budget/statistics/monthly?year=N endpoint returning expenses, income and balance for each of the 12 months (zero-filled for months with no data). Displayed as a grouped bar chart in the Statistics tab.
  • Stacked chart by member & category: replaces the per-member progress bars with a stacked bar chart showing expenses broken down by both member and category, using CHART_COLOR_PRESETS.

Test plan

  • Navigate months with ← / → arrows, verify entries, limits and statistics all update
  • Check the monthly evolution chart displays the correct year and all 12 months
  • Add expenses assigned to different members in different categories, verify the stacked chart reflects them correctly
  • Verify behaviour with no data (empty months, no family members)

🤖 Generated with Claude Code

- Add previous/next month navigation arrows to the Budget page header,
  shared across all tabs (Entries, Statistics, Limits)
- Reload entries, limits and stats reactively on month/year change
- Add GET /api/budget/statistics/monthly?year=N endpoint returning
  totalExpenses, totalIncome and balance for each of the 12 months
  (zero-filled for months with no data)
- Add "Évolution mensuelle" grouped bar chart (expenses/income per month)
- Replace per-member progress bars with a stacked bar chart
  "Dépenses par membre et catégorie" (one bar per member, segmented by
  category using CHART_COLOR_PRESETS)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@NexaFlowFrance NexaFlowFrance merged commit 55745b7 into NexaFlowFrance:main Mar 8, 2026
1 check passed
@victorprouff victorprouff deleted the feature/budget-statistics-enhancements branch March 8, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants