Skip to content

[AI] Offer last month's budget via the left arrow in budget cells - #113

Merged
chrisvasz merged 1 commit into
masterfrom
claude/budget-left-arrow-prefill-d2a3dc
Oct 8, 2026
Merged

chrisvasz merged 1 commit into
masterfrom
claude/budget-left-arrow-prefill-d2a3dc

Conversation

@chrisvasz

Copy link
Copy Markdown
Owner

Budget cells without a goal amount now offer the previous month's budget the same way goal cells offer the goal: the empty input hints at it, and the left arrow fills it in. A goal's amount (or, for a balance goal with a target month, what's needed this month) still takes precedence. Last month's amount is only offered when it's above zero.

Both hints now show the exact value that will be filled in (← 400.00) rather than the currency-formatted goal (← $500).

To read the previous month's cell, useSheetValue now supports bindings that name another sheet (budget202609!budget-<id>). useSheetName already split those, but useSheetValue passed the full name to bind, which prefixed the sheet a second time, so the value never resolved.

🤖 Generated with Claude Code

Budget cells without a goal amount now hint at the previous month's budget
and fill it in on the left arrow, the same way goal cells offer the goal.
Both hints show the exact amount that will be filled in ("← 400.00").

useSheetValue now handles bindings that name another sheet
("budget202609!budget-<id>"); it used to prefix the sheet twice, so the
value never resolved.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chrisvasz
chrisvasz merged commit f81b101 into master Oct 8, 2026
13 of 14 checks passed
@github-actions

github-actions Bot commented Oct 8, 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 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