From b0d105b5a451867c12191b7b31ed6504cec47d75 Mon Sep 17 00:00:00 2001 From: T3 Code PR Stack <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 22:35:48 +0200 Subject: [PATCH] feat(web): use Sidebar V2 #PR number badges on classic thread rows Replace the git-PR icon on classic project and recency/none rows with the colored mono #number badge from Sidebar V2 so open/merged/closed state stays scannable without hunting for an icon. --- apps/web/src/components/Sidebar.tsx | 81 ++++++++++++++++------------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx index 6565a9e4d93..1bc0db276e1 100644 --- a/apps/web/src/components/Sidebar.tsx +++ b/apps/web/src/components/Sidebar.tsx @@ -23,7 +23,6 @@ import { TriangleAlertIcon, } from "lucide-react"; import { - ChangeRequestStatusIcon, prStatusIndicator, PrStatusTooltipContent, resolveThreadPr, @@ -794,25 +793,6 @@ export const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThr onContextMenu={handleRowContextMenu} >
- {prStatus && ( - - - - - } - /> - - - - - )} {threadStatus && } {renamingThreadKey === threadKey ? ( )} + {prStatus && pr ? ( + + + } + > + #{pr.number} + + + + + + ) : null}
{discoveredPorts.length > 0 && ( @@ -3391,23 +3393,6 @@ const SidebarRecentThreadRow = memo(function SidebarRecentThreadRow(props: {
- {prStatus ? ( - - openPrLink(event, prStatus.url)} - /> - } - > - - - {prStatus.tooltip} - - ) : null} {threadStatus ? : null} {isRenaming ? ( {thread.title} )} + {prStatus && pr ? ( + + openPrLink(event, prStatus.url)} + /> + } + > + #{pr.number} + + + + + + ) : null}
{/* Cross-project recency rows: project ยท server, matching mobile + Sidebar V2's environment context (icon when remote). */}