Skip to content

Add accessible 'Subscribe' button with confirmation#329

Merged
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
Baskarayelu:issue-287
Jun 29, 2026
Merged

Add accessible 'Subscribe' button with confirmation#329
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
Baskarayelu:issue-287

Conversation

@Baskarayelu

Copy link
Copy Markdown
Contributor

Closes #287

Summary

  • Add SubscribeButton component with a three-state flow: idle → confirming → subscribed
  • Inline confirmation dialog meets WCAG 2.1 AA: focus is moved to "Confirm" on open, roles (dialog, status, aria-live) are set correctly
  • Integrated into ApiDetailPage CTA area; on confirm a toast is shown via the existing useToast hook
  • 4 unit tests (happy path + cancel edge case) — all passing

Test plan

  • Run npx vitest run src/components/SubscribeButton.test.tsx — 4 tests pass
  • Visit an API detail page and click Subscribe; confirm dialog appears with focus on Confirm
  • Press Cancel — returns to idle
  • Press Confirm — shows Subscribed! state + success toast
  • Verify keyboard-only navigation works end-to-end

🤖 Generated with Claude Code

…#287)

- Add SubscribeButton component with idle → confirming → subscribed flow
- Inline confirmation dialog with WCAG 2.1 AA focus management
- Integrate into ApiDetailPage CTA area with toast feedback
- 4 unit tests covering happy path and cancel edge case

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@greatest0fallt1me greatest0fallt1me merged commit 31419e6 into CalloraOrg:main Jun 29, 2026
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.

Add accessible 'Subscribe' button with confirmation

2 participants