[Frontend] Add "Reconnect Wallet" button and clear network labels to WalletMismatchBanner
Overview
frontend/src/components/wallet/WalletMismatchBanner.tsx alerts the user when their Freighter wallet network does not match the app's selected network, but lacks a direct action button to re-verify or switch the app network to match the wallet.
Problem
- Users who switch networks inside Freighter have to manually reload the page or hunt for the network selector to clear the mismatch state.
Proposed Changes
- Add a "Switch App to Wallet Network" button and a "Re-check Connection" button inside
WalletMismatchBanner.tsx. - Clearly display both the wallet's reported network name and the app's active network name in bold badges.
Acceptance Criteria
- [ ] Clicking "Switch App to Wallet Network" updates the app network setting when supported.
- [ ] Clicking "Re-check Connection" queries the wallet network state and dismisses the banner if resolved.
- [ ] Accessible alert role (
role="alert") included on the banner container.
@xtep103 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi there, I’ve carefully reviewed the issue details and I’m confident I can provide a clean, efficient, and maintainable solution.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @xtep103 to this issue.
@Babigdk has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Update
WalletMismatchBanner.tsxto add “Switch App to Wallet Network” and “Re-check Connection” buttons. Display the wallet and app network names in bold badges, update the app network when supported, re-query Freighter on re-check, and dismiss the banner when the mismatch is resolved. Addrole="alert"for accessibility and tests covering both actions, unsupported networks, and error cases. Run relevant frontend tests.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Babigdk to this issue.
@rahmanabimbs has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi, I will like to work on this issue
ℹ️ Repo Maintainers: To accept this application, review their application or assign @rahmanabimbs to this issue.
Congratulations, @rahmanabimbs! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @rahmanabimbs: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been completed by @rahmanabimbs as part of the Stellar Wave Program's 10th Wave 🥳
😎 @rahmanabimbs: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.