Skip to content

fix(desktop): 让账号页设备 ID 可展开#280

Merged
Xavier-Trump merged 1 commit into
dev/trumpfrom
fix/desktop-account-device-expand
Jun 5, 2026
Merged

fix(desktop): 让账号页设备 ID 可展开#280
Xavier-Trump merged 1 commit into
dev/trumpfrom
fix/desktop-account-device-expand

Conversation

@Xavier-Trump
Copy link
Copy Markdown
Collaborator

Summary

  • 让 Desktop 设置 > 账号里的桌面设备卡片支持展开完整设备 ID。
  • 默认仍显示短 ID,展开后用可换行等宽文本显示完整 ID,避免横向溢出。
  • 补充中英文 aria 文案和 SummaryCard focused 单测。

Test Plan

  • python JSON parse for Desktop zh/en locales
  • cd app/desktop && corepack.cmd pnpm exec vitest run src/components/settings/primitives/SummaryCard.test.tsx --reporter=dot
  • cd app/desktop && corepack.cmd pnpm typecheck
  • cd app/desktop && corepack.cmd pnpm exec eslint src/components/settings/primitives/SummaryCard.tsx src/components/settings/primitives/SummaryCard.test.tsx src/components/settings/sections/AccountSection.tsx
  • cd app/desktop && corepack.cmd pnpm test:ci
  • Playwright probe at 1556x911 and 900x820: account page opens in zh, full device ID hidden before expand, visible after expand, aria-expanded toggles, no horizontal overflow
  • git diff --check

Notes

  • Default cd app/desktop && corepack.cmd pnpm test still hits the existing shared-ui duplicate React invalid-hook-call debt in ../shared tests; CI split entrypoint test:ci passes.

@Xavier-Trump Xavier-Trump merged commit 9980096 into dev/trump Jun 5, 2026
21 of 24 checks passed
@Xavier-Trump Xavier-Trump deleted the fix/desktop-account-device-expand branch June 5, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant