From 9b90f5c83d78a60d7f5c787d609d6c40edb3c483 Mon Sep 17 00:00:00 2001 From: chenhang Date: Mon, 20 Jul 2026 16:15:22 +0800 Subject: [PATCH] feat(tip): rename premium coffee tiers --- src/app/tip/__tests__/tip-coffee-tier-selector.test.tsx | 8 ++++---- src/lib/tip/__tests__/tip_coffee.test.ts | 4 ++-- src/lib/tip/tip_coffee.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/tip/__tests__/tip-coffee-tier-selector.test.tsx b/src/app/tip/__tests__/tip-coffee-tier-selector.test.tsx index eaf07347..e3bfa3e4 100644 --- a/src/app/tip/__tests__/tip-coffee-tier-selector.test.tsx +++ b/src/app/tip/__tests__/tip-coffee-tier-selector.test.tsx @@ -20,13 +20,13 @@ const items: readonly TipCoffeeTierItem[] = [ }, { type: "medium", - displayName: "Golden Reserve", + displayName: "Gilded Heart", priceLabel: "US$ 9.99", unavailable: false, }, { type: "large", - displayName: "Imperial Grand Cru", + displayName: "Crown Blossom", priceLabel: "US$ 19.99", unavailable: false, }, @@ -67,8 +67,8 @@ describe("TipCoffeeTierSelector", () => { act(() => root.render()); expect(container.textContent).toContain("Velvet Espresso"); - expect(container.textContent).toContain("Golden Reserve"); - expect(container.textContent).toContain("Imperial Grand Cru"); + expect(container.textContent).toContain("Gilded Heart"); + expect(container.textContent).toContain("Crown Blossom"); expect( container.querySelector('input[value="medium"]') ?.checked, diff --git a/src/lib/tip/__tests__/tip_coffee.test.ts b/src/lib/tip/__tests__/tip_coffee.test.ts index 32b2ff31..41b139d8 100644 --- a/src/lib/tip/__tests__/tip_coffee.test.ts +++ b/src/lib/tip/__tests__/tip_coffee.test.ts @@ -29,13 +29,13 @@ describe("tip coffee configuration", () => { }); expect(getTipCoffeeOption("medium")).toMatchObject({ amountCents: 999, - displayName: "Golden Reserve", + displayName: "Gilded Heart", image: { src: "/images/tip/medium.png", width: 1024, height: 1024 }, planId: "tip_coffee_usd_9_99", }); expect(getTipCoffeeOption("large")).toMatchObject({ amountCents: 1999, - displayName: "Imperial Grand Cru", + displayName: "Crown Blossom", image: { src: "/images/tip/large.png", width: 1024, height: 1024 }, planId: "tip_coffee_usd_19_99", }); diff --git a/src/lib/tip/tip_coffee.ts b/src/lib/tip/tip_coffee.ts index aff16941..2b72453c 100644 --- a/src/lib/tip/tip_coffee.ts +++ b/src/lib/tip/tip_coffee.ts @@ -32,7 +32,7 @@ const TIP_COFFEE_OPTION_BY_TYPE: Record = { medium: { type: "medium", amountCents: 999, - displayName: "Golden Reserve", + displayName: "Gilded Heart", image: { src: "/images/tip/medium.png", width: 1024, @@ -43,7 +43,7 @@ const TIP_COFFEE_OPTION_BY_TYPE: Record = { large: { type: "large", amountCents: 1999, - displayName: "Imperial Grand Cru", + displayName: "Crown Blossom", image: { src: "/images/tip/large.png", width: 1024,