Skip to content

fix(issue-13): resolve theming, i18n, layout, and binary-open issues#14

Open
potato-security wants to merge 2 commits into
mainfrom
fix/issue-13-theme-unification
Open

fix(issue-13): resolve theming, i18n, layout, and binary-open issues#14
potato-security wants to merge 2 commits into
mainfrom
fix/issue-13-theme-unification

Conversation

@potato-security
Copy link
Copy Markdown
Collaborator

@potato-security potato-security commented Apr 17, 2026

关联问题

概要

本 PR 集中修复 issue #13 中的四类问题:主题与对比度、i18n 文案泄漏、UI/布局缺陷,以及二进制/归档文件被当作文本打开的问题。

主要改动

  • 统一全局主题语义层:补齐 panel、backdrop、button、input、select、badge、tabs、code surface 等主题语义,收敛明暗主题下的背景、边框、次级文字和交互态。
  • 修复多页面 UI/布局问题:覆盖 Chat、Editor、Settings、PromptManager、Tool Explorer、Workflow、FileTree、SnippetManager、Task/Monitor、Onboarding、Help 等页面的按钮、弹层、空状态、加载态、对齐、滚动和层级问题。
  • 补齐 i18n 与平台文案:修复 Tool Explorer、Workflow、Task Breakdown 等界面的硬编码文案、原始 key 泄漏和搜索文本本地化问题,并统一快捷键/平台相关文案处理。
  • 收敛交互组件风格:统一确认弹窗、复选类组件、列表项状态、工具审批与流式输出区域的视觉风格,避免主题切换后出现不可读或颜色撞底的问题。
  • 修复功能性 UX 缺陷:为编辑器文件打开路径增加保护,阻止二进制、压缩包和媒体文件被当作文本直接载入;统一错误提示,并补齐对应单元测试。
  • 增强 E2E 支撑:补充 Tool Explorer 相关 Tauri mock,确保当前 PR 覆盖到的 UI 路径可以稳定回归验证。

验证

  • npm run check:file
  • npm run test:run -- tests/unit/v0_3_3/tool-classification.test.ts
  • npm run test:run -- tests/unit/utils/fileActions.test.ts tests/unit/utils/fileSystemProtection.test.ts
  • PLAYWRIGHT_CHANNEL=chrome npx playwright test tests/e2e/workflow/workflow-dark-theme-validation.spec.ts tests/e2e/workflow/workflow-industrial-design.spec.ts --workers=1 --reporter=line --output=/tmp/ifai-playwright-workflow
  • PLAYWRIGHT_CHANNEL=chrome npx playwright test tests/e2e/section3/tool-explorer-button.spec.ts tests/e2e/ui/console-display-verification.spec.ts --workers=1 --reporter=line

备注

  • playwright.config.ts 和本地审计/计划清单文件未纳入本 PR。
  • 仓库当前 npm run lint 未作为门禁使用:脚本中的 ESLint 配置在当前仓库状态下不可直接运行,这不是本 PR 新引入的问题。

@potato-security potato-security force-pushed the fix/issue-13-theme-unification branch from b335d75 to 6a3df33 Compare April 17, 2026 06:26
@potato-security potato-security changed the title fix(theme): complete repo-wide theme unification audit fix(issue-13): resolve theming, i18n, layout, and binary-open issues Apr 20, 2026
@potato-security potato-security force-pushed the fix/issue-13-theme-unification branch from a228f53 to 6c38360 Compare April 21, 2026 02:59
LayoutSwitcher 组件在当前分支未挂载到 DOM,joyride 找不到目标
元素抛出 NotFoundError。动态检测目标是否存在,缺失时降级为 body。
@peterfei peterfei force-pushed the main branch 6 times, most recently from 0b5877b to eee76c3 Compare April 24, 2026 04:43
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.

[Bug]: UI/UX Report: Broken Theming, Missing i18n, Alignment, and Binary Handling (v0.4.1)

3 participants