Skip to content

Budgets: edit, remove and add on the first-time suggestion list - #2

Merged
minimus7 merged 1 commit into
mainfrom
budget-suggest-edit
Nov 11, 2026
Merged

minimus7 merged 1 commit into
mainfrom
budget-suggest-edit

Conversation

@minimus7

@minimus7 minimus7 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

The first-time Budgets view ("Set a budget from how you really spend") was read-only until you pressed Use these. Now, before saving:

  • Change an amount. Each suggested amount is an input. Press it and type.
  • Remove a category. Each row has an X.
  • Add a category. A category picker and an amount under the list, the same form the table view uses. Picking a category fills in its suggested amount. Removed ones go back into the picker.
  • The Use these · $X/mo total and This leaves $X to save follow the edits as you type.
  • Use these saves exactly the rows shown, through writeBudgets as before.

The Suggest sheet on the after-budget view uses the same component, so it gets the same editing.

Code

  • Suggest keeps a draft (category id → amount) and passes it to onUse.
  • Rows reuse AmountCell (new optional onType updates the total per keystroke).
  • The table's add form moved into AddBudget, shared by the table and the suggestion list.
  • AmountCell inputs are a blank digit narrower, so "$ 30" reads "$30" (table view too).
  • New custom categories still go through "Add one at a time" → New category, which saves at once.

Tested

On a local Supabase stack (not the real project) with a throwaway @broke.test user and broke-sample-statement.csv imported:

  • Typing Groceries 675 → 500: total $3,075 → $2,900, save line $1,225 → $1,400.
  • Removing Travel ($50): $2,850.
  • Adding Personal care $40: $2,890, save line $1,410.
  • Use these saved exactly: Auto & transport 350, Bills & utilities 1650, Dining & drinks 160, Entertainment 30, Groceries 500, Health 30, Personal care 40, Shopping 130.
  • npx tsc --noEmit and eslint clean.

Screenshots

Before

After

🤖 Generated with Claude Code

The first-time "Set a budget from how you really spend" list was read-only
until you pressed Use these. Each suggested amount is now an input, each row
has a remove button, and a category picker adds any other category with an
amount. The Use these total and the "This leaves $X to save" line follow the
edits as you type. Use these saves exactly the rows shown.

Reuses AmountCell and the table's add form (now AddBudget, shared by both).
The Suggest sheet on the after-budget view gets the same editing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@minimus7
minimus7 merged commit cebd597 into main Nov 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant