Repository navigation
Budgets: Suggest offers changes when your budgets are off - #3
Merged
Merged
Conversation
…l spending The Suggest sheet said "Nothing to suggest right now." once every main category had a budget. It now lists budgets $25 and a fifth or more away from the suggested amount as current -> suggested, then main categories with no budget. Apply all saves them, each row can be edited or removed first, and the sheet carries the page's Ask AI to tune my budget button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
minimus7
force-pushed
the
budget-suggest-retune
branch
from
November 11, 2026 03:36
b9a2f96 to
86228a0
Compare
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.
Stacked on #2 (
budget-suggest-edit). It builds on that PR's editable suggestion list, so it targets that branch. Merge #2 first; GitHub then retargets this one tomain.The Suggest sheet on the Budgets tab said "Nothing to suggest right now." once every main category had a budget. Now:
AskButton, passed in, not a new AI path. Pressing it closes the sheet and opens broke ai with the same question.Code
src/lib/budget.ts:wellOff(budget, suggested)andretune(cats, budgets), tested inbudget.test.ts.src/components/BudgetEditor.tsx: the sheet usesretune.Suggesttakescurrent(shows "$650 →", button reads "Apply all N") andempty(the no-changes line). Rows look up categories that already have a budget, not only open ones. The sheet'sSuggestremounts on each open so it starts from the latest numbers.Tested
Local Supabase stack (not the real project), throwaway
retune@broke.testuser,broke-sample-statement.csvimported through Accounts → Add accounts → Import a statement. Suggested amounts: Auto & transport 350, Bills & utilities 1650, Dining & drinks 160, Entertainment 30, Groceries 675, Health 30, Shopping 130, Travel 50.node src/lib/budget.test.ts,npx tsc --noEmitandeslintclean.BudgetEditoron the Budgets page. It shows on Budgets: edit, remove and add on the first-time suggestion list #2's code too, so it is not from this change.Screenshots
Taken at deviceScaleFactor 2, the sheet element only. Files are in
.context/pr-3/in the local checkout (/Users/maximussoares/Documents/broke/.context/pr-3/).Before
After
🤖 Generated with Claude Code