Description
The WalletSelector lacks clear feedback when a connection attempt fails or is pending.
Requirements and context
- Add a loading spinner or "Connecting..." state to the selected wallet button.
- Implement user-friendly error messages (e.g., "User rejected request", "Extension not found").
- Ensure the modal remains responsive during async operations.
Suggested execution
- Update state management in
WalletSelector.tsx to include a loading and error state.
- Catch errors from wallet provider promises and map them to friendly messages.
- Add visual feedback (disabled buttons, spinners).
Test and commit
- Mock a failed connection and verify the error message appears.
- Verify the connecting state is shown during the handshake.
Guidelines
- Error messages should be helpful, not technical.
- PR description must include: Closes #[issue_id]
Complexity: Medium (150 points)
Description
The
WalletSelectorlacks clear feedback when a connection attempt fails or is pending.Requirements and context
Suggested execution
WalletSelector.tsxto include aloadinganderrorstate.Test and commit
Guidelines
Complexity: Medium (150 points)