From 9decf9afff6bb8b9017a08328bc64612ff6639e1 Mon Sep 17 00:00:00 2001 From: huyan Date: Tue, 18 Aug 2026 16:46:04 +0800 Subject: [PATCH 1/2] fix(invite): clarify reward copy The existing text mixed registration benefits with invite rewards. State the shared 200-point reward and daily rewarded-invite limit. Both invite surfaces now use concise subject-neutral wording. --- frontend/src/app/layout/app-header.tsx | 4 ++-- frontend/src/pages/invite/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/layout/app-header.tsx b/frontend/src/app/layout/app-header.tsx index afcda21d..7a9254c9 100644 --- a/frontend/src/app/layout/app-header.tsx +++ b/frontend/src/app/layout/app-header.tsx @@ -245,10 +245,10 @@ export function AppHeader({ quotaApis = defaultQuotaApis }: AppHeaderProps = {})

- 每日前 3 位好友,你各得 200 积分 + 邀请成功,双方各得 200 积分

- 好友注册共得 500 积分 + 每日前 3 次邀请可得奖励

邀请奖励

- 好友注册共得 500 积分;你每日前 3 位各得 200 积分,之后好友仍可获得奖励。 + 邀请成功,双方各得 200 积分;每日前 3 次邀请可得奖励。

From b930d11021db86489b501819b745458c1aba4a93 Mon Sep 17 00:00:00 2001 From: huyan Date: Tue, 18 Aug 2026 16:46:38 +0800 Subject: [PATCH 2/2] test(invite): align reward copy assertions Visible-copy tests still expected the ambiguous reward wording. Assert the shared reward and daily rewarded-invite limit. Future copy regressions now fail on both invitation surfaces. --- frontend/src/app/layout/app-header.test.tsx | 4 ++-- frontend/src/pages/invite/index.test.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/layout/app-header.test.tsx b/frontend/src/app/layout/app-header.test.tsx index 779c0671..3fc97e6c 100644 --- a/frontend/src/app/layout/app-header.test.tsx +++ b/frontend/src/app/layout/app-header.test.tsx @@ -253,8 +253,8 @@ describe('AppHeader', () => { renderHeader('/workspace') const hint = await screen.findByRole('status', { name: '邀请奖励提示' }) - expect(screen.getByText('每日前 3 位好友,你各得 200 积分')).toBeTruthy() - expect(screen.getByText('好友注册共得 500 积分')).toBeTruthy() + expect(screen.getByText('邀请成功,双方各得 200 积分')).toBeTruthy() + expect(screen.getByText('每日前 3 次邀请可得奖励')).toBeTruthy() expect(screen.getByRole('link', { name: '去看看邀请奖励' }).getAttribute('href')).toBe( '/account?section=invite', ) diff --git a/frontend/src/pages/invite/index.test.tsx b/frontend/src/pages/invite/index.test.tsx index 34e58d34..749bf56b 100644 --- a/frontend/src/pages/invite/index.test.tsx +++ b/frontend/src/pages/invite/index.test.tsx @@ -78,8 +78,8 @@ describe('InviteSection', () => { expect(screen.getByText('2')).toBeTruthy() expect(screen.getByText('100')).toBeTruthy() expect(screen.getByText('当前码注册')).toBeTruthy() - expect(screen.getByText(/好友注册共得 500 积分/)).toBeTruthy() - expect(screen.getByText(/每日前 3 位各得 200 积分/)).toBeTruthy() + expect(screen.getByText(/邀请成功,双方各得 200 积分/)).toBeTruthy() + expect(screen.getByText(/每日前 3 次邀请可得奖励/)).toBeTruthy() expect(screen.getByText('有效至 2026年9月16日')).toBeTruthy() })