From 354c27b6b61a56423d91615c33c7cbf167c86b79 Mon Sep 17 00:00:00 2001 From: Ashvin Nihalani Date: Sun, 7 Jun 2026 19:49:51 -0700 Subject: [PATCH] Show remote host label in sidebar projects --- apps/web/src/components/Sidebar.tsx | 48 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx index f3f163b017d..79b1c6bcbd3 100644 --- a/apps/web/src/components/Sidebar.tsx +++ b/apps/web/src/components/Sidebar.tsx @@ -1206,6 +1206,10 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec threadLastVisitedAts, visibleProjectThreads, ]); + const remoteProjectEnvironmentLabel = + project.environmentPresence === "remote-only" + ? project.remoteEnvironmentLabels.join(", ") || "Remote" + : null; const handleProjectButtonClick = useCallback( (event: React.MouseEvent) => { @@ -2020,6 +2024,26 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec {project.displayName} + {remoteProjectEnvironmentLabel ? ( + + + } + > + + {remoteProjectEnvironmentLabel} + + + + + Remote environment: {remoteProjectEnvironmentLabel} + + + ) : null} {project.groupedProjectCount > 1 ? ( {project.groupedProjectCount} projects @@ -2027,30 +2051,6 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec ) : null} - {/* Environment badge – visible by default, crossfades with the - "new thread" button on hover using the same pointer-events + - opacity pattern as the thread row archive/timestamp swap. */} - {project.environmentPresence === "remote-only" && ( - - - } - > - - - - Remote environment: {project.remoteEnvironmentLabels.join(", ")} - - - )}