Skip to content

FEAT: add network select on header - #851

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

pedroanastacio merged 4 commits into
stagingfrom
p2/feat/add-network-selection-to-header

Conversation

@pedroanastacio

Copy link
Copy Markdown
Contributor

Description

  • Relocate the network selector to the application header, increasing the visibility of the connected network and facilitating quick environment switching without the need to open the profile menu, improving navigation agility.

Summary

  • Adds network select on header. The select is not displayed on mobile.
  • Renames old network select component to NetworkPopover

Screenshots

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

@pedroanastacio pedroanastacio changed the title feat(network): add network select on header FEAT: add network select on header Mar 11, 2026
Comment thread src/layouts/dashboard/header.tsx Resolved
Comment thread src/layouts/dashboard/networkSelect.tsx Resolved
Comment thread src/layouts/dashboard/networkSelect.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 successfully relocates the network selector from the user menu to the header, improving UX by making network switching more accessible. The implementation properly handles responsive design and follows component separation principles.

Strengths

  • Clean component separation: NetworkPopover for mobile menu, NetworkSelect for header
  • Proper responsive design with display props hiding mobile/desktop variants appropriately
  • Good reuse of existing useNetworks hook and network logic
  • Consistent styling and proper gap spacing in layout

Issues

  • 1 critical bug in event handler mapping
  • 1 important naming convention violation
  • 1 suggestion for code clarity

@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-851.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 435c456 into staging Mar 12, 2026
2 of 3 checks passed
@pedroanastacio
pedroanastacio deleted the p2/feat/add-network-selection-to-header branch March 12, 2026 14:04
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