Skip to content

[codex] Add Button loading state#222

Draft
vku2018 wants to merge 1 commit into
Agentpay-Org:mainfrom
vku2018:grantfox-72-button-loading-state
Draft

[codex] Add Button loading state#222
vku2018 wants to merge 1 commit into
Agentpay-Org:mainfrom
vku2018:grantfox-72-button-loading-state

Conversation

@vku2018

@vku2018 vku2018 commented Jul 4, 2026

Copy link
Copy Markdown

Refs #72

Summary

  • Make the shared Button primitive disable itself while loading is true.
  • Render the existing inline Spinner inside loading buttons while preserving button children.
  • Keep aria-busy on loading buttons and add regression coverage for default, loading, and explicitly disabled states.

Validation

  • npm ci --ignore-scripts --no-audit
  • npm test -- src/components/__tests__/Button.test.tsx src/components/__tests__/Spinner.test.tsx (5 passing)
  • npx eslint src/components/Button.tsx src/components/__tests__/Button.test.tsx
  • git diff --check

npm run typecheck was attempted and is blocked by unrelated existing errors in src/app/agents/[agent]/page.tsx (Breadcrumb, formatRequests) and src/app/docs/page.tsx (safeHref).

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.

2 participants