Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

docs(design): Equivalent 审查条件对齐过渡记录,登记范围限定图元本体

Kirozeng58acc68aec18
diff --git a/REVIEW.md b/REVIEW.md
index f5d5e44bef..e9553f98e5 100644
--- a/REVIEW.md
+++ b/REVIEW.md
@@ -96,9 +96,10 @@ P1/P2。按下表转换,**不要**把仓库口径的 P2 改写成评论里
已登记成员覆盖的具体可见层,再核对登记值和交互约束;不得仅凭 DOM 标签、可访问名称
或局部样式类推导 pill。未决分类、证据缺口、违反登记值分别报告;已登记的待迁移差异
按 `design-inventory.md` 对应条目处理,不用相反的改形建议替代缺失裁决。
- 用量图表的密集日期目标按 §5 的 Hit-target sizing 条款核对 Equivalent 路径;满足其
- 同页等价日期选择与同次交付条件时,不得仅因单个目标小于 24×24px 就要求逐柱撑宽或
- 横向滚动。条件未满足时仍按适用要求检查命中尺寸,不把 data mark 登记当成尺寸通用豁免。
+ 用量图表的密集日期目标按 §5 的 Hit-target sizing 条款核对 Equivalent 路径;同页等价
+ 日期选择控件已实际交付并满足 Equivalent 时,不得仅因单个目标小于 24×24px 就要求逐柱
+ 撑宽或横向滚动。控件未交付时按 §5 与台账的登记过渡记录处理——报告欠付的等价控件,
+ 不以 24px 撑宽或横向滚动等改形建议替代,也不把 data mark 登记当成尺寸通用豁免。
规范修订 PR 应按已授权的新裁决核对正文、摘要与登记的一致性,不把正在被取代的旧
措辞当作保留它的理由;新条款自身的实际矛盾、遗漏与越界仍须报告。
- **跨平台**:macOS 与 Windows 的路径、进程、文件系统差异。
diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.md
index c283531396..a9d97991bc 100644
--- a/docs/design-rules/DESIGN.md
+++ b/docs/design-rules/DESIGN.md
@@ -313,7 +313,7 @@ Reference implementation: `apps/desktop/src/renderer/components/ui/confirm-dialo
### Usage data graphics
-- `UsageHeatmap` and `UsageTokenBars` encode dates and quantities, including when clicking a mark filters by date. **Clickable data marks keep their data geometry; they are not ordinary pill buttons.** Their corner treatment is the registered data-mark members `usage-heatmap-day` and `usage-token-bar` (§5); it is limited to these usage charts and their date hit targets.
+- `UsageHeatmap` and `UsageTokenBars` encode dates and quantities, including when clicking a mark filters by date. **Clickable data marks keep their data geometry; they are not ordinary pill buttons.** Their corner treatment is the registered data-mark members `usage-heatmap-day` and `usage-token-bar` (§5) — **the registration covers the coloured mark itself, not its hit region, legend, container or tooltip** — and is limited to these usage charts. The transparent date hit target overlays the mark and shares its footprint; its corner treatment is an implementation choice (currently the mark's 2px) and is not fixed by the registration. Focus and selection indicators are independent of the registration and follow §5's interaction rules.
- Heatmap: 12×12px square cells, 2px radius and 3px gaps in both read-only and clickable views. Reserve a 3px outer gutter so edge cells retain their focus/selected outlines. Preserve month alignment, the complete requested history window and the existing four-level neutral intensity scale.
- Token bars: 30 equal-width slim columns fitted to the plot, 3px gaps, 2px outer radius, shared baseline and proportional stacked segments. Do not enforce a 24px minimum column width or clip the latest days behind horizontal scrolling. A low/zero bar may have a taller transparent hit target without inflating its data height.
- Preserve semantic gray palettes, native date/value tooltips, accessible date/value labels, keyboard activation and visible focus/selected outlines. This is a geometry exception, not permission to introduce category colors or apply chart radii to other buttons.
diff --git a/docs/design-rules/cindy-design-system.md b/docs/design-rules/cindy-design-system.md
index dd79b1528c..969be8327d 100644
--- a/docs/design-rules/cindy-design-system.md
+++ b/docs/design-rules/cindy-design-system.md
@@ -33,7 +33,7 @@
## 版本记录
-- **2026-09-07(圆角改按可见层与登记分配)**:`DESIGN.md §5` 重写为两步判定树——Step 1 已登记形状(keycap / data mark)优先,Step 2 普通控件三档;判定对象从 DOM 标签改为「可见层」,§5 成为半径唯一权威(§§1/4/7/9 与组件条目只引用不另立)。新增 data mark 类目(0px 或 2px、按成员钉死),首批四个成员四角 2px:`usage-heatmap-day`、`usage-token-bar`、`workflow-status-cell`、`system-category-square`;07-28「status micro-cells(2px)」窄例外被后两个成员吸收——数值与组件不变,依据从「≤8px 非交互」改为图元角色,解除 non-interactive 限定、尺寸不再作归类边界。`every button` /「唯一豁免」等绝对化措辞改为「未命中 Step 1 的普通控件框」。命中尺寸采用 Equivalent 路径:用量历史同页补足产生相同单日筛选的合规日期选择控件,与密集图表恢复同 PR 交付。`REVIEW.md` 审查入口与 `design-governance.md §13` 同步;`UsageHeatmap` / `UsageTokenBars` 的生产差异登记为待迁移项。裁决全文与两处范围变更见 [`design-decision-log.md`](./design-decision-log.md)「09-07」条。**本条取代 08-29 条的「按钮一律胶囊/裸文字按钮唯一豁免」绝对化表述与 07-28 条的微格尺寸判据(三档数值本身不变)。**
+- **2026-09-07(圆角改按可见层与登记分配)**:`DESIGN.md §5` 重写为两步判定树——Step 1 已登记形状(keycap / data mark)优先,Step 2 普通控件三档;判定对象从 DOM 标签改为「可见层」,§5 成为半径唯一权威(§§1/4/7/9 与组件条目只引用不另立)。新增 data mark 类目(0px 或 2px、按成员钉死),首批四个成员四角 2px:`usage-heatmap-day`、`usage-token-bar`、`workflow-status-cell`、`system-category-square`;07-28「status micro-cells(2px)」窄例外被后两个成员吸收——数值与组件不变,依据从「≤8px 非交互」改为图元角色,解除 non-interactive 限定、尺寸不再作归类边界。`every button` /「唯一豁免」等绝对化措辞改为「未命中 Step 1 的普通控件框」。命中尺寸采用 Equivalent 路径:用量历史同页补足产生相同单日筛选的合规日期选择控件;原定与密度恢复同 PR 交付的时序已被 #4064 先行恢复密度超越,控件单独交付,交付前密集目标为 §5 登记在案的过渡不合规。`REVIEW.md` 审查入口与 `design-governance.md §13` 同步;`UsageHeatmap` / `UsageTokenBars` 的生产差异登记为待迁移项。裁决全文与两处范围变更见 [`design-decision-log.md`](./design-decision-log.md)「09-07」条。**本条取代 08-29 条的「按钮一律胶囊/裸文字按钮唯一豁免」绝对化表述与 07-28 条的微格尺寸判据(三档数值本身不变)。**
- **2026-09-07(设置分段选项与用量数据图形)**:`DESIGN.md §4` 补设置分段单选逐态与键盘合同,统一复用 `SettingsSegmentedControl`;§4/§5 明确用量热力方格、细柱与点击承载的 2px 数据图形例外,保留灰度色阶和日期筛选,避免普通按钮胶囊规则改变图表形状。