From 6961e4c9d0e77bac0beea7526b21a389d81fe2c1 Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Sun, 23 Aug 2026 22:52:36 -0400 Subject: [PATCH] fix(projects): show project glyphs in channel rows Route non-DM sidebar icons through the shared channel glyph so project-home channels render with their project folder mark. Signed-off-by: Thomas Petersen Co-authored-by: Thomas Petersen --- .../features/sidebar/ui/SidebarSection.tsx | 21 +++---------------- .../tests/e2e/project-commit-detail.spec.ts | 5 +++++ 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/desktop/src/features/sidebar/ui/SidebarSection.tsx b/desktop/src/features/sidebar/ui/SidebarSection.tsx index 1a6403fb24..6c41d9d885 100644 --- a/desktop/src/features/sidebar/ui/SidebarSection.tsx +++ b/desktop/src/features/sidebar/ui/SidebarSection.tsx @@ -1,13 +1,5 @@ import type * as React from "react"; -import { - BellOff, - ChevronDown, - CircleDot, - FileText, - Hash, - Lock, - X, -} from "lucide-react"; +import { BellOff, ChevronDown, CircleDot, X } from "lucide-react"; import { ContextMenu, @@ -18,6 +10,7 @@ import { import { ChannelContextMenuItems } from "@/features/sidebar/ui/ChannelContextMenu"; import type { ActiveChannelTurnSummary } from "@/features/agents/activeAgentTurnsStore"; import { formatElapsed } from "@/features/agents/ui/agentSessionUtils"; +import { ChannelGlyph } from "@/features/channels/ui/ChannelGlyph"; import { getEphemeralChannelDisplay } from "@/features/channels/lib/ephemeralChannel"; import { EphemeralChannelBadge } from "@/features/channels/ui/EphemeralChannelBadge"; import { @@ -239,15 +232,7 @@ function SidebarChannelIcon({ ); } - if (channel.visibility === "private") { - return ; - } - - if (channel.channelType === "forum") { - return ; - } - - return ; + return ; } export function ChannelMenuButton({ diff --git a/desktop/tests/e2e/project-commit-detail.spec.ts b/desktop/tests/e2e/project-commit-detail.spec.ts index 5de32311e7..694a0e3bc2 100644 --- a/desktop/tests/e2e/project-commit-detail.spec.ts +++ b/desktop/tests/e2e/project-commit-detail.spec.ts @@ -292,6 +292,11 @@ test("creating a project opens its channel conversation", async ({ page }) => { await expect( page.getByTestId("chat-header").getByTestId("project-channel-icon"), ).toBeVisible(); + await expect( + page + .getByTestId("channel-multi-repo-demo") + .getByTestId("project-channel-icon"), + ).toBeVisible(); await expect( page.getByTestId("channel-intro-action-add-files"), ).toBeVisible();