Skip to content

[232] Frontend: Add network badge showing testnet vs mainnet - #320

Merged
Junirezz merged 3 commits into
Junirezz:mainfrom
ToryMic:fix/232-frontend-add-network-badge-showing-testnet-vs-mainnet
Apr 25, 2026
Merged

[232] Frontend: Add network badge showing testnet vs mainnet#320
Junirezz merged 3 commits into
Junirezz:mainfrom
ToryMic:fix/232-frontend-add-network-badge-showing-testnet-vs-mainnet

Conversation

@ToryMic

@ToryMic ToryMic commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Added a wallet-connected network badge in the navbar that displays Testnet/Mainnet and updates while connected by reading network details from wallet/config context.

Root Cause

The navbar had no network indicator, so users could not tell which Stellar network they were currently using.

Changes

  • rontend/src/components/Navbar.tsx: Added visible network badge for connected wallets, network label styling for testnet/mainnet, and live wallet-network polling via Freighter API with config fallback.
  • rontend/src/components/Navbar.test.tsx: Added regression test asserting badge visibility when wallet is connected.

Testing

  • Reproduction script passes
  • Added regression test: rontend/src/components/Navbar.test.tsx
  • All unit tests pass locally

Closes #232

Made with Cursor

@drips-wave

drips-wave Bot commented Apr 25, 2026

Copy link
Copy Markdown

@ToryMic Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ToryMic
ToryMic marked this pull request as ready for review April 25, 2026 09:07
@Junirezz
Junirezz merged commit a90f3d5 into Junirezz:main Apr 25, 2026
6 checks passed
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.

Frontend: Add network badge showing testnet vs mainnet

2 participants