Skip to content

Add personal account forecasts and savings overview to dashboard - #42

Merged
triopsi merged 4 commits into
mainfrom
feat/savings-overview
Nov 25, 2026
Merged

triopsi merged 4 commits into
mainfrom
feat/savings-overview

Conversation

@triopsi

@triopsi triopsi commented Nov 25, 2026

Copy link
Copy Markdown
Owner

This pull request introduces a new "Savings Overview" page, enhances the account balance forecast with more detailed calculation breakdowns, and improves the dashboard's layout and interactivity. It also adds comprehensive translation strings for new features, and updates the account balance forecast logic and data structures to support these improvements.

New features and UI improvements:

  • Added a new SavingsOverview page (app/Filament/Pages/SavingsOverview.php) that displays accumulated earmarked funds and their account holders for a selected month, with logic to handle both projected and closed months.
  • Introduced a new Blade component, account-calculation (resources/views/components/account-calculation.blade.php), to show a detailed breakdown of the account balance calculation for participants, including opening balances, income, cost shares, savings, and reserves.
  • Improved dashboard widget resizing and content fitting for both "transfers" and "participants" widgets, ensuring better responsiveness and display on the monthly dashboard (resources/js/monthly-dashboard.js, resources/css/monthly-dashboard.css). [1] [2] [3] [4]

Backend and data structure enhancements:

  • Enhanced the AccountBalanceForecast service (app/Services/AccountBalanceForecast.php) to provide more detailed per-participant forecast data, including opening balances, observed balances, income, shares, savings, and flags for the starting month. [1] [2] [3]
  • Updated the ParticipantMonth page to include budget information in the view data, supporting the new savings overview and calculations.
  • Set a custom view for the MonthlyParticipantsTable widget to allow more flexible rendering (app/Filament/Widgets/MonthlyParticipantsTable.php). [1] [2]

Localization:

  • Added comprehensive translation strings for the new savings overview and account calculation features in both German and English (lang/de/funding.php, lang/en/funding.php, lang/de/participants.php, lang/en/participants.php). [1] [2] [3] [4]

…verview

- show account balance forecasts in monthly, yearly and participant views
- display monthly calculations and savings reserves
- redesign participant cards and fix widget overflow
- adjust dashboard sizing to fit widget content
- add dedicated overview page with monthly balances and account holders
- break down personal reserves by savings pot
- explain savings pots and reserved amounts
- link budget widget to savings overview
- preserve frozen balances for closed months
Copilot AI balanced review requested due to automatic review settings November 25, 2026 12:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The accepted 9998-12 value can trigger over 95,000 monthly replays and tie up a request worker; validate the month against 2000-01–2100-12 before invoking the calculation.

1 open issue
What changed in this PR

Adds a savings overview and clearer personal account forecasts to the household-finance dashboard, showing how monthly activity and reserved funds affect available balances.

Changes:

  • Adds accumulated savings balances by pot and account holder, using frozen snapshots for closed months.
  • Introduces reusable monthly and account calculation breakdowns across participant views.
  • Updates dashboard sizing, English and German translations, and regression coverage.
File Description
tests/​Feature/​SavingsOverviewTest.php Tests accumulated reserves, snapshots, and invalid input.
tests/​Feature/​IncomeFundingTest.php Tests personal reserve details and legacy reports.
resources/​views/​filament/​widgets/​monthly-participants.blade.php Adds participant cards with expandable calculations.
resources/​views/​filament/​widgets/​monthly-budgets-footer.blade.php Links budgets to the savings overview.
resources/​views/​filament/​pages/​year-plan.blade.php Displays recorded account balance checkpoints.
resources/​views/​filament/​pages/​savings-overview.blade.php Displays savings totals, movements, and holders.
resources/​views/​filament/​pages/​participant-month.blade.php Integrates monthly and account calculation components.
resources/​views/​filament/​household-style.blade.php Styles participant cards, calculations, and savings views.
resources/​views/​components/​savings-explanation.blade.php Provides expandable savings explanations.
resources/​views/​components/​monthly-calculation.blade.php Breaks down monthly remainder and reserves.
resources/​views/​components/​account-calculation.blade.php Explains projected and available account balances.
resources/​js/​monthly-dashboard.js Fits transfer and participant widgets to content.
resources/​css/​monthly-dashboard.css Allows participant widget content-driven height.
lang/​en/​participants.php Adds English account calculation labels.
lang/​en/​funding.php Adds English savings labels and explanations.
lang/​de/​participants.php Adds German account calculation labels.
lang/​de/​funding.php Adds German savings labels and explanations.
app/​Services/​AccountBalanceForecast.php Exposes detailed per-participant forecast components.
app/​Filament/​Widgets/​MonthlyParticipantsTable.php Uses the custom participant overview view.
app/​Filament/​Pages/​SavingsOverview.php Loads projected or frozen savings balances.
app/​Filament/​Pages/​ParticipantMonth.php Supplies budgets for personal reserve breakdowns.

Review effort: Balanced

protected function getViewData(): array
{
$data = ['budgets' => [], 'names' => [], 'total' => 0, 'closed' => false, 'problem' => null];
if (preg_match('/^\d{4}-(0[1-9]|1[0-2])$/D', $this->month) !== 1) {
Copilot AI balanced review requested due to automatic review settings November 25, 2026 12:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@triopsi
triopsi merged commit 7043a64 into main Nov 25, 2026
13 checks passed
@triopsi
triopsi deleted the feat/savings-overview branch November 25, 2026 12:59
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.19.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants