Skip to content

FEAT: add testnet network banner - #852

Merged
pedroanastacio merged 4 commits into
stagingfrom
p2/feat/add-network-tag
Mar 12, 2026
Merged

pedroanastacio merged 4 commits into
stagingfrom
p2/feat/add-network-tag

Conversation

@pedroanastacio

@pedroanastacio pedroanastacio commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

To ensure user operational safety on the Fuel network, we need an unambiguous visual indicator when the wallet is not on Mainnet.

Summary

  • Displays banner when testnet is the current network

Screenshots

https://jam.dev/c/2e94f777-43a9-4896-a057-833e5d944318

Checklist

  • I reviewed my PR code before submitting
  • I ensured that the implementation is working correctly and did not impact other parts of the app
  • I implemented error handling for all actions/requests and verified how they will be displayed in the UI (or there was no error handling needed).
  • I mentioned the PR link in the task

Comment thread src/components/testNetBanner/index.tsx Resolved

@guimroque guimroque left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

Summary

This PR implements a testnet network banner that appears when users are on testnet, providing important visual feedback for operational safety. The implementation includes proper responsive behavior and fade effects.

Strengths

  • Clean component structure with proper separation of concerns in testNetBanner/index.tsx
  • Good responsive design with mobile-first approach using display breakpoints
  • Proper cleanup of event listeners in useEffect to prevent memory leaks
  • Consistent integration across both dashboard and vault layouts

Issues

  • 1 important issue with performance optimization needed

@aws-amplify-us-east-1

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-852.db1b4e2lqk8yl.amplifyapp.com

@guimroque guimroque left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! ✅

Previous issues have been fixed. Code approved.

@pedroanastacio
pedroanastacio merged commit a9b5db1 into staging Mar 12, 2026
1 of 3 checks passed
@pedroanastacio
pedroanastacio deleted the p2/feat/add-network-tag branch March 12, 2026 14:23
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.

2 participants