-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[WEB-5506] regression: navigation revamp bugs #8180
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
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
WalkthroughAdds a project navigation preference gate to a work item header, simplifies a home layout class by removing a large-screen breakpoint, and normalizes padding logic in the CE top navigation container. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Page as WorkItemPage
participant Hook as useProjectNavigationPreferences
participant Header as WorkItemHeader
Page->>Hook: request projectPreferences
Hook-->>Page: returns { navigationMode }
alt navigationMode == "horizontal"
Page->>Header: render header (navigation DOM)
Header-->>Page: header rendered
else navigationMode != "horizontal"
Page-->>Header: do not render header
Note right of Page: Header block is skipped
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Pull request overview
This PR fixes two navigation UI bugs related to the navigation revamp feature. The changes ensure proper padding behavior on the home page and correct visibility of the horizontal navigation bar based on user preferences.
- Removes conditional padding override that was preventing proper spacing when both sidebars are open
- Adds conditional rendering to hide horizontal navigation in work item details when accordion mode is enabled
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
apps/web/core/components/home/root.tsx |
Removes lg:px-0 class and unused cn import to fix padding issue on home page when both sidebars are open |
apps/web/app/(all)/[workspaceSlug]/(projects)/browse/[workItem]/header.tsx |
Adds conditional rendering based on navigationMode preference to hide horizontal navigation bar when accordion mode is enabled |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
This PR fixes the following bugs-
Type of Change
Summary by CodeRabbit
New Features
Style
✏️ Tip: You can customize this high-level summary in your review settings.