Reorganize nav menu and add collapsible sidebar#7488
Reorganize nav menu and add collapsible sidebar#7488jack-gale-ethyca wants to merge 4 commits intomainfrom
Conversation
- Break Settings into three sections: Core configuration, Compliance, and Settings - Add collapsible nav with smooth expand/collapse transition and logo crossfade - Style flyout menus with minos background, corinth text, and proper padding - Add selected parent icon highlight and hover states in collapsed mode - Fix content width to expand properly when nav collapses (FixedLayout, system pages) - Fix content bounce on expand via flex-based layout in _app.tsx - Make dev Plus nav override reliable using NODE_ENV instead of NEXT_PUBLIC_APP_ENV Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Greptile SummaryThis PR reorganizes the navigation menu structure and adds a collapsible sidebar feature with smooth animations and visual improvements. Major changes:
Issues found:
The implementation is well-structured with proper state management, smooth transitions, and comprehensive test updates. Confidence Score: 4/5
Important Files Changed
Last reviewed commit: 7e39f64 |
|
I fixed the hardcoded colors so that should be OK. I also ran this through our FE dev rules so that should be looking good now. |
jpople
left a comment
There was a problem hiding this comment.
Code looks okay, few minor tweaks and I think we shouldn't ship the devShowPlusNav option.
UX-wise, I don't think the icons are sufficiently clear to actually be usable for navigation when collapsed-- might help to at least add the section headings into the flyout menus too.
I wonder also if there's a way we can more clearly communicate that clicking the logo is what toggles the collapsed state, I'm not sure I would ever come to that conclusion on my own.
Last thing, if possible it'd be nice to have more visual continuity with the logo during the expand-collapse animation; notice how the square logo transitions in and out despite remaining in the same place overall.
Screen.Recording.2026-02-27.at.14.38.20.mov
| export const devShowPlusNav = | ||
| process.env.NODE_ENV === "development" && | ||
| process.env.NEXT_PUBLIC_DEV_SHOW_PLUS_NAV === "true"; | ||
|
|
There was a problem hiding this comment.
Is this something that we foresee end users ever using or was it just so you could develop this without a Plus backend? If the latter I would take it out before merging.
| visitWithExpandedNav: ( | ||
| url: string, | ||
| options?: Partial<Cypress.VisitOptions>, | ||
| ) => Chainable; |
There was a problem hiding this comment.
I don't actually think this is necessary, the nav should be expanded by default in all our tests. Cypress starts with clean local storage and none of the tests ever writes true to it.
There was a problem hiding this comment.
There's a lot of inline styles in this file that could be cleaned up and moved into the SCSS module, which I think would be cleaner.
| hasFidesCloud: false, | ||
| }); | ||
|
|
||
| const coreConfig = navGroups.find( |
There was a problem hiding this comment.
We should use the findGroups helper here too.
Ticket ENG-2588
Description Of Changes
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works