Description
When the connected wallet's chain differs from the app-selected chain, users need guidance not blockage. Design a chain-mismatch modal that names both chains, shows the correct one, and offers "Switch in wallet" and "Change app chain" resolutions.
Requirements and context
- Must be accessible (WCAG 2.1 AA), responsive, and documented in the design system
- Should be consistent with existing patterns and easy to review
- Relevant code:
src/components/AppShell
- Actions must reflect wallet capabilities (some wallets can't auto-switch)
Suggested execution
- Fork the repo and create a branch
git checkout -b uiux/network-switcher-mismatch-modal
- Implement changes
- Design modal with side-by-side chain chips
- Specify per-wallet capability copy
- Draft the manual-switch help link
- Validate accessibility and responsive assumptions
Test and commit
- Run checks
npm run lint and component/visual tests
- Cover edge cases
- Unknown chains, offline wallet, RTL layout
- Include screenshots/before-after and accessibility (axe) notes
Example commit message
design: network switcher mismatch modal
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Description
When the connected wallet's chain differs from the app-selected chain, users need guidance not blockage. Design a chain-mismatch modal that names both chains, shows the correct one, and offers "Switch in wallet" and "Change app chain" resolutions.
Requirements and context
src/components/AppShellSuggested execution
git checkout -b uiux/network-switcher-mismatch-modalTest and commit
npm run lintand component/visual testsExample commit message
design: network switcher mismatch modalGuidelines