@devries-cameron20 / t3code-1 / commits / 40a7f4b4b1
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Rename Open PR action label to View PR (#467)

- Update GitActionsControl quick/menu action text for existing pull requests - Align unavailable-state copy and tests with the new label

Kainoa Newton committed Mar 8, 2026 at 16:27 UTC 40a7f4b4b1780c24db24a201f5b0860ce9763028
3 files changed +14 -14
apps/web/src/components/GitActionsControl.logic.test.ts
+4 -4
@@ -42,7 +42,7 @@ describe("when: branch is clean and has an open PR", () => {
42 }),
43 false,
44 );
45 - assert.deepInclude(quick, { kind: "open_pr", label: "Open PR", disabled: false });
45 + assert.deepInclude(quick, { kind: "open_pr", label: "View PR", disabled: false });
46 });
47
48 it("buildMenuItems disables commit/push and enables open PR", () => {
@@ -78,7 +78,7 @@ describe("when: branch is clean and has an open PR", () => {
78 },
79 {
80 id: "pr",
81 - label: "Open PR",
81 + label: "View PR",
82 disabled: false,
83 icon: "pr",
84 kind: "open_pr",
@@ -199,7 +199,7 @@ describe("when: branch is clean, ahead, and has an open PR", () => {
199 },
200 {
201 id: "pr",
202 - label: "Open PR",
202 + label: "View PR",
203 disabled: false,
204 icon: "pr",
205 kind: "open_pr",
@@ -547,7 +547,7 @@ describe("when: branch has no upstream configured", () => {
547 );
548 assert.deepInclude(quick, {
549 kind: "open_pr",
550 - label: "Open PR",
550 + label: "View PR",
551 disabled: false,
552 });
553 });
apps/web/src/components/GitActionsControl.logic.ts
+3 -3
@@ -151,7 +151,7 @@ export function buildMenuItems(
151 hasOpenPr
152 ? {
153 id: "pr",
154 - label: "Open PR",
154 + label: "View PR",
155 disabled: !canOpenPr,
156 icon: "pr",
157 kind: "open_pr",
@@ -216,7 +216,7 @@ export function resolveQuickAction(
216 if (!gitStatus.hasUpstream) {
217 if (!isAhead) {
218 if (hasOpenPr) {
219 - return { label: "Open PR", disabled: false, kind: "open_pr" };
219 + return { label: "View PR", disabled: false, kind: "open_pr" };
220 }
221 return {
222 label: "Push",
@@ -266,7 +266,7 @@ export function resolveQuickAction(
266 }
267
268 if (hasOpenPr && gitStatus.hasUpstream) {
269 - return { label: "Open PR", disabled: false, kind: "open_pr" };
269 + return { label: "View PR", disabled: false, kind: "open_pr" };
270 }
271
272 return {
apps/web/src/components/GitActionsControl.tsx
+7 -7
@@ -98,7 +98,7 @@ function getMenuActionDisabledReason(
98 }
99
100 if (hasOpenPr) {
101 - return "Open PR is currently unavailable.";
101 + return "View PR is currently unavailable.";
102 }
103 if (!hasBranch) {
104 return "Detached HEAD: checkout a branch before creating a PR.";
@@ -374,12 +374,12 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
374 },
375 }
376 : shouldOfferOpenPrCta
377 - ? {
378 - actionProps: {
379 - children: "Open PR",
380 - onClick: () => {
381 - const api = readNativeApi();
382 - if (!api) return;
377 + ? {
378 + actionProps: {
379 + children: "View PR",
380 + onClick: () => {
381 + const api = readNativeApi();
382 + if (!api) return;
383 closeResultToast();
384 void api.shell.openExternal(prUrl);
385 },