From 45ad9babcf20ca66640cf2613ab9683b460a6a54 Mon Sep 17 00:00:00 2001 From: Jakub Eichner Date: Tue, 17 Nov 2026 14:20:25 +0100 Subject: [PATCH] fix(web): collapsing a timeline review thread no longer hits Unresolve Since #30575 the Timeline tab appended the Resolve/Unresolve button to a review thread's header row only while the thread was expanded. Expanding pushed the chevron left and put Unresolve where it had been, so a second click on the same spot changed the thread's resolution instead of collapsing it. The header is a single full-width toggle again, and the resolve button sits in the first comment's action row, as in the Summary tab. --- .../pullRequest/PullRequestTimelineTab.tsx | 102 +++++++++--------- 1 file changed, 50 insertions(+), 52 deletions(-) diff --git a/apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx b/apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx index f5534749b6433..202f849ecef63 100644 --- a/apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx +++ b/apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx @@ -236,6 +236,7 @@ function ConversationCard({ reactions, showPath = true, reply = false, + resolveButton = null, }: { event: PullRequestTimelineEvent; editable: PullRequestComment | null; @@ -245,6 +246,7 @@ function ConversationCard({ showPath?: boolean; /** A reply goes with its conversation, from the card that heads it. */ reply?: boolean; + resolveButton?: ReactNode; }) { const canReact = reactions.canReact(event); const [editing, setEditing] = useState(false); @@ -304,6 +306,7 @@ function ConversationCard({ {editable !== null && !editing ? ( setEditing(true)} /> ) : null} + {resolveButton} {event.body && event.comment && !reply ? ( ) : null} @@ -477,60 +480,46 @@ function ReviewThreadEvent({ fallback={} muted={!expanded} /> -
- - {expanded ? ( - + + )} + {thread.isResolved ? ( + + + Resolved + ) : null} -
+ {dismissed ? Review dismissed : null} + {thread.isOutdated ? Outdated : null} + {expanded ? null : ( + + · {event.actor?.login ?? "ghost"} + {replyCount > 0 ? ( + <> + {" "} + · {replyCount.toLocaleString()} {replyCount === 1 ? "reply" : "replies"} + + ) : null} + + )} + + {expanded ? ( <> + } /> {thread.replies.length > 0 ? (