Skip to content

feat: highlight last-used wallet provider in ConnectWalletModal (Closes #1287) - #1379

Open
waterWang wants to merge 1 commit into
Fluxora-Org:mainfrom
waterWang:feat/remember-last-used-wallet-1287
Open

feat: highlight last-used wallet provider in ConnectWalletModal (Closes #1287)#1379
waterWang wants to merge 1 commit into
Fluxora-Org:mainfrom
waterWang:feat/remember-last-used-wallet-1287

Conversation

@waterWang

Copy link
Copy Markdown

Persist last used wallet provider + show Last used badge. Closes #1287

Fluxora-Org#1287)

- Persist last successfully connected wallet provider in localStorage
- Show 'Last used' badge on the matching provider option when re-opening
- Clear preference on disconnect
- Update aria-label for screen-reader users
- Add CSS classes for lastUsedBadge and comingSoonBadge
- Add 6 new tests covering persistence, badge display, aria-label, and re-open
- Fix pre-existing useWallet mock in ConnectWalletModal.test.tsx (28 tests revived)
- Update Walletbutton test to expect optional provider argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a "Remember my last used wallet" preference that pre-highlights that provider on the next src/components/ConnectWalletModal.tsx open

1 participant