Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
MUL-7753: one verdict per PR in the issue sidebar (#8884)
Jiayuan Zhange8a16d334f3e
diff --git a/packages/core/github/pull-request-status.test.ts b/packages/core/github/pull-request-status.test.tsindex 18cf928bed..37f858f46c 100644--- a/packages/core/github/pull-request-status.test.ts+++ b/packages/core/github/pull-request-status.test.ts@@ -2,7 +2,10 @@ import { describe, expect, it } from "vitest";import {deriveChecksStatus,deriveMergeStatus,+ derivePullRequestVerdict,+ formatPullRequestDiffCount,shouldShowPullRequestStats,+ stripIssueKeyFromTitle,} from "./pull-request-status";describe("deriveChecksStatus", () => {@@ -168,3 +171,112 @@ describe("shouldShowPullRequestStats", () => {expect(shouldShowPullRequestStats({ additions: 437, deletions: 6, changed_files: 6 })).toBe(true);});});++describe("derivePullRequestVerdict", () => {+ const open = { state: "open" as const, snapshot_available: true };++ it("ends at merged / closed whatever the snapshot says", () => {+ const failing = { checks_rollup: "failure" as const, checks_failed: 2, mergeable: "conflicting" as const };+ expect(derivePullRequestVerdict({ ...failing, state: "merged" })).toEqual({ kind: "merged" });+ expect(derivePullRequestVerdict({ ...failing, state: "closed" })).toEqual({ kind: "closed" });+ });++ it("leads with a failure and keeps the names and a conflict alongside it", () => {+ expect(+ derivePullRequestVerdict({+ ...open,+ checks_rollup: "failure",+ checks_total: 19,+ checks_failed: 2,+ failed_check_names: ["frontend", "backend"],+ mergeable: "conflicting",+ }),+ ).toEqual({ kind: "failed", failed: 2, total: 19, names: ["frontend", "backend"], conflicting: true });+ });++ it("does not let `unstable` add anything to a failure", () => {+ expect(+ derivePullRequestVerdict({ ...open, checks_rollup: "failure", checks_failed: 1, merge_state_status: "unstable" }),+ ).toMatchObject({ kind: "failed", conflicting: false });+ });++ it("puts a conflict ahead of running checks", () => {+ expect(+ derivePullRequestVerdict({ ...open, checks_rollup: "pending", checks_running: 3, mergeable: "conflicting" }).kind,+ ).toBe("conflicting");+ });++ it("reports running checks with their progress", () => {+ expect(+ derivePullRequestVerdict({ ...open, checks_rollup: "pending", checks_total: 19, checks_passed: 11, checks_running: 8 }),+ ).toEqual({ kind: "running", passed: 11, total: 19, running: 8 });+ });++ it.each([+ ["behind", "behind"],+ ["blocked", "blocked"],+ ["clean", "ready"],+ ["has_hooks", "ready"],+ ] as const)("maps passing checks with merge state %s to %s", (merge_state_status, kind) => {+ expect(+ derivePullRequestVerdict({ ...open, checks_rollup: "success", checks_total: 3, merge_state_status }).kind,+ ).toBe(kind);+ });++ it("never calls a draft ready, but still surfaces its problems", () => {+ const draft = { ...open, state: "draft" as const };+ expect(derivePullRequestVerdict({ ...draft, checks_rollup: "success", merge_state_status: "clean" }).kind).toBe("draft");+ expect(derivePullRequestVerdict({ ...draft, checks_rollup: "failure", checks_failed: 1 }).kind).toBe("failed");+ });++ it("falls back to the checks verdict when GitHub has not decided mergeability", () => {+ expect(derivePullRequestVerdict({ ...open, checks_rollup: "success", checks_total: 4 })).toEqual({ kind: "passed", total: 4 });+ expect(derivePullRequestVerdict({ ...open, checks_rollup: "success", merge_state_status: "unstable" }).kind).toBe("passed");+ expect(derivePullRequestVerdict({ ...open, checks_rollup: null }).kind).toBe("no_checks");+ });++ it("says nothing when there is no current snapshot", () => {+ expect(+ derivePullRequestVerdict({ state: "open", snapshot_available: false, checks_rollup: "failure", mergeable: "conflicting" }),+ ).toEqual({ kind: "unknown" });+ expect(derivePullRequestVerdict({ state: "open" })).toEqual({ kind: "unknown" });+ });+});++describe("stripIssueKeyFromTitle", () => {+ it.each([+ ["MUL-7732: regroup settings", "regroup settings"],+ ["MUL-7732 regroup settings", "regroup settings"],+ ["mul-7732: regroup settings", "regroup settings"],+ ["fix(chat): keep tool rows (MUL-7732)", "fix(chat): keep tool rows"],+ ])("strips the issue's own key from %j", (title, expected) => {+ expect(stripIssueKeyFromTitle(title, "MUL-7732")).toBe(expected);+ });++ it.each([+ ["MUL-77321: another issue"],+ ["MUL-7700: another issue"],+ ["regroup MUL-7732 settings"],+ ["MUL-7732"],+ ])("leaves %j as written", (title) => {+ expect(stripIssueKeyFromTitle(title, "MUL-7732")).toBe(title);+ });++ it("leaves the title alone without an identifier", () => {+ expect(stripIssueKeyFromTitle("MUL-1: x", "")).toBe("MUL-1: x");+ });+});++describe("formatPullRequestDiffCount", () => {+ it.each([+ [0, "0"],+ [999, "999"],+ [1000, "1k"],+ [6743, "6.7k"],+ [4557, "4.6k"],+ [99_960, "100k"],+ [123_456, "123k"],+ ])("formats %d as %s", (count, expected) => {+ expect(formatPullRequestDiffCount(count)).toBe(expected);+ });+});diff --git a/packages/core/github/pull-request-status.ts b/packages/core/github/pull-request-status.tsindex 97b0ccdf3d..68cb208878 100644--- a/packages/core/github/pull-request-status.ts+++ b/packages/core/github/pull-request-status.ts@@ -3,18 +3,19 @@ import type {GitHubPullRequestChecksRollup,GitHubPullRequestMergeable,GitHubPullRequestMergeStateStatus,+ GitHubPullRequestState,} from "../types";-// The PR sidebar row surfaces TWO independent facts, each tri-state and each+// A PR's health comes from TWO independent facts, each tri-state and each// sourced from the GitHub API snapshot://// 1. CI status — derived from `checks_rollup` (primary) + counts.// 2. Mergeability — derived from `mergeable` + `merge_state_status`.//-// The two are intentionally decoupled: a PR can have failing checks AND a merge-// conflict, and both must show. Neither element is derived from the other, and-// neither is shown for terminal PRs (merged / closed) — the row's leading state-// icon already conveys terminal state; the caller applies that gate.+// The two are derived independently: a PR can have failing checks AND a merge+// conflict. The sidebar row folds them into one verdict (see+// `derivePullRequestVerdict` below) that still carries a conflict alongside a+// failure, so neither fact is lost.//// Every input field is optional because older backends omit the snapshot// fields; each rule defaults defensively (`?? 0`, `?? []`, explicit `=== "..."`@@ -161,3 +162,94 @@ export function shouldShowPullRequestStats(input: PullRequestStatsInput): booleaconst f = input.changed_files ?? 0;return a + d + f > 0;}++// ---------------------------------------------------------------------------+// Row verdict+// ---------------------------------------------------------------------------++// The one thing the sidebar row says about a PR: what stands between it and a+// merge, or how it ended. `failed` carries the failing check names and whether+// the branch also conflicts, so a PR with both problems still shows both.+export type PullRequestVerdict =+ | { kind: "merged" }+ | { kind: "closed" }+ | { kind: "failed"; failed: number; total: number; names: string[]; conflicting: boolean }+ | { kind: "conflicting" }+ | { kind: "running"; passed: number; total: number; running: number }+ | { kind: "behind" }+ | { kind: "blocked" }+ | { kind: "draft" }+ | { kind: "ready" }+ | { kind: "passed"; total: number }+ | { kind: "no_checks" }+ | { kind: "unknown" };++export interface PullRequestVerdictInput extends PullRequestChecksInput, PullRequestMergeInput {+ state: GitHubPullRequestState;+}++// Priority (high → low):+// merged / closed → failed → conflicting → running → behind → blocked+// → draft → ready → passed → no checks → unknown+//+// `unstable` (non-passing checks) only restates the CI verdict, and `has_hooks`+// is GitHub's "mergeable, with pre-receive hooks", so neither gets a verdict of+// its own. A draft never reads as ready: it cannot be merged until marked+// ready for review. `unknown` means there is nothing current to say (no+// snapshot, no legacy conclusion); the row renders no verdict for it.+export function derivePullRequestVerdict(input: PullRequestVerdictInput): PullRequestVerdict {+ if (input.state === "merged") return { kind: "merged" };+ if (input.state === "closed") return { kind: "closed" };+ const checks = deriveChecksStatus(input);+ const merge = deriveMergeStatus(input);+ if (checks.kind === "failed") {+ return {+ kind: "failed",+ failed: checks.failed,+ total: checks.total,+ names: checks.names,+ conflicting: merge.kind === "conflicting",+ };+ }+ if (merge.kind === "conflicting") return { kind: "conflicting" };+ if (checks.kind === "pending") {+ return { kind: "running", passed: checks.passed, total: checks.total, running: checks.running };+ }+ if (merge.kind === "behind") return { kind: "behind" };+ if (merge.kind === "blocked") return { kind: "blocked" };+ if (input.state === "draft") return { kind: "draft" };+ if (merge.kind === "ready" || merge.kind === "has_hooks") return { kind: "ready" };+ if (checks.kind === "passed") return { kind: "passed", total: checks.total };+ if (checks.kind === "none") return { kind: "no_checks" };+ return { kind: "unknown" };+}++// ---------------------------------------------------------------------------+// Row copy+// ---------------------------------------------------------------------------++function escapeRegExp(value: string): string {+ return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");+}++// A PR titled "MUL-1: fix x" or "fix x (MUL-1)" repeats the issue it is listed+// under. Drop that one key — a leading "MUL-1:" / "MUL-1 " or a trailing+// "(MUL-1)" — so the truncated title spends its width on what the PR does.+// Other keys, and titles that are nothing but the key, stay as written.+export function stripIssueKeyFromTitle(title: string, identifier: string): string {+ if (!identifier) return title;+ const key = escapeRegExp(identifier);+ const stripped = title+ .replace(new RegExp(`^\\s*${key}(?![\\w-])\\s*:?\\s*`, "i"), "")+ .replace(new RegExp(`\\s*\\(${key}\\)\\s*$`, "i"), "");+ return stripped.trim() ? stripped : title;+}++// Diff counts for the narrow sidebar: exact below 1,000, then one decimal of+// thousands ("6.7k"), dropping the decimal from 100k up ("123k").+export function formatPullRequestDiffCount(count: number): string {+ if (count < 1000) return String(count);+ const thousands = count / 1000;+ if (thousands >= 100) return `${Math.round(thousands)}k`;+ return `${thousands.toFixed(1).replace(/\.0$/, "")}k`;+}diff --git a/packages/views/issues/components/pull-request-list.test.tsx b/packages/views/issues/components/pull-request-list.test.tsxindex 7432b97730..5cebed6020 100644--- a/packages/views/issues/components/pull-request-list.test.tsx+++ b/packages/views/issues/components/pull-request-list.test.tsx@@ -102,244 +102,229 @@ async function waitForRender() {}describe("PullRequestList sidebar rows", () => {-- // --- CI status element ----------------------------------------------------- it("renders all-checks-passed only when the rollup is success", async () => {- mockPRs = [makePR({ checks_rollup: "success", checks_total: 7 })];- renderList();- await waitForRender();- expect(screen.getByText("All checks passed (7/7)")).toBeInTheDocument();+ beforeEach(() => {+ mockAutoComplete = null;});- it("renders 'No checks yet' when the rollup is absent — never passed", async () => {- // Acceptance criterion 5: absent snapshot must not read as a green build.- mockPRs = [makePR({ checks_rollup: null, checks_passed: 5, checks_total: 5 })];- renderList();- await waitForRender();- expect(screen.getByText("No checks yet")).toBeInTheDocument();- expect(screen.queryByText(/All checks passed/)).not.toBeInTheDocument();- });+ const verdict = () => screen.getByTestId("pull-request-verdict");++ // --- One verdict per PR --------------------------------------------------- it("hides snapshot status when the GitHub App key is unavailable, even with old data", async () => {+ it("leads a failed PR with the count and lists what failed under it", async () => {mockPRs = [makePR({- snapshot_available: false,checks_rollup: "failure",- checks_conclusion: "failed",- checks_total: 2,+ checks_total: 7,checks_failed: 2,- mergeable: "conflicting",- merge_state_status: "dirty",+ failed_check_names: ["backend", "e2e"],+ merge_state_status: "unstable",}),];renderList();await waitForRender();- expect(screen.queryByText(/failed/)).not.toBeInTheDocument();- expect(screen.queryByText("No checks yet")).not.toBeInTheDocument();- expect(screen.queryByText("Has merge conflicts")).not.toBeInTheDocument();+ expect(verdict()).toHaveTextContent("2/7 failed");+ expect(screen.getByText("backend")).toBeInTheDocument();+ expect(screen.getByText("e2e")).toBeInTheDocument();+ // "Unstable" only restates the failing checks.+ expect(screen.queryByText("Unstable")).not.toBeInTheDocument();});- it("renders failed count with the first failing check names", async () => {+ it("still shows a conflict when the checks also failed", async () => {mockPRs = [makePR({checks_rollup: "failure",checks_total: 7,- checks_failed: 2,- failed_check_names: ["backend", "e2e"],+ checks_failed: 1,+ failed_check_names: ["backend"],+ mergeable: "conflicting",}),];renderList();await waitForRender();- const badge = screen.getByText(/2\/7 failed/);- expect(badge).toHaveTextContent("2/7 failed");- expect(badge).toHaveTextContent("backend, e2e");+ expect(verdict()).toHaveTextContent("1/7 failed");+ expect(screen.getByText("Has merge conflicts")).toBeInTheDocument();+ expect(screen.getByText("backend")).toBeInTheDocument();});- it("truncates the failing names to two and appends a +N more count", async () => {+ it("folds problems past three into a +N more line", async () => {mockPRs = [makePR({checks_rollup: "failure",checks_total: 7,- checks_failed: 4,- failed_check_names: ["a", "b", "c", "d"],+ checks_failed: 5,+ failed_check_names: ["a", "b", "c", "d", "e"],}),];renderList();await waitForRender();- const badge = screen.getByText(/4\/7 failed/);- expect(badge).toHaveTextContent("4/7 failed");- expect(badge).toHaveTextContent("a, b, +2 more");+ expect(screen.getByText("c")).toBeInTheDocument();+ expect(screen.queryByText("d")).not.toBeInTheDocument();+ expect(screen.getByText("+2 more")).toBeInTheDocument();});- it("renders the running count when the rollup is pending", async () => {- mockPRs = [- makePR({ checks_rollup: "pending", checks_total: 7, checks_passed: 5, checks_running: 2 }),- ];+ it("shows running checks as progress, with the full count on hover", async () => {+ mockPRs = [makePR({ checks_rollup: "pending", checks_total: 7, checks_passed: 5, checks_running: 2 })];renderList();await waitForRender();- const badge = screen.getByText(/2 running/);- expect(badge).toHaveTextContent("5/7");- expect(badge).toHaveTextContent("2 running");+ expect(verdict()).toHaveTextContent("5/7");+ expect(verdict()).toHaveAttribute("title", "5/7 · 2 running");});- it.each([- ["forgejo", "passed", "All checks passed (3/3)"],- ["gitea", "pending", "2/3 · 1 running"],- ["gitlab", "failed", "1/3 failed"],- ] as const)(- "preserves %s legacy %s check status",- async (provider, conclusion, expected) => {- mockPRs = [- makePR({- provider,- snapshot_available: undefined,- checks_rollup: undefined,- checks_conclusion: conclusion,- checks_total: 3,- checks_passed: conclusion === "passed" ? 3 : 2,- checks_failed: conclusion === "failed" ? 1 : 0,- checks_running: conclusion === "pending" ? 1 : 0,- checks_pending: conclusion === "pending" ? 1 : 0,- }),- ];- renderList();- await waitForRender();- expect(screen.getByText(expected, { exact: false })).toBeInTheDocument();- },- );-- // --- Mergeability element -------------------------------------------------- it("renders 'Ready to merge' only when the merge state is clean", async () => {- mockPRs = [makePR({ merge_state_status: "clean" })];+ it("calls a PR ready only when the merge state is clean", async () => {+ mockPRs = [makePR({ checks_rollup: "success", checks_total: 3, merge_state_status: "clean" })];renderList();await waitForRender();- expect(screen.getByText("Ready to merge")).toBeInTheDocument();+ expect(verdict()).toHaveTextContent("Ready");+ expect(verdict()).toHaveAttribute("title", "Ready to merge");});- it("never infers 'Ready to merge' from mergeable alone", async () => {- // Acceptance criterion 8: mergeable without a clean state shows neither.- mockPRs = [makePR({ mergeable: "mergeable", merge_state_status: null })];+ it("never infers ready from mergeable alone", async () => {+ // Acceptance criterion 8: mergeable without a clean state is not "ready".+ mockPRs = [makePR({ checks_rollup: "success", checks_total: 3, mergeable: "mergeable", merge_state_status: null })];renderList();await waitForRender();- expect(screen.queryByText("Ready to merge")).not.toBeInTheDocument();- expect(screen.queryByText("Has merge conflicts")).not.toBeInTheDocument();+ expect(verdict()).toHaveTextContent("Checks passed");+ expect(verdict()).toHaveAttribute("title", "All checks passed (3/3)");});- it("renders 'Has merge conflicts' when mergeable is conflicting", async () => {- mockPRs = [makePR({ mergeable: "conflicting" })];+ it("renders 'No checks yet' when the rollup is absent — never passed", async () => {+ // Acceptance criterion 5: absent snapshot must not read as a green build.+ mockPRs = [makePR({ checks_rollup: null, checks_passed: 5, checks_total: 5 })];renderList();await waitForRender();- expect(screen.getByText("Has merge conflicts")).toBeInTheDocument();+ expect(verdict()).toHaveTextContent("No checks yet");});- it("shows neither conflict nor ready when the merge verdict is unknown", async () => {- // Acceptance criterion 5: unknown mergeability shows neither element.- mockPRs = [makePR({ mergeable: "unknown", merge_state_status: "unknown" })];+ it("keeps a draft a draft even when GitHub calls it clean", async () => {+ mockPRs = [makePR({ state: "draft", checks_rollup: "success", merge_state_status: "clean" })];renderList();await waitForRender();- expect(screen.queryByText("Has merge conflicts")).not.toBeInTheDocument();- expect(screen.queryByText("Ready to merge")).not.toBeInTheDocument();+ expect(verdict()).toHaveTextContent("Draft");});- // --- The two elements are independent -------------------------------------- it("shows a failed CI element and a conflict element together", async () => {+ it("says nothing about CI or merging when the snapshot is unavailable, even with old data", async () => {mockPRs = [makePR({+ snapshot_available: false,checks_rollup: "failure",- checks_total: 7,+ checks_conclusion: "failed",+ checks_total: 2,checks_failed: 2,failed_check_names: ["backend"],mergeable: "conflicting",+ merge_state_status: "dirty",}),];renderList();await waitForRender();- expect(screen.getByText(/2\/7 failed/)).toHaveTextContent("2/7 failed");- expect(screen.getByText("Has merge conflicts")).toBeInTheDocument();+ expect(screen.queryByTestId("pull-request-verdict")).not.toBeInTheDocument();+ expect(screen.queryByText("backend")).not.toBeInTheDocument();+ });++ it.each([+ ["forgejo", "passed", "Checks passed"],+ ["gitea", "pending", "2/3"],+ ["gitlab", "failed", "1/3 failed"],+ ] as const)("preserves %s legacy %s check status", async (provider, conclusion, expected) => {+ mockPRs = [+ makePR({+ provider,+ snapshot_available: undefined,+ checks_rollup: undefined,+ checks_conclusion: conclusion,+ checks_total: 3,+ checks_passed: conclusion === "passed" ? 3 : 2,+ checks_failed: conclusion === "failed" ? 1 : 0,+ checks_running: conclusion === "pending" ? 1 : 0,+ checks_pending: conclusion === "pending" ? 1 : 0,+ }),+ ];+ renderList();+ await waitForRender();+ expect(verdict()).toHaveTextContent(expected);});- // --- Terminal PRs suppress both elements ---------------------------------+ // --- Terminal PRs --------------------------------------------------------- it("shows neither status element for merged PRs", async () => {+ it("ends a merged PR at Merged, whatever its last snapshot said", async () => {mockPRs = [makePR({state: "merged",+ merged_at: new Date(Date.now() - 2 * 86_400_000).toISOString(),checks_rollup: "failure",checks_failed: 5,checks_total: 5,+ failed_check_names: ["backend"],mergeable: "conflicting",}),];renderList();await waitForRender();- expect(screen.queryByText(/failed/)).not.toBeInTheDocument();+ expect(verdict()).toHaveTextContent("Merged");+ expect(screen.getByText("2d ago")).toBeInTheDocument();+ expect(screen.queryByText("backend")).not.toBeInTheDocument();expect(screen.queryByText("Has merge conflicts")).not.toBeInTheDocument();- expect(screen.queryByText("No checks yet")).not.toBeInTheDocument();});- it("shows neither status element for closed PRs", async () => {- mockPRs = [- makePR({- state: "closed",- checks_rollup: "success",- checks_passed: 3,- checks_total: 3,- merge_state_status: "clean",- }),- ];+ it("ends a closed PR at Closed", async () => {+ mockPRs = [makePR({ state: "closed", checks_rollup: "success", merge_state_status: "clean" })];renderList();await waitForRender();- expect(screen.queryByText(/All checks passed/)).not.toBeInTheDocument();- expect(screen.queryByText("Ready to merge")).not.toBeInTheDocument();- expect(screen.queryByText("No checks yet")).not.toBeInTheDocument();+ expect(verdict()).toHaveTextContent("Closed");});// --- Stale snapshot ------------------------------------------------------- it("greys out the status elements and annotates the age when the snapshot is stale", async () => {+ it("greys out the verdict and shows the snapshot age when the snapshot is stale", async () => {mockPRs = [makePR({checks_rollup: "success",checks_total: 3,+ additions: 10,snapshot_stale: true,- snapshot_fetched_at: "2026-01-01T00:00:00Z",+ snapshot_fetched_at: new Date(Date.now() - 2 * 3_600_000).toISOString(),}),];renderList();await waitForRender();- const badge = screen.getByText("All checks passed (3/3)");- expect(badge).toHaveClass("opacity-60");- expect(badge).toHaveAttribute("title");- expect(badge.getAttribute("title")).toBeTruthy();+ expect(verdict()).toHaveClass("opacity-60");+ expect(verdict()).toHaveAttribute("title", "Updated 2h ago");+ expect(screen.getByText("2h ago")).toBeInTheDocument();});- // --- Diff stats ----------------------------------------------------------+ // --- Title and meta line -------------------------------------------------- it("hides stats row when all stats are 0 (legacy backend)", async () => {- mockPRs = [makePR()];+ it("drops this issue's key from the PR title and keeps other keys", async () => {+ mockPRs = [+ makePR({ id: "a", number: 1, title: "MUL-1: regroup settings" }),+ makePR({ id: "b", number: 2, title: "MUL-2: unrelated work" }),+ ];renderList();await waitForRender();- expect(screen.queryByText(/files?$/)).not.toBeInTheDocument();- expect(screen.queryByText(/^\+0/)).not.toBeInTheDocument();+ expect(screen.getByText("regroup settings")).toBeInTheDocument();+ expect(screen.getByText("MUL-2: unrelated work")).toBeInTheDocument();});- it("shows stats row with additions / deletions / file count when present", async () => {- mockPRs = [makePR({ additions: 437, deletions: 6, changed_files: 6 })];+ it("shows the repo and number without the owner", async () => {+ mockPRs = [makePR({ number: 42 })];renderList();await waitForRender();- expect(screen.getByText("+437")).toBeInTheDocument();- expect(screen.getByText("−6")).toBeInTheDocument();- expect(screen.getByText("6 files")).toBeInTheDocument();+ expect(screen.getByText("widget#42")).toBeInTheDocument();});- it("uses singular file copy when changed_files=1", async () => {- mockPRs = [makePR({ additions: 1, changed_files: 1 })];+ it("hides the diff size when all stats are 0 (legacy backend)", async () => {+ mockPRs = [makePR()];renderList();await waitForRender();- expect(screen.getByText("1 file")).toBeInTheDocument();+ expect(screen.queryByText(/^\+0/)).not.toBeInTheDocument();+ });++ it("shortens the diff size to thousands", async () => {+ mockPRs = [makePR({ additions: 6743, deletions: 6, changed_files: 119 })];+ renderList();+ await waitForRender();+ expect(screen.getByText("+6.7k")).toBeInTheDocument();+ expect(screen.getByText("−6")).toBeInTheDocument();});// --- Collapse behaviour --------------------------------------------------diff --git a/packages/views/issues/components/pull-request-list.tsx b/packages/views/issues/components/pull-request-list.tsxindex 4483ab0550..2db88501eb 100644--- a/packages/views/issues/components/pull-request-list.tsx+++ b/packages/views/issues/components/pull-request-list.tsx@@ -8,7 +8,9 @@ import {Circle,CircleDashed,CircleSlash,+ Clock,GitMerge,+ LoaderCircle,MoreHorizontal,Unlink,GitPullRequest,@@ -20,14 +22,14 @@ import {} from "lucide-react";import {issuePullRequestsOptions,- deriveChecksStatus,- deriveMergeStatus,+ derivePullRequestVerdict,+ formatPullRequestDiffCount,shouldShowPullRequestStats,+ stripIssueKeyFromTitle,useLinkIssuePullRequest,useSetIssuePRAutoComplete,useUnlinkIssuePullRequest,- type PullRequestChecksStatus,- type PullRequestMergeStatus,+ type PullRequestVerdict,} from "@multica/core/github";import { useWorkspaceId } from "@multica/core/hooks";import { useIssueStatuses } from "@multica/core/issue-statuses/hooks";@@ -37,6 +39,7 @@ import type {PRAutoComplete,} from "@multica/core/types";import { Button } from "@multica/ui/components/ui/button";+import { Tooltip, TooltipContent, TooltipTrigger } from "@multica/ui/components/ui/tooltip";import {DropdownMenu,DropdownMenuContent,@@ -106,12 +109,14 @@ export function PullRequestList({return (<div className="space-y-1">{expandedHead.map((pr) => (- <PullRequestRow key={pr.id} pr={pr} actions={rowActions} />+ <PullRequestRow key={pr.id} pr={pr} identifier={identifier} actions={rowActions} />))}{useCollapse ? (<div className="space-y-1">{expanded- ? collapsedTail.map((pr) => <PullRequestRow key={pr.id} pr={pr} actions={rowActions} />)+ ? collapsedTail.map((pr) => (+ <PullRequestRow key={pr.id} pr={pr} identifier={identifier} actions={rowActions} />+ )): null}<buttontype="button"@@ -207,7 +212,7 @@ function PullRequestRowMenu({ pr, actions }: { pr: GitHubPullRequest; actions: Rvariant="ghost"size="icon-xs"aria-label={t(($) => $.pr_automation.row_menu)}- className="absolute top-1 right-0 opacity-0 group-hover/pr:opacity-100 group-focus-within/pr:opacity-100 data-popup-open:opacity-100 [@media(pointer:coarse)]:opacity-100"+ className="absolute top-0.5 right-0 opacity-0 group-hover/pr:opacity-100 group-focus-within/pr:opacity-100 data-popup-open:opacity-100 [@media(pointer:coarse)]:opacity-100"><MoreHorizontal /></Button>@@ -339,64 +344,56 @@ function AutoCompleteLine({);}-function PullRequestRow({ pr, actions }: { pr: GitHubPullRequest; actions: RowActions | null }) {- const { t } = useT("issues");- const cfg = STATE_ICON[pr.state] ?? { icon: GitPullRequest, className: "" };- const StateIcon = cfg.icon;- const isDraft = pr.state === "draft";- const stateLabel = getStateLabel(pr.state, t);- // The row link and its menu are siblings: a button inside an anchor is- // invalid HTML, and the menu must not open the PR.- return (- <div className="group/pr relative -mx-2 rounded-md transition-colors hover:bg-accent/50">- <a- data-testid="pull-request-row"- href={pr.html_url}- target="_blank"- rel="noreferrer noopener"- className={cn(- "flex items-start gap-2 rounded-md px-2 py-1.5 group",- actions ? "pr-7" : null,- isDraft ? "opacity-80" : null,- )}- >- <StateIcon className={cn("h-3.5 w-3.5 mt-0.5 shrink-0", cfg.className)} />- <div className="min-w-0 flex-1">- <p className="text-caption font-medium leading-snug truncate group-hover:text-foreground">- {pr.title}- </p>- <p className="text-micro text-muted-foreground truncate">- {pr.repo_owner}/{pr.repo_name}#{pr.number} · {stateLabel}- {pr.author_login ? ` · @${pr.author_login}` : null}- </p>- <PullRequestRowDetails pr={pr} />- </div>- </a>- {actions ? <PullRequestRowMenu pr={pr} actions={actions} /> : null}- </div>- );+// At most this many problem lines under a failed PR; the rest fold into "+N more".+const PROBLEM_LIMIT = 3;++type VerdictTone = "red" | "amber" | "green" | "violet" | "muted";++// Pills reuse the state icons' palette. Their text sits one shade darker so+// 11px copy on a 10% tint keeps AA contrast.+const TONE_CLASS: Record<VerdictTone, string> = {+ red: "bg-rose-600/10 text-rose-700 dark:bg-rose-400/15 dark:text-rose-400",+ amber: "bg-amber-600/10 text-amber-700 dark:bg-amber-400/15 dark:text-amber-400",+ green: "bg-emerald-600/10 text-emerald-700 dark:bg-emerald-400/15 dark:text-emerald-400",+ violet: "bg-violet-600/10 text-violet-700 dark:bg-violet-400/15 dark:text-violet-400",+ muted: "bg-muted text-muted-foreground",+};++interface VerdictPillConfig {+ icon: React.ComponentType<{ className?: string }>;+ tone: VerdictTone;+ label: string;+ /** The longer form of the label, on hover. */+ title?: string;}-function PullRequestRowDetails({ pr }: { pr: GitHubPullRequest }) {+/**+ * One PR in the sidebar: the title, then `repo#number` with the diff size and+ * one verdict pill aligned right, so several PRs scan as a column. A failed PR+ * also lists what failed. Owner, author, the full title and exact counts live+ * in the row's tooltip.+ */+function PullRequestRow({+ pr,+ identifier,+ actions,+}: {+ pr: GitHubPullRequest;+ identifier: string;+ actions: RowActions | null;+}) {const { t } = useT("issues");const timeAgo = useTimeAgo();+ const cfg = STATE_ICON[pr.state] ?? { icon: GitPullRequest, className: "" };+ const StateIcon = cfg.icon;+ const verdict = derivePullRequestVerdict(pr);+ const pill = getVerdictPill(verdict, t);+ const showStats = shouldShowPullRequestStats(pr);- const showStats = shouldShowPullRequestStats({- additions: pr.additions,- deletions: pr.deletions,- changed_files: pr.changed_files,- });-- // Neither status element is shown for terminal PRs — the leading state icon- // already conveys merged / closed, and CI / mergeability are no longer- // actionable there.+ // A stale snapshot (GitHub outage / revoked key) greys out the verdict and+ // shows the snapshot age instead of hiding the last-known data.const isTerminal = pr.state === "merged" || pr.state === "closed";- const checksBadge = isTerminal ? null : getChecksBadge(deriveChecksStatus(pr), t);- const mergeBadge = isTerminal ? null : getMergeBadge(deriveMergeStatus(pr), t);-- // A stale snapshot (GitHub outage / revoked key) greys out both elements and- // annotates them with the snapshot age instead of hiding the last-known data.const stale = !isTerminal && pr.snapshot_stale === true;const staleTitle = stale? pr.snapshot_fetched_at@@ -404,176 +401,195 @@ function PullRequestRowDetails({ pr }: { pr: GitHubPullRequest }) {: t(($) => $.detail.pull_request_snapshot_stale_unknown): undefined;- if (!showStats && !checksBadge && !mergeBadge) return null;+ const endedAt = pr.state === "merged" ? pr.merged_at : pr.state === "closed" ? pr.closed_at : null;+ let meta: React.ReactNode = null;+ if (isTerminal) {+ meta = endedAt ? <span className="truncate">{timeAgo(endedAt)}</span> : null;+ } else if (stale && pr.snapshot_fetched_at) {+ meta = (+ <span className="inline-flex min-w-0 items-center gap-1" title={staleTitle}>+ <Clock className="size-3 shrink-0" />+ <span className="truncate">{timeAgo(pr.snapshot_fetched_at)}</span>+ </span>+ );+ } else if (showStats) {+ // The diff yields first when the pill needs the room; repo#number never does.+ meta = (+ <span className="min-w-0 overflow-hidden">+ <span className="text-emerald-600 dark:text-emerald-400">+{formatPullRequestDiffCount(pr.additions ?? 0)}</span>{" "}+ <span className="text-rose-600 dark:text-rose-400">−{formatPullRequestDiffCount(pr.deletions ?? 0)}</span>+ </span>+ );+ }+ // The row link and its menu are siblings: a button inside an anchor is+ // invalid HTML, and the menu must not open the PR.return (- <div className="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-micro text-muted-foreground">- {showStats ? <PullRequestStats pr={pr} /> : null}- {checksBadge ? <PullRequestBadge badge={checksBadge} stale={stale} title={staleTitle} /> : null}- {mergeBadge ? <PullRequestBadge badge={mergeBadge} stale={stale} title={staleTitle} /> : null}+ <div className="group/pr relative -mx-2 rounded-md transition-colors hover:bg-accent/50">+ <Tooltip>+ <TooltipTrigger+ render={+ <a+ data-testid="pull-request-row"+ href={pr.html_url}+ target="_blank"+ rel="noreferrer noopener"+ className="flex items-start gap-2 rounded-md px-2 py-1.5"+ />+ }+ >+ <StateIcon className={cn("mt-px size-3.5 shrink-0", cfg.className)} />+ <div className="min-w-0 flex-1">+ <p className={cn("truncate text-caption font-medium", actions ? "pr-5" : null)}>+ {stripIssueKeyFromTitle(pr.title, identifier)}+ </p>+ <div className="mt-1 flex items-center gap-2">+ <p className="flex min-w-0 items-center gap-1.5 whitespace-nowrap text-micro text-muted-foreground tabular-nums">+ <span className="shrink-0">+ {pr.repo_name}#{pr.number}+ </span>+ {meta ? (+ <>+ <span aria-hidden="true" className="shrink-0 text-faint-foreground">+ ·+ </span>+ {meta}+ </>+ ) : null}+ </p>+ {pill ? <VerdictPill pill={pill} stale={stale} title={staleTitle} /> : null}+ </div>+ {verdict.kind === "failed" ? <PullRequestProblems verdict={verdict} stale={stale} /> : null}+ </div>+ </TooltipTrigger>+ <TooltipContent side="left" align="start" className="flex-col items-start gap-0.5">+ <span className="font-medium">{pr.title}</span>+ <span className="text-muted-foreground">+ {pr.repo_owner}/{pr.repo_name}#{pr.number}+ {pr.author_login ? ` · @${pr.author_login}` : null}+ </span>+ {showStats ? (+ <span className="text-muted-foreground tabular-nums">+ +{(pr.additions ?? 0).toLocaleString()} −{(pr.deletions ?? 0).toLocaleString()} ·{" "}+ {t(($) => $.detail.pull_request_card_files_count, { count: pr.changed_files ?? 0 })}+ </span>+ ) : null}+ </TooltipContent>+ </Tooltip>+ {actions ? <PullRequestRowMenu pr={pr} actions={actions} /> : null}</div>);}-function PullRequestStats({ pr }: { pr: GitHubPullRequest }) {- const { t } = useT("issues");+function VerdictPill({ pill, stale, title }: { pill: VerdictPillConfig; stale: boolean; title?: string }) {+ const Icon = pill.icon;return (- <span className="inline-flex items-center gap-1.5 tabular-nums">- <span className="text-emerald-600 dark:text-emerald-400">+{pr.additions ?? 0}</span>- <span className="text-rose-600 dark:text-rose-400">−{pr.deletions ?? 0}</span>- <span aria-hidden="true">·</span>- <span>- {t(($) => $.detail.pull_request_card_files_count, {- count: pr.changed_files ?? 0,- })}- </span>+ <span+ data-testid="pull-request-verdict"+ title={title ?? pill.title}+ className={cn(+ "ml-auto inline-flex h-4.5 shrink-0 items-center gap-1 whitespace-nowrap rounded-full px-1.5 text-micro font-medium tabular-nums",+ TONE_CLASS[pill.tone],+ stale ? "opacity-60" : null,+ )}+ >+ <Icon className="size-3 shrink-0" />+ {pill.label}</span>);}-interface PullRequestBadgeConfig {- icon: React.ComponentType<{ className?: string }>;- label: string;- className: string;-}--function PullRequestBadge({- badge,+/** What stands in the way of a failed PR: a conflict, then each failing check. */+function PullRequestProblems({+ verdict,stale,- title,}: {- badge: PullRequestBadgeConfig;- stale?: boolean;- title?: string;+ verdict: Extract<PullRequestVerdict, { kind: "failed" }>;+ stale: boolean;}) {- const Icon = badge.icon;+ const { t } = useT("issues");+ const items = [+ ...(verdict.conflicting+ ? [{ key: "conflict", icon: TriangleAlert, className: "text-amber-600 dark:text-amber-400", label: t(($) => $.detail.pull_request_merge_conflicting) }]+ : []),+ ...verdict.names.map((name) => ({ key: `check:${name}`, icon: XCircle, className: "text-rose-600 dark:text-rose-400", label: name })),+ ];+ if (items.length === 0) return null;+ const shown = items.slice(0, PROBLEM_LIMIT);+ const remaining = items.length - shown.length;return (- <span- className={cn("inline-flex items-center gap-1", stale ? "opacity-60" : null)}- title={title}- >- <Icon className={cn("h-3 w-3", badge.className)} />- {badge.label}- </span>+ <ul className={cn("mt-1.5 rounded-md bg-muted/70 px-2 py-1 text-micro", stale ? "opacity-60" : null)}>+ {shown.map(({ key, icon: Icon, className, label }) => (+ <li key={key} className="flex items-center gap-1.5 py-px">+ <Icon className={cn("size-3 shrink-0", className)} />+ <span className="truncate">{label}</span>+ </li>+ ))}+ {remaining > 0 ? (+ <li className="py-px pl-4.5 text-muted-foreground">+ {t(($) => $.detail.pull_request_checks_more, { count: remaining })}+ </li>+ ) : null}+ </ul>);}-// CI element. A current snapshot with a null rollup renders "no checks yet";-// an unavailable/disabled snapshot renders nothing.-function getChecksBadge(- status: PullRequestChecksStatus,- t: IssuesT,-): PullRequestBadgeConfig | null {- switch (status.kind) {+function getVerdictPill(verdict: PullRequestVerdict, t: IssuesT): VerdictPillConfig | null {+ switch (verdict.kind) {+ case "merged":+ return { icon: GitMerge, tone: "violet", label: t(($) => $.detail.pull_request_state_merged) };+ case "closed":+ return { icon: GitPullRequestClosed, tone: "muted", label: t(($) => $.detail.pull_request_state_closed) };case "failed":return {icon: XCircle,- className: "text-rose-600 dark:text-rose-400",- label: checksFailedLabel(status, t),- };- case "pending":- return {- icon: CircleDashed,- className: "text-amber-600 dark:text-amber-400",- label: t(($) => $.detail.pull_request_checks_running, {- passed: status.passed,- total: status.total,- running: status.running,+ tone: "red",+ label: t(($) => $.detail.pull_request_checks_failed_count, {+ failed: verdict.failed,+ total: verdict.total,}),};- case "passed":- return {- icon: CheckCircle2,- className: "text-emerald-600 dark:text-emerald-400",- label: t(($) => $.detail.pull_request_checks_all_passed, { total: status.total }),- };- case "none":- return {- icon: Circle,- className: "text-muted-foreground",- label: t(($) => $.detail.pull_request_checks_none),- };- case "unavailable":- return null;- }-}--function checksFailedLabel(- status: Extract<PullRequestChecksStatus, { kind: "failed" }>,- t: IssuesT,-): string {- const shown = status.names.slice(0, 2);- if (shown.length === 0) {- return t(($) => $.detail.pull_request_checks_failed_count, {- failed: status.failed,- total: status.total,- });- }- const remaining = status.names.length - shown.length;- const parts = [...shown];- if (remaining > 0) {- parts.push(t(($) => $.detail.pull_request_checks_more, { count: remaining }));- }- return t(($) => $.detail.pull_request_checks_failed_named, {- failed: status.failed,- total: status.total,- names: parts.join(", "),- });-}--// Mergeability element. Returns null for the "none" state — when GitHub has not-// decided, the card asserts neither "conflict" nor "ready".-function getMergeBadge(status: PullRequestMergeStatus, t: IssuesT): PullRequestBadgeConfig | null {- switch (status.kind) {case "conflicting":return {icon: TriangleAlert,- className: "text-amber-600 dark:text-amber-400",- label: t(($) => $.detail.pull_request_merge_conflicting),+ tone: "amber",+ label: t(($) => $.detail.pull_request_verdict_conflicting),+ title: t(($) => $.detail.pull_request_merge_conflicting),};- case "ready":- return {- icon: CheckCircle2,- className: "text-emerald-600 dark:text-emerald-400",- label: t(($) => $.detail.pull_request_merge_ready),- };- case "blocked":+ case "running":return {- icon: CircleSlash,- className: "text-muted-foreground",- label: t(($) => $.detail.pull_request_merge_blocked),+ icon: LoaderCircle,+ tone: "amber",+ label: `${verdict.passed}/${verdict.total}`,+ title: t(($) => $.detail.pull_request_checks_running, {+ passed: verdict.passed,+ total: verdict.total,+ running: verdict.running,+ }),};case "behind":+ return { icon: CircleSlash, tone: "muted", label: t(($) => $.detail.pull_request_merge_behind) };+ case "blocked":+ return { icon: CircleSlash, tone: "muted", label: t(($) => $.detail.pull_request_merge_blocked) };+ case "draft":+ return { icon: GitPullRequestDraft, tone: "muted", label: t(($) => $.detail.pull_request_state_draft) };+ case "ready":return {- icon: CircleSlash,- className: "text-muted-foreground",- label: t(($) => $.detail.pull_request_merge_behind),- };- case "unstable":- return {- icon: CircleSlash,- className: "text-muted-foreground",- label: t(($) => $.detail.pull_request_merge_unstable),+ icon: CheckCircle2,+ tone: "green",+ label: t(($) => $.detail.pull_request_verdict_ready),+ title: t(($) => $.detail.pull_request_merge_ready),};- case "has_hooks":+ case "passed":return {- icon: CircleSlash,- className: "text-muted-foreground",- label: t(($) => $.detail.pull_request_merge_has_hooks),+ icon: CheckCircle2,+ tone: "green",+ label: t(($) => $.detail.pull_request_verdict_passed),+ title: t(($) => $.detail.pull_request_checks_all_passed, { total: verdict.total }),};- case "none":+ case "no_checks":+ return { icon: Circle, tone: "muted", label: t(($) => $.detail.pull_request_checks_none) };+ case "unknown":return null;}}--function getStateLabel(state: GitHubPullRequestState, t: IssuesT): string {- return state === "open"- ? t(($) => $.detail.pull_request_state_open)- : state === "draft"- ? t(($) => $.detail.pull_request_state_draft)- : state === "merged"- ? t(($) => $.detail.pull_request_state_merged)- : state === "closed"- ? t(($) => $.detail.pull_request_state_closed)- : state;-}diff --git a/packages/views/issues/components/pull-requests-section.tsx b/packages/views/issues/components/pull-requests-section.tsxindex 4ed563f375..16651ee3fc 100644--- a/packages/views/issues/components/pull-requests-section.tsx+++ b/packages/views/issues/components/pull-requests-section.tsx@@ -48,6 +48,7 @@ export function PullRequestsSection({// Older backends have no link / auto-complete endpoints; keep the header// actions hidden until the server says it supports them.const supported = !!data?.auto_complete;+ const count = data?.pull_requests.length ?? 0;return (<div>@@ -60,6 +61,11 @@ export function PullRequestsSection({onClick={() => onOpenChange(!open)}><span className="truncate">{t(($) => $.detail.section_pull_requests)}</span>+ {count > 0 ? (+ <span className="shrink-0 rounded-xs bg-muted px-1 text-micro font-medium tabular-nums text-muted-foreground">+ {count}+ </span>+ ) : null}<ChevronRight className={`!size-3 shrink-0 stroke-[2.5] text-muted-foreground transition-transform ${open ? "rotate-90" : ""}`} /></button>{supported ? (diff --git a/packages/views/locales/en/issues.json b/packages/views/locales/en/issues.jsonindex 0baf8bdb00..5fb8ae7218 100644--- a/packages/views/locales/en/issues.json+++ b/packages/views/locales/en/issues.json@@ -402,7 +402,6 @@"quick_action_blocked_body": "“{{name}}” runs as an agent you’re not allowed to trigger. Ask a workspace admin to make that agent available to the team, or to point this action at a shared one.","quick_action_blocked_ok": "Got it","pull_requests_loading": "Loading…",- "pull_request_state_open": "Open","pull_request_state_draft": "Draft","pull_request_state_merged": "Merged","pull_request_state_closed": "Closed",@@ -410,14 +409,14 @@"pull_request_checks_all_passed": "All checks passed ({{total}}/{{total}})","pull_request_checks_running": "{{passed}}/{{total}} · {{running}} running","pull_request_checks_failed_count": "{{failed}}/{{total}} failed",- "pull_request_checks_failed_named": "{{failed}}/{{total}} failed · {{names}}","pull_request_checks_more": "+{{count}} more","pull_request_merge_conflicting": "Has merge conflicts","pull_request_merge_ready": "Ready to merge","pull_request_merge_blocked": "Blocked","pull_request_merge_behind": "Behind base",- "pull_request_merge_unstable": "Unstable",- "pull_request_merge_has_hooks": "Has hooks",+ "pull_request_verdict_conflicting": "Conflicts",+ "pull_request_verdict_ready": "Ready",+ "pull_request_verdict_passed": "Checks passed","pull_request_snapshot_stale": "Updated {{time}}","pull_request_snapshot_stale_unknown": "Snapshot may be outdated","pull_request_card_files_count_one": "{{count}} file",diff --git a/packages/views/locales/fr/issues.json b/packages/views/locales/fr/issues.jsonindex 172404146c..c201d7fb2c 100644--- a/packages/views/locales/fr/issues.json+++ b/packages/views/locales/fr/issues.json@@ -402,7 +402,6 @@"quick_action_blocked_body": "« {{name}} » s'exécute sous un agent que vous n'êtes pas autorisé à déclencher. Demandez à un administrateur de l'espace de travail de rendre cet agent accessible à l'équipe, ou de rattacher cette action à un agent partagé.","quick_action_blocked_ok": "Compris","pull_requests_loading": "Chargement…",- "pull_request_state_open": "Ouverte","pull_request_state_draft": "Brouillon","pull_request_state_merged": "Fusionnée","pull_request_state_closed": "Fermée",@@ -410,14 +409,14 @@"pull_request_checks_all_passed": "Toutes les vérifications ont réussi ({{total}}/{{total}})","pull_request_checks_running": "{{passed}}/{{total}} · {{running}} en cours","pull_request_checks_failed_count": "{{failed}}/{{total}} en échec",- "pull_request_checks_failed_named": "{{failed}}/{{total}} en échec · {{names}}","pull_request_checks_more": "+{{count}} de plus","pull_request_merge_conflicting": "Conflits de fusion","pull_request_merge_ready": "Prête à fusionner","pull_request_merge_blocked": "Bloquée","pull_request_merge_behind": "En retard sur la base",- "pull_request_merge_unstable": "Instable",- "pull_request_merge_has_hooks": "Comporte des hooks",+ "pull_request_verdict_conflicting": "Conflits",+ "pull_request_verdict_ready": "Prête",+ "pull_request_verdict_passed": "Vérifications OK","pull_request_snapshot_stale": "Mis à jour {{time}}","pull_request_snapshot_stale_unknown": "L'instantané est peut-être périmé","pull_request_card_files_count_one": "{{count}} fichier",diff --git a/packages/views/locales/ja/issues.json b/packages/views/locales/ja/issues.jsonindex 3cbd484bcb..530db07008 100644--- a/packages/views/locales/ja/issues.json+++ b/packages/views/locales/ja/issues.json@@ -398,7 +398,6 @@"quick_action_blocked_body": "「{{name}}」は、あなたが実行を許可されていないエージェントで動作します。ワークスペース管理者にそのエージェントをチームへ公開してもらうか、共有エージェントへの変更を依頼してください。","quick_action_blocked_ok": "了解","pull_requests_loading": "読み込み中...",- "pull_request_state_open": "オープン","pull_request_state_draft": "ドラフト","pull_request_state_merged": "マージ済み","pull_request_state_closed": "クローズ",@@ -406,14 +405,14 @@"pull_request_checks_all_passed": "すべてのチェックに成功({{total}}/{{total}})","pull_request_checks_running": "{{passed}}/{{total}} · {{running}} 件実行中","pull_request_checks_failed_count": "{{failed}}/{{total}} 失敗",- "pull_request_checks_failed_named": "{{failed}}/{{total}} 失敗 · {{names}}","pull_request_checks_more": "他 +{{count}} 件","pull_request_merge_conflicting": "マージコンフリクトあり","pull_request_merge_ready": "マージ可能","pull_request_merge_blocked": "ブロック中","pull_request_merge_behind": "ベースブランチより遅れています",- "pull_request_merge_unstable": "不安定",- "pull_request_merge_has_hooks": "フックあり",+ "pull_request_verdict_conflicting": "コンフリクト",+ "pull_request_verdict_ready": "マージ可能",+ "pull_request_verdict_passed": "チェック成功","pull_request_snapshot_stale": "{{time}}に更新","pull_request_snapshot_stale_unknown": "スナップショットが古い可能性があります","pull_request_card_files_count_other": "{{count}} ファイル",diff --git a/packages/views/locales/ko/issues.json b/packages/views/locales/ko/issues.jsonindex a82fd9ad2d..5fe70ea15c 100644--- a/packages/views/locales/ko/issues.json+++ b/packages/views/locales/ko/issues.json@@ -398,7 +398,6 @@"quick_action_blocked_body": "“{{name}}”은(는) 트리거 권한이 없는 에이전트로 실행됩니다. 워크스페이스 관리자에게 해당 에이전트를 팀에 공개하거나 공유 에이전트로 변경해 달라고 요청하세요.","quick_action_blocked_ok": "확인","pull_requests_loading": "불러오는 중...",- "pull_request_state_open": "열림","pull_request_state_draft": "초안","pull_request_state_merged": "병합됨","pull_request_state_closed": "닫힘",@@ -406,14 +405,14 @@"pull_request_checks_all_passed": "모든 검사 통과 ({{total}}/{{total}})","pull_request_checks_running": "{{passed}}/{{total}} · {{running}}개 실행 중","pull_request_checks_failed_count": "{{failed}}/{{total}} 실패",- "pull_request_checks_failed_named": "{{failed}}/{{total}} 실패 · {{names}}","pull_request_checks_more": "+{{count}}개","pull_request_merge_conflicting": "병합 충돌 있음","pull_request_merge_ready": "병합 가능","pull_request_merge_blocked": "차단됨","pull_request_merge_behind": "기준 브랜치보다 뒤처짐",- "pull_request_merge_unstable": "불안정",- "pull_request_merge_has_hooks": "훅 있음",+ "pull_request_verdict_conflicting": "충돌",+ "pull_request_verdict_ready": "병합 가능",+ "pull_request_verdict_passed": "검사 통과","pull_request_snapshot_stale": "{{time}} 업데이트됨","pull_request_snapshot_stale_unknown": "스냅샷이 오래되었을 수 있습니다","pull_request_card_files_count_other": "파일 {{count}}개",diff --git a/packages/views/locales/zh-Hans/issues.json b/packages/views/locales/zh-Hans/issues.jsonindex 4bc0de6757..fe9484539a 100644--- a/packages/views/locales/zh-Hans/issues.json+++ b/packages/views/locales/zh-Hans/issues.json@@ -398,7 +398,6 @@"quick_action_blocked_body": "\"{{name}}\"由一个你无权触发的智能体执行。可以请工作区管理员把该智能体开放给团队,或把这条操作改绑一个共享的智能体。","quick_action_blocked_ok": "知道了","pull_requests_loading": "加载中...",- "pull_request_state_open": "Open","pull_request_state_draft": "Draft","pull_request_state_merged": "Merged","pull_request_state_closed": "Closed",@@ -406,14 +405,14 @@"pull_request_checks_all_passed": "全部检查通过({{total}}/{{total}})","pull_request_checks_running": "{{passed}}/{{total}} · {{running}} 个进行中","pull_request_checks_failed_count": "{{failed}}/{{total}} 失败",- "pull_request_checks_failed_named": "{{failed}}/{{total}} 失败 · {{names}}","pull_request_checks_more": "+{{count}} 个","pull_request_merge_conflicting": "存在合并冲突","pull_request_merge_ready": "可以合入","pull_request_merge_blocked": "被阻止","pull_request_merge_behind": "落后于基础分支",- "pull_request_merge_unstable": "不稳定",- "pull_request_merge_has_hooks": "存在钩子",+ "pull_request_verdict_conflicting": "有冲突",+ "pull_request_verdict_ready": "可合入",+ "pull_request_verdict_passed": "检查通过","pull_request_snapshot_stale": "更新于 {{time}}","pull_request_snapshot_stale_unknown": "快照可能已过期","pull_request_card_files_count_other": "{{count}} 个文件",