Skip to content

feat(settings): 优化系统设置界面并引入共享 Switch 组件 - #394

Draft
Loosand wants to merge 2 commits into
Stack-Cairn:mainfrom
Loosand:main
Draft

feat(settings): 优化系统设置界面并引入共享 Switch 组件#394
Loosand wants to merge 2 commits into
Stack-Cairn:mainfrom
Loosand:main

Conversation

@Loosand

@Loosand Loosand commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

关联 Issue

变更说明

优化桌面端与 Gateway WebUI 的系统设置体验。

  • 增加设置搜索功能,支持过滤导航项并显示本地化空状态。
  • 重新组织设置页面布局与分组,优化留白、边框和分隔线。
  • 改进执行模式、主题、代理、字体和下拉选择器的交互与视觉样式。
  • 引入基于 Base UI 的 shadcn 风格 Switch 组件。
  • 保留现有设置开关的调用接口,降低渐进式迁移风险。
  • 保持桌面端和 Gateway WebUI 的设置界面一致。

变更范围

  • 涉及模块:

    • agent-gui
    • agent-gateway/web
  • 主要路径:

    • crates/agent-gui/src/pages/SettingsPage.tsx
    • crates/agent-gui/src/pages/settings/SystemSettingsForm.tsx
    • crates/agent-gui/src/components/ui/switch.tsx
    • crates/agent-gateway/web/src/pages/SettingsPage.tsx
    • crates/agent-gateway/web/src/pages/settings/SystemSettingsForm.tsx
    • crates/agent-gateway/web/src/components/ui/switch.tsx
    • 两个前端的设置页翻译与共享控件

截图 / 运行预览

修改前

修改后

验证情况

  • 桌面端 GUI Biome 检查通过,保留仓库已有警告。
  • 桌面端 GUI TypeScript 编译及生产构建通过。
  • Gateway WebUI Biome 检查通过,保留仓库已有警告。
  • Gateway WebUI TypeScript 编译及生产构建通过。
  • 桌面端 GUI 测试:1433 项通过。
  • Gateway WebUI 测试:520 项通过。
  • 已在运行中的 Tauri 桌面应用内检查设置页面。

提交前检查

  • 已关联需求 Issue。
  • 已与目标分支同步,不存在合并冲突。
  • 变更范围集中,没有无关修改。
  • 未包含密钥、令牌或个人数据。
  • 本次变更不涉及部署或配置文档更新。
截屏2026-08-08 15 43 57 截屏2026-08-08 15 44 05

Loosand and others added 2 commits August 8, 2026 15:41
…component

- Introduced a new Switch component for better UI consistency.
- Implemented a search input in the SettingsPage for filtering navigation items.
- Updated translations for search placeholders and no results messages in both English and Chinese.
- Enhanced the layout and styling of the SettingsPage for improved user experience.
feat(settings): add customizable search functionality and new switch …
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

PR governance checks failed — this PR has been converted to draft.

  • No linked issue: the PR body must contain Closes #123 / Fixes #123 / Resolves #123. This project requires an issue before a PR — see the contribution guidelines.

Fix the items above, then click Ready for review to re-run the checks.

@StackCairn
StackCairn marked this pull request as draft August 8, 2026 07:48
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