From 7b61099886f3aac139ad43fb73873c73ba7baf4f Mon Sep 17 00:00:00 2001 From: maria Date: Sun, 13 Sep 2026 20:09:18 -0300 Subject: [PATCH] feat(web): show the linked pull request in the compact sidebar rail (#11652) --- apps/web/src/components/Sidebar.tsx | 10 ++++++++-- apps/web/src/components/ThreadStatusIndicators.tsx | 11 ++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx index 65ac1cf7752cbd0a5cece5444e66f90545414952..9cee123e4ecf06db1ef015cdb80ef03e20090b07 100644 --- a/apps/web/src/components/Sidebar.tsx +++ b/apps/web/src/components/Sidebar.tsx @@ -1584,10 +1584,10 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: { useRightPanelStore.getState().open(threadRef, "pull-requests"); if (!props.isActive) onThreadActivate(threadRef); }, [onThreadActivate, props.isActive, threadRef]); - const renderPrBadge = (iconOnly: boolean) => + const renderPrBadge = (iconOnly: boolean, variant: "underline" | "badge" = "underline") => prBadgeShape?.kind === "stack" || pr || currentLinkedPr ? ( ) : null; + const hasPrBadge = prBadgeShape?.kind === "stack" || pr !== null || currentLinkedPr !== null; const prBadge = renderPrBadge(false); const terminalStatusIcon = terminalStatus ? ( ) : null} + {hasPrBadge ? ( + + {renderPrBadge(true, "badge")} + + ) : null} {topStatus ? ( - + {iconOnly ? null : isStack ? badge.layers : linkedCount !== null ? `+${linkedCount}` : number} ); -- 2.54.0