Repository navigation
UI revamp Phase 5d: Budget page, budgets saved per month - #100
Merged
coderconnoisseur merged 4 commits intoOct 22, 2026
Merged
Conversation
… basis lists only months with spend
… draft panel) and the Plan sidebar group
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Phase 5d of the UI revamp (spec
docs/superpowers/specs/2026-10-22-ui-revamp-phase5-design.md§4.4, mockupbudget.html). Stacked on #99; retarget torefactoronce it lands.Backend
budgets.effective_from("YYYY-MM"), unique per (user, category, month). A month's limit = each category's latest row from that month or before, so edits never rewrite past months. Removing a category writes a 0 limit from this month on._migrate_budget_versions: dates old rows byupdated_at, swaps the unique constraint (SQLite rebuilds the table). Idempotent; tested on SQLite and smoke-tested on Postgres 16.GET /api/budget?month=YYYY-MM,GET /api/budget/history?months=6(budget vs spent;budgetnull for past months with no limits).payload.month; approval writes from that month.basis.monthslists only months with spend (§12).Frontend
/budgetpage + Plan sidebar group: month switcher (past months read-only), Edit budget (overall total in place), Let Lumen draft./budget?draft=1.Checks
Manual checks
/budget: numbers match Home's budget card.Calls made