Skip to content

fix(canvas): keep bluebird Home nav in the Channels space#2791

Merged
raquelmsmith merged 2 commits into
mainfrom
posthog-code/bluebird-home-in-space
Jun 20, 2026
Merged

fix(canvas): keep bluebird Home nav in the Channels space#2791
raquelmsmith merged 2 commits into
mainfrom
posthog-code/bluebird-home-in-space

Conversation

@raquelmsmith

Copy link
Copy Markdown
Member

What

Clicking Home in the project-bluebird (Channels) left nav navigated to /code/home, which leaves the Channels space and swaps the whole view back to the Code app. This points the Home item at the existing /website/home mirror route so it renders the same shared HomeView while keeping the channels chrome.

How

The supporting infrastructure already existed:

  • routes/website/home.tsx/website/home route rendering the same HomeView as /code/home (single source of truth).
  • useAppView maps both /code/home and /website/home to type: "home", so active-state highlighting works.
  • __root.tsx keeps the channels chrome (isChannelsSpace) for any /website/* path.
  • navigateToWebsiteHome() already exists in navigationBridge.ts.

The only missing wiring was the sidebar click. This PR:

  • Swaps the Home item's onClick from navigateToHome (/code/home) → navigateToWebsiteHome (/website/home) in ChannelsSidebar.tsx.
  • Updates the import and the nav-block comment (Home now stays in-space; Inbox/Agents/Files still leave it).

Result

One HomeView component, rendered under both /code/home and /website/home. Clicking Home in the bluebird sidebar now stays within the Channels view instead of switching the whole app.

🤖 Generated with Claude Code

The project-bluebird left nav's Home item called navigateToHome, routing to
/code/home and leaving the Channels space — switching the whole view back to
the Code app. Point it at the existing /website/home mirror (navigateToWebsiteHome)
instead, so it renders the same shared HomeView while keeping the channels chrome.

One source of truth: both /code/home and /website/home render HomeView.

Generated-By: PostHog Code
Task-Id: b3de37db-b354-417e-8d5e-5daf6a22d6c7
@github-actions

github-actions Bot commented Jun 20, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 58bee2a.

@greptile-apps

greptile-apps Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(canvas): keep bluebird Home nav in t..." | Re-trigger Greptile

The bluebird/Channels sidebar rendered its own Home SidebarItem
unconditionally, unlike the Code pane's SidebarNavSection which gates
HomeItem behind HOME_TAB_FLAG. Put the Channels Home button behind the
same flag so the two navs stay consistent.

Generated-By: PostHog Code
Task-Id: 9aa4efe5-2287-4f06-9bd7-b591469d3437
@raquelmsmith raquelmsmith marked this pull request as ready for review June 20, 2026 00:40
@greptile-apps

greptile-apps Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "feat: gate Channels Home nav button behi..." | Re-trigger Greptile

@raquelmsmith raquelmsmith merged commit c9df89f into main Jun 20, 2026
26 of 27 checks passed
@raquelmsmith raquelmsmith deleted the posthog-code/bluebird-home-in-space branch June 20, 2026 00:50
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