You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restore organization navigation from shared workspaces, using the viewer's organization independently of workspace ownership.
Resolve the destination on the server through the same membership and Search availability checks as the app entry route. Hide both menu entries when no eligible destination exists.
Refresh the server layout after organization creation/activation so both destinations update while staying in settings. Propagate activation errors.
Type of Change
Bug fix
Testing
70 focused tests passed, covering membership denial, stale active organizations, disabled Search, impersonation, workspace menu navigation, and organization-creation refresh timing.
App type-check, full lint check, 49 repository audits, block-registry audit, and docs-manifest check passed.
Verified locally that Back to organization opens organization Home with Search available.
The PR appears safe to merge; no outstanding findings remain.
Summary
The PR resolves organization navigation from the authenticated viewer’s membership and Search availability, then passes the eligible destination to both workspace menus. The follow-up change refreshes the server layout after organization creation and surfaces activation errors.
Both menu entries are hidden when no eligible organization destination exists.
Focused tests cover destination selection and refresh timing.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Workspace layout] --> B[Resolve viewer organization membership]
B --> C{Search available?}
C -->|Yes| D[Organization Home destination]
C -->|No| E[No destination]
D --> F[Workspace header and profile menus]
E --> G[Hide organization entries]
H[Organization creation settles] --> I[Refresh server layout]
I --> A
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
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.
Summary
Type of Change
Testing
Checklist