This was generated by AI during triage.
用例的优先级(P0–P3)使用不同的颜色标注,使高优先级的用例容易看出。
这个需求修改 #22 的决定。#22 规定优先级不用颜色:等宽字体的 P0–P3 文字,只有 P0 加粗。维护者在 triage 中确认改为下面的配色,并且所有位置一致。
P0
P3
P0 用实底。执行结果「失败」用浅红底,所以两个标签放在一起时可以区分。
Category: enhancement Summary: 优先级 P0–P3 使用不同的颜色,所有显示优先级的位置一致
Current behavior: 统一状态标签 StatusBadge 的 kind="priority" 通过 priorityTone() 得到 priority 或 priority-strong 两种 tone。两种 tone 都没有颜色:等宽字体(numeric),没有内边距,只有 P0 加粗。脑图的 buildPriorityTag() 使用同一组 tone,样式写在脑图标签的 tone 样式表中。用例列表的优先级筛选按钮(ToggleGroup)单独实现,也不用颜色。
StatusBadge
kind="priority"
priorityTone()
priority
priority-strong
numeric
buildPriorityTag()
Desired behavior: 每个优先级有自己的样式。所有颜色使用现有主题令牌,亮色和暗色模式都要达到 WCAG AA 对比度:
destructive
destructive-foreground
warning-soft
warning-soft-foreground
warning/20
info-soft
info-soft-foreground
info/20
outline
muted-foreground
标签继续显示 P0–P3 文字和等宽字体。标签有正常的内边距,与其他统一状态标签的形状一致。
下面的位置都使用这组样式:
Key interfaces:
StatusTone
priority-p0
priority-p3
STATUS_TONE_CLASSES
priorityTone(priority: CasePriority): StatusTone
isStrongPriority()
Acceptance criteria:
StatusBadge kind="priority"
data-tone
pnpm dlx ultracite check
Out of scope:
bg-chart-*
feat(web): 优先级 P0–P3 使用不同的颜色,统一状态标签、脑图标签和优先级筛选按钮一致(#60)
Activity
jacksonw111 commentedon Oct 15, 2026
Agent Brief
Category: enhancement
Summary: 优先级 P0–P3 使用不同的颜色,所有显示优先级的位置一致
Current behavior:
统一状态标签
StatusBadge的kind="priority"通过priorityTone()得到priority或priority-strong两种 tone。两种 tone 都没有颜色:等宽字体(numeric),没有内边距,只有 P0 加粗。脑图的buildPriorityTag()使用同一组 tone,样式写在脑图标签的 tone 样式表中。用例列表的优先级筛选按钮(ToggleGroup)单独实现,也不用颜色。Desired behavior:
每个优先级有自己的样式。所有颜色使用现有主题令牌,亮色和暗色模式都要达到 WCAG AA 对比度:
destructive,文字destructive-foreground,加粗warning-soft,文字warning-soft-foreground,边框warning/20info-soft,文字info-soft-foreground,边框info/20outlinetone 相同的颜色),文字muted-foreground标签继续显示
P0–P3文字和等宽字体。标签有正常的内边距,与其他统一状态标签的形状一致。下面的位置都使用这组样式:
Key interfaces:
StatusTone:用每个优先级各自的 tone 替换priority和priority-strong(例如priority-p0到priority-p3),并在STATUS_TONE_CLASSES中给出样式priorityTone(priority: CasePriority): StatusTone:每个优先级返回自己的 tone。如果isStrongPriority()不再使用,就删除StatusBadge一致Acceptance criteria:
StatusBadge kind="priority"对 P0–P3 渲染四种不同的data-tone,每种 tone 的 class 与上面的样式一致buildPriorityTag()对 P0–P3 返回四种不同的背景或边框,颜色与StatusBadge使用同一组 CSS 变量pnpm dlx ultracite check和 web 的类型检查通过Out of scope:
bg-chart-*)feat(web): 优先级 P0–P3 使用不同的颜色,统一状态标签、脑图标签和优先级筛选按钮一致(#60)