The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 23:15 UTC
fix(web): show completed pull request checks and align rows (#22090)
Yash Singh committed
Oct 19, 2026 at 22:40 UTC
618c46478a363ea1bc93f729289fcc27299804fd
2 files changed
+28
-13
apps/web/src/components/chat/ThreadDetailsPrRow.browser.test.tsx
+7
-2
@@ -156,10 +156,15 @@ it("requires a new merge click after passing checks become pending and pass agai
156
it.each<[PullRequestCheck["status"], PullRequestCheck["status"], string]>([
157
["success", "skipped", ""],
158
["failure", "cancelled", ""],
159
- ["success", "action-required", ""],
159
+ ["success", "action-required", "1/2"],
160
["success", "pending", "1/2"],
161
+ ["pending", "pending", "0/2"],
162
+ ["pending", "action-required", "0/2"],
163
+ ["skipped", "pending", "1/2"],
164
+ ["neutral", "pending", "1/2"],
165
["failure", "pending", "1/2"],
162
-])("shows a count only while checks run (%s, %s)", (status, extraStatus, count) => {
166
+ ["cancelled", "pending", "1/2"],
167
+])("counts finished checks while work remains (%s, %s)", (status, extraStatus, count) => {
168
state.status = status;
169
state.extraStatus = extraStatus;
170
act(() => {
apps/web/src/components/pullRequest/PullRequestChecksPopover.tsx
+21
-11
@@ -68,30 +68,38 @@ function ChecksBody({
68
const { attention, running, completed } = groupPullRequestChecks(checks);
69
const canCollapse = attention.length + running.length > 0 && completed.length > 0;
70
const visibleChecks = [...attention, ...running, ...(showAll || !canCollapse ? completed : [])];
71
+ const hasDetails = visibleChecks.some((check) => check.url !== null);
72
if (checks.length === 0) {
73
return <p className="text-muted-foreground text-xs">No checks reported</p>;
74
}
75
return (
76
<>
77
<ScrollArea className="max-h-64">
77
- <ul className="flex flex-col gap-1">
78
- {}
78
+ <ul
79
+ className={cn(
80
+ "grid gap-x-2 gap-y-1",
81
+ hasDetails
82
+ ? "grid-cols-[auto_minmax(0,1fr)_auto_auto]"
83
+ : "grid-cols-[auto_minmax(0,1fr)_auto]",
84
+ )}
85
+ >
86
{visibleChecks.map((check, index) => (
80
- <li key={`${index}:${check.name}`} className="flex items-center gap-2 text-xs">
87
+ <li
88
+ key={`${index}:${check.name}`}
89
+ className="col-span-full grid grid-cols-subgrid items-center text-xs"
90
+ >
91
<PullRequestCheckStatusIcon status={check.status} />
92
<Tooltip>
83
- <TooltipTrigger
84
- render={<span className="min-w-0 flex-1 truncate">{check.name}</span>}
85
- />
93
+ <TooltipTrigger render={<span className="min-w-0 truncate">{check.name}</span>} />
94
<TooltipPopup side="top">{check.description ?? check.name}</TooltipPopup>
95
</Tooltip>
88
- <span className="shrink-0 text-muted-foreground">
96
+ <span className="justify-self-end whitespace-nowrap text-muted-foreground">
97
{pullRequestCheckStatusLabel(check)}
98
</span>
99
{check.url === null ? null : (
100
<button
101
type="button"
94
- className="shrink-0 text-primary hover:underline"
102
+ className="text-primary hover:underline"
103
onClick={() => {
104
if (!check.url) return;
105
void openLink(check.url).catch((error: unknown) => {
@@ -143,7 +151,9 @@ export function PullRequestChecksPopover({
151
render?: React.ReactElement;
152
}) {
153
const presentation = pullRequestChecksStatePresentation(checksState);
146
- const runningCount = checks?.filter((check) => check.status === "pending").length ?? 0;
154
+ const incompleteCount =
155
+ checks?.filter((check) => check.status === "pending" || check.status === "action-required")
156
+ .length ?? 0;
157
const failedCount =
158
checks?.filter((check) => check.status === "failure" || check.status === "cancelled").length ??
159
0;
@@ -176,9 +186,9 @@ export function PullRequestChecksPopover({
186
<presentation.Icon aria-hidden className={cn("size-3.5", presentation.toneClassName)} />
187
{variant === "count" ? (
188
<>
179
- {checks !== undefined && runningCount > 0 ? (
189
+ {checks !== undefined && incompleteCount > 0 ? (
190
<span className="tabular-nums">
181
- {runningCount}/{checks.length}
191
+ {checks.length - incompleteCount}/{checks.length}
192
</span>
193
) : failedCount > 0 ? (
194
<span className="tabular-nums">{failedCount} failed</span>