Repository navigation
界面组件:按 #132 审查留下的问题修正选项、任务行和细节(第 14 项,工作台 A) - #134
Merged
Merged
Conversation
- 选项:答案(OptionAnswer)由 OptionGroup 管,受控和非受控用法下「其他」和选项都互斥;「其他」默认读作「其他」 - 任务行:分隔线和清单同宽、悬停的那一行上下的线隐去;段数按工作流节点数(total);读屏能读到进度 - 勾的线宽 1.8、圆圈边框 1.5px(新令牌 --border-width-tick)、分段切换选中段圆角 7px(--radius-segment)、下拉最宽 360px - ui skill 第 7 条:悬停只变颜色或透明度(和主按钮的 0.86 一致) - 样张:「继续」的箭头 14px;加分隔线和悬停的核对 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VVCgJJp23vqp2JJwRkrtMS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VVCgJJp23vqp2JJwRkrtMS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VVCgJJp23vqp2JJwRkrtMS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VVCgJJp23vqp2JJwRkrtMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
风险档:中(改
web/src/ui/、web/src/tokens.css、tests/、scripts/、.claude/skills/ui/SKILL.md;不碰src/和「重」档文件)为什么
工作台拆成 A–E 五个 PR(用户已确认),这是 A。工作台第一次用到 #132 的组件之前,先修掉 #132 审查留下的问题,再加上用户定的「进度条按工作流的节点数画」。这次不改任何页面。
改了什么
option.tsx)OptionAnswer(选了某个选项,或「其他」里的文字),由OptionGroup经 context 管理。受控(value、onValueChange)和非受控(defaultValue)两种用法下,选项和「其他」都由组件保证只有一个答案。Option不再接收name、checked;name改为传给OptionGroup,不传时自动生成。OptionGroup外面会直接报错。task-row.tsx)total决定,按工作流的节点数画。--border-width-tick。--radius-segment。能用证据证明的
npm run typecheck无错误;npm test586/586 通过。docs/e2e/ui-fixes/gallery/gallery-report.json,记录的提交是5fc95e6(代码的最后一个提交是d3a2f16,之后只加了证据)。截图有亮暗色 × 1440/390,另有对话框打开时的两张。docs/e2e/ui-fixes/vs-design/vs-design-{light,dark}.png,包括卡片、步骤、选项(1.5px 圆圈和勾)、「其他」和「继续」。docs/e2e/ui-fixes/pages-compare.json。0174f32和本分支d3a2f16的构建,10 页 × 亮暗色 × 1440/390,共 40 张逐像素相同。pages-compare-commits.json。scripts/web-pixels.ts shoot截两次,再用compare比较。code-review)端到端验证
不需要真实模型的 E2E,理由和证据如下。
web/src/ui/的组件(独立审查核实过,App.tsx里的TaskList是它自己的同名函数),真实模型 E2E 走的是页面,走不到这些代码。改动经 Tailwind 进入页面的途径只有生成的工具类,而新类名和页面的类名都不同名。docs/e2e/ui-fixes/。40 张页面截图逐像素相同;样张 85/85,报告带提交号。证明不了的
pages-compare.json是web-pixels.ts compare的输出存成的文件,独立审查没有重跑这一步。它认为豁免的理由不依赖这一步。OptionGroup按有没有传value判断受控,这是 React 的惯例;中途在受控和非受控之间切换时会丢答案,没有警告。Generated by Claude Code