Add payment-period budgeting, split monthly/period budget views, and period-start summary notifications#1002
Open
uniskela wants to merge 1 commit intoellite:mainfrom
Open
Conversation
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.
Summary
This PR introduces a payment-period budgeting model (weekly/fortnightly/monthly + anchor date), separates monthly vs period budget tracking, and adds notification support for period summaries.
What Changed
1. Budget model and persistence
includes/budget_period_calculations.phpendpoints/user/budget.phpmonthly_budgetperiod_budgetbudget_period_typebudget_period_anchor_datebudgetpayload.2. Migrations
migrations/000043.phpuser.budget_period_typeuser.budget_period_anchor_datemigrations/000044.phpuser.period_budgetbudgetfor existing usersmigrations/000045.phpnotification_settings.period_summary_at_period_start3. Settings UI / frontend
settings.phpscripts/settings.jssaveBudget()flow with:saveMonthlyBudget()savePeriodBudget()scripts/notifications.jsperiod_summary_at_period_start.4. Stats and dashboard
includes/stats_calculations.phpstats.phpmonthly/period)scripts/stats.jsdata-budgettypefilter behaviorindex.php5. Notifications
endpoints/notifications/savenotificationsettings.phpperiod_summary_at_period_startendpoints/cronjobs/sendnotifications.php6. i18n
includes/i18n/en.phpscripts/i18n/en.jsNotes
docker-compose.yaml,.gitignore,db/wallos.empty.dbchanges).Validation
php -lon all touched PHP files (all pass).Test Plan
000043,000044,000045).php endpoints/cronjobs/sendnotifications.phpNote: AI assistance was used during implementation; code was manually reviewed and tested before submission.