diff --git a/apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx b/apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx index 98cf920f9de9f..346b7956927a8 100644 --- a/apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx +++ b/apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx @@ -1,11 +1,17 @@ -import type { ProjectId, ScopedThreadRef, ThreadPullRequestLink } from "@t3tools/contracts"; +import { + DEFAULT_CLIENT_SETTINGS, + type LinkedPullRequestSort, + type LinkedPullRequestStatus, + type ProjectId, + type ScopedThreadRef, + type ThreadPullRequestLink, +} from "@t3tools/contracts"; import { sourceControlClients, UNKNOWN_SOURCE_CONTROL_CLIENT, } from "@t3tools/client-runtime/source-control-clients"; import { type PullRequestListLine, - pullRequestListLines, resolveThreadPullRequestChains, visibleThreadPullRequests, } from "@t3tools/client-runtime/thread-pull-requests"; @@ -15,6 +21,7 @@ import { EyeIcon, EyeOffIcon, LinkIcon, + ListFilterIcon, MoreHorizontalIcon, PlusIcon, } from "lucide-react"; @@ -27,9 +34,13 @@ import { encodePullRequestDragPayload, } from "~/components/chat/composerMentionDrag"; import { writeTextToClipboard } from "~/hooks/useCopyToClipboard"; +import { + persistClientSettingsUpdate, + updateClientSettings, + useClientSettings, +} from "~/hooks/useSettings"; import { findProjectForChangeRequest } from "@t3tools/client-runtime/change-request-links"; import { pullRequestLinkPanelTarget, useOpenPrLink } from "~/lib/openPullRequestLink"; -import { useClientSettings } from "~/hooks/useSettings"; import { usePrimaryEnvironmentId } from "~/state/environments"; import { usePullRequestIntentPrefetch } from "./usePullRequestIntentPrefetch"; import { cn } from "~/lib/utils"; @@ -41,7 +52,20 @@ import { threadEnvironment } from "~/state/threads"; import { useAtomCommand } from "~/state/use-atom-command"; import { RelativeTime } from "~/components/RelativeTime"; import { Button } from "../ui/button"; -import { Menu, MenuItem, MenuPopup, MenuTrigger } from "../ui/menu"; +import { + Menu, + MenuCheckboxItem, + MenuGroup, + MenuGroupLabel, + MenuItem, + MenuPopup, + MenuRadioGroup, + MenuRadioItem, + MenuRadioItemIndicator, + MenuSeparator, + MenuTrigger, +} from "../ui/menu"; +import { Separator } from "../ui/separator"; import { MiddleTruncate } from "../ui/middle-truncate"; import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip"; import { openLinkPullRequestDialog } from "./LinkPullRequestDialog"; @@ -56,11 +80,20 @@ import { import { PullRequestDiffStat, PullRequestReviewDecisionGlyph, + PullRequestStateGlyph, pullRequestChecksStatePresentation, } from "./pullRequestPresentation"; import { PullRequestGlyph } from "./pullRequestIcons"; import { pullRequestQuickActions } from "./pullRequestList.logic"; import { PullRequestSpeedActions, PullRequestSpeedModeContext } from "./PullRequestSpeedActions"; +import { + LINKED_PULL_REQUEST_STATUS_LABELS, + LINKED_PULL_REQUEST_STATUS_ORDER, + type LinkedPullRequestRow, + type LinkedPullRequestView, + linkedPullRequestRows, + linkedPullRequestStatus, +} from "./threadPullRequestsView.logic"; import { changeRequestTermKind } from "./changeRequestTerm"; @@ -95,6 +128,8 @@ function ChecksGlyph({ function LinkRowImpl({ line, + position, + dimmed, threadRef, projectId, speedMode, @@ -104,6 +139,8 @@ function LinkRowImpl({ canStartWatch, }: { line: PullRequestListLine; + position: number | null; + dimmed: boolean; threadRef: ScopedThreadRef; projectId: ProjectId | null; speedMode: boolean; @@ -144,7 +181,7 @@ function LinkRowImpl({ actionEntry !== null && pullRequestQuickActions(actionEntry, linkHostActions).length > 0; return (
onIntent(link)} onPointerLeave={(event) => { if (!event.currentTarget.contains(document.activeElement)) onIntent(null); @@ -265,7 +302,7 @@ function LinkRowImpl({ } > - {stack.size} + {position === null ? stack.size : `${position}/${stack.size}`} {stack.kind === "native" @@ -399,8 +436,109 @@ function latestSyncedAt(links: ReadonlyArray): string | n return latest; } -const lineKey = (line: PullRequestListLine) => - `${line.link.host}/${line.link.repository}#${line.link.number}`; +const SORT_LABELS: Record = { + status: msg("Status"), + updated: msg("Recently updated"), + linked: msg("Recently linked"), + repository: msg("Repository"), +}; + +function LinkedPullRequestViewMenu({ + view, + counts, +}: { + view: LinkedPullRequestView; + counts: ReadonlyMap; +}) { + const resolve = useMessages(); + return ( + + }> + + {resolve(SORT_LABELS[view.sort])} + + + + void updateClientSettings({ linkedPullRequestSort: next as LinkedPullRequestSort }) + } + > + + Sort by + + {(Object.keys(SORT_LABELS) as Array).map((sort) => ( + + + {resolve(SORT_LABELS[sort])} + + + + ))} + + + + + Status + + {LINKED_PULL_REQUEST_STATUS_ORDER.map((status) => ( + + void persistClientSettingsUpdate((current) => ({ + ...current, + linkedPullRequestHiddenStatuses: checked + ? current.linkedPullRequestHiddenStatuses.filter((hidden) => hidden !== status) + : [...new Set([...current.linkedPullRequestHiddenStatuses, status])], + })) + } + > + + + + {resolve(LINKED_PULL_REQUEST_STATUS_LABELS[status])} + + + {counts.get(status) ?? 0} + + + + ))} + + void updateClientSettings({ linkedPullRequestGroupStacks: checked }) + } + > + + + Group stacks + + + + + + void persistClientSettingsUpdate((current) => ({ + ...current, + linkedPullRequestSort: DEFAULT_CLIENT_SETTINGS.linkedPullRequestSort, + linkedPullRequestHiddenStatuses: + DEFAULT_CLIENT_SETTINGS.linkedPullRequestHiddenStatuses, + linkedPullRequestGroupStacks: DEFAULT_CLIENT_SETTINGS.linkedPullRequestGroupStacks, + })) + } + > + Reset to default + + + + ); +} export function ThreadPullRequestsPanel({ threadRef }: { threadRef: ScopedThreadRef }) { const gt = useGT(); @@ -418,6 +556,7 @@ export function ThreadPullRequestsPanel({ threadRef }: { threadRef: ScopedThread function EnabledThreadPullRequestsPanel({ threadRef }: { threadRef: ScopedThreadRef }) { const gt = useGT(); + const resolve = useMessages(); const thread = useThreadShell(threadRef); const projects = useProjects(); const environmentProjects = projects @@ -425,9 +564,18 @@ function EnabledThreadPullRequestsPanel({ threadRef }: { threadRef: ScopedThread .toSorted((left, right) => left.id === thread?.projectId ? -1 : right.id === thread?.projectId ? 1 : 0, ); - // Derive lines before later hooks to preserve compiler caching and avoid LegendList renders. + const sort = useClientSettings((settings) => settings.linkedPullRequestSort); + const hiddenStatuses = useClientSettings((settings) => settings.linkedPullRequestHiddenStatuses); + const groupStacks = useClientSettings((settings) => settings.linkedPullRequestGroupStacks); + const view = { sort, hiddenStatuses, groupStacks }; + // Derive rows before later hooks to preserve compiler caching and avoid LegendList renders. const links = visibleThreadPullRequests(thread?.pullRequests ?? []); - const lines = pullRequestListLines(resolveThreadPullRequestChains(links)); + const rows = linkedPullRequestRows(resolveThreadPullRequestChains(links), view); + const statusCounts = new Map(); + for (const link of links) { + const status = linkedPullRequestStatus(link); + statusCounts.set(status, (statusCounts.get(status) ?? 0) + 1); + } const openCount = links.filter( (link) => link.snapshot === null || link.snapshot.state === "open", ).length; @@ -506,6 +654,7 @@ function EnabledThreadPullRequestsPanel({ threadRef }: { threadRef: ScopedThread thread, opensInApp, primaryEnvironmentId, + resolve, }; if (linkCount === 0) { @@ -534,34 +683,67 @@ function EnabledThreadPullRequestsPanel({ threadRef }: { threadRef: ScopedThread
{/* Threads that run a stack or a sweep link hundreds of pull requests; only the rows in view are mounted. */} - - data={lines} - keyExtractor={lineKey} + + data={rows} + keyExtractor={(row) => row.key} + getItemType={(row) => row.kind} extraData={rowInputs} - renderItem={({ item: line }) => ( - - )} + renderItem={({ item: row }) => + row.kind === "header" ? ( +
+ + }> + {sort === "status" ? resolve(row.label) : row.label} + + {sort === "status" ? resolve(row.label) : row.label} + + {row.count} + +
+ ) : row.kind === "hidden" ? ( +
+ +
+ ) : ( + + ) + } estimatedItemSize={44} drawDistance={440} className="min-h-0 flex-1 overscroll-contain p-1.5" />
- + {gt( "{openCount, plural, one {{openCount} open} other {{openCount} open}} · {linkCount, plural, one {{linkCount} linked} other {{linkCount} linked}}", { openCount, linkCount }, @@ -578,10 +760,13 @@ function EnabledThreadPullRequestsPanel({ threadRef }: { threadRef: ScopedThread ) : null} - + + + +
diff --git a/apps/web/src/components/pullRequest/threadPullRequestsView.logic.test.ts b/apps/web/src/components/pullRequest/threadPullRequestsView.logic.test.ts new file mode 100644 index 0000000000000..1d445a0b5780a --- /dev/null +++ b/apps/web/src/components/pullRequest/threadPullRequestsView.logic.test.ts @@ -0,0 +1,130 @@ +import { ThreadPullRequestLink } from "@t3tools/contracts"; +import type { ThreadPullRequestChain } from "@t3tools/client-runtime/thread-pull-requests"; +import { Schema } from "effect"; +import { describe, expect, it } from "vite-plus/test"; + +import { type LinkedPullRequestView, linkedPullRequestRows } from "./threadPullRequestsView.logic"; + +const decodeLink = Schema.decodeUnknownSync(ThreadPullRequestLink); + +function link( + number: number, + status: "draft" | "open" | "merged" | "closed", + updatedAt: string, + repository = "acme/web", +) { + return decodeLink({ + host: "github.com", + repository, + number, + url: `https://github.com/${repository}/pull/${number}`, + source: "agent", + linkedAt: "2026-11-01T00:00:00Z", + stack: null, + snapshot: { + state: status === "draft" ? "open" : status, + isDraft: status === "draft", + title: `PR ${number}`, + headBranch: `branch-${number}`, + baseBranch: "main", + updatedAt, + syncedAt: updatedAt, + }, + }); +} + +const single = (pr: ThreadPullRequestLink): ThreadPullRequestChain => ({ + kind: "derived", + layers: [pr], + depths: [0], +}); + +const DEFAULT_VIEW: LinkedPullRequestView = { + sort: "status", + hiddenStatuses: ["closed"], + groupStacks: true, +}; + +// Base #1 and #2 merged, #3 still open on top. +const stack: ThreadPullRequestChain = { + kind: "native", + layers: [ + link(1, "merged", "2026-11-01T01:00:00Z"), + link(2, "merged", "2026-11-01T02:00:00Z"), + link(3, "open", "2026-11-01T03:00:00Z"), + ], + depths: [0, 1, 2], +}; + +const summarize = (rows: ReturnType) => + rows.map((row) => + row.kind === "header" + ? `[${row.label} ${row.count}]` + : row.kind === "hidden" + ? `(${row.count} hidden)` + : `#${row.line.link.number}${row.position === null ? "" : ` ${row.position}/${row.line.stack?.size}`}${row.dimmed ? " dim" : ""}`, + ); + +describe("linkedPullRequestRows", () => { + it("groups by status from draft to merged and hides closed by default", () => { + const chains = [ + single(link(10, "merged", "2026-11-02T00:00:00Z")), + single(link(11, "open", "2026-11-02T01:00:00Z")), + single(link(12, "closed", "2026-11-02T02:00:00Z")), + single(link(13, "draft", "2026-11-02T03:00:00Z")), + single(link(14, "open", "2026-11-02T04:00:00Z")), + ]; + expect(summarize(linkedPullRequestRows(chains, DEFAULT_VIEW))).toEqual([ + "[Draft 1]", + "#13", + "[Open 2]", + "#14", + "#11", + "[Merged 1]", + "#10", + "(1 hidden)", + ]); + }); + + it("keeps a grouped stack with its least finished layer and dims finished layers", () => { + const chains = [single(link(20, "merged", "2026-11-02T00:00:00Z")), stack]; + expect(summarize(linkedPullRequestRows(chains, DEFAULT_VIEW))).toEqual([ + "[Open 3]", + "#1 dim", + "#2 dim", + "#3", + "[Merged 1]", + "#20", + ]); + expect( + summarize(linkedPullRequestRows(chains, { ...DEFAULT_VIEW, hiddenStatuses: ["open"] })), + ).toEqual(["[Merged 4]", "#20", "#1", "#2", "#3 dim"]); + const draftStack: ThreadPullRequestChain = { + kind: "native", + layers: [link(4, "open", "2026-11-01T01:00:00Z"), link(5, "draft", "2026-11-01T02:00:00Z")], + depths: [0, 1], + }; + expect(summarize(linkedPullRequestRows([draftStack], DEFAULT_VIEW))).toEqual([ + "[Draft 2]", + "#4", + "#5", + ]); + }); + + it("flattens stacks into their own status groups with each layer's position", () => { + expect( + summarize(linkedPullRequestRows([stack], { ...DEFAULT_VIEW, groupStacks: false })), + ).toEqual(["[Open 1]", "#3 3/3", "[Merged 2]", "#2 2/3", "#1 1/3"]); + }); + + it("groups by repository and sorts newest first inside each group", () => { + const chains = [ + single(link(30, "open", "2026-11-02T00:00:00Z", "acme/web")), + single(link(31, "open", "2026-11-02T01:00:00Z", "acme/api")), + single(link(32, "merged", "2026-11-02T02:00:00Z", "acme/web")), + ]; + expect( + summarize(linkedPullRequestRows(chains, { ...DEFAULT_VIEW, sort: "repository" })), + ).toEqual(["[acme/api 1]", "#31", "[acme/web 2]", "#32", "#30"]); + }); +}); diff --git a/apps/web/src/components/pullRequest/threadPullRequestsView.logic.ts b/apps/web/src/components/pullRequest/threadPullRequestsView.logic.ts new file mode 100644 index 0000000000000..94f4a9c3be167 --- /dev/null +++ b/apps/web/src/components/pullRequest/threadPullRequestsView.logic.ts @@ -0,0 +1,168 @@ +import { msg } from "gt-react"; +import type { + LinkedPullRequestSort, + LinkedPullRequestStatus, + ThreadPullRequestLink, +} from "@t3tools/contracts"; +import type { + PullRequestListLine, + ThreadPullRequestChain, +} from "@t3tools/client-runtime/thread-pull-requests"; + +export const LINKED_PULL_REQUEST_STATUS_ORDER: ReadonlyArray = [ + "draft", + "open", + "merged", + "closed", +]; + +export const LINKED_PULL_REQUEST_STATUS_LABELS: Record = { + draft: msg("Draft"), + open: msg("Open"), + merged: msg("Merged"), + closed: msg("Closed"), +}; + +export interface LinkedPullRequestView { + readonly sort: LinkedPullRequestSort; + readonly hiddenStatuses: ReadonlyArray; + readonly groupStacks: boolean; +} + +export type LinkedPullRequestRow = + | { + readonly kind: "header"; + readonly key: string; + readonly label: string; + readonly count: number; + } + | { + readonly kind: "line"; + readonly key: string; + readonly line: PullRequestListLine; + /** 1-based place in its stack when stacks are flattened. */ + readonly position: number | null; + readonly dimmed: boolean; + } + | { readonly kind: "hidden"; readonly key: string; readonly count: number }; + +export function linkedPullRequestStatus(link: ThreadPullRequestLink): LinkedPullRequestStatus { + const snapshot = link.snapshot; + if (snapshot === null) return "open"; + if (snapshot.state === "open") return snapshot.isDraft ? "draft" : "open"; + return snapshot.state; +} + +const isOpen = (link: ThreadPullRequestLink) => + link.snapshot === null || link.snapshot.state === "open"; + +const rank = (link: ThreadPullRequestLink) => + LINKED_PULL_REQUEST_STATUS_ORDER.indexOf(linkedPullRequestStatus(link)); + +function timeOf(value: string | null | undefined): number { + const ms = value ? Date.parse(value) : Number.NaN; + return Number.isNaN(ms) ? 0 : ms; +} + +const linkKey = (link: ThreadPullRequestLink) => `${link.host}/${link.repository}#${link.number}`; + +interface Unit { + readonly chain: ThreadPullRequestChain; + readonly key: string; + readonly rank: number; + readonly repository: string; + readonly updatedAt: number; + readonly linkedAt: number; + /** Set when a stack is flattened into one unit per layer. */ + readonly layerOf: { readonly position: number; readonly size: number } | null; +} + +export function linkedPullRequestRows( + chains: ReadonlyArray, + view: LinkedPullRequestView, +): ReadonlyArray { + const hidden = new Set(view.hiddenStatuses); + const isHidden = (link: ThreadPullRequestLink) => hidden.has(linkedPullRequestStatus(link)); + const units: Array = []; + let hiddenCount = 0; + const addUnit = (chain: ThreadPullRequestChain, layerOf: Unit["layerOf"]) => { + const shown = chain.layers.filter((link) => !isHidden(link)); + if (shown.length === 0) { + hiddenCount += chain.layers.length; + return; + } + const base = chain.layers[0]!; + units.push({ + chain, + key: linkKey(base), + // A stack sorts with its least finished visible layer. + rank: Math.min(...shown.map(rank)), + repository: `${base.host}/${base.repository}`, + updatedAt: Math.max( + ...chain.layers.map((link) => timeOf(link.snapshot?.updatedAt ?? link.linkedAt)), + ), + linkedAt: Math.max(...chain.layers.map((link) => timeOf(link.linkedAt))), + layerOf, + }); + }; + for (const chain of chains) { + if (view.groupStacks || chain.layers.length === 1) { + addUnit(chain, null); + continue; + } + chain.layers.forEach((link, index) => + addUnit( + { kind: chain.kind, layers: [link], depths: [0] }, + { position: index + 1, size: chain.layers.length }, + ), + ); + } + + const byUpdated = (left: Unit, right: Unit) => right.updatedAt - left.updatedAt; + const compare: Record number> = { + status: (left, right) => left.rank - right.rank || byUpdated(left, right), + updated: byUpdated, + linked: (left, right) => right.linkedAt - left.linkedAt, + repository: (left, right) => + left.repository.localeCompare(right.repository) || byUpdated(left, right), + }; + units.sort(compare[view.sort]); + + const groupOf = (unit: Unit): { key: string; label: string } | null => + view.sort === "status" + ? { + key: LINKED_PULL_REQUEST_STATUS_ORDER[unit.rank]!, + label: LINKED_PULL_REQUEST_STATUS_LABELS[LINKED_PULL_REQUEST_STATUS_ORDER[unit.rank]!], + } + : view.sort === "repository" + ? { key: unit.repository, label: unit.repository.slice(unit.repository.indexOf("/") + 1) } + : null; + + const rows: Array = []; + let header: { kind: "header"; key: string; label: string; count: number } | null = null; + for (const unit of units) { + const group = groupOf(unit); + if (group !== null && header?.key !== `header:${group.key}`) { + header = { kind: "header", key: `header:${group.key}`, label: group.label, count: 0 }; + rows.push(header); + } + if (header !== null) header.count += unit.chain.layers.length; + const size = unit.layerOf?.size ?? unit.chain.layers.length; + unit.chain.layers.forEach((link, index) => { + rows.push({ + kind: "line", + key: linkKey(link), + line: { + link, + depth: unit.chain.depths[index]!, + chainKey: unit.key, + stack: index === 0 && size > 1 ? { kind: unit.chain.kind, size } : null, + }, + position: unit.layerOf?.position ?? null, + dimmed: isHidden(link) || (rank(link) > unit.rank && !isOpen(link)), + }); + }); + } + if (hiddenCount > 0) rows.push({ kind: "hidden", key: "hidden", count: hiddenCount }); + return rows; +} diff --git a/apps/web/src/i18n/translations/de.json b/apps/web/src/i18n/translations/de.json index 648fd58859dbe..74d0886e9cfbe 100644 --- a/apps/web/src/i18n/translations/de.json +++ b/apps/web/src/i18n/translations/de.json @@ -6970,6 +6970,8 @@ "2b91e67b513c524e": "Vom Agenten verknüpft", "29a3741379160657": "Im Stack gefunden", "c39dd238b84966bd": "Verworfen", + "21d0ef064eefa159": "Status", + "79fcc1b620b652bf": "Kürzlich verknüpft", "50fdb607048e425a": "Warte auf Status des Hosts", "1e64c95da299ca6c": "Beobachtet", "b07208f457872b13": "{host}-Stack aus {size}: Das Mergen einer Ebene übernimmt die darunterliegenden.", @@ -6980,9 +6982,13 @@ "13eb3e529a3e9bff": "Aus dem Thread entfernen", "93cebe7fdcc9821e": "Verknüpfte Pull Requests nicht verfügbar", "47c92b77099a6346": "Diese Umgebung unterstützt nicht mehrere verknüpfte Pull Requests.", + "96a45e508e9ede58": "{count, plural, one {# ausgeblendet} other {# ausgeblendet}} · Alle anzeigen", "e18c90152452a50e": "{openCount, plural, one {{openCount} offen} other {{openCount} offen}} · {linkCount, plural, one {{linkCount} verknüpft} other {{linkCount} verknüpft}}", "106c1bf3308a8c33": "Beobachtet: Der Agent wird geweckt, wenn Checks fertig sind, jemand kommentiert oder der Branch Konflikte hat", "15a560968264b0ed": "Öffnen", + "003aa9115365f752": "Sortieren nach", + "204167c06dc9fb6e": "Status", + "55cffd2c96741220": "Stacks gruppieren", "a4e0e1e0bad3dcd8": "Keine verknüpften Pull Requests", "973b668999e33451": "Pull Requests, die der Agent aus diesem Thread öffnet, landen hier. Verknüpfe selbst einen über URL oder Nummer.", "f034c05267f161ce": [ @@ -7062,6 +7068,10 @@ "9a8fd03416860d24": "PRs mit Review-Anfrage an mich", "26de318a087aa5ba": "Die Stack-Daten sind möglicherweise veraltet. Wir konnten sie nicht aktualisieren.", "a1784dea82c2c283": "Stack wird aktualisiert… Gespeicherte Daten werden angezeigt.", + "e0b196715ec7a4a6": "Entwurf", + "b2be70822d55f16a": "Offen", + "2f8f985531c0c748": "Zusammengeführt", + "7f7f6116f1c8f3a9": "Geschlossen", "731b95ffeba539c2": "Merge angefordert", "646b611650064cb9": "Als bereit für Review markiert", "a35d421d18e5fa87": "In Entwurf umgewandelt", @@ -8928,7 +8938,6 @@ "aea940c95ef946b1": "{provider} aktivieren", "74abd6f7968e9fe0": "Instanz {instanceId} löschen", "eee76b40711fd902": "Treiber", - "21d0ef064eefa159": "Status", "f31ce60f3f118c0d": "Anzeigename", "c45028de5c2f6cbb": "Instanzbezeichnung", "cf69675106e4bf46": "Einrichtung", @@ -11231,7 +11240,6 @@ "a4f43ec3d6dbdef6": "Automatisch", "dc4980666a27677e": "Alle Sprachen", "111dbc8f88feacff": "Keine passenden Sprachen.", - "003aa9115365f752": "Sortieren nach", "736406a96ddadcd8": "Nur heruntergeladene", "0b5ab0399461fdbd": "Vorhandenes verwenden", "790951b4fc82052f": "Modell testen", diff --git a/apps/web/src/i18n/translations/en.json b/apps/web/src/i18n/translations/en.json index 599944358b5bb..a790c795a1e90 100644 --- a/apps/web/src/i18n/translations/en.json +++ b/apps/web/src/i18n/translations/en.json @@ -6978,6 +6978,8 @@ "2b91e67b513c524e": "Linked by the agent", "29a3741379160657": "Found in the stack", "c39dd238b84966bd": "Dismissed", + "21d0ef064eefa159": "Status", + "79fcc1b620b652bf": "Recently linked", "50fdb607048e425a": "Waiting for host state", "1e64c95da299ca6c": "Watching", "b07208f457872b13": "{host} stack of {size}: merging a layer lands the ones below it.", @@ -6988,9 +6990,13 @@ "13eb3e529a3e9bff": "Dismiss from thread", "93cebe7fdcc9821e": "Linked pull requests unavailable", "47c92b77099a6346": "This environment does not support multiple linked pull requests.", + "96a45e508e9ede58": "{count, plural, one {# hidden} other {# hidden}} · Show all", "e18c90152452a50e": "{openCount, plural, one {{openCount} open} other {{openCount} open}} · {linkCount, plural, one {{linkCount} linked} other {{linkCount} linked}}", "106c1bf3308a8c33": "Watching: the agent wakes when checks finish, someone comments, or the branch conflicts", "15a560968264b0ed": "Open", + "003aa9115365f752": "Sort by", + "204167c06dc9fb6e": "Status", + "55cffd2c96741220": "Group stacks", "a4e0e1e0bad3dcd8": "No linked pull requests", "973b668999e33451": "Pull requests the agent opens from this thread land here. Link one yourself from a URL or a number.", "f034c05267f161ce": [ @@ -7070,6 +7076,10 @@ "9a8fd03416860d24": "PRs Requesting My Review", "26de318a087aa5ba": "Stack data may be stale. We couldn’t refresh it.", "a1784dea82c2c283": "Refreshing stack… Showing saved data.", + "e0b196715ec7a4a6": "Draft", + "b2be70822d55f16a": "Open", + "2f8f985531c0c748": "Merged", + "7f7f6116f1c8f3a9": "Closed", "731b95ffeba539c2": "Merge requested", "646b611650064cb9": "Marked ready for review", "a35d421d18e5fa87": "Converted to draft", @@ -8936,7 +8946,6 @@ "aea940c95ef946b1": "Enable {provider}", "74abd6f7968e9fe0": "Delete instance {instanceId}", "eee76b40711fd902": "Driver", - "21d0ef064eefa159": "Status", "f31ce60f3f118c0d": "Display name", "c45028de5c2f6cbb": "Instance label", "cf69675106e4bf46": "Setup", @@ -11239,7 +11248,6 @@ "a4f43ec3d6dbdef6": "Auto", "dc4980666a27677e": "All languages", "111dbc8f88feacff": "No languages match.", - "003aa9115365f752": "Sort by", "736406a96ddadcd8": "Downloaded only", "0b5ab0399461fdbd": "Use existing", "790951b4fc82052f": "Test model", diff --git a/apps/web/src/i18n/translations/es.json b/apps/web/src/i18n/translations/es.json index 956f4e17a9617..ce9d333deb4a3 100644 --- a/apps/web/src/i18n/translations/es.json +++ b/apps/web/src/i18n/translations/es.json @@ -6971,6 +6971,8 @@ "2b91e67b513c524e": "Vinculada por el agente", "29a3741379160657": "Encontrada en la pila", "c39dd238b84966bd": "Descartada", + "21d0ef064eefa159": "Estado", + "79fcc1b620b652bf": "Vinculadas recientemente", "50fdb607048e425a": "Esperando el estado del host", "1e64c95da299ca6c": "Siguiendo", "b07208f457872b13": "Pila de {size} en {host}: fusionar una capa integra las que están debajo.", @@ -6981,9 +6983,13 @@ "13eb3e529a3e9bff": "Descartar del hilo", "93cebe7fdcc9821e": "Pull requests vinculadas no disponibles", "47c92b77099a6346": "Este entorno no admite varias pull requests vinculadas.", + "96a45e508e9ede58": "{count, plural, one {# oculta} other {# ocultas}} · Mostrar todas", "e18c90152452a50e": "{openCount, plural, one {{openCount} abierta} other {{openCount} abiertas}} · {linkCount, plural, one {{linkCount} vinculada} other {{linkCount} vinculadas}}", "106c1bf3308a8c33": "Siguiendo: el agente se activa cuando terminan las comprobaciones, alguien comenta o la rama tiene conflictos", "15a560968264b0ed": "Abrir", + "003aa9115365f752": "Ordenar por", + "204167c06dc9fb6e": "Estado", + "55cffd2c96741220": "Agrupar pilas", "a4e0e1e0bad3dcd8": "No hay pull requests vinculadas", "973b668999e33451": "Aquí llegan las pull requests que el agente abre desde este hilo. Vincula una tú mismo desde una URL o un número.", "f034c05267f161ce": [ @@ -7063,6 +7069,10 @@ "9a8fd03416860d24": "PR que solicitan mi revisión", "26de318a087aa5ba": "Puede que los datos de la pila estén desactualizados. No pudimos actualizarlos.", "a1784dea82c2c283": "Actualizando la pila… Se muestran los datos guardados.", + "e0b196715ec7a4a6": "Borrador", + "b2be70822d55f16a": "Abierta", + "2f8f985531c0c748": "Fusionada", + "7f7f6116f1c8f3a9": "Cerrada", "731b95ffeba539c2": "Fusión solicitada", "646b611650064cb9": "Marcada como lista para revisión", "a35d421d18e5fa87": "Convertida en borrador", @@ -8926,7 +8936,6 @@ "aea940c95ef946b1": "Activar {provider}", "74abd6f7968e9fe0": "Eliminar la instancia {instanceId}", "eee76b40711fd902": "Controlador", - "21d0ef064eefa159": "Estado", "f31ce60f3f118c0d": "Nombre visible", "c45028de5c2f6cbb": "Etiqueta de la instancia", "cf69675106e4bf46": "Configuración", @@ -11224,7 +11233,6 @@ "a4f43ec3d6dbdef6": "Automático", "dc4980666a27677e": "Todos los idiomas", "111dbc8f88feacff": "Ningún idioma coincide.", - "003aa9115365f752": "Ordenar por", "736406a96ddadcd8": "Solo descargados", "0b5ab0399461fdbd": "Usar existente", "790951b4fc82052f": "Probar modelo", diff --git a/apps/web/src/i18n/translations/fr.json b/apps/web/src/i18n/translations/fr.json index 1c982cc6d6f58..06cf57d3ba119 100644 --- a/apps/web/src/i18n/translations/fr.json +++ b/apps/web/src/i18n/translations/fr.json @@ -6972,6 +6972,8 @@ "2b91e67b513c524e": "Associée par l’agent", "29a3741379160657": "Trouvée dans la pile", "c39dd238b84966bd": "Écartée", + "21d0ef064eefa159": "Statut", + "79fcc1b620b652bf": "Liées récemment", "50fdb607048e425a": "En attente de l’état de l’hôte", "1e64c95da299ca6c": "Surveillance", "b07208f457872b13": "Pile {host} de {size} : fusionner une couche intègre aussi celles du dessous.", @@ -6982,9 +6984,13 @@ "13eb3e529a3e9bff": "Écarter du fil", "93cebe7fdcc9821e": "Pull requests associées indisponibles", "47c92b77099a6346": "Cet environnement ne prend pas en charge plusieurs pull requests associées.", + "96a45e508e9ede58": "{count, plural, one {# masquée} other {# masquées}} · Tout afficher", "e18c90152452a50e": "{openCount, plural, one {{openCount} ouverte} other {{openCount} ouvertes}} · {linkCount, plural, one {{linkCount} associée} other {{linkCount} associées}}", "106c1bf3308a8c33": "Surveillance : l’agent se réveille quand les checks se terminent, que quelqu’un commente ou que la branche entre en conflit", "15a560968264b0ed": "Ouvrir", + "003aa9115365f752": "Trier par", + "204167c06dc9fb6e": "Statut", + "55cffd2c96741220": "Regrouper les piles", "a4e0e1e0bad3dcd8": "Aucune pull request associée", "973b668999e33451": "Les pull requests que l’agent ouvre depuis ce fil arrivent ici. Associez-en une vous-même à partir d’une URL ou d’un numéro.", "f034c05267f161ce": [ @@ -7064,6 +7070,10 @@ "9a8fd03416860d24": "PR qui demandent ma revue", "26de318a087aa5ba": "Les données de la pile sont peut-être obsolètes. Nous n’avons pas pu les actualiser.", "a1784dea82c2c283": "Actualisation de la pile… Affichage des données enregistrées.", + "e0b196715ec7a4a6": "Brouillon", + "b2be70822d55f16a": "Ouverte", + "2f8f985531c0c748": "Fusionnée", + "7f7f6116f1c8f3a9": "Fermée", "731b95ffeba539c2": "Fusion demandée", "646b611650064cb9": "Marquée comme prête pour la revue", "a35d421d18e5fa87": "Convertie en brouillon", @@ -8928,7 +8938,6 @@ "aea940c95ef946b1": "Activer {provider}", "74abd6f7968e9fe0": "Supprimer l’instance {instanceId}", "eee76b40711fd902": "Pilote", - "21d0ef064eefa159": "Statut", "f31ce60f3f118c0d": "Nom affiché", "c45028de5c2f6cbb": "Libellé de l’instance", "cf69675106e4bf46": "Configuration", @@ -11229,7 +11238,6 @@ "a4f43ec3d6dbdef6": "Auto", "dc4980666a27677e": "Toutes les langues", "111dbc8f88feacff": "Aucune langue ne correspond.", - "003aa9115365f752": "Trier par", "736406a96ddadcd8": "Téléchargés uniquement", "0b5ab0399461fdbd": "Utiliser l’existant", "790951b4fc82052f": "Tester le modèle", diff --git a/apps/web/src/i18n/translations/ja.json b/apps/web/src/i18n/translations/ja.json index 879531a396d2a..e42e525440725 100644 --- a/apps/web/src/i18n/translations/ja.json +++ b/apps/web/src/i18n/translations/ja.json @@ -6938,6 +6938,8 @@ "2b91e67b513c524e": "エージェントがリンク", "29a3741379160657": "スタックで検出", "c39dd238b84966bd": "除外済み", + "21d0ef064eefa159": "ステータス", + "79fcc1b620b652bf": "最近リンクした順", "50fdb607048e425a": "ホストの状態を待っています", "1e64c95da299ca6c": "ウォッチ中", "b07208f457872b13": "{size} 件の {host} スタック: レイヤーをマージすると、その下のレイヤーも取り込まれます。", @@ -6948,9 +6950,13 @@ "13eb3e529a3e9bff": "スレッドから除外", "93cebe7fdcc9821e": "リンクされたプルリクエストを利用できません", "47c92b77099a6346": "この環境は複数のプルリクエストのリンクをサポートしていません。", + "96a45e508e9ede58": "{count, plural, other {# 件非表示}} · すべて表示", "e18c90152452a50e": "{openCount, plural, other {{openCount} 件オープン}} · {linkCount, plural, other {{linkCount} 件リンク済み}}", "106c1bf3308a8c33": "監視中: チェックの完了、コメントの追加、ブランチの競合が発生するとエージェントが起動します", "15a560968264b0ed": "開く", + "003aa9115365f752": "並べ替え", + "204167c06dc9fb6e": "ステータス", + "55cffd2c96741220": "スタックをグループ化", "a4e0e1e0bad3dcd8": "リンクされたプルリクエストはありません", "973b668999e33451": "このスレッドからエージェントが作成したプルリクエストがここに表示されます。URL や番号から自分でリンクすることもできます。", "f034c05267f161ce": [ @@ -7030,6 +7036,10 @@ "9a8fd03416860d24": "自分にレビューがリクエストされた PR", "26de318a087aa5ba": "スタックのデータが古い可能性があります。更新できませんでした。", "a1784dea82c2c283": "スタックを更新しています… 保存されたデータを表示しています。", + "e0b196715ec7a4a6": "下書き", + "b2be70822d55f16a": "オープン", + "2f8f985531c0c748": "マージ済み", + "7f7f6116f1c8f3a9": "クローズ済み", "731b95ffeba539c2": "マージをリクエストしました", "646b611650064cb9": "レビューの準備完了にしました", "a35d421d18e5fa87": "下書きに変換しました", @@ -8884,7 +8894,6 @@ "aea940c95ef946b1": "{provider} を有効にする", "74abd6f7968e9fe0": "インスタンス {instanceId} を削除", "eee76b40711fd902": "ドライバー", - "21d0ef064eefa159": "ステータス", "f31ce60f3f118c0d": "表示名", "c45028de5c2f6cbb": "インスタンスのラベル", "cf69675106e4bf46": "セットアップ", @@ -11179,7 +11188,6 @@ "a4f43ec3d6dbdef6": "自動", "dc4980666a27677e": "すべての言語", "111dbc8f88feacff": "一致する言語はありません。", - "003aa9115365f752": "並べ替え", "736406a96ddadcd8": "ダウンロード済みのみ", "0b5ab0399461fdbd": "既存のものを使用", "790951b4fc82052f": "モデルをテスト", diff --git a/apps/web/src/i18n/translations/ko.json b/apps/web/src/i18n/translations/ko.json index fae8ce2ec6fc4..b51ef42cba820 100644 --- a/apps/web/src/i18n/translations/ko.json +++ b/apps/web/src/i18n/translations/ko.json @@ -6941,6 +6941,8 @@ "2b91e67b513c524e": "에이전트가 연결함", "29a3741379160657": "스택에서 발견됨", "c39dd238b84966bd": "무시됨", + "21d0ef064eefa159": "상태", + "79fcc1b620b652bf": "최근 연결순", "50fdb607048e425a": "호스트 상태 대기 중", "1e64c95da299ca6c": "지켜보는 중", "b07208f457872b13": "{host} 스택({size}개): 레이어를 병합하면 그 아래 레이어도 함께 반영됩니다.", @@ -6951,9 +6953,13 @@ "13eb3e529a3e9bff": "스레드에서 제외", "93cebe7fdcc9821e": "연결된 풀 리퀘스트를 사용할 수 없음", "47c92b77099a6346": "이 환경은 여러 풀 리퀘스트 연결을 지원하지 않습니다.", + "96a45e508e9ede58": "{count, plural, other {#개 숨김}} · 모두 표시", "e18c90152452a50e": "{openCount, plural, other {{openCount}개 열림}} · {linkCount, plural, other {{linkCount}개 연결됨}}", "106c1bf3308a8c33": "지켜보는 중: 검사가 끝나거나, 누군가 댓글을 달거나, 브랜치가 충돌하면 에이전트가 깨어납니다", "15a560968264b0ed": "열기", + "003aa9115365f752": "정렬 기준", + "204167c06dc9fb6e": "상태", + "55cffd2c96741220": "스택 그룹화", "a4e0e1e0bad3dcd8": "연결된 풀 리퀘스트 없음", "973b668999e33451": "에이전트가 이 스레드에서 연 풀 리퀘스트가 여기에 표시됩니다. URL이나 번호로 직접 연결할 수도 있습니다.", "f034c05267f161ce": [ @@ -7033,6 +7039,10 @@ "9a8fd03416860d24": "내 검토를 요청한 PR", "26de318a087aa5ba": "스택 데이터가 오래되었을 수 있습니다. 새로 고칠 수 없었습니다.", "a1784dea82c2c283": "스택 새로 고치는 중… 저장된 데이터를 표시합니다.", + "e0b196715ec7a4a6": "초안", + "b2be70822d55f16a": "열림", + "2f8f985531c0c748": "병합됨", + "7f7f6116f1c8f3a9": "닫힘", "731b95ffeba539c2": "병합 요청됨", "646b611650064cb9": "검토 준비 완료로 표시됨", "a35d421d18e5fa87": "초안으로 변환됨", @@ -8886,7 +8896,6 @@ "aea940c95ef946b1": "{provider} 사용", "74abd6f7968e9fe0": "인스턴스 {instanceId} 삭제", "eee76b40711fd902": "드라이버", - "21d0ef064eefa159": "상태", "f31ce60f3f118c0d": "표시 이름", "c45028de5c2f6cbb": "인스턴스 레이블", "cf69675106e4bf46": "설정", @@ -11176,7 +11185,6 @@ "a4f43ec3d6dbdef6": "자동", "dc4980666a27677e": "모든 언어", "111dbc8f88feacff": "일치하는 언어가 없습니다.", - "003aa9115365f752": "정렬 기준", "736406a96ddadcd8": "다운로드한 항목만", "0b5ab0399461fdbd": "기존 항목 사용", "790951b4fc82052f": "모델 테스트", diff --git a/apps/web/src/i18n/translations/pt-BR.json b/apps/web/src/i18n/translations/pt-BR.json index 7010bef288b16..45dc91d0e5bb0 100644 --- a/apps/web/src/i18n/translations/pt-BR.json +++ b/apps/web/src/i18n/translations/pt-BR.json @@ -6971,6 +6971,8 @@ "2b91e67b513c524e": "Vinculado pelo agente", "29a3741379160657": "Encontrado na pilha", "c39dd238b84966bd": "Dispensado", + "21d0ef064eefa159": "Status", + "79fcc1b620b652bf": "Vinculadas recentemente", "50fdb607048e425a": "Aguardando o estado do host", "1e64c95da299ca6c": "Acompanhando", "b07208f457872b13": "Pilha de {size} no {host}: mesclar uma camada também integra as que estão abaixo dela.", @@ -6981,9 +6983,13 @@ "13eb3e529a3e9bff": "Dispensar da thread", "93cebe7fdcc9821e": "Pull requests vinculados indisponíveis", "47c92b77099a6346": "Este ambiente não permite vários pull requests vinculados.", + "96a45e508e9ede58": "{count, plural, one {# oculta} other {# ocultas}} · Mostrar todas", "e18c90152452a50e": "{openCount, plural, one {{openCount} aberto} other {{openCount} abertos}} · {linkCount, plural, one {{linkCount} vinculado} other {{linkCount} vinculados}}", "106c1bf3308a8c33": "Acompanhando: o agente é ativado quando as verificações terminam, alguém comenta ou o branch entra em conflito", "15a560968264b0ed": "Abrir", + "003aa9115365f752": "Ordenar por", + "204167c06dc9fb6e": "Status", + "55cffd2c96741220": "Agrupar pilhas", "a4e0e1e0bad3dcd8": "Nenhum pull request vinculado", "973b668999e33451": "Os pull requests que o agente abrir a partir desta thread aparecem aqui. Vincule um você mesmo por URL ou número.", "f034c05267f161ce": [ @@ -7063,6 +7069,10 @@ "9a8fd03416860d24": "PRs que pedem minha revisão", "26de318a087aa5ba": "Os dados da pilha podem estar desatualizados. Não foi possível atualizá-los.", "a1784dea82c2c283": "Atualizando a pilha… Mostrando os dados salvos.", + "e0b196715ec7a4a6": "Rascunho", + "b2be70822d55f16a": "Aberta", + "2f8f985531c0c748": "Mesclada", + "7f7f6116f1c8f3a9": "Fechada", "731b95ffeba539c2": "Merge solicitado", "646b611650064cb9": "Marcado como pronto para revisão", "a35d421d18e5fa87": "Convertido em rascunho", @@ -8927,7 +8937,6 @@ "aea940c95ef946b1": "Ativar {provider}", "74abd6f7968e9fe0": "Excluir a instância {instanceId}", "eee76b40711fd902": "Driver", - "21d0ef064eefa159": "Status", "f31ce60f3f118c0d": "Nome de exibição", "c45028de5c2f6cbb": "Rótulo da instância", "cf69675106e4bf46": "Configuração", @@ -11228,7 +11237,6 @@ "a4f43ec3d6dbdef6": "Automático", "dc4980666a27677e": "Todos os idiomas", "111dbc8f88feacff": "Nenhum idioma corresponde.", - "003aa9115365f752": "Ordenar por", "736406a96ddadcd8": "Só baixados", "0b5ab0399461fdbd": "Usar existente", "790951b4fc82052f": "Testar modelo", diff --git a/apps/web/src/i18n/translations/ru.json b/apps/web/src/i18n/translations/ru.json index 0766d953dd02d..fffccf7c32c4a 100644 --- a/apps/web/src/i18n/translations/ru.json +++ b/apps/web/src/i18n/translations/ru.json @@ -6971,6 +6971,8 @@ "2b91e67b513c524e": "Привязан агентом", "29a3741379160657": "Найден в стеке", "c39dd238b84966bd": "Скрыт", + "21d0ef064eefa159": "Статус", + "79fcc1b620b652bf": "Недавно связанные", "50fdb607048e425a": "Ожидание состояния хоста", "1e64c95da299ca6c": "Отслеживается", "b07208f457872b13": "Стек {host} из {size}: слияние слоя сливает и слои под ним.", @@ -6981,9 +6983,13 @@ "13eb3e529a3e9bff": "Убрать из треда", "93cebe7fdcc9821e": "Привязанные пул-реквесты недоступны", "47c92b77099a6346": "Это окружение не поддерживает несколько привязанных пул-реквестов.", + "96a45e508e9ede58": "{count, plural, one {# скрыт} few {# скрыто} many {# скрыто} other {# скрыто}} · Показать все", "e18c90152452a50e": "{openCount, plural, one {{openCount} открыт} few {{openCount} открыто} many {{openCount} открыто} other {{openCount} открыто}} · {linkCount, plural, one {{linkCount} привязан} few {{linkCount} привязано} many {{linkCount} привязано} other {{linkCount} привязано}}", "106c1bf3308a8c33": "Отслеживается: агент проснётся, когда завершатся проверки, кто-то оставит комментарий или в ветке появится конфликт", "15a560968264b0ed": "Открыть", + "003aa9115365f752": "Сортировать по", + "204167c06dc9fb6e": "Статус", + "55cffd2c96741220": "Группировать стеки", "a4e0e1e0bad3dcd8": "Нет привязанных пул-реквестов", "973b668999e33451": "Сюда попадают пул-реквесты, которые агент открывает из этого треда. Привяжите пул-реквест сами по URL или номеру.", "f034c05267f161ce": [ @@ -7063,6 +7069,10 @@ "9a8fd03416860d24": "PR, где запрошено моё ревью", "26de318a087aa5ba": "Данные стека могут быть устаревшими. Не удалось их обновить.", "a1784dea82c2c283": "Обновление стека… Показаны сохранённые данные.", + "e0b196715ec7a4a6": "Черновик", + "b2be70822d55f16a": "Открыт", + "2f8f985531c0c748": "Слит", + "7f7f6116f1c8f3a9": "Закрыт", "731b95ffeba539c2": "Слияние запрошено", "646b611650064cb9": "Отмечен как готовый к ревью", "a35d421d18e5fa87": "Переведён в черновик", @@ -8928,7 +8938,6 @@ "aea940c95ef946b1": "Включить {provider}", "74abd6f7968e9fe0": "Удалить экземпляр {instanceId}", "eee76b40711fd902": "Драйвер", - "21d0ef064eefa159": "Статус", "f31ce60f3f118c0d": "Отображаемое имя", "c45028de5c2f6cbb": "Название экземпляра", "cf69675106e4bf46": "Настройка", @@ -11229,7 +11238,6 @@ "a4f43ec3d6dbdef6": "Авто", "dc4980666a27677e": "Все языки", "111dbc8f88feacff": "Нет подходящих языков.", - "003aa9115365f752": "Сортировать по", "736406a96ddadcd8": "Только загруженные", "0b5ab0399461fdbd": "Использовать существующую", "790951b4fc82052f": "Проверить модель", diff --git a/apps/web/src/i18n/translations/sv.json b/apps/web/src/i18n/translations/sv.json index 5e6d1607edf31..60796958428c0 100644 --- a/apps/web/src/i18n/translations/sv.json +++ b/apps/web/src/i18n/translations/sv.json @@ -6977,6 +6977,8 @@ "2b91e67b513c524e": "Länkad av agenten", "29a3741379160657": "Hittad i stacken", "c39dd238b84966bd": "Avfärdad", + "21d0ef064eefa159": "Status", + "79fcc1b620b652bf": "Nyligen länkade", "50fdb607048e425a": "Väntar på värdens status", "1e64c95da299ca6c": "Bevakar", "b07208f457872b13": "{host}-stack med {size}: om du mergar ett lager landar de under det.", @@ -6987,9 +6989,13 @@ "13eb3e529a3e9bff": "Avfärda från tråden", "93cebe7fdcc9821e": "Länkade pull requests är inte tillgängliga", "47c92b77099a6346": "Den här miljön stöder inte flera länkade pull requests.", + "96a45e508e9ede58": "{count, plural, one {# dold} other {# dolda}} · Visa alla", "e18c90152452a50e": "{openCount, plural, one {{openCount} öppen} other {{openCount} öppna}} · {linkCount, plural, one {{linkCount} länkad} other {{linkCount} länkade}}", "106c1bf3308a8c33": "Bevakar: agenten vaknar när kontrollerna är klara, någon kommenterar eller grenen får konflikter", "15a560968264b0ed": "Öppna", + "003aa9115365f752": "Sortera efter", + "204167c06dc9fb6e": "Status", + "55cffd2c96741220": "Gruppera stackar", "a4e0e1e0bad3dcd8": "Inga länkade pull requests", "973b668999e33451": "Pull requests som agenten öppnar från den här tråden hamnar här. Länka en själv från en URL eller ett nummer.", "f034c05267f161ce": [ @@ -7069,6 +7075,10 @@ "9a8fd03416860d24": "PR:er som väntar på min granskning", "26de318a087aa5ba": "Stackdata kan vara inaktuella. Vi kunde inte uppdatera dem.", "a1784dea82c2c283": "Uppdaterar stacken… Visar sparade data.", + "e0b196715ec7a4a6": "Utkast", + "b2be70822d55f16a": "Öppen", + "2f8f985531c0c748": "Sammanslagen", + "7f7f6116f1c8f3a9": "Stängd", "731b95ffeba539c2": "Merge begärd", "646b611650064cb9": "Markerad som redo för granskning", "a35d421d18e5fa87": "Konverterad till utkast", @@ -8934,7 +8944,6 @@ "aea940c95ef946b1": "Aktivera {provider}", "74abd6f7968e9fe0": "Ta bort instansen {instanceId}", "eee76b40711fd902": "Drivrutin", - "21d0ef064eefa159": "Status", "f31ce60f3f118c0d": "Visningsnamn", "c45028de5c2f6cbb": "Instansetikett", "cf69675106e4bf46": "Konfiguration", @@ -11237,7 +11246,6 @@ "a4f43ec3d6dbdef6": "Auto", "dc4980666a27677e": "Alla språk", "111dbc8f88feacff": "Inga språk matchar.", - "003aa9115365f752": "Sortera efter", "736406a96ddadcd8": "Endast nedladdade", "0b5ab0399461fdbd": "Använd befintlig", "790951b4fc82052f": "Testa modell", diff --git a/apps/web/src/i18n/translations/zh.json b/apps/web/src/i18n/translations/zh.json index c86b9e6c55e41..bc1a5cd8612d9 100644 --- a/apps/web/src/i18n/translations/zh.json +++ b/apps/web/src/i18n/translations/zh.json @@ -6986,6 +6986,8 @@ "2b91e67b513c524e": "由智能体关联", "29a3741379160657": "在堆叠中发现", "c39dd238b84966bd": "已忽略", + "21d0ef064eefa159": "状态", + "79fcc1b620b652bf": "最近关联", "50fdb607048e425a": "等待托管平台状态", "1e64c95da299ca6c": "关注中", "b07208f457872b13": "{host} 堆叠共 {size} 层:合并某一层会同时合并其下方的层。", @@ -6996,9 +6998,13 @@ "13eb3e529a3e9bff": "从会话中忽略", "93cebe7fdcc9821e": "已关联的 PR 不可用", "47c92b77099a6346": "此环境不支持关联多个 pull request。", + "96a45e508e9ede58": "{count, plural, other {# 项已隐藏}} · 显示全部", "e18c90152452a50e": "{openCount, plural, other {{openCount} 个开放}} · {linkCount, plural, other {{linkCount} 个已关联}}", "106c1bf3308a8c33": "关注中:检查完成、有人评论或分支出现冲突时,智能体会被唤醒", "15a560968264b0ed": "打开", + "003aa9115365f752": "排序方式", + "204167c06dc9fb6e": "状态", + "55cffd2c96741220": "分组堆栈", "a4e0e1e0bad3dcd8": "没有已关联的 PR", "973b668999e33451": "智能体从本会话打开的 pull request 会显示在这里。你也可以通过 URL 或编号自行关联。", "f034c05267f161ce": [ @@ -7078,6 +7084,10 @@ "9a8fd03416860d24": "请求我审查的 PR", "26de318a087aa5ba": "堆叠数据可能已过期,未能刷新。", "a1784dea82c2c283": "正在刷新堆叠… 当前显示已保存的数据。", + "e0b196715ec7a4a6": "草稿", + "b2be70822d55f16a": "开放", + "2f8f985531c0c748": "已合并", + "7f7f6116f1c8f3a9": "已关闭", "731b95ffeba539c2": "已请求合并", "646b611650064cb9": "已标记为可审查", "a35d421d18e5fa87": "已转为草稿", @@ -8944,7 +8954,6 @@ "aea940c95ef946b1": "启用 {provider}", "74abd6f7968e9fe0": "删除实例 {instanceId}", "eee76b40711fd902": "驱动", - "21d0ef064eefa159": "状态", "f31ce60f3f118c0d": "显示名称", "c45028de5c2f6cbb": "实例标签", "cf69675106e4bf46": "设置", @@ -11252,7 +11261,6 @@ "a4f43ec3d6dbdef6": "自动", "dc4980666a27677e": "所有语言", "111dbc8f88feacff": "没有匹配的语言。", - "003aa9115365f752": "排序方式", "736406a96ddadcd8": "仅已下载", "0b5ab0399461fdbd": "使用已有", "790951b4fc82052f": "测试模型", diff --git a/packages/contracts/src/settings.ts b/packages/contracts/src/settings.ts index 678f58294c66a..7560eed49663f 100644 --- a/packages/contracts/src/settings.ts +++ b/packages/contracts/src/settings.ts @@ -72,6 +72,12 @@ export const DiffLayout = Schema.Literals(["stacked", "split"]); export type DiffLayout = typeof DiffLayout.Type; const DEFAULT_DIFF_LAYOUT: DiffLayout = "stacked"; +export const LinkedPullRequestSort = Schema.Literals(["status", "updated", "linked", "repository"]); +export type LinkedPullRequestSort = typeof LinkedPullRequestSort.Type; + +export const LinkedPullRequestStatus = Schema.Literals(["draft", "open", "merged", "closed"]); +export type LinkedPullRequestStatus = typeof LinkedPullRequestStatus.Type; + export const SidebarProjectSortOrder = Schema.Literals(["updated_at", "created_at", "manual"]); export type SidebarProjectSortOrder = typeof SidebarProjectSortOrder.Type; export const DEFAULT_SIDEBAR_PROJECT_SORT_ORDER: SidebarProjectSortOrder = "updated_at"; @@ -475,6 +481,15 @@ export const ClientSettingsSchema = Schema.Struct({ diffFilesCollapsed: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))), diffIgnoreWhitespace: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))), diffLayout: DiffLayout.pipe(Schema.withDecodingDefault(Effect.succeed(DEFAULT_DIFF_LAYOUT))), + linkedPullRequestSort: LinkedPullRequestSort.pipe( + Schema.withDecodingDefault(Effect.succeed("status" as const)), + ), + linkedPullRequestHiddenStatuses: Schema.Array(LinkedPullRequestStatus).pipe( + Schema.withDecodingDefault(Effect.succeed(["closed" as const])), + ), + linkedPullRequestGroupStacks: Schema.Boolean.pipe( + Schema.withDecodingDefault(Effect.succeed(true)), + ), environmentIdentificationMode: EnvironmentIdentificationMode.pipe( Schema.withDecodingDefault(Effect.succeed(DEFAULT_ENVIRONMENT_IDENTIFICATION_MODE)), ), @@ -2076,6 +2091,9 @@ export const ClientSettingsPatch = Schema.Struct({ diffFilesCollapsed: Schema.optionalKey(Schema.Boolean), diffIgnoreWhitespace: Schema.optionalKey(Schema.Boolean), diffLayout: Schema.optionalKey(DiffLayout), + linkedPullRequestSort: Schema.optionalKey(LinkedPullRequestSort), + linkedPullRequestHiddenStatuses: Schema.optionalKey(Schema.Array(LinkedPullRequestStatus)), + linkedPullRequestGroupStacks: Schema.optionalKey(Schema.Boolean), environmentIdentificationMode: Schema.optionalKey(EnvironmentIdentificationMode), glassOpacity: Schema.optionalKey(GlassOpacity), onboardingCompletedAt: Schema.optionalKey(Schema.NullOr(Schema.String)),