-
Notifications
You must be signed in to change notification settings - Fork 4k
[fix] Do not render sidebar nav when top nav enabled #13227
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
[fix] Do not render sidebar nav when top nav enabled #13227
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
✅ PR preview is ready!
|
📉 Frontend coverage change detectedThe frontend unit test (vitest) coverage has decreased by 0.0500%
💡 Consider adding more unit tests to maintain or improve coverage. |
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 a regression where both the sidebar navigation and top navigation were simultaneously visible when the navigation position was set to "top". The fix ensures that when top navigation is enabled, the sidebar navigation is properly hidden.
Key Changes
- Frontend logic now correctly hides sidebar navigation when top navigation position is active
- Comprehensive E2E tests added to verify all three navigation positions (sidebar, top, hidden)
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
frontend/app/src/App.tsx |
Adds condition to hide sidebar navigation when effectiveNavigationPosition === Navigation.Position.TOP |
e2e_playwright/st_navigation_test.py |
New E2E tests verifying sidebar, top, and hidden navigation modes work correctly |
e2e_playwright/st_navigation.py |
Test app with dynamic navigation position switching and sidebar content |
## Describe your changes - Fixes a regression where both the Sidebar and Top nav would be visible when navigation is set to `top`. ## GitHub Issue Link (if applicable) Fixes #13224 ## Testing Plan - Adds e2e tests --- **Contribution License Agreement** By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Describe your changes
top.GitHub Issue Link (if applicable)
Fixes #13224
Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.