fix(web): thread details card gives titles room to read (#16746)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
0f4f02abb6
commit
f60367b8cb
8 files changed
+150
-141
No files matched your search
@@ -6,7 +6,6 @@ import type {
|
||||
PullRequestRef,
|
||||
ScopedThreadRef,
|
||||
} from "@t3tools/contracts";
|
||||
import { ChevronDownIcon } from "lucide-react";
|
||||
import { useState } from "react";
|
||||
|
||||
import { useOpenLink } from "~/browser/useOpenLink";
|
||||
@@ -156,6 +155,9 @@ export function PullRequestChecksPopover({
|
||||
const presentation = pullRequestChecksStatePresentation(checksState);
|
||||
// Counts beat the rollup's own wording where they are known, the way GitHub's own header reads.
|
||||
const runningCount = checks?.filter((check) => check.status === "pending").length ?? 0;
|
||||
const failedCount =
|
||||
checks?.filter((check) => check.status === "failure" || check.status === "cancelled").length ??
|
||||
0;
|
||||
const summary = checks === undefined || stale ? null : summarizePullRequestChecks(checks);
|
||||
return (
|
||||
<Popover>
|
||||
@@ -189,8 +191,9 @@ export function PullRequestChecksPopover({
|
||||
<span className="tabular-nums">
|
||||
{runningCount}/{checks.length}
|
||||
</span>
|
||||
) : failedCount > 0 ? (
|
||||
<span className="tabular-nums">{failedCount} failed</span>
|
||||
) : null}
|
||||
<ChevronDownIcon aria-hidden className="size-3" />
|
||||
</>
|
||||
) : null}
|
||||
</PopoverTrigger>
|
||||
|
||||
Reference in new issue
Block a user