Repository navigation
feat(ui): comprehensive UI & UX polish across AI Workbench and Management Console - #1512
Robert0622 wants to merge 7 commits into
Conversation
…observability spacing
Resolve conflicts with #1440 (sidebar 个人/定时任务 tabs): - chatbot/src/App.jsx: keep main's tabbed session list; re-apply the guest empty-state text to the personal tab. - chatbot/src/navigation.css: keep main's 10px create-row margin that leaves room for the new bucket tabs. Co-Authored-By: Claude Code <noreply@anthropic.com>
… on the scheduled tab - web/i18n-en.js: add entries for the new guest session label, runner bind-code placeholder, role empty states, issue search placeholder and runner onboarding step, which otherwise stayed Chinese in English mode. - chatbot/src/App.jsx: guests also see 登录后查看历史会话 on the 定时任务 tab (added by #1440) instead of a permanent 正在连接…. - Tests: webtest i18n-ui-polish, chatbot guest sidebar case. Co-Authored-By: Claude Code <noreply@anthropic.com>
…ter widening - web/app/issues-list.css: priority pill text is mixed 70% toward --hui-text, so urgent/high/medium reach 5.8/5.0/5.6:1 on their tints in the light theme (were 4.0/3.3/3.8) and stay above 7:1 in dark; low uses --hui-secondary (6.0:1, dark 8.6:1); the label returns to 12px. - chatbot/src/navigation.css: the 新对话 label gets the same mix (5.6:1 on its tint, was 3.8:1). - chatbot/src/App.jsx: narrowing below 1001px still hides the sidebar, and widening again restores the desktop state instead of leaving it closed. Co-Authored-By: Claude Code <noreply@anthropic.com>
CR + 本机部署实测:#1512 UI/UX polish(head
|
| main | PR | |
|---|---|---|
| 紧急 | --hui-error 文字,白底,通过 | #c15161 文字,#f9eeef 底,4.01 |
| 高 | --hui-text,通过 | --hui-warn #b7791f 文字,#f8f2e9 底,3.27 |
| 中 | 通过 | #7b61ff 文字,#f4f2ff 底,3.80 |
| 低 | 2.79(原来就不达标) | 2.79 |
| 字号 | 13px | 11.5px |
暗色主题下只有「低」不达标(3.65),其余都通过。建议:文字用加深的色阶(如 color-mix(in srgb, var(--hui-warn) 70%, #000)),或者「高」保留 --hui-text,再把字号回到 12–13px。


P2-2 浅色主题:工作台侧栏「新对话」按钮 3.77:1(chatbot/src/navigation.css .new-chat-button)
#7b61ff 文字配 9% tint 底色 #f3f1ff;main 上用的是中性文字色。暗色主题 #a08aff 是达标的。建议浅色下文字改用更深的紫(比如 #5b45d6 这一档)。

P3-1 工作台侧栏跨断点后不会恢复打开(chatbot/src/App.jsx 的 onBreakpoint)
复现:桌面 1440 宽打开工作台,侧栏是展开的。把窗口缩到 900,侧栏自动收起,这是预期的;再拉回 1440,侧栏还是收起状态,main 上会保持展开。另外 PR 描述写的是「<1001px 选择/导航后自动收起」,但代码只在跨断点时收起;点会话后是否收起,仍然走原来的 innerWidth < 850 判断,这部分实测与 main 一致。建议变宽时恢复 setSidebar(true),或者把描述改成和实际行为一致。

P3-2 白字配主色 #7b61ff 只有 4.2:1:登录页「创建并进入」、主按钮、头像都是这样。比 main 的 #5b8cff(3.16)有改进,但还没到 4.5。可以考虑浅色主色用 #6d50f5 或更深的值,属于设计取舍,不阻塞。
已核对、没有问题的点
- i18n:224cc31e 在英文界面下有几处会显示中文(访客弹层「访客会话 · 未登录」、绑定码占位、角色空状态、需求搜索 placeholder、Runner 第 3 步)。60b0ced1 实测已经全部恢复成英文,例如
Guest session · Not signed in、<Generated after sign-in>、Fuzzy search titles, IDs, or descriptions。英文模式下各页面残留的中文数量与 main 相同或更少。「N 条 LOOP」在英文下显示为0 LOOPs,正常。 - JS 行为:
#sopHealthFilter/#sopSort改用enhanceSelect后,只剩 2 个 trigger 和 2 个 chevron,原生 select 隐藏了;通过 UI 选「从未运行」后,value 和列表都跟着变化,change事件正常。- 进入 #/flow 时,宽屏下设置侧栏会自动收起,画布从 1051px 变成 1355px;
#settingsSidebarExpand可以重新展开,回到 #/sops 侧栏也会恢复展开。 - done 状态的需求在列表里不再显示「触发」,和详情菜单里把 done 当已关闭的处理一致,我认为是有意的改动。
- 访客模式:
refreshRunners和ensureRunnerBindCode不再报错弹 toast(main 进执行机器页会弹 2 条);执行机器选择器显示「登录后选择机器」,main 会一直停在「加载执行机器…」;侧栏空状态也正确。 - 弹窗里的 SVG 关闭图标都是 16×16 正常渲染,按钮带
aria-label。
- 对比度总体:暗色主题各页面不达标的项比 main 少(例如 #/issues 5→4、设置页 2→1);登录页浅色从 2 项降到 1 项。新增的不达标只有上面 P2 那两处。
- 工作台首页 hero:暗色下 h1 和副标题都可见,opacity 为 1,副标题不再等 1.24s 的遮罩动画。移动端 390 宽各页面都没有横向溢出。
对照截图(左 main / 右 PR)
工作台(浅色/暗色,桌面)(6 张)
light-zh-d-home
dark-zh-d-home
light-zh-d-chat
dark-zh-d-chat
light-zh-d-artifacts
dark-zh-d-artifacts
管理台页面(17 张)
light-zh-d-issues
dark-zh-d-issues
light-zh-d-sops
dark-zh-d-sops
sops-filter-enhanced
light-zh-d-flow
dark-zh-d-flow
light-zh-d-runners
dark-zh-d-runners
light-zh-d-settings
dark-zh-d-settings
light-zh-d-approvals
light-zh-d-agents
light-zh-d-observability
issue-edit-modal-light
light-zh-d-login
dark-zh-d-login
英文界面(11 张)
light-en-d-home
light-en-d-issues
light-en-d-runners
light-en-d-agents
light-en-d-settings
dark-en-d-issues
dark-en-d-runners
guest-light-en-popover
guest-light-en-runners
guest-dark-zh-popover
guest-dark-zh-runners
移动端 390×844(8 张)
light-zh-m-home
dark-zh-m-home
light-zh-m-chat
dark-zh-m-chat
light-zh-m-issues
dark-zh-m-issues
light-zh-m-login
light-zh-m-settings
截图全集见 release review-assets-1128-0200-pr1512(Robert0622/LoopForge),没有新开分支。
crispinhu27
left a comment
There was a problem hiding this comment.
初审 60b0ced1:REQUEST_CHANGES(1 条 [P2],见行内评论)
范围:PR 相对 main fd039e51 的全部改动(chatbot/ 与 web/ 的样式、文案和少量行为调整),以及作者 18:30Z 后推送的 224cc31e(合入 main)与 60b0ced1(英文文案、定时任务页签访客提示)。
已确认问题
- [P2]
web/app.js:2115进入#/flow时收起设置侧栏,打开 AI 助手后节点库不再自动收起,必需检查browser的 e2e「LOOP designer: all nodes stay in view when the AI assistant closes」失败(Expected 48 / Received 256),platform-required随之失败;main 上browser通过,本地 head 与 main 对照复现,详见行内评论。
验证(无凭据隔离用户、MariaDB + 合成数据、Chromium)
- 早先 head
711b1281与 main 的冲突(chatbot/src/App.jsx、chatbot/src/navigation.css)在60b0ced1合入 main 后已消失;检查了合并结果,main 新增的会话侧栏双栏分栏(定时任务页签)保留,访客提示也补到了定时任务页签。 go vet ./web/... ./cmd/agentflow、go build ./cmd/agentflow、go test ./web/...通过;webtest 397/397;chatbot vitest 553 项中 1 项在机器满载时超时,单独重跑该文件 26/26 通过;vite build单独运行通过。- 浏览器实测:
711b1281上英文界面的中英混排(搜索框提示、Runner 第 3 步、角色空状态、「访客会话 · Not signed in」)在60b0ced1上已改为英文;访客状态下会话/定时任务页签显示「登录后查看历史会话」,机器选择器显示「登录后选择机器」;视口从 1280 缩到 900 时侧栏自动收起;首页标题在亮/暗色下都可见,无叠影。
未验证(不作为本次阻塞理由)
web/app/issue-model.js把status==='done'的判断提到 waiting/failed 分支之前:若需求被手动标为 done 而运行仍在等确认或已失败,行内按钮可能只剩「查看」。未实测,请作者确认是否符合预期。- 本地未跑完整 e2e Playwright(缺 Docker/bwrap),只复现了上面这一条失败用例;本地
#nodes .flow-node未渲染(head/main 相同),因此 nodesFit 只在 CI 结果中体现。
截图(head/main 的 #/flow 打开 AI 助手前后等)因 GitHub Review 接口不支持上传图片,未附在评论中。
合 main 解冲突 + 修复(head
|
| 场景 | main | 224cc31e / 60b0ced1(修复前) |
2e1c4147 |
|---|---|---|---|
| 英文 #/issues 搜索 placeholder | Fuzzy search titles, or search by ID… | 模糊搜索标题、编号或描述 | Fuzzy search titles, IDs, or descriptions |
| 英文 角色搜索无结果 | 没有匹配的角色。 Adjust your search… | 没有匹配的角色 尝试更换关键词,或清除筛选条件。 | No matching Roles Try different keywords, or clear the filters. |
| 英文 Runner 第 3 步 | Account login for Claude Code, Codex and Antigravity | 支持 Claude Code / Codex / Antigravity 账号登录 | Account login for Claude Code, Codex and Antigravity |
| 英文 访客资料卡 / 绑定码 | Guest Session / Generating… | 访客会话 · 未登录 | Guest session · Not signed in / <Generated after sign-in> |
| 访客打开工作台「定时任务」页签 | 正在连接…(一直不变) | 正在连接…(一直不变) | 登录后查看历史会话 |
| 浅色主题 pill 对比度:紧急 / 高 / 中 / 低 | 4.55 / 15.27 / 6.03 / 2.79 | 4.00 / 3.26 / 3.81 / 2.79 | 5.83 / 4.96 / 5.64 / 6.03 |
| 暗色主题 pill 对比度 | 7.66 / 15.74 / 8.64 / 3.65 | 6.59 / 9.26 / 5.96 / 3.65 | 8.18 / 10.20 / 7.85 / 8.64 |
| 「新对话」对比度(浅 / 暗) | 17.7 / 15.7(中性色) | 3.77 / 5.86 | 5.89 / 7.73 |
| 1440→900→1440 | 侧栏始终打开 | 回到 1440 后仍然收起 | 回到 1440 后恢复打开;用户自己收起的,来回缩放后仍保持收起 |
对比度按 Chromium 计算色测得(WCAG 公式)。中文界面下这些文案和 PR 原意一致,没有变化。另外用真实模型 CodeBuddy iOA deepseek-v4.1-flash 跑了一轮工作台对话,回复包含标题、引用、bash 代码块和列表,亮色和暗色主题都正常渲染,选中行的 accent 竖条也正常。页面没有报 JS 错误。
本地验证(2e1c4147)
npm --prefix chatbot test:554/554 通过(新增访客两页签、跨断点恢复两个用例,去掉修复后都会失败);npm --prefix chatbot run build通过。npm --prefix webtest test:397 pass,0 fail(新增i18n-ui-polish.test.mjs,去掉词条后失败)。go build ./...、go vet ./web/... ./internal/httpapi/...、go test ./web/...、python3 -I scripts/check-public.py通过。本 PR 不改 Go 文件;gofmt -l列出的文件在 main 上同样存在,没有改动。
说明
- 和 fix(web): 全局 toast 改到右下角,不再挡住页头「发布版本」等主操作 #1501 在
web/preferences.css、和 fix(web): 执行机器页英文界面不再整页显示中文与中英混排 #1513 在web/app/runners.js会冲突(都是相邻行),后合入的一方需要再解决一次。 issue-model.js对status=done的需求隐藏「触发」等主操作,这和同文件的菜单把 done 当作已关闭的处理一致,判断为有意改动,没有改。
…when the designer has room #1512 folds the settings sidebar on entering #/flow, which widens the designer body at 1440px from 1051px to 1355px. layoutTight() then keeps the 256px node library open next to the assistant drawer, and all nodes still fit. Check both cases: 1440px keeps the library open, and 1100px still folds it to the 48px rail. Co-Authored-By: Claude Code <noreply@anthropic.com>
复核
|
| 紧急 | 高 | 中 | 低 | |
|---|---|---|---|---|
| 浅色 main | 4.55 | 15.27 | 6.03 | 2.79 |
| 浅色 PR | 5.85 | 4.97 | 5.62 | 6.03 |
| 暗色 main | 7.66 | 15.74 | 8.64 | 3.65 |
| 暗色 PR | 8.16 | 10.14 | 7.90 | 8.64 |
| 现在 4 档在两种主题下都 ≥4.5,「低」比 main 还好。 | ||||
![]() |

Guest session · Not signed in、绑定码 <Generated after sign-in>、搜索 placeholder)、访客两个页签的空状态、机器选择器、执行机器页 0 条 toast、SOP 筛选的 enhanceSelect(2 个 trigger,选项切换生效)、done 需求不显示「触发」、暗色首页 hero、进 #/flow 收起设置侧栏且回到 #/sops 恢复,都和上一轮一致。对比度扫描:#/issues 不达标项浅色 12→11、暗色 5→3,首页/会话/登录页没有新增不达标。P2(阻塞合并):faa3e214 的新 e2e 在 1100 那轮先断言 nodesFit 就失败了
- CI:run 46054957277 / job 140695078016,
ui/02-interactions.spec.mjs:271expect.poll(nodesFit).toBe(true)超时(Received false),其余 26 条通过。 - 原因:1440 那轮能过(期望节点库保持 256,与实测一致)。进入 1100 那轮时,测试只调用了
setViewportSize,没有重新进入设计器;画布不会因为窗口缩放重新居中,所以还没打开 AI 助手 nodesFit 就已经是 false。main 上同样的步骤结果也一样,属于原有行为,不是本 PR 引入的回退。 - 本机复现:按 e2e 的数据建 3 个 script 节点(x=90/425/780)。
- 1440→1100 只缩窗口:第 3 个节点 right=1345 > canvas right=1085,fit=false(main 是 1353 > 1085,同样 false)。
- 1100 下重新进设计器:开始 / 打开 AI 助手 / 关闭三步全部 fit=true,节点库 256→48→256。
- 各宽度打开 AI 助手后的节点库宽度:main 在 1440/1280/1180/1100 都收成 48;PR 在 1440/1280 保持 256,在 1180/1100 收成 48。这与作者的说明一致,节点都还在视野内,所以「进入设计器收起设置侧栏」这个设计本身我没有意见。
- 建议:1100 那轮在
setViewportSize之后重新page.goto('/#/flow/'+wf)并等节点渲染,或者把 1100 拆成一个独立的 test。修完之后需要browser和platform-required转绿。

crispinhu27 18:55Z 意见的逐条核实
- [P2] 进入 #/flow 收起设置侧栏后,打开 AI 助手节点库不再收起,导致 browser 失败:部分解决。作者选择保留这个设计、改测试预期,我认可这个方向(实测见上);但改后的测试本身还是红的,需要按上面的建议再改一次。
- 未验证项「done 判断提到 waiting/failed 分支之前」:实测 done 需求在列表里只剩「更多」菜单,和详情菜单里把 done 当已关闭的处理一致,作者已确认是有意的。如果手动标 done 的需求运行还在等确认,列表里就看不到「去确认」,但详情页仍可以处理,不阻塞。
仍然存在(不阻塞本 PR)
- 和 fix(web): 全局 toast 改到右下角,不再挡住页头「发布版本」等主操作 #1501 在
web/preferences.css、和 fix(web): 执行机器页英文界面不再整页显示中文与中英混排 #1513 在web/app/runners.js有文本冲突,后合入的一方需要手工解决。 - 白字配主色 #7b61ff 只有 4.2:1,属于设计取舍。
截图在 release review-assets-1128-0200-pr1512(pr1512-r2-*),没有新开分支。
Resizing alone does not re-centre the canvas, so the 1100px round could start with the third node outside the canvas before the assistant opened. Co-Authored-By: Claude Code <noreply@anthropic.com>
复核
|
crispinhu27
left a comment
There was a problem hiding this comment.
复审:#1512 UI/UX polish(head 7fa55fbe,base main fd039e51)
结论:APPROVE。 上次 REQUEST_CHANGES(6092305568,基于 60b0ced1)的唯一阻塞项已在当前 head 上实测修复,增量 60b0ced1..7fa55fbe(5 个文件,+85/−20)未发现新的阻塞问题。
历史问题
- [P2] 进入
#/flow收起设置侧栏后,打开 AI 助手节点库不再收成 48px,导致 e2e 02-interactions.spec.mjs:243 失败:FIXED。复测细节见原线程 r4723187299,线程已 resolve。
增量的实测(无凭据、无网络的隔离用户,MariaDB 11.8 + 合成数据,真实 Chromium)
chatbot/src/App.jsx:把窗口宽度按 1440→900→1440 调整,侧栏依次显示、隐藏、恢复显示;新增 vitest 用例覆盖「手动隐藏后再跨过断点仍保持隐藏」。chatbot/src/navigation.css:用计算样式量新对话按钮的对比度,浅色 5.89:1,深色 7.73:1,均满足 4.5:1。- chatbot vitest 554/554、webtest 397/397、
go vet ./web/... ./cmd/...、go test ./web/...均通过;CI 16/16 通过。
未实测,仅作说明,不影响结论
web/app/issues-list.css优先级标签的混色只做了代码阅读。issueActionButtons现在先判断done:已完成但最近一次运行停在「等确认」或「失败」的需求,行内按钮会变成「查看」。PR 描述说明这是有意改动,菜单里的处理也一致;这种状态没有在页面上实际构造。
本次审查只覆盖上面列出的范围,不代表代码没有其他缺陷。














Summary
Comprehensive UI & UX overhaul across both the AI Workbench (
chatbot/) and Management Console (web/), built cleanly on top ofmain(be6918d) without altering backend auth or database schemas.Key Improvements
Unified Visual Hierarchy & 3-Layer Depth (Light & Dark Modes)
#5b8cff/#0a0e16) to clean Zinc + Harness Violet (#7b61fflight /#a08affdark), removed jarringtranslateYhover jitter, and bumped8px–10pxmicro-text to readable11.5px–13px.--rail-surface(web/product-v4.css) and--navigation-rail(chatbot/src/navigation.css), refined floating sidebar shadows, active rail indicators, hover tooltip delay (0.28s), andlogin.htmlstyling."Guest Session"to"访客会话 · 未登录".AI Workbench (
chatbot/)<h1>and removed the1.24smask-reveal delay on.home-welcome-subtitle-textso the subtitle renders cleanly right away in both themes..project-picker.is-unsetborder with a crisp subtle-border pill, polished user bubbles, send button, active row bars, starter flow badges, execution body guide lines, code block toolbars, blockquotes, and artifact panel selection states.1001pxand restores the previous desktop state when it widens again (choosing a conversation below850pxstill closes it, as before).Management Console (
web/)#/issues): Compacted.project-context-bar, styled.issue-priorityas color-coded semantic pills (urgent/high/medium/low), and hid"触发"action buttons ondoneissues.#/sops,#issueModal): Fixed double dropdown chevrons, replacedLOOPswith条 LOOP, and replaced raw Unicode↻/+/×glyphs with crisp SVG icons.#/flow): Auto-collapsed#settingsSidebarupon entering#flowView, harmonized node/edge accents to Harness Violet with20pxdot grid and node header dividers.#approvalsView680pxempty-state void, fixed#runnersViewdark-mode copy button contrast, step-3 wrapping, and guest toast spam, upgraded#agentsViewempty-state icon, widened#settingsView .personal-settingsto54rem, and refined#observabilityViewcard/empty-state spacing.Commits Included
b202e4efeat(ui): unify visual hierarchy, AI workbench, and flow designer UX711b128feat(ui): polish hero reveal, issue priority pills, modal icons, and observability spacingVerification
npm --prefix chatbot run build— passedgo test ./web -count=1— passed (ok agentflow/web)npm --prefix chatbot test— 61 test files, 535 tests passednpm --prefix webtest test— 386 tests passed, 0 failedgo build -o bin/agentflow ./cmd/agentflow— passed#/collaboration,#/issues,#/sops,#issueModal, and#/settings.