feat(app-shell): discoverable org/member management — direct-to-members, header workspace switcher, single-org trim#2022
Merged
Conversation
The org picker at `/organizations?manage=1` (used by the avatar "My Organizations" entry, and now by the Cloud app's "Members" nav) showed a one-item picker for single-org users — they had to click "Manage" before reaching member management. For >90% of tenants there is no choice to make. In manage mode, when the user belongs to exactly one org, redirect straight to that org's `/organizations/<slug>/members` instead of rendering the picker (multi-org users still get the picker). Mirrors the existing auto-skip that single-org users already get on the non-manage `/organizations` path. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a global organization (workspace) switcher in the header-left — the place users expect "which org am I in / switch org" to live — and trim the org chrome that is meaningless for single-org users (the vast majority on cloud, where multi-org creation is disabled). - WorkspaceSwitcher (new): single-org → static org name, no dropdown; multi-org → dropdown listing orgs (switch reloads home so active-org context refreshes app-wide), plus "Manage members" and "Create workspace" (the latter gated on multiOrgEnabled). Mounted in AppHeader after the brand, before the app breadcrumb. - AppHeader: drop the now-redundant "My Organizations" avatar entry (the switcher replaces it); keep "Create workspace" there as the single-org create path. Remove the now-unused Boxes import. - OrganizationLayout: hide "Back to organizations" for single-org users — there is no picker to return to (/organizations auto-skips them to home), so the button only dead-ended on home. Verified on the local rig for both single-org (static name, no back button) and multi-org (switch dropdown works, back button present). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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
Makes organization/member management discoverable and friction-free in the console (the "how do I add users?" path).
/organizations?manage=1(avatar menu + the Cloud app's new "Members" nav) showed a pointless one-item picker for single-org users; now it redirects straight to/organizations/<slug>/members. Multi-org users still get the picker.WorkspaceSwitcher) inAppHeader— single-org → static org name (no dropdown); multi-org → dropdown to switch orgs (full reload so active-org context refreshes), plus "Manage members" and "Create workspace" (gated onmultiOrgEnabled).OrganizationLayoutfor single-org users (no list to return to → it only dead-ended on home). Drop the now-redundant "My Organizations" avatar entry (the switcher replaces it); keep "Create workspace".Why
The org/member/invitation backend (better-auth organization plugin) and UI already existed, but member management was only reachable via the avatar dropdown, and the single-org experience (the vast majority on cloud) was cluttered with multi-org affordances that have no meaning when you have one org.
Verified (local rig)
Single-org: header shows static org name, members page has no back button, "Members" lands directly on the members page. Multi-org: switcher dropdown lists orgs + switches, back button reappears.
🤖 Generated with Claude Code