Skip to content

[AI] Add category goals with progress bars on the budget page - #110

Merged
chrisvasz merged 1 commit into
masterfrom
claude/goal-ui-progress-bar-6417fd
Oct 6, 2026
Merged

chrisvasz merged 1 commit into
masterfrom
claude/goal-ui-progress-bar-6417fd

Conversation

@chrisvasz

Copy link
Copy Markdown
Owner

Adds a simple goal to each expense category and shows progress against it right in the budget table.

  • Goal chip next to a category's notes icon sets the goal: an amount, a type (Budgeted = a monthly amount, Balance = a balance to reach), and for balance goals an optional target month. It reads $500/mo, $3,000, or $3,000 by Jan (year added when it's 12+ months out or past).
  • Progress bars: a thin track along the bottom of the Budgeted and/or Balance cell, filled by how much of the goal that month meets. With a target month, the Budgeted bar measures what's needed this month: (goal − (balance − budgeted)) ÷ months left, counting from the balance before this month's budget so it holds steady while you type.
  • Percent of goal ("78% of $622.40 goal") at the top of the balance menu, and in a popup under the budget input that updates as you type. With a goal, the input hints ← $amount and the left arrow fills it in.
  • Budget inputs now start empty (with a 0.00 hint) when the amount is zero, and the zero-amount color in the light theme is a shade darker so it stays readable over the track.

Reviewer notes:

  • New categories columns goal_amount, goal_type, goal_target_month in one migration. This is separate from the existing goal templates / automations; the two don't interact.
  • InputValue in table.tsx now calls an onKeyDown passed to it before its own handling (it previously dropped it).
  • The Balance cell's right padding moved inside the cell so the track reaches the edge; amounts stay aligned.
  • VRT screenshots aren't updated yet. The zero-amount color change will affect light-theme budget snapshots.

🤖 Generated with Claude Code

Each expense category can have a goal: a monthly "budgeted" amount, or a
"balance" amount with an optional target month. A chip next to the notes
icon shows and edits it, and thin progress bars along the bottom of the
Budgeted and Balance cells show how much of it each month meets. With a
target month, the Budgeted bar measures what's needed this month to stay
on track. The balance menu and a popup under the budget input show the
percentage, and the budget input offers the goal amount via the left arrow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

VRT tests ❌ failed. View the test report.

To update the VRT screenshots, comment /update-vrt on this PR. The VRT update operation takes about 10 to 15 minutes.

@chrisvasz
chrisvasz merged commit 67dccd2 into master Oct 6, 2026
14 of 15 checks passed
chrisvasz added a commit that referenced this pull request Oct 9, 2026
The budget page's Budgeted/Spent cells shifted ~2px and render zeros in a
different color since the category goal PRs (#110/#113), but these
snapshots were never regenerated. Regenerated in the Playwright docker
image, scoped to the 3 failing tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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