-
Notifications
You must be signed in to change notification settings - Fork 227
[dev] [Marfuen] mariano/undo-ui-changes #1928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit 44faa9e.
PR SummaryReplaces the old sidebar system with a custom AnimatedLayout + Sidebar (incl. mobile menu), adds cookie‑backed collapse state via server action/context, and streamlines UI library components/exports.
Written by Cursor Bugbot for commit ece08b8. This will update automatically on new commits. Configure here. |
Graphite Automations"Auto-assign PRs to Author" took an action on this PR • (12/16/25)1 reviewer was added to this PR based on Mariano Fuentes's automation. |
| </div> | ||
| <div className="bg-background flex-1 overflow-y-auto">{children}</div> | ||
| </div> | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Sidebar collapse won't visually update until page refresh
The AnimatedLayout component receives isCollapsed as a server-side prop from layout.tsx, which is read from the cookie during server rendering. When the user clicks the collapse button, the SidebarContext updates and the cookie is set via server action, but AnimatedLayout (a server component) still uses the original server-rendered isCollapsed value for the sidebar width. The UI won't visually change until the page is refreshed to read the new cookie value. The context is updated but nothing consumes it for display—all visual components receive their isCollapsed value from server-rendered props.
Additional Locations (1)
| } | ||
| } | ||
| }, [activeIndex, pathname, isCollapsed]); | ||
| }, [activeIndex, pathname]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Missing dependency causes stale active menu indicator position
The useEffect that updates the active indicator position had isCollapsed removed from its dependency array. When the sidebar collapses or expands, menu items change size (from full-width buttons to icon-only), affecting their offsetTop and offsetHeight values. Without isCollapsed in the dependencies, the effect won't re-run when the collapsed state changes, causing the active indicator to be positioned incorrectly until a window resize or navigation occurs.
| organizationId={organizationId} | ||
| isQuestionnaireEnabled={isQuestionnaireEnabled} | ||
| isTrustNdaEnabled={isTrustNdaEnabled} | ||
| /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Mobile menu missing auditor role props causes incorrect menu
The Header component doesn't fetch or pass hasAuditorRole and isOnlyAuditor props to MobileMenu, and consequently MobileMenu doesn't pass them to MainMenu. Since these props default to false, mobile users see incorrect menu items: auditors won't see the "Auditor View" item (hidden when hasAuditorRole is false), and auditor-only users will incorrectly see "Integrations" and "Settings" (which should be hidden when isOnlyAuditor is true). The desktop Sidebar correctly fetches member roles from the database and passes these props.
Additional Locations (1)
# [1.71.0](v1.70.0...v1.71.0) (2025-12-16) ### Features * Added logout function to onboarding/setup ([#1914](#1914)) ([d58341b](d58341b)) * **integrations:** update sanitized inputs for github to read monorepo apps ([#1929](#1929)) ([5912194](5912194)) * **onboarding:** add skip functionality to onboarding steps ([#1925](#1925)) ([b522c10](b522c10)) ### Reverts * Revert "[dev] [Itsnotaka] daniel/ui ([#1915](#1915))" ([#1928](#1928)) ([ec93c2e](ec93c2e))
|
🎉 This PR is included in version 1.71.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This is an automated pull request to merge mariano/undo-ui-changes into dev.
It was created by the [Auto Pull Request] action.