Reduce user-facing failure states in wallet and payment flows by validating state transitions, network mismatch handling, and transaction confirmation messaging.
- Affected files: app/frontend/src/app/pay/page.tsx, app/frontend/src/components/SigningSummary.tsx, app/frontend/src/components/NetworkBadge.tsx, app/frontend/src/components/QRPreview.tsx, app/frontend/src/components/Header.tsx, app/frontend/src/lib/api.ts, app/frontend/src/app/dashboard/page.tsx, app/frontend/src/app/settings/page.tsx, app/frontend/src/hooks/analyticsApi.ts
- Acceptance criteria:
- Wallet and payment pages handle disconnected, unsupported, or wrong-network states without broken UI states.
- Transaction summary and confirmation steps clearly reflect final status and recovery actions.
- Client-side wallet logic is validated against a representative matrix of failure scenarios.
Reduce user-facing failure states in wallet and payment flows by validating state transitions, network mismatch handling, and transaction confirmation messaging.