Skip to content

Commit 2bda763

Browse files
mweinbachclaude
andcommitted
fix(web): arm64 translation warning no longer assumes macOS
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent f8a28fc commit 2bda763

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎apps/web/src/components/desktopUpdate.logic.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ describe("desktop update UI helpers", () => {
227227
).toBe(false);
228228
});
229229

230-
it("shows an Apple Silicon warning for Intel builds under Rosetta", () => {
230+
it("shows an ARM64 warning for x64 builds under emulation", () => {
231231
const state: DesktopUpdateState = {
232232
...baseState,
233233
hostArch: "arm64",
@@ -236,8 +236,8 @@ describe("desktop update UI helpers", () => {
236236
};
237237

238238
expect(shouldShowArm64IntelBuildWarning(state)).toBe(true);
239-
expect(getArm64IntelBuildWarningDescription(state)).toContain("Apple Silicon");
240-
expect(getArm64IntelBuildWarningDescription(state)).toContain("Intel build");
239+
expect(getArm64IntelBuildWarningDescription(state)).toContain("ARM64");
240+
expect(getArm64IntelBuildWarningDescription(state)).toContain("x64 build");
241241
});
242242

243243
it("changes the warning copy when a native build update is ready to download", () => {

‎apps/web/src/components/desktopUpdate.logic.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ export function getArm64IntelBuildWarningDescription(state: DesktopUpdateState):
6262

6363
const action = resolveDesktopUpdateButtonAction(state);
6464
if (action === "download") {
65-
return "This Mac has Apple Silicon, but T3 Code is still running the Intel build under Rosetta. Download the available update to switch to the native Apple Silicon build.";
65+
return "This device has an ARM64 processor, but T3 Code is still running the x64 build under emulation. Download the available update to switch to the native ARM64 build.";
6666
}
6767
if (action === "install") {
68-
return "This Mac has Apple Silicon, but T3 Code is still running the Intel build under Rosetta. Restart to install the downloaded Apple Silicon build.";
68+
return "This device has an ARM64 processor, but T3 Code is still running the x64 build under emulation. Restart to install the downloaded ARM64 build.";
6969
}
70-
return "This Mac has Apple Silicon, but T3 Code is still running the Intel build under Rosetta. The next app update will replace it with the native Apple Silicon build.";
70+
return "This device has an ARM64 processor, but T3 Code is still running the x64 build under emulation. The next app update will replace it with the native ARM64 build.";
7171
}
7272

7373
export function getDesktopUpdateButtonTooltip(state: DesktopUpdateState): string {

0 commit comments

Comments
 (0)