Repository navigation
UI revamp Phase 3: Home backend (Lumen found, activity, budgets with approvable drafts) - #94
Merged
coderconnoisseur merged 14 commits intoOct 21, 2026
Conversation
… spikes; habits aren't duplicates; dialog double-submit guard
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
1 task
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.
UI revamp Phase 3: the backend behind Home. Stacked on #92 → #91 → #89. Merge them in that order and retarget each PR to
refactoras its parent lands.Spec:
docs/superpowers/specs/2026-10-20-ui-revamp-design.md§4, §8. Plan:docs/superpowers/plans/2026-10-21-ui-revamp-phase3-home-backend.md.Backend
GET /api/home/summary(api/home.pyover the pureai/home_signals.py, no LLM):ai.recurring).{0}placeholders plus numericamounts, so every amount shows in the user's currency.budgetstable holds per-category limits. The overall budget is still the profile'smonthly_budget.GET/PUT /api/budget.POST /api/budget/draftruns a deterministic draft (mean of the last 3 complete months that had spend, rounded up; needs 2+ months) and files oneset_budgetproposal per category. Approving it through/api/agent/proposals/{id}/approveupserts the limit, and only a finite positive limit is ever applied. A new draft retires pending ones.draft_budgettool that files the same approvable proposals.GET /api/review?count=1returns just the number, for the sidebar badge.Frontend
Checks
pytest -qgives 950 passed, 15 skipped. That includes 47 new tests:Ztimestampsnpm run test:e2egives 82/82.tsc,lintandbuildare clean, and/homeis static at 17.5 kB of route JS.Review (whole branch, Opus)
set_budgetwith a bad limit could break/api/budget.Manual check