Skip to content

feat(frontend): implement mock wallet sandbox, global state tests, modal a11y, and route preloading - #560

Open
king-aj-the-first wants to merge 1 commit into
Stellarkard:mainfrom
king-aj-the-first:frontend-fixes-p4
Open

feat(frontend): implement mock wallet sandbox, global state tests, modal a11y, and route preloading#560
king-aj-the-first wants to merge 1 commit into
Stellarkard:mainfrom
king-aj-the-first:frontend-fixes-p4

Conversation

@king-aj-the-first

Copy link
Copy Markdown

Detailed PR Description

Summary

This pull request addresses Part 4 enhancements across four frontend domains within stellar_card-frontend:

  1. [frontend] Implement mock wallet connection sandbox context (Part 4) #469 [frontend] Mock Wallet Sandbox Context (Part 4):
    • Added comprehensive integration tests for MockWalletProvider and sandbox context (MockWalletProvider.test.tsx).
    • Validated scenario defaults, override options, and action dispatching for mock Web3 connection states.
  2. [frontend] Add unit tests for global state management hooks (Part 4) #470 [frontend] Unit Tests for Global State Management Hooks (Part 4):
    • Enhanced useGlobalState with a robust GlobalStateProvider, custom transition hooks (setStatus, setError, reset, retry), and state reflection.
    • Added exhaustive unit tests covering initialization, error propagation, retries, and context safety (useGlobalState.test.tsx).
  3. [frontend] Improve keyboard accessibility and ARIA tags in modal windows (Part 4) #471 [frontend] Improve Keyboard Accessibility & ARIA in Modals (Part 4):
    • Enhanced Modal and Drawer components with explicit ariaLabel, ariaDescribedBy, and flexible dialog roles (dialog / alertdialog).
    • Ensured fallback linking to auto-generated IDs and covered these accessibility improvements with tests (modal-accessibility.test.tsx).
  4. [frontend] Optimize bundle splitting and route-level lazy loading (Part 4) #472 [frontend] Route-Level Lazy Loading & Preloading (Part 4):
    • Extended RoutePreloadManager with query methods (getQueue, getLoadedRoutes, hasRoute, clear) for fine-grained lifecycle management and inspectability.
    • Added comprehensive Part 4 unit tests verifying queue prioritization, load lifecycles, and cache clearing (dynamic-routes.test.tsx).

Issue References

Test Plan

  • Run vitest unit test suite for MockWalletProvider.test.tsx (Part 4 mock sandbox)
  • Run vitest unit test suite for useGlobalState.test.tsx (Part 4 state hooks)
  • Run vitest unit test suite for modal-accessibility.test.tsx (Part 4 modal ARIA / a11y)
  • Run vitest unit test suite for dynamic-routes.test.tsx (Part 4 lazy loading and preloader)

@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@king-aj-the-first 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant