diff --git a/apps/web/src/components/chat/ThreadDetailsPrRow.tsx b/apps/web/src/components/chat/ThreadDetailsPrRow.tsx index 23f749d8c910..673363895723 100644 --- a/apps/web/src/components/chat/ThreadDetailsPrRow.tsx +++ b/apps/web/src/components/chat/ThreadDetailsPrRow.tsx @@ -72,6 +72,7 @@ import { AlertDialogTitle, } from "../ui/alert-dialog"; import { Button } from "../ui/button"; +import { Spinner } from "../ui/spinner"; import { toastManager } from "../ui/toast"; import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip"; import { @@ -371,10 +372,15 @@ export function ThreadDetailsPrRow({ : rowAction === "fix" ? { label: "Fix", - pendingLabel: "Preparing...", + pendingLabel: "Fix", pending: handoff === "findings", destructive: true, - suffix: newThreadSuffix, + suffix: + handoff === "findings" ? ( + + ) : ( + newThreadSuffix + ), tooltip: composerTarget === undefined ? "Fix the failing checks in a new thread" @@ -478,7 +484,7 @@ export function ThreadDetailsPrRow({ checksState={checksRollup} checks={detail.checks} variant="count" - render={} + render={} /> ) : null} {watchControl("icon")} diff --git a/apps/web/src/components/pullRequest/PullRequestChecksPopover.tsx b/apps/web/src/components/pullRequest/PullRequestChecksPopover.tsx index cfcea204a56e..276dc613272d 100644 --- a/apps/web/src/components/pullRequest/PullRequestChecksPopover.tsx +++ b/apps/web/src/components/pullRequest/PullRequestChecksPopover.tsx @@ -182,11 +182,15 @@ export function PullRequestChecksPopover({ {variant === "count" ? ( <> {checks !== undefined && incompleteCount > 0 ? ( - - {checks.length - incompleteCount}/{checks.length} checks + // Clip the second line so "checks" disappears whole when the count must shrink. + + + {checks.length - incompleteCount}/{checks.length} + {" "} + checks ) : failedCount > 0 ? ( - {failedCount} failed + {failedCount} failed ) : null} ) : null}