From 3c7b0c30e03ef8d687afb6960f98ee9c110a6a84 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 23 Jul 2026 10:53:41 +0800 Subject: [PATCH] refactor(private-zone): use canonical product name --- e2e/specs/mock/favorite-menu-navigation.spec.ts | 10 +++++----- src/app/profile/profile-screen.tsx | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/e2e/specs/mock/favorite-menu-navigation.spec.ts b/e2e/specs/mock/favorite-menu-navigation.spec.ts index aa6a1708..aad4963a 100644 --- a/e2e/specs/mock/favorite-menu-navigation.spec.ts +++ b/e2e/specs/mock/favorite-menu-navigation.spec.ts @@ -57,16 +57,16 @@ test("favorite entry and three-tab Menu navigation render on the real pages", as name: "Primary navigation", }); await expect(navigation).toContainText("Chat"); - await expect(navigation).toContainText("Elio Private Zoom"); + await expect(navigation).toContainText("Elio Private Zone"); await expect(navigation).toContainText("Menu"); await savePreview(page, `${mobile ? "mobile" : "desktop"}-splash.png`); - await page.goto("/characters/elio/private-zoom"); + await page.goto("/characters/elio/private-zone"); await expect(page.getByRole("button", { name: "Save CozSweet" })).toBeVisible(); await expect(page.getByRole("button", { name: "Menu" })).toBeVisible(); await savePreview( page, - `${mobile ? "mobile" : "desktop"}-private-zoom.png`, + `${mobile ? "mobile" : "desktop"}-private-zone.png`, ); await page.getByRole("button", { name: "Menu" }).click(); @@ -111,7 +111,7 @@ async function registerFavoriteMenuMocks(page: Page): Promise { }), }); }); - await page.route("**/api/private-zoom/albums**", async (route) => { + await page.route("**/api/private-zone/albums**", async (route) => { await route.fulfill({ json: apiEnvelope({ items: [], creditBalance: 80 }), }); @@ -162,7 +162,7 @@ async function registerFavoriteMenuMocks(page: Page): Promise { }); return; } - if (pathname === "/api/private-zoom/albums") { + if (pathname === "/api/private-zone/albums") { await route.fulfill({ json: apiEnvelope({ items: [], creditBalance: 80 }), }); diff --git a/src/app/profile/profile-screen.tsx b/src/app/profile/profile-screen.tsx index 2a0899da..7fb3028e 100644 --- a/src/app/profile/profile-screen.tsx +++ b/src/app/profile/profile-screen.tsx @@ -191,14 +191,14 @@ export function ProfileScreen({ returnTo }: ProfileScreenProps) { navigator.push(navigation.splashUrl, { scroll: false }) } - onPrivateZoomClick={() => - navigator.push(characterRoutes.privateZoom, { scroll: false }) + onPrivateZoneClick={() => + navigator.push(characterRoutes.privateZone, { scroll: false }) } onMenuClick={() => undefined} />