feat(frontend): screen reader support & optimistic updates for Balance Sync; state refactor & framer-motion for Onboarding Tracker#998
Merged
emdevelopa merged 1 commit intoJun 24, 2026
Conversation
|
@presidojay1 is attempting to deploy a commit to the Emmanuel's projects Team on Vercel. A member of the Team first needs to authorize it. |
…pdates for Real-time Balance Sync; refactor state logic and add framer-motion animations for Onboarding Progress Tracker - Issue emdevelopa#955: Added RealTimeBalanceSync component with full a11y (aria-live region, role=status, aria-busy, aria-label, per-balance aria-label). Hook now returns liveRegionText and ariaLabel for callers to wire up accessible live regions. - Issue emdevelopa#956: Replaced useState with useReducer in useBalanceSync. Added OPTIMISTIC_UPDATE action and applyOptimistic() so UIs reflect balance changes immediately before the next poll confirms them. Optimistic overrides are cleared on the next successful FETCH_SUCCESS. - Issue emdevelopa#957: Extracted onboarding reducer (onboardingReducer + createInitialOnboardingState) into a standalone onboarding-reducer.ts with full test coverage in onboarding-reducer.test.ts. OnboardingProgressTracker imports from that module. - Issue emdevelopa#958: OnboardingProgressTracker uses framer-motion for staggered step entrance, progress bar scale animation, spring check-mark pop-in, and slide-up completion banner. All animations respect prefers-reduced-motion. Closes emdevelopa#955 Closes emdevelopa#956 Closes emdevelopa#957 Closes emdevelopa#958
50f7cec to
c4222ed
Compare
|
@presidojay1 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RealTimeBalanceSynccomponent with full a11y:aria-liveregion,role="status",aria-busy,aria-labelon the wrapper, and per-balancearia-label.useBalanceSyncnow returnsliveRegionTextandariaLabelfor callers to wire up accessible announcements.useStatecalls inuseBalanceSyncwith auseReducer+OPTIMISTIC_UPDATEaction.applyOptimistic(code, balance)reflects changes immediately; optimistic overrides are cleared when the next successful server poll arrives.onboardingReducerandcreateInitialOnboardingStateinto a standaloneonboarding-reducer.tsmodule with pure unit tests inonboarding-reducer.test.ts.OnboardingProgressTrackerimports from that module.OnboardingProgressTrackeruses framer-motion for staggered step entrance, progress bar scale animation, spring check-mark pop-in, and slide-up completion banner. Variants respectprefers-reduced-motion.Test plan
useBalanceSyncreducer tests pass: FETCH_START / FETCH_SUCCESS / FETCH_ERROR / OPTIMISTIC_UPDATEapplyOptimistictest: balance appears immediately without a network call, overridden on next pollonboardingReducerunit tests pass: optimistic → confirm / rollback lifecycleRealTimeBalanceSyncmounts without errors; aria-live region announces balance updatesOnboardingProgressTrackeranimations play on mount; reduced-motion users see fade-only variantsSupportPanelwhich also consumesuseBalanceSyncCloses #955
Closes #956
Closes #957
Closes #958