feat(shell): org selector moves up into a toolbar breadcrumb#4473
Open
vibegui wants to merge 3 commits into
Open
feat(shell): org selector moves up into a toolbar breadcrumb#4473vibegui wants to merge 3 commits into
vibegui wants to merge 3 commits into
Conversation
Introduce `deco / <org> / <agent>` breadcrumb in the org-shell toolbar: - **deco** — logo, links to `/` (the cross-org MY-deco home, next commit). - **org** — opens the org switcher popover (reuses the org list UI, now extracted from account-popover into a shared `header/org-switcher`). - **agent**— the active agent, resolved from `?virtualmcpid`, inside a thread. The sidebar-footer AccountPopover keeps account/settings/logout; org switching now lives "up" in the breadcrumb. Replaces the bare Toolbar.LogoLink in the org shell (LogoLink still used by settings + sidebar logo header). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Org switching moved into the toolbar breadcrumb, so the sidebar-footer popover no longer needs the "Your Organizations" panel. Drop it: the desktop popover becomes a single column, the mobile drawer loses its org section, and both triggers now show the signed-in user (avatar + name) instead of the org. OrganizationsPanel is now internal to header/org-switcher (used only by the breadcrumb's OrgSwitcherPopover). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The switcher popover no longer hides search behind a toggle: the field is always visible with a leading icon, and the popover lands focus on it via onOpenAutoFocus — so typing filters orgs immediately on open. Esc clears the query. Drops the search-toggle state and the now-unused XClose icon. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Moves org switching "up" out of the sidebar footer and into a
deco / <org> / <agent>breadcrumb in the org-shell toolbar./(home).?virtualmcpid, shown only inside a thread.The org-list UI is extracted from
account-popover.tsxinto a sharedcomponents/header/org-switcher.tsx(reused by both the breadcrumb and the footer popover). The sidebar-footer AccountPopover keeps account/settings/logout; org switching now lives in the breadcrumb. Replaces the bareToolbar.LogoLinkin the org shell (LogoLink is still used by settings + the sidebar logo header).Scope
Just the breadcrumb — 4 files, no other features:
components/header/shell-breadcrumb.tsx(new)components/header/org-switcher.tsx(new, extracted)components/account-popover.tsx(imports the shared switcher; local copies removed)layouts/org-shell-layout/index.tsx(renders the breadcrumb in the toolbar)Testing
tsc --noEmitcleanbun run lintclean (touched files)🤖 Generated with Claude Code
Summary by cubic
Moved org switching into a toolbar breadcrumb for faster access and clearer navigation. The sidebar account popover is now account-only and shows the signed-in user.
ShellBreadcrumbin the toolbar: logo links to/, active org opensOrgSwitcherPopover, agent crumb appears in threads from?virtualmcpid.components/header/org-switcher.tsx(OrgSwitcherPopover,OrgIcon) with a lazy-loaded org list; search is always visible and focused on open, filters as you type, Esc clears; “+” opensCreateOrganizationDialog.AccountPopover: removed org section and create-org flow; desktop popover is a single column, mobile drawer drops orgs, and triggers show the user avatar/name. Updatedorg-shell-layoutto render the breadcrumb and removed the in-shellToolbar.LogoLink.Written for commit 1551338. Summary will update on new commits.