Skip to content

Remove GlobalSidebar and implement auto-enter environment flow#1208

Merged
os-zhuang merged 1 commit intomainfrom
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 intomainfrom
claude/remove-global-sidebar-auto-enter-env

Conversation

@Claude
Copy link
Copy Markdown
Contributor

@Claude Claude AI commented Apr 21, 2026

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

Route Before After
/ Generic home Auto-redirect to environment
/environments/:id GlobalSidebar AppSidebar (env-wide metadata)
/environments/:id/:pkg AppSidebar AppSidebar (package-filtered)
/environments/:id/packages GlobalSidebar No sidebar

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

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

Project Deployment Actions Updated (UTC)
objectstack-demo Ready Ready Preview, Comment Apr 21, 2026 3:55pm
spec Ready Ready Preview, Comment Apr 21, 2026 3:55pm

Request Review

@os-zhuang os-zhuang marked this pull request as ready for review April 21, 2026 15:58
@os-zhuang os-zhuang merged commit 80bc2f4 into main Apr 21, 2026
12 checks passed
Sign up for free to 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