From 993a3262f6aa3a051aed39d524d004cc5e053944 Mon Sep 17 00:00:00 2001 From: dotta Date: Fri, 3 Apr 2026 07:43:23 -0500 Subject: [PATCH] fix(ui): place run link in same row as feedback buttons, right-aligned When a comment has both helpful/needswork feedback buttons and a run link, the run link now appears right-aligned in the same row instead of a separate section below. Comments with only a run link (no feedback buttons) still show the run link in its own bordered row. Co-Authored-By: Paperclip --- ui/src/components/CommentThread.tsx | 18 ++++++++++++++++-- ui/src/components/OutputFeedbackButtons.tsx | 3 +++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ui/src/components/CommentThread.tsx b/ui/src/components/CommentThread.tsx index 88b01fcd..b0b5c618 100644 --- a/ui/src/components/CommentThread.tsx +++ b/ui/src/components/CommentThread.tsx @@ -336,10 +336,24 @@ function CommentCard({ sharingPreference={feedbackDataSharingPreference} termsUrl={feedbackTermsUrl} onVote={onVote} + rightSlot={comment.runId && !isPending ? ( + comment.runAgentId ? ( + + run {comment.runId.slice(0, 8)} + + ) : ( + + run {comment.runId.slice(0, 8)} + + ) + ) : undefined} /> ) : null} - {comment.runId && !isPending ? ( -
+ {comment.runId && !isPending && !(comment.authorAgentId && onVote && !isQueued) ? ( +
{comment.runAgentId ? ( Promise; + rightSlot?: React.ReactNode; }) { const [pendingVote, setPendingVote] = useState<{ vote: FeedbackVoteValue; @@ -130,6 +132,7 @@ export function OutputFeedbackButtons({ Needs work + {rightSlot ?
{rightSlot}
: null}
{collectingDownvoteReason ? (