Skip to content

feat(gui): 设置面板交互与排障能力重构 - #151

Merged
PeterBon merged 3 commits into
mainfrom
feat/gui-settings-overhaul
Nov 18, 2026
Merged

PeterBon merged 3 commits into
mainfrom
feat/gui-settings-overhaul

Conversation

@PeterBon

Copy link
Copy Markdown
Owner

改动

  • 飞书状态改为四态(未加载 / 刷新失败 / 未连接 / 已连接),刷新失败不再退化成扫码表单,避免误触覆盖凭据
  • 手动测试失败、历史刷新失败都有可见错误与重试;所有发请求按钮加 in-flight 禁用;「执行(真实触发)」二次确认
  • profile 改为下拉(只列已有 profile,运行中的标「运行中」并优先);运行中 profile 从 Desktop host 的 argv 探测,修复桌面端默认落回 web 的问题
  • 区块顺序改为 hooks 优先;手动测试/通知测试默认折叠;每条 hook 的高级字段收进「高级选项」
  • 测试表单按事件联动(reason datalist、tool 仅 tool 事件、数字字段收进折叠区)
  • 历史记录补 hook 编号、耗时、退出码、跨天日期、长错误展开;新增「只看失败」、单 hook 历史、失败徽章直达;折叠时不再拉取 200 条
  • 保存后展示实际写入与备份路径;飞书 hook 补齐改为「追加缺失项」,不覆盖已有 hooks;断开连接改为内联确认
  • 主题成对配色与对比度、12px 辅助字号、aria、窄宽布局、禁用态、暗色下拉统一

验证

  • tsc(host / client / test)全过
  • vitest run:536 passed
  • tsc + tsdown 构建通过,lib/ 已同步
  • 桌面 profile 本地 link 实机查看过新面板

Rework the Hooks settings panel around the review findings: Feishu four-state handling (unknown/error/connected/disconnected), visible test/history errors, in-flight button states and a confirmation before real triggers, a profile dropdown with the running profile detected from the Desktop host argv, hooks-first section order, collapsed advanced fields, event-aware tester inputs, richer history (hook index, duration, exit code, dates, failure filter, per-hook view), and theme-paired accessible styling.
GHSA-fc5q-39xc-vjpf has no patched release yet (first_patched_version is null); it only reaches the build tooling through tsdown. Document the exception so the audit gate stays meaningful.
basename() is platform-specific: a Windows fixture is not a valid parent on Linux. Build the fixture with join().
@PeterBon
PeterBon merged commit 4632781 into main Nov 18, 2026
4 checks passed
@PeterBon
PeterBon deleted the feat/gui-settings-overhaul branch November 18, 2026 01:39
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