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-system): DS-11 同步日期入口现状至组件规范与 DESIGN.md

Kirozeng607e5510ada8
diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.md
index 2f8ba33478..026c52ab6d 100644
--- a/docs/design-rules/DESIGN.md
+++ b/docs/design-rules/DESIGN.md
@@ -361,7 +361,7 @@ Reference implementation: `apps/desktop/src/renderer/components/ui/confirm-dialo
### Usage History Charts
-The usage heatmap, daily-token bars and their separate interaction indicators follow [the Usage History component specification](./usage-history-charts.md). Their 2px data-mark geometry is set by the §5 registered data-mark members (`usage-heatmap-day` / `usage-token-bar`); the bounded hover/focus/selection emphasis is registered with those members in §5 (interaction constraints), and the extensible model palette, fixed Agent/harness colors and heatmap blue are the §2 Usage History color registration. Date filtering enters through the charts themselves (cell / bar hit targets) plus the range selector on the page — the formerly drafted single-day date form is not part of this entry, and the component spec records the unresolved target-size ruling separately.
+The usage heatmap, daily-token bars and their separate interaction indicators follow [the Usage History component specification](./usage-history-charts.md). Their 2px data-mark geometry is set by the §5 registered data-mark members (`usage-heatmap-day` / `usage-token-bar`); the bounded hover/focus/selection emphasis is registered with those members in §5 (interaction constraints), and the extensible model palette, fixed Agent/harness colors and heatmap blue are the §2 Usage History color registration. Date filtering enters through the charts themselves (cell / bar hit targets), the range selector on the page, and the DS-11-restored 36px labelled date field beside it, which writes the same single-day filter as chart activation and shares the charts' selected-day state — the previously owed equivalent entry (the component spec keeps the unchanged hit-target geometry and the pending platform/user acceptance record).
### Desktop chat and operation authorization (DS-9, 2026-09-11)
diff --git a/docs/design-rules/cindy-design-system.md b/docs/design-rules/cindy-design-system.md
index cfd833bc27..a7dba0db36 100644
--- a/docs/design-rules/cindy-design-system.md
+++ b/docs/design-rules/cindy-design-system.md
@@ -53,7 +53,7 @@ DS-11 按2026-09-15用户复核意见修订,Cindy亮暗逐项对照与未验
- **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-08(用量历史图表配色与交互登记,#4076)**:`DESIGN.md §2` 登记 Usage History 图表类别色(五个模型色相与热力图对进程蓝的引用);§5 data mark 成员 `usage-heatmap-day` / `usage-token-bar` 之上登记悬停/焦点/选中有限放大、柱图选中淡化与热力格中性描边(Interaction constraints 内的组件交互登记);§14.4 登记图表强调响应。移除草稿日期表单后的命中尺寸方案仍待裁决,见 `usage-history-charts.md`。
+- **2026-09-08(用量历史图表配色与交互登记,#4076)**:`DESIGN.md §2` 登记 Usage History 图表类别色(五个模型色相与热力图对进程蓝的引用);§5 data mark 成员 `usage-heatmap-day` / `usage-token-bar` 之上登记悬停/焦点/选中有限放大、柱图选中淡化与热力格中性描边(Interaction constraints 内的组件交互登记);§14.4 登记图表强调响应。移除草稿日期表单后的命中尺寸方案曾待裁决;DS-11 已补回 36px 带标签的原生日期输入作为等价入口(真实平台与用户验收待记录),现状见 `usage-history-charts.md`。
- **2026-09-07(设置分段选项与用量数据图形)**:`DESIGN.md §4` 补设置分段单选逐态与键盘合同,统一复用 `SettingsSegmentedControl`;§4/§5 明确用量热力方格、细柱与点击承载的 2px 数据图形例外,保留灰度色阶和日期筛选,避免普通按钮胶囊规则改变图表形状。
diff --git a/docs/design-rules/usage-history-charts.md b/docs/design-rules/usage-history-charts.md
index 679f35a812..d4d5cb8b18 100644
--- a/docs/design-rules/usage-history-charts.md
+++ b/docs/design-rules/usage-history-charts.md
@@ -49,11 +49,11 @@ Agent/harness 表复用现有引擎身份色(09-09 所有者再次反馈):
- `prefers-reduced-motion: reduce` 时不播放过渡,立即落到对应大小与清晰的焦点/选中状态;触摸设备不依赖 hover,禁用柱不触发强调。
- 原生 Enter/Space 点击继续使用原 `handleDayClick` → `day:YYYY-MM-DD` 筛选路径。图表继续显示固定窗口,概览和明细按所选日期过滤;单日模式下任务明细的既有隐藏规则不变。
-## 日期入口与命中方案(待定)
+## 日期入口与命中方案
-所有者明确要求保留原有日期筛选功能,并选择取消本 PR 新增的“选择日期+查看当天”入口;`UsageDateFilter` 及其专用文案移除。原有所有时间、最近 30 天、最近 7 天、今天预设与图表按日点击保留;不新增点击空白取消或重复点击取消。
+09-08 曾按所有者决定移除草稿 `UsageDateFilter`(“选择日期+查看当天”)入口,保留预设与图表按日点击。DS-11(2026-09-15,N8)按所有者授权补回等价的任意日期入口:范围下拉旁新增带标签的标准 `Input type="date"`(36px 高),与图表按日点击共用同一条 `day:YYYY-MM-DD` 选日状态——输入与图表互相同步,清空回到最近 30 天,以 todayKey 为上限拒绝未来日期,日期基准未就绪时禁用输入。原生日期弹层外观由系统浏览器决定;亮暗浏览器验证(未加载→加载→未来拒绝→选中)见 [DS-11 证据](../design-evidence/2026-09-15/ds11-review-fixes.md)。原有所有时间、最近 30 天、最近 7 天、今天预设与图表按日点击保留;图表仍不新增点击空白取消或重复点击取消。
-移除等价入口后的最终命中方案尚未裁决。所有者在获知该差异后明确要求将本地版本同步到 #4076,因此当前密集布局随本轮提交供评审;**同步不等于批准合入,不得声称已满足原定 Equivalent 条件**,也不因此批准 Essential 豁免。合入前仍须解决命中方案并同步规范与证据。日期行为测试验证的是保留的筛选路径,不是点击尺寸合规证明;不能用测试通过消除这一已知缺口。
+图表标记自身的命中几何裁决不变:命中框保持已登记尺寸(热力图 12×12px、柱图高度 `max(24px, 柱高)`),数据标记不因等价入口的补回放大或缩小。等价入口补回关闭的是此前登记的“欠交付等价入口”缺口;真实平台与用户侧验收仍须独立记录,台账在记录补齐前不标记 migrated,也不据此声称已满足原定 Equivalent 条件或批准 Essential 豁免。日期行为测试验证的是选日状态同步与筛选路径,不是点击尺寸合规证明。
## 交付状态