diff --git a/packages/client/ui-settings-account/README.i18n.yaml b/packages/client/ui-settings-account/README.i18n.yaml index 6600cbedad..c3d088de8e 100644 --- a/packages/client/ui-settings-account/README.i18n.yaml +++ b/packages/client/ui-settings-account/README.i18n.yaml @@ -2,5 +2,5 @@ # side as of the last confirmed-consistent state. Both languages carry equal authority; # after editing either side, bring the other along and re-record with: # pnpm run verify-translation-pairing --write packages/client/ui-settings-account/README.md -README.md: d15feec9850b7c3d1faf6a97bdc811278dc4d1a1 -README.zh.md: 113c67bc007240ea3afe4df2e94e73879872d44d +README.md: b08dc6434a6cabcb1cb6da48fc5cc46f5f0f8368 +README.zh.md: d912a92a4d8a5935c250182efd4326514784a10c diff --git a/packages/client/ui-settings-account/README.md b/packages/client/ui-settings-account/README.md index d15feec985..b08dc6434a 100644 --- a/packages/client/ui-settings-account/README.md +++ b/packages/client/ui-settings-account/README.md @@ -38,7 +38,7 @@ The account menu's Feedback entry opens the Feishu questionnaire in the system b The sidebar account menu uses the shared Menu surface and backdrop blur. The signed-in menu keeps the shared row typography; the signed-out menu carries its own wider rows and its Contact us copy for the Feedback entry. -The account card’s More account information link opens `https://platform.deepseek.com` in the system browser. +The account card’s More account information link opens the root of the Host-provided Platform usage URL in the system browser, following `platformOrigin`. Sign out first queries running account-token tasks and opens a confirmation dialog. The warning describes interruption when such tasks exist; otherwise it explains that data is retained and the account can be signed in again. Cancel, close, and Escape dismiss without signing out. Failed impact queries still open confirmation with an explicit unknown-task warning; failed sign-out keeps the dialog available for retry. diff --git a/packages/client/ui-settings-account/README.zh.md b/packages/client/ui-settings-account/README.zh.md index 113c67bc00..d912a92a4d 100644 --- a/packages/client/ui-settings-account/README.zh.md +++ b/packages/client/ui-settings-account/README.zh.md @@ -38,7 +38,7 @@ Desktop 的用量和充值操作在 48px 返回栏下方打开隔离的原生 Pl 侧边栏账号菜单使用公共 Menu 的表面和背景模糊。已登录菜单沿用公共菜单项排版;未登录菜单使用自己的较宽菜单项,并将“意见反馈”入口的文案改为“联系我们”。 -账号卡片的“更多账号信息”链接通过系统浏览器打开 `https://platform.deepseek.com`。 +账号卡片的“更多账号信息”链接通过系统浏览器打开 Host 提供的 Platform 用量 URL 的根路径,遵循 `platformOrigin` 配置。 退出登录先查询正在使用账号 token 的任务,再打开确认弹窗。有此类任务时提示执行将被打断,否则提示数据保留且可重新登录。取消、关闭和 Escape 均不退登。影响查询失败仍打开确认弹窗,并明确提示无法确认任务状态;退登失败保留弹窗以便重试。 diff --git a/packages/client/ui-settings-account/src/client/AccountSection.tsx b/packages/client/ui-settings-account/src/client/AccountSection.tsx index b8482330fe..701d2a775f 100644 --- a/packages/client/ui-settings-account/src/client/AccountSection.tsx +++ b/packages/client/ui-settings-account/src/client/AccountSection.tsx @@ -121,7 +121,7 @@ export function AccountSection({ t, useAccount, useTheme, start, cancel, refresh {status} - {signedIn && + {signedIn && {t('accountInfo')} } diff --git a/packages/client/ui-settings-account/tests/account.client.spec.tsx b/packages/client/ui-settings-account/tests/account.client.spec.tsx index 3a8eb98383..05dcd079d2 100644 --- a/packages/client/ui-settings-account/tests/account.client.spec.tsx +++ b/packages/client/ui-settings-account/tests/account.client.spec.tsx @@ -359,11 +359,11 @@ it.each([[], [{ currency: 'CNY' as const, balance: '0.00' }, { currency: 'USD' a }, ) -it('opens more account information externally without invoking the embedded Platform bridge', () => { +it('opens more account information at the configured Platform origin without invoking the embedded bridge', () => { const platform: PlatformBridge = { open: vi.fn(), close: vi.fn(), setBounds: vi.fn() } mount({ status: 'credential-stored', attempt: null }, en, undefined, platform) const link = screen.getByRole('link', { name: en.accountInfo }) - expect(link.getAttribute('href')).toBe('https://platform.deepseek.com') + expect(link.getAttribute('href')).toBe('http://localhost:8081/') expect(link.getAttribute('target')).toBe('_blank') expect(link.getAttribute('rel')).toBe('noopener noreferrer') fireEvent.click(link)