fix(desktop): 未登录时账户菜单显示登录 - #3973
Conversation
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
| Filename | Overview |
|---|---|
| apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx | 未登录的本地模式账户菜单改用五语齐全的“登录”翻译键,原有显示条件和导航行为保持不变。 |
| apps/desktop/src/renderer/tests/userInfoSectionMobileDownload.test.tsx | 更新未登录菜单项的名称、变量和断言,同时继续覆盖菜单顺序及登录入口导航。 |
| apps/desktop/src/renderer/tests/userInfoSectionHover.test.ts | 更新源码结构测试,使其检查新的登录翻译键仍位于设置项之前。 |
Reviews (1): Last reviewed commit: "fix(desktop): 未登录时账户菜单显示登录" | Re-trigger Greptile
|
命中 UI 路径(apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx)但 description 未附界面效果证据——建议补充改动后效果:截图/录屏,或改动后界面的 HTML 页面(```html 代码块、.html 附件或在线预览链接),便于确认界面符合 DESIGN.md 设计规范 |
MagicLizi
left a comment
There was a problem hiding this comment.
代码重审通过:未登录账户菜单改为「登录」,当前 head 没有 P0/P1,conversation 已 resolve。
|
合了。未登录时侧栏还写「添加账号」,点进去才发现其实是登录——现在菜单直接说登录,这条路径终于对得上。 |
这次改了什么
摘要
未登录时,桌面侧边栏账户菜单误显示“登录更多账号”。改为复用已有五语
login.signIn文案,简体中文显示“登录”。变更类型
feat新功能fix缺陷修复refactor/perf重构或性能优化docs/test/chore文档、测试或工程维护范围
UI 变化
Desktop 侧边栏账户菜单:“登录更多账号” → “登录”。复用现有五语翻译、菜单与主题样式。
docs/design-rules/DESIGN.md§10 Theme System & Token Reference、§11 Voice & Content;沿用现有 Light/Dark 语义样式,使用与当前登录状态一致的简洁动作文案。怎么验证的
自动验证
以下检查均通过,复用本次改动完成后且代码未再变化的结果:
相关测试覆盖未登录菜单项、菜单顺序及点击后仍进入原登录流程。国际化检查仅有存量非阻断警告。
手工验证
已检查完整 diff 和五语
login.signIn翻译。未执行的验证
未启动 Desktop 做 Light/Dark 实机目检或截图;本次只替换已有翻译 key,不改布局或样式。未跑全量单测,由 CI 执行。
风险
风险分类
影响与回滚
提交前检查
git commit -s,见 DCO)