@@ -248,6 +248,7 @@ import {
248248 synchronizeTerminalPulse ,
249249 type TerminalStatusIndicator ,
250250 useLinkedThreadPullRequest ,
251+ ThreadSearchPullRequestNumber ,
251252} from "./ThreadStatusIndicators" ;
252253import { resolveSnoozePresets , snoozeWakeLabel , type SnoozePreset } from "./Sidebar.snooze" ;
253254import { ProjectFavicon , type ProjectFaviconProject } from "./ProjectFavicon" ;
@@ -2233,6 +2234,7 @@ function latestRunDiff(
22332234}
22342235
22352236const SidebarSearchResultRow = memo ( function SidebarSearchResultRow ( props : {
2237+ isSettled : boolean ;
22362238 thread : SidebarThreadSummary ;
22372239 project : EnvironmentProject | null ;
22382240 projectDisplayName : string | null ;
@@ -2332,11 +2334,12 @@ const SidebarSearchResultRow = memo(function SidebarSearchResultRow(props: {
23322334 tabIndex = { - 1 }
23332335 aria-selected = { props . isHighlighted }
23342336 aria-current = { accessibility . current }
2337+ aria-describedby = { `${ props . resultId } -pr` }
23352338 aria-label = { accessibility . label }
23362339 onMouseMove = { props . onHighlight }
23372340 onClick = { props . onSelect }
23382341 className = { cn (
2339- "flex min-h-9 w-full cursor-pointer items-center gap-2.5 rounded-md px-2.5 py-1 text-left text-sm outline-none" ,
2342+ "group/sidebar-row group/v2-row flex min-h-9 w-full cursor-pointer items-center gap-2.5 rounded-md px-2.5 py-1 text-left text-sm outline-none" ,
23402343 props . isHighlighted || props . isRouteActive
23412344 ? "bg-sidebar-row-active text-sidebar-foreground"
23422345 : "text-sidebar-muted-foreground/75 hover:bg-sidebar-row-hover hover:text-sidebar-foreground" ,
@@ -2347,12 +2350,40 @@ const SidebarSearchResultRow = memo(function SidebarSearchResultRow(props: {
23472350 }
23482351 >
23492352 { props . project ? (
2350- < ProjectFavicon project = { props . project } className = "size-4 shrink-0" />
2353+ < ProjectFavicon
2354+ project = { props . project }
2355+ className = { cn (
2356+ "size-4 shrink-0 transition-opacity" ,
2357+ props . isSettled &&
2358+ ! props . isRouteActive &&
2359+ ! props . isHighlighted &&
2360+ "opacity-40 grayscale group-hover/sidebar-row:opacity-100 group-hover/sidebar-row:grayscale-0" ,
2361+ ) }
2362+ />
23512363 ) : null }
23522364 < span className = "flex min-w-0 flex-1 flex-col" >
23532365 < span className = "flex min-w-0 items-center gap-2.5" >
2354- < span className = "min-w-0 flex-1 truncate" > { thread . title } </ span >
2355- < span className = "shrink-0 text-xs text-muted-foreground/55 tabular-nums" >
2366+ < span
2367+ className = { cn (
2368+ "min-w-0 flex-1 truncate" ,
2369+ props . isSettled
2370+ ? "font-normal text-secondary-label/70 group-hover/sidebar-row:text-foreground"
2371+ : "font-medium text-foreground" ,
2372+ ( props . isHighlighted || props . isRouteActive ) && "text-foreground" ,
2373+ thread . titleRegeneration != null && "opacity-55" ,
2374+ ) }
2375+ >
2376+ { thread . title }
2377+ </ span >
2378+ < span id = { `${ props . resultId } -pr` } className = "contents" >
2379+ < ThreadSearchPullRequestNumber
2380+ thread = { thread }
2381+ query = { props . searchQuery }
2382+ enabled = { leaseLiveStatus }
2383+ settled = { props . isSettled }
2384+ />
2385+ </ span >
2386+ < span className = "w-8 shrink-0 text-right text-xs text-muted-foreground/55 tabular-nums" >
23562387 { threadTimeLabel ( thread ) }
23572388 </ span >
23582389 </ span >
@@ -5167,6 +5198,7 @@ export default function Sidebar() {
51675198 ) ;
51685199 return (
51695200 < SidebarSearchResultRow
5201+ isSettled = { settledThreadKeys . has ( threadKey ) }
51705202 key = { threadKey }
51715203 thread = { thread }
51725204 project = {
0 commit comments