Repository navigation
Add personal account forecasts and savings overview to dashboard - #42
Merged
Merged
Conversation
…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
There was a problem hiding this comment.
🟡 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) { |
|
🎉 This PR is included in version 1.19.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.

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:
SavingsOverviewpage (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.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.resources/js/monthly-dashboard.js,resources/css/monthly-dashboard.css). [1] [2] [3] [4]Backend and data structure enhancements:
AccountBalanceForecastservice (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]ParticipantMonthpage to include budget information in the view data, supporting the new savings overview and calculations.MonthlyParticipantsTablewidget to allow more flexible rendering (app/Filament/Widgets/MonthlyParticipantsTable.php). [1] [2]Localization:
lang/de/funding.php,lang/en/funding.php,lang/de/participants.php,lang/en/participants.php). [1] [2] [3] [4]