feat(tip): rename premium coffee tiers

This commit is contained in:
2026-07-20 16:15:22 +08:00
parent 1f8bbe9022
commit 9b90f5c83d
3 changed files with 8 additions and 8 deletions
@@ -20,13 +20,13 @@ const items: readonly TipCoffeeTierItem[] = [
}, },
{ {
type: "medium", type: "medium",
displayName: "Golden Reserve", displayName: "Gilded Heart",
priceLabel: "US$ 9.99", priceLabel: "US$ 9.99",
unavailable: false, unavailable: false,
}, },
{ {
type: "large", type: "large",
displayName: "Imperial Grand Cru", displayName: "Crown Blossom",
priceLabel: "US$ 19.99", priceLabel: "US$ 19.99",
unavailable: false, unavailable: false,
}, },
@@ -67,8 +67,8 @@ describe("TipCoffeeTierSelector", () => {
act(() => root.render(<Harness />)); act(() => root.render(<Harness />));
expect(container.textContent).toContain("Velvet Espresso"); expect(container.textContent).toContain("Velvet Espresso");
expect(container.textContent).toContain("Golden Reserve"); expect(container.textContent).toContain("Gilded Heart");
expect(container.textContent).toContain("Imperial Grand Cru"); expect(container.textContent).toContain("Crown Blossom");
expect( expect(
container.querySelector<HTMLInputElement>('input[value="medium"]') container.querySelector<HTMLInputElement>('input[value="medium"]')
?.checked, ?.checked,
+2 -2
View File
@@ -29,13 +29,13 @@ describe("tip coffee configuration", () => {
}); });
expect(getTipCoffeeOption("medium")).toMatchObject({ expect(getTipCoffeeOption("medium")).toMatchObject({
amountCents: 999, amountCents: 999,
displayName: "Golden Reserve", displayName: "Gilded Heart",
image: { src: "/images/tip/medium.png", width: 1024, height: 1024 }, image: { src: "/images/tip/medium.png", width: 1024, height: 1024 },
planId: "tip_coffee_usd_9_99", planId: "tip_coffee_usd_9_99",
}); });
expect(getTipCoffeeOption("large")).toMatchObject({ expect(getTipCoffeeOption("large")).toMatchObject({
amountCents: 1999, amountCents: 1999,
displayName: "Imperial Grand Cru", displayName: "Crown Blossom",
image: { src: "/images/tip/large.png", width: 1024, height: 1024 }, image: { src: "/images/tip/large.png", width: 1024, height: 1024 },
planId: "tip_coffee_usd_19_99", planId: "tip_coffee_usd_19_99",
}); });
+2 -2
View File
@@ -32,7 +32,7 @@ const TIP_COFFEE_OPTION_BY_TYPE: Record<TipCoffeeType, TipCoffeeOption> = {
medium: { medium: {
type: "medium", type: "medium",
amountCents: 999, amountCents: 999,
displayName: "Golden Reserve", displayName: "Gilded Heart",
image: { image: {
src: "/images/tip/medium.png", src: "/images/tip/medium.png",
width: 1024, width: 1024,
@@ -43,7 +43,7 @@ const TIP_COFFEE_OPTION_BY_TYPE: Record<TipCoffeeType, TipCoffeeOption> = {
large: { large: {
type: "large", type: "large",
amountCents: 1999, amountCents: 1999,
displayName: "Imperial Grand Cru", displayName: "Crown Blossom",
image: { image: {
src: "/images/tip/large.png", src: "/images/tip/large.png",
width: 1024, width: 1024,