Skip to content

feat(services): adopt loading-aware Button with aria-busy for New Service submit (#151)#212

Open
GBOYEE wants to merge 1 commit into
Agentpay-Org:mainfrom
GBOYEE:enhancement/services-new-loading-button
Open

feat(services): adopt loading-aware Button with aria-busy for New Service submit (#151)#212
GBOYEE wants to merge 1 commit into
Agentpay-Org:mainfrom
GBOYEE:enhancement/services-new-loading-button

Conversation

@GBOYEE

@GBOYEE GBOYEE commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • Add loading prop to shared Button component
  • Set aria-busy when loading is true, removed on completion
  • Pass loading={loading} from NewServicePage to Button
  • Add test assertions for aria-busy state during submit lifecycle

Changes

  • src/components/Button.tsx: Added loading?: boolean prop and aria-busy attribute
  • src/app/services/new/page.tsx: Pass loading prop to Button
  • src/app/services/new/page.test.tsx: Assert aria-busy is set during submit and cleared after

Test plan

  • All 9 tests pass
  • typecheck clean (pre-existing docs/page.tsx error unrelated)

…vice submit (Agentpay-Org#151)

- Add loading prop to shared Button component
- Set aria-busy when loading is true, removed on completion
- Pass loading={loading} from NewServicePage to Button
- Add test assertions for aria-busy state during submit
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