From b6523a15dc7f032b2804c07f2422daf89f8bcd88 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 12 Feb 2026 22:47:14 -0800 Subject: [PATCH] Use Yes/No labels for desktop worktree confirm Co-authored-by: codex --- apps/desktop/src/confirmDialog.test.ts | 4 ++-- apps/desktop/src/confirmDialog.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/confirmDialog.test.ts b/apps/desktop/src/confirmDialog.test.ts index 60b93e453939c51bee96fc74ac0c40e4189cdb26..4a4c0ddbed6c66a4896535ac2a03c087e4d56688 100644 --- a/apps/desktop/src/confirmDialog.test.ts +++ b/apps/desktop/src/confirmDialog.test.ts @@ -35,7 +35,7 @@ describe("showDesktopConfirmDialog", () => { expect(showMessageBoxMock).toHaveBeenCalledWith( ownerWindow, expect.objectContaining({ - buttons: ["Cancel", "Confirm"], + buttons: ["No", "Yes"], message: "Delete worktree?", }), ); @@ -49,7 +49,7 @@ describe("showDesktopConfirmDialog", () => { expect(result).toBe(false); expect(showMessageBoxMock).toHaveBeenCalledWith( expect.objectContaining({ - buttons: ["Cancel", "Confirm"], + buttons: ["No", "Yes"], message: "Delete worktree?", }), ); diff --git a/apps/desktop/src/confirmDialog.ts b/apps/desktop/src/confirmDialog.ts index 9238de50f9359e54cb04e3b104fea25499c569cc..1beda8543ba1d722065166a52f321f74083bf7e9 100644 --- a/apps/desktop/src/confirmDialog.ts +++ b/apps/desktop/src/confirmDialog.ts @@ -13,7 +13,7 @@ export async function showDesktopConfirmDialog( const options = { type: "question" as const, - buttons: ["Cancel", "Confirm"], + buttons: ["No", "Yes"], defaultId: CONFIRM_BUTTON_INDEX, cancelId: 0, noLink: true, -- 2.54.0