enhance(ui): hide the dashboard context switcher when there is nothing to switch to - #38669
Open
kp2fcf88vn-lab wants to merge 1 commit into
Open
Conversation
The dashboard, issues, pulls and milestones pages always render the secondary navigation bar, even for a user who belongs to no organization. In that case the bar holds a single dropdown whose only entry is the signed-in user themselves, so it costs a full-width strip of chrome and offers nothing to act on. Render the bar only when the user has at least one organization, or when the dashboard is being viewed in an organization context, where the bar also carries the team filter and the organization navigation. Creating an organization stays reachable: the navbar create menu already links to /org/create for users allowed to create one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Sascha Simon <apps@sascha-simon.com>
kp2fcf88vn-lab
marked this pull request as ready for review
July 27, 2026 17:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For a user who belongs to no organization, the secondary navigation bar on the dashboard, issues, pulls and milestones pages holds a single dropdown whose only entry is the user themselves - a full-width strip of chrome that cannot change anything.
It is now rendered only when the user belongs to at least one organization, or when the dashboard is viewed in an organization context, where the bar also carries the team filter and the organization navigation.
"New Organization" stays reachable: the navbar create menu already links to
/org/createbehind the sameCanCreateOrganizationcheck. No CSS change is needed,base.cssalready gives the page its top spacing when the bar is absent.Screenshots
Dashboard of a user who belongs to no organization.
Before:
After:
Unchanged for users who belong to an organization, and on organization dashboards.
AI disclosure
Made with AI assistance (Claude Opus 5 via Claude Code), which drafted the change and this summary; the commit carries a matching
Co-authored-bytrailer. I reviewed the diff, verified it against a local build, and can explain and revise it during review.