Skip to content

feat(shell): org selector moves up into a toolbar breadcrumb#4473

Open
vibegui wants to merge 3 commits into
mainfrom
vibegui/breadcrumb
Open

feat(shell): org selector moves up into a toolbar breadcrumb#4473
vibegui wants to merge 3 commits into
mainfrom
vibegui/breadcrumb

Conversation

@vibegui

@vibegui vibegui commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

What

Moves org switching "up" out of the sidebar footer and into a deco / <org> / <agent> breadcrumb in the org-shell toolbar.

  • deco — the logo, links to / (home).
  • org — the active organization; clicking opens the org switcher popover.
  • agent — the active agent, resolved from ?virtualmcpid, shown only inside a thread.

The org-list UI is extracted from account-popover.tsx into a shared components/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 bare Toolbar.LogoLink in 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 --noEmit clean
  • bun run lint clean (touched files)
  • Production client build passes

🤖 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.

  • New Features
    • Added ShellBreadcrumb in the toolbar: logo links to /, active org opens OrgSwitcherPopover, agent crumb appears in threads from ?virtualmcpid.
    • Introduced shared 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; “+” opens CreateOrganizationDialog.
    • Simplified 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. Updated org-shell-layout to render the breadcrumb and removed the in-shell Toolbar.LogoLink.

Written for commit 1551338. Summary will update on new commits.

Review in cubic

vibegui and others added 3 commits July 11, 2026 22:17
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant