Skip to content

feat: improve loading states with AccessibleLoading for better access…#617

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
martinshub-tech:feature/loading-states
May 30, 2026
Merged

feat: improve loading states with AccessibleLoading for better access…#617
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
martinshub-tech:feature/loading-states

Conversation

@martinshub-tech
Copy link
Copy Markdown
Contributor

Pull Request: Loading State Improvement with AccessibleLoading

Overview

This PR implements a comprehensive, highly accessible loading experience across the TeachLink platform. It resolves UX discrepancies and guarantees robust accessibility standards by replacing inline text and custom spinners with a single, enhanced AccessibleLoading component.
this pr closes #513

Key Changes

1. Core Component Enhancements (ScreenReaderOptimizer.tsx)

  • Added standard customizability props (className, spinnerClassName, showText, spinner node override) to the AccessibleLoading component.
  • Maintained strict ARIA standards (aria-live, aria-busy) and screen-reader polite announcements.

2. Accessible Submit Buttons (SubmitButton.tsx)

  • Replaced custom SVGs with AccessibleLoading configured for in-button alignment.
  • Restored premium visible text labels for sighted users next to the spinner, preventing any visual layout regressions or sizing shifts.

3. Unified Dashboard Widgets

  • Updated the following widgets under src/app/components/dashboard/widgets/ to replace standard raw text loaders with <AccessibleLoading />:
    • LearningStreakWidget
    • ProgressSummaryWidget
    • RecentActivityWidget
    • RecentSalesWidget
    • RecommendedCoursesWidget
    • UpcomingDeadlinesWidget

Verification Details

  • Verified that all modified dashboard and button loaders render harmoniously, preventing any UI layout shifts.
  • Configured local Git remote to target the user fork https://github.com/martinshub-tech/teachLink_web.git and successfully pushed the feature/loading-states tracking branch.

…ibility

- Replace custom spinners with AccessibleLoading across all dashboard widgets and SubmitButton
- Add customization support (className, showText) to AccessibleLoading for consistent visual and screen-reader UX
- Ensure no layout or visual regressions in buttons and forms
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@martinshub-tech 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

@RUKAYAT-CODER RUKAYAT-CODER merged commit 05fc3b6 into rinafcode:main May 30, 2026
1 of 4 checks passed
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.

test Loading States : Loading State Improvement (Issue 115)

2 participants