@@ -5,12 +5,15 @@ import { useHeaderStore } from "@posthog/ui/shell/headerStore";
55import { Flex } from "@radix-ui/themes" ;
66
77// The in-pane content header for the unified Bluebird chrome. Shows the active
8- // view's title (pushed into the header store by each view) on the left and, on
9- // a task detail, that task's action row (TaskHeaderActions) on the right — the
10- // branch selector, review-panel toggle, cloud/local handoff, skill buttons and
11- // task actions that used to live in the Code header bar. Renders nothing when
12- // neither is present. The /website space keeps its own header (WebsiteLayout),
13- // so this is mounted only outside it.
8+ // view's title (pushed into the header store by each view) on the left and that
9+ // task's action row (TaskHeaderActions) on the right — the branch selector,
10+ // review-panel toggle, cloud/local handoff, skill buttons and task actions that
11+ // used to live in the Code header bar.
12+ //
13+ // This breadcrumb row is now scoped to the task-detail view only: every other
14+ // page drops it (the title bar search carries wayfinding instead). The /website
15+ // (Channels) space keeps its own header (WebsiteLayout), so it's unaffected —
16+ // this is mounted only outside it.
1417export function ContentHeader ( ) {
1518 const content = useHeaderStore ( ( state ) => state . content ) ;
1619 const view = useAppView ( ) ;
@@ -22,6 +25,9 @@ export function ContentHeader() {
2225 : undefined ;
2326 const showTaskSection = view . type === "task-detail" && Boolean ( activeTask ) ;
2427
28+ // Only the task-detail view keeps the breadcrumb row.
29+ if ( view . type !== "task-detail" ) return null ;
30+
2531 if ( ! content && ! showTaskSection ) return null ;
2632
2733 return (
0 commit comments