Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9e550e34f9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| class="h-full min-w-1 transition-opacity duration-150" | ||
| :class="activeHover !== null && activeHover !== item.idx ? 'opacity-40' : ''" |
There was a problem hiding this comment.
Move hover appearance into the shared component style layer
The segment and detail-row hover states implement opacity and transition styling directly in the Vue template. This violates the ownership rule in AGENTS.md, which reserves hover appearance for src/style.css under @layer components, mounted through data attributes. Keeping these as utility classes also places them above that shared layer, preventing centralized interaction rules from overriding them normally. Expose the dimmed state through a data attribute and move both selectors and their transitions into the shared stylesheet.
AGENTS.md reference: AGENTS.md:L28-L32
Useful? React with 👍 / 👎.
| :class="cn('w-full space-y-3', props.class)" | ||
| > | ||
| <div v-if="title || subtitle" class="space-y-0.5"> | ||
| <h4 v-if="title" class="text-control font-medium leading-snug text-foreground"> |
There was a problem hiding this comment.
Apply the required section-title font weight
When title is supplied, this section heading uses font-medium, although AGENTS.md explicitly requires section and surface titles to use font-semibold. The same heading pattern is introduced in SegmentedBar, StatusList, and Steps, so all four primitives depart from the documented role-based typography contract. Use font-semibold for these component headings while retaining medium weight for labels and emphasized values.
AGENTS.md reference: AGENTS.md:L161-L161
Useful? React with 👍 / 👎.
| class="flex items-center justify-between gap-4" | ||
| > | ||
| <div class="flex min-w-0 flex-1 items-center"> |
There was a problem hiding this comment.
Give every bar the same available plotting width
When readouts have different lengths, each independent flex row reserves a different width for its value, so the percentage bar widths are calculated against different-sized plotting areas. Consequently, a value of 99 can render a longer bar than 100 because its two-digit readout leaves more room; custom valueLabel strings can amplify the distortion. tabular-nums only equalizes individual digit widths, not the readout columns. Reserve a shared readout-column width across all rows so the common resolvedMax actually produces a common visual scale.
Useful? React with 👍 / 👎.
| <component | ||
| :is="row.visual.icon" | ||
| v-if="row.visual.icon" | ||
| aria-hidden="true" |
There was a problem hiding this comment.
Expose the status independently of its hidden icon
For items whose status is not repeated in label or value—for example, { label: 'Database', status: 'error' }—the icon is the only non-color indication of the result, but it is explicitly hidden from assistive technology. The row's data-status does not provide accessible semantics, so screen-reader users hear only “Database” and the placeholder rather than the failure. Add an accessible status label or visually hidden status text so ok, warn, and error remain distinguishable without seeing the icon.
Useful? React with 👍 / 👎.
关联 Issue
改动内容
src/components/):BarList:单序列排行与多序列分组横向比例对比条(顶部圆点图例、无全宽灰底轨道、全组件共享统一的右侧等宽数值列宽度以保证比例尺严格一致、自动统一小数位)。SegmentedBar:部分占整体的多段构成占比条(分段色条与下方圆点明细行共享悬停弱化联动,悬停过渡与[data-dimmed]样式统一收敛至src/style.css@layer components、自动百分比计算与零分母保护)。StatusList:带语义状态图标(ok/warn/error/info/neutral)与无障碍状态读音(sr-only)的紧凑检查与键值对齐行,支持divided细线分隔与右侧辅助说明meta。Steps:纵向编号与状态步骤流(done/current/warn/upcoming)。showcase/specs/:补齐bar-list.ts、segmented-bar.ts、status-list.ts、steps.ts四个独立演示规范页并注册至showcase/specs/index.ts。src/lib/data-tone.ts:统一映射src/style.css强调色 Token(--accent-*、--border-hairline)与数值单位格式化,零手写裸颜色或任意圆角;未修改任何存量组件视觉行为。src/index.ts(经gen-entry.ts生成)及skills/ui-owners/SKILL.md原语选型字典。验证结果
pnpm type-check(vue-tsc --build)与宿主仓库node scripts/check-ui-contract.mjs均零报错通过。