Skip to content

fix(budget): show "Saving..." on form submit buttons during pending mutations - #272

Merged
dccakes merged 1 commit into
mainfrom
claude/sharp-feynman-ppo99p
Aug 28, 2026
Merged

dccakes merged 1 commit into
mainfrom
claude/sharp-feynman-ppo99p

Conversation

@dccakes

@dccakes dccakes commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

Budget form submit buttons were not providing visual feedback while mutations were in flight. This PR aligns three budget forms with the established pattern already used in vendor-form.tsx and wedding-settings-form.tsx.

Changed files

  • src/components/budget/expense-form.tsx — submit button now shows "Saving..." while the create/update mutation is pending
  • src/components/budget/category-form.tsx — submit button now shows "Saving..." while the create/update mutation is pending
  • src/components/budget/budget-summary.tsx — budget settings dialog submit button now shows "Saving..." while the update mutation is pending

Before / After

Before — button stays labelled "Add expense" / "Save changes" / "Save" even while disabled during the network call.

After — button reads "Saving..." whenever the underlying tRPC mutation is isPending, matching the pattern in vendor-form.tsx:

{isPending ? 'Saving...' : isEditing ? 'Save changes' : 'Add expense'}

Daily improvement report

Selected improvement

Add "Saving…" loading text to budget form submit buttons — small UX consistency fix, no new dependencies, 3-line change, all 2035 unit tests pass.

Other recommendations reviewed (not implemented here)

Priority Area Recommendation Effort Notes
Medium Checklist Add "Saving..." to task-dialog.tsx submit button Small Same pattern gap; no open PR
Medium Budget Add "Saving..." to upcoming-payments.tsx — use explicit locale in toLocaleDateString() Small Minor i18n consistency
Medium Events Show single time when only startTime is set (no endTime) Small Open PR #260 already covers
Low Dashboard Loading skeleton for VendorsCard initial fetch Small Open PR #256 covers
Low Checklist Chevron icon on collapsible bucket headers Small Open PR #261 covers
Low Budget Delete-dialog button loading states in category-card.tsx Small Open PR #252 covers

Generated by Claude Code

…utations

Aligns budget form submit buttons with the established loading-feedback
pattern used in vendor-form and wedding-settings-form. Expense, category,
and budget-settings dialogs now display "Saving..." while the mutation is
in flight instead of leaving the button label unchanged.
@vercel

vercel Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
scv Ready Ready Preview Aug 24, 2026 2:28pm

@github-actions

Copy link
Copy Markdown
Contributor

Jest Test Coverage

Coverage Summary

Lines Statements Branches Functions
Coverage: 83%
83.09% (36209/43574) 82.09% (3797/4625) 69.43% (1070/1541)

@dccakes
dccakes marked this pull request as ready for review August 28, 2026 14:03
@dccakes
dccakes merged commit 90330a8 into main Aug 28, 2026
10 checks passed
@dccakes
dccakes deleted the claude/sharp-feynman-ppo99p branch August 28, 2026 14:03

This branch was successfully deployed

1 active deployment
Preview — 41531d78 Deployed Aug 24, 2026 by vercel[bot]
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