Skip to content

Fix/issue 942 landingpage loading state#1031

Merged
hman38705 merged 2 commits into
solutions-plug:mainfrom
Eromosele0110:fix/issue-942-landingpage-loading-state
Jun 30, 2026
Merged

Fix/issue 942 landingpage loading state#1031
hman38705 merged 2 commits into
solutions-plug:mainfrom
Eromosele0110:fix/issue-942-landingpage-loading-state

Conversation

@Eromosele0110

Copy link
Copy Markdown

Description

Type of Change

  • Bug fix
  • New feature
  • Refactor / code cleanup
  • Documentation update
  • CI / tooling change
  • Breaking change

Testing Done

Checklist

  • Tests pass locally
  • Documentation updated (if applicable)
  • No breaking changes, or breaking changes are documented above

Related Issues

Closes #942

Replace local-only submission handler with actual POST to
/api/v1/newsletter/subscribe via the API client. Success and error
responses are surfaced to the user. Update existing accessibility
tests to mock the API and use waitFor for async assertions.

Adds test verifying:
- API endpoint is called on valid submission
- API errors are displayed to the user
- Introduce isLoading state to gate UI updates during API calls
- Disable both the email input and submit button while request is in-flight
- Show a LoadingSpinner inside the submit button during submission
- Add aria-busy to the form for screen reader accessibility
- Update keyboard navigation to work with async submit handler
- Add tests verifying button is disabled during in-flight requests
  and aria-busy attribute transitions correctly
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Eromosele0110 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@hman38705 hman38705 merged commit f4a6921 into solutions-plug:main Jun 30, 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.

No loading state during email form submission on LandingPage

3 participants