Skip to content

Remove GlobalSidebar and implement auto-enter environment flow - #1208

Merged
os-zhuang merged 1 commit into
mainfrom
claude/remove-global-sidebar-auto-enter-env
Apr 21, 2026
Merged

Remove GlobalSidebar and implement auto-enter environment flow#1208
os-zhuang merged 1 commit into
mainfrom
claude/remove-global-sidebar-auto-enter-env

Conversation

@Claude

@ClaudeClaudeAI commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Removes the redundant GlobalSidebar navigation layer and implements Power Platform-style auto-entry into environments, eliminating the generic home page in favor of pushing users directly into their working context.

Changes

Navigation Flow

  • / and /login now auto-redirect based on session state:
    • No active org → /orgs
    • Has org, no environments → /environments list
    • Has org + environments → /environments/:lastOrFirstEnvId (respects localStorage cache)
  • Removed DeveloperOverview home page

Sidebar Rendering

  • __root.tsx: Removed GlobalSidebar and isGlobalShellPath() helper; authenticated layout now renders only TopBar + content
  • environments.$environmentId.tsx: AppSidebar now renders for all routes under /environments/:envId/* except /packages
  • When no package is selected, AppSidebar receives selectedPackage: null and fetches environment-wide metadata (existing behavior from client.meta.getItems(type, packageId ? { packageId } : undefined))

Preserved

  • global-sidebar.tsx kept on disk for potential future reuse
  • /api-console, /orgs, and /environments list pages remain sidebar-free
  • TopBar switchers (org/env/package) continue to drive context switching

Result

RouteBeforeAfter
/Generic homeAuto-redirect to environment
/environments/:idGlobalSidebarAppSidebar (env-wide metadata)
/environments/:id/:pkgAppSidebarAppSidebar (package-filtered)
/environments/:id/packagesGlobalSidebarNo sidebar

@vercel

vercelBot commented Apr 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
objectstack-demoReadyReadyPreview, CommentApr 21, 2026 3:55pm
specReadyReadyPreview, CommentApr 21, 2026 3:55pm

Request Review

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Claude@os-zhuang