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。

Merge origin/main into docs/visible-layer-radius-registration

Kirozengdf9896afca52
diff --cc docs/design-rules/DESIGN.md
index cbf02259fe,2145fc0687..b668754e0f
--- a/docs/design-rules/DESIGN.md
+++ b/docs/design-rules/DESIGN.md
@@@ -303,6 -303,21 +303,21 @@@ Reference implementation: `apps/desktop
- Active: Light Gray bg (`--surface-chip`); Inactive: transparent
- All pill-shaped (9999px)
+ ### Settings segmented controls
+
+ - Use `components/settings/SettingsSegmentedControl.tsx` for a compact, mutually exclusive setting on a settings card. This is a radio group, not navigation between tab panels.
+ - Use the original browser automation target treatment (user preference, 2026-09-07): a borderless pill track with `--surface-chip`, 32px height, 3px padding and 2px gap. Options: 28px height, 12px text with line-height 1, 12px horizontal padding and a reserved 1px border.
+ - Selected: `--surface-elevated`, `--settings-section-title`, weight 500, and a 1px `--border-default` outline. The outline and raised fill distinguish selection from the track; `--surface-chip` is only the track, never the selected fill.
+ - Unselected: transparent fill/border, `--text-secondary`, weight 400; enabled hover uses `--text-primary`. Disabled options retain the selected mark at 50% opacity and cannot change value or gain hover feedback. Keyboard focus uses `--focus-ring`.
+ - Use `radiogroup` / `radio` / `aria-checked`. Tab enters at the selected option (or first option when no preset matches); arrows move focus and selection, wrap at the ends, and respect RTL. Home/End select the first/last option. Space/Enter activate the focused option.
+
+ ### 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.** This registered exception is limited to these usage charts and their date hit targets (§5).
++- `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.
+ - 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.
+
## 5. Layout Principles
### Spacing System
@@@ -326,84 -341,19 +341,85 @@@
### Border Radius Scale
-Three tiers — **these three only** (wording hardened 2026-08-29, designer ruling — see `design-decision-log.md` 08-29). **Tier assignment is a single decision tree in this §5 section; §4 component entries, the §7 Do/Don't lists and the §9 iteration guide restate it for convenience — when wording drifts, this section wins:**
+*(rewritten 2026-09-07 — owner-authorized rule decision, see `design-decision-log.md` 09-07. Supersedes the 08-29 three-tier wording and folds in the 07-28 micro-cell exception and the 09-06 keycap ruling.)*
-- **Pill (9999px)**: **every ordinary button is a pill**; registered bare text buttons, keyboard keycaps and the usage data marks below follow their specific exceptions. Anything that commits a decision or triggers an action otherwise wears the pill: buttons (permission approve/deny included), tabs, single-line inputs, tags, badges — including buttons with transparent or outlined fills (dialog secondary/cancel are pills with a transparent fill; a control's fill style never changes its tier). **Bare text buttons with no background of their own** (wizard back-navigation "← 上一步", the §16.3 login text-button category) have no shape to round — text, not a button-shaped control — so they carry no radius at all. Register any new bare-text-button usage in the component entry that introduces it.
-- **Container (12px)**: the box that holds content — code blocks, cards, panels, dialogs. Implemented as Tailwind `rounded-xl` (12px).
-- **Keyboard keycap (4px)**: every visible keyboard shortcut frame, whether rendered as `<kbd>` or as an interactive button that accepts the shortcut, uses a 4px outer radius (`rounded-[4px]`). Keep its border, fill, padding, and text colors appropriate to the surrounding control; the radius is the shared cross-surface rule. This is the sole 4px exception and keeps keyboard hints visually distinct from pill buttons and containers.
-- **Inner control (8px)**: multi-line inputs (textarea) — **always 8px, whether the textarea sits inside a visible container or is the outermost control of a form area** — plus selected/hover row highlights in dropdowns/menus and small in-block cells nested inside a container. Implemented as Tailwind `rounded-lg` (8px).
+**What this section assigns a radius to is a *visible layer* — one specific frame, surface, or clipping outline — not a DOM tag and not a whole component.** A single control routinely carries several: a "运行 ⌘Enter" button has a pill action frame, a 4px keycap inside it, and a hit-testing responsibility that needs no frame of its own. Assign each layer on its own. **A parent's radius is not the assignment rule for a contained layer.** A container may retain its approved content-clipping treatment, but an interaction wrapper must not use its own geometry to replace a contained mark's registered geometry.
-_No 6px / 10px, and no arbitrary radii. **4px is reserved for keyboard keycaps** as defined above; other new components must not introduce it. Existing non-keycap `rounded-[4px]` usages remain registered debt. Bare `rounded` and `rounded-sm` are not substitutes for the keycap rule. Do not add tiers, and **"it looks small" is never a reason to move an element down a tier** — an element's tier follows what it IS (button / box / textarea — always 8px / nested non-button), not its size or nesting. Mind nesting: an 8px row highlight inside a 12px panel must stay smaller than its container; a pill there becomes a lozenge, 12px looks bloated._
+**Assignment is a two-step decision tree. Step 1 wins over Step 2.**
-> **Narrow exception — status micro-cells (2px)** (registered 2026-07-28): non-interactive status squares of 8×8px or smaller keep a 2px radius — the workflow agent status strip's cells (background-tasks panel detail + workflow chat card) and the equivalent per-category square in SystemCard. At that size any tier radius rounds the square into a dot and destroys the "block strip" read that lets a large agent fleet be scanned at a glance. Scope is exactly this: **non-interactive, ≤8px, status-only**. Do NOT generalize to buttons, tags, rows, badges or containers — those still pick a tier.
+**This section is the authoritative source for radius assignment.** Component entries and the summaries in §§1, 4, 7 and 9 reference it; they do not introduce competing assignment rules. The decision log records decisions and history, not a second current-value table.
+
+#### Step 1 — Registered shapes
+
+**A layer uses a registered shape only when an approved entry below covers that specific visible layer and use.** The entry supplies its corner treatment. Semantic arguments support an application for registration; they do not establish membership. Adding or widening an entry requires adjudication under the design-governance process and a decision-log record. **Neither an author nor a reviewer may create membership merely by interpreting this section.**
+
+| Category | Scope | Corner radius |
+| --- | --- | --- |
+| **Keyboard keycap** | Every visible keyboard shortcut frame, whether rendered as `<kbd>` or as an interactive button that accepts the shortcut. Border, fill, padding and text colors stay appropriate to the surrounding surface; the radius is the shared cross-surface rule. *(Registered 2026-09-06, #4001.)* | 4px |
+| **Data mark** | A visible layer inside a chart or visualization whose shape belongs to the data rather than to the control. Members below. *(Registered 2026-09-07.)* | 0px or 2px, pinned per member |
+
+**Overlap.** A keyboard shortcut frame retains its registered 4px treatment when another channel, such as colour, also encodes data. Data encoding alone does not override the keycap entry. Other overlaps must be resolved explicitly in the registration; listing order alone does not grant precedence.
+
+**Registered data-mark members.** The value is fixed per member, never chosen at the call site:
+
+| Member ID | Covered visible layer | Corner radius |
+| --- | --- | --- |
+| `usage-heatmap-day` | The coloured cell representing one day's usage in `UsageHeatmap`. Excludes the hit region, legend, outer container and tooltip. | 2px, all four corners |
+| `usage-token-bar` | The coloured bar representing one day's token volume in `UsageTokenBars`. Excludes the hit region, outer container and tooltip. Its own clipping may follow the same treatment. Top-only rounding or square baseline corners are not variants of this registration. | 2px, all four corners |
+| `workflow-status-cell` | The coloured micro-cell in the agent status strip (background-tasks panel detail + workflow chat card). | 2px, all four corners |
+| `system-category-square` | The registered per-category status square in SystemCard. | 2px, all four corners |
+
+*A member ID identifies an approved visual role, not a filename or an entire component subtree. Reuse within its stated scope and semantics-preserving refactors do not require a new radius ruling; keep implementation references current. A new role, wider scope or changed geometry requires adjudication. Component entries reference the member ID and record other dimensions and interaction details instead of maintaining a second radius value.*
+
- *The last two members absorb the narrow "status micro-cells (2px)" exception registered 2026-07-28. Their value and their components are unchanged; what changes is the basis — they are classified by the role their shape plays, not by being ≤8px and non-interactive. See the decision log for the two scope changes this entails.*
++*The last two members absorb the narrow "status micro-cells (2px)" exception registered 2026-07-28. Their value and their components are unchanged; what changes is the basis — they are classified by the role their shape plays, not by being ≤8px and non-interactive. See the decision log for the two scope changes this entails. The first two members likewise carry the usage-chart geometry that #4064 phrased as a separate "usage data marks (2px)" exception; that parallel wording was folded into these registrations when this section merged, and §4 Usage data graphics is the component entry that records their dimensions.*
+
+**Evidence required to register a new data mark** — what an adjudication request must establish. **Not** a self-service test that admits a layer automatically:
+
+1. a stable mapping from a data field to a visual channel of that layer (position, size, area, colour intensity, **or categorical colour**);
+2. which visible layers belong to the data and which belong to the control, stated separately;
+3. that the classification does not depend on the current number of data points, the label text, the presence of a click handler, or the rendering technology (DOM / SVG / canvas).
+
+Ordinary input options, control selected-states and action frames do **not** enter merely by carrying data. Mixed objects are resolved in the component entry.
+
+#### Content and unresolved shapes
+
+**Pixels and intrinsic geometry within images, icons and other assets are not control frames.** Existing approved content and cropping treatments follow their owning component specifications; any surrounding action frame is assigned separately. Replacing an asset within such a treatment does not register a new shape.
+
+A new content-owned outline or mixed object not covered by an existing specification **must be submitted for adjudication**. Reviewers report unresolved classification and request the missing decision; they must **neither force the object into the pill tier solely because it is clickable nor approve an unregistered exception**.
+
+#### Step 2 — Control tiers
+
+Ordinary control frames, containers and inner-control surfaces not covered by Step 1 use the following three tiers.
+
+- **Pill (9999px)** — control frames: buttons, tabs, single-line inputs, tags, badges. **A control's fill style never changes its tier** — transparent and outlined fills are still pills (dialog secondary/cancel are pills with a transparent fill).
+- **Container (12px)** — the box that holds content: code blocks, cards, panels, dialogs. Tailwind `rounded-xl`.
+- **Inner control (8px)** — multi-line inputs (textarea), **always 8px** whether nested in a visible container or standing alone in a form; plus selected/hover row highlights in dropdowns/menus, and small in-block cells nested inside a container. Tailwind `rounded-lg`.
+
+**A layer with no frame or surface to round needs no corner-radius assignment.** This does not authorize a control to discard its prescribed frame treatment merely by omitting a fill or border. A transient hover or pressed surface on an ordinary control remains that control's frame and takes its assigned tier.
+
+**A focus or selection indicator is a separate visual treatment.** Its appearance alone does not create a new ordinary control frame or reclassify the associated layer. Registered bare-text buttons (wizard back-navigation "← 上一步", the §16.3 login text-button category) remain frameless and retain their visible focus treatment; new bare-text-button usages must still be registered in the introducing component entry.
+
+Evaluate the approved component treatment across its states, including shared styles and pseudo-elements. **The absence of a local background or border class is not evidence of frameless status.**
+
+#### Interaction constraints — apply after assignment
+
+Making something clickable never moves a layer between Step 1 and Step 2.
+
+- **Hit testing and mark geometry are independent responsibilities; they may share a DOM element or drawing primitive. No additional wrapper is required.** Hit-target geometry must not replace, clip or distort the mark's registered visible geometry or its data mapping. The mark's own registered clipping remains permitted. Resetting an existing radius with `rounded-none` is permitted when needed to achieve this result; **the presence or absence of a particular class is not the compliance test**.
+- **Focus and selection indicators use the associated component's approved interaction treatment.** For registered marks, the component entry identifies the indicator geometry; it must not be inferred by reclassifying the mark as a pill control. An indicator may be drawn on the existing element, a pseudo-element, an overlay or the drawing surface. It must remain distinguishable without changing the mark's registered geometry or data encoding.
+- **On a data-bearing layer, hover must not alter the visual mapping that encodes the data.** Use a distinguishable indicator on a separate visual layer when the relevant channel is already occupied.
+- **For the same data and display configuration, a registered mark's geometry and corner treatment must not change solely because interaction is enabled or disabled.** Independent hover, focus and selection indicators are allowed.
+- **Hit-target sizing.** Registered data-mark status does not itself provide an exception from pointer-target requirements. For the usage heatmap and daily-token chart, dense date targets may be retained through the **Equivalent** route of WCAG 2.2 SC 2.5.8 only when the Usage History view also provides a date-selection control that satisfies that criterion and reaches every selectable date with the same filtering result. Relative presets alone are not equivalent to arbitrary single-day selection. **Deliver this control in the same change that restores dense interactive targets.** Until it is available, do not reduce targets in reliance on a future equivalent control. Overlapping targets for different dates are not an acceptable enlargement technique. These members have no category-wide Essential exemption. Keyboard access and visible focus remain required independently.
+
+#### Scope and inventory
+
+*Do not invent radii. **"It looks small" is never a reason to move a layer down a tier** — within Step 2 a layer's tier follows what it IS (control frame / box / textarea), not its size or nesting. **This sentence governs Step 2 only**; it is not an argument that every clickable layer is a control. Mind nesting: an 8px row highlight inside a 12px panel must stay smaller than its container; a pill there becomes a lozenge, 12px looks bloated.*
+
+*New tiers and new registered shapes both enter only through adjudication — neither is added by a reviewer's reading of this section.*
+
+*Governed corner-radius values are **0px and 2px** for registered data marks, **4px** for keycaps, **8px** for inner controls, **12px** for containers, and **9999px** for pill frames. No 3px / 6px / 10px, and no arbitrary values. A layer with no frame to round needs no assignment; "no assignment" is not an additional radius value. **Intrinsic content and mark geometry remain outside this corner-radius inventory** — a scatter dot's circle, a pie sector's arc, a map outline are shapes of the mark itself. Existing non-keycap `rounded-[4px]` usages remain registered debt; bare `rounded` and `rounded-sm` substitute for nothing.*
-> **Narrow exception — usage data marks (2px)** (user ruling 2026-09-07): `UsageHeatmap` square cells and `UsageTokenBars` stacked columns, including their transparent date-filter buttons, use 2px outer radii. Their shape encodes data; adding click handling must not turn cells into dots, columns into pills, or enlarge the grid. See §4 Usage data graphics. This is independent of the non-interactive status exception above.
+
## 6. Depth & Elevation
| Level | Treatment | Use |
diff --cc docs/design-rules/cindy-design-system.md
index aa68f6dc66,d44014a96b..dd79b1528c
--- a/docs/design-rules/cindy-design-system.md
+++ b/docs/design-rules/cindy-design-system.md
@@@ -33,8 -33,8 +33,10 @@@
## 版本记录
+- **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 §4` 补设置分段单选逐态与键盘合同,统一复用 `SettingsSegmentedControl`;§4/§5 明确用量热力方格、细柱与点击承载的 2px 数据图形例外,保留灰度色阶和日期筛选,避免普通按钮胶囊规则改变图表形状。
+
- **2026-09-07(DS-5 路线与双端设计合同)**:治理 §12 将未开始批次对齐为 DS-5—12(9=聊天、10=Mobile),以 G1—G4 分别验收;补 DS-4b / #4010 已合入及其局部兼容边界。Token README 登记当前数值权威、未来接管与两端真实消费样本;inventory 及生成器仅同步下一动作与静态说明,不改变迁移状态、发现能力或产品界面。此前日期记录中的旧编号保留为历史。
- **2026-09-06(DS-4 旧设置输入主题兼容收口)**:`SettingsTextInput` 复用标准 Input 并保留既有局部主题 alias;AgentResource / Collaboration 的四个数字框走同一封装。通用 Input 的 Tier-1 默认、错误态、焦点环及主题磁盘文件保持原合同。新增真实主题加载到组件消费的回归验证;DS-4 主线回填 #3920。
diff --cc docs/design-rules/design-decision-log.md
index 39ffeaf844,b8cd1c5f82..d2603bfa1c
--- a/docs/design-rules/design-decision-log.md
+++ b/docs/design-rules/design-decision-log.md
@@@ -12,29 -12,8 +12,31 @@@
## 2026-09
+- **09-07** **圆角体系改为「可见层 + 登记驱动」,新增 data mark 类目**——
+ **决策依据:** 项目所有者授权本轮采用独立评审定案;条款由 AI 整理。授权记录:*[占位,由所有者填]*。**本条确定规范目标,不表示实现已完成或视觉验收已通过。**
+ **背景:同一缺陷两次发作。** ①PR #3802(09-03 合入)给用量历史热力图与每日 token 柱图加日期点击,为可点击把图元包成 `<button>`;自动 review 据 §5「every button is a pill」连提两轮 P1,作者依次给外层按钮、再给实际可见的彩色内层加 `rounded-full`,方格变圆点、柱变胶囊;另一条 24×24 命中区 P2 促使热力图 `cellSize` 12→24、柱图容器最小宽度撑到 807px 并横向滚动。#3802 记录了筛选与点击的手工验证,但缺少可复核的完整视觉验收证据,**不能据此推断无人看过界面**。②PR #4001(09-06 合入)将快捷键外框登记为 4px 特例,但保留了与之冲突的「三档且仅此三档」和「唯一豁免」措辞。
+ **根因不是这两个组件,是 §5 的分类锚点。** 旧条文没有明确区分动作外框与其内部图元;在 #3802 的两轮审查中,review bot 将 `<button>` 标签作为套用 pill 的充分依据,并进一步要求实际可见的图元服从该半径。规则虽保留申请批准例外的路径,但默认分类缺少数据图元的明确分流,因而把新增交互引向形状变化。
+ **裁决:**
+ 1. **判定对象改为「可见层」**(某一层框 / 表面 / 裁剪轮廓),不是 DOM 标签也不是整个组件。父层半径不作为其内含层的归档依据;容器已批准的内容裁剪继续有效,但交互包装层不得用自身几何替换内含图元的登记几何。
+ 2. **两步判定树,登记优先**:Step 1 已登记形状(keycap / data mark)→ Step 2 控件三档。§5 为半径归档的唯一权威,§§1/4/7/9 与组件条目只引用、不另立归档规则。
+ 3. **新增 data mark 类目**,取值 `0px` 或 `2px`,**按成员钉死**,调用方无可选项。首批四个成员均为**四角 2px**:`usage-heatmap-day`、`usage-token-bar`、`workflow-status-cell`、`system-category-square`。`0px` 保留为可登记值,本批未使用。登记单位是稳定的可见角色 ID + 明确作用层,不是文件名或整个组件子树;语义不变的重构只更新引用,扩大用途或改变几何才重新裁决。
+ 4. **三条判据降为登记申请时的举证要求**,不作为作者自助分类的准入门。评审反例证明其无法稳定划界:数据筛剩一条时「同构成组」失效、给 aria-label 补动作说明反而使图元掉出类目、日期选择器与灰度强度选项三条全中。
+ 5. **区分「普通控件表面」与「独立焦点指示」**:无框可圆的层无需归档,但控件不得靠省略填充/边框摆脱其规定的框处理;hover / pressed 的临时表面仍是该控件的框、取其档位。**焦点或选中指示是独立视觉处理,其出现本身不创建普通控件框、不重新归类关联层**——已登记的裸文本按钮保持无框并保留可见焦点处理。判定须跨状态评估已批准的组件处理(含共享样式与伪元素);局部没有 bg/border 类不构成无框证据。
+ 6. **交互不改变归类**:命中判定与图元几何是两项独立职责,**可共用同一 DOM 元素或绘制图元,不要求额外包装层**;命中几何不得替换、裁剪或扭曲图元的登记几何与数据映射。指示器可画在既有元素、伪元素、浮层或绘制表面上,但不得改变图元登记几何与数据编码。**承载数据的层上,hover 不得改动编码数据的视觉映射**。同一数据与显示配置下,登记图元的几何与角处理**不得仅因交互启用/停用而改变**;独立的 hover / focus / 选中指示允许存在。
+ 7. **命中尺寸:采用 Equivalent 路径。** 用量历史同页补足覆盖全部可选日期、产生相同单日筛选结果的合规日期选择控件,与密集图表恢复**同 PR 交付**。现有相对时间范围预设不足以替代任意单日选择;在等价控件可用前,不以待办承诺缩小目标。不同日期的目标重叠不是合格的扩大手段。**此次不批准 data mark 类目的 Essential 通用豁免。** 键盘可达与可见焦点仍独立要求。
+ 8. **去绝对化**:`every button` / `the only exemption` / `Anything that triggers an action` 改为「未命中 Step 1 的普通控件框」。保留「"it looks small" is never a reason to move a layer down a tier」但**限定只在 Step 2 内生效**。
+ 9. **补内容轮廓与未决分类出口**:图像/图标等资产内部的像素与固有几何不是控件框,已有内容与裁剪规范按其组件规范执行,外围动作框单独归档;新的内容自有轮廓或混合对象须送裁决,评审报告分类未决、请求缺失决定,**不得仅因可点击就强制归入 pill,也不得自行批准未登记例外**。
+ **两处实质范围变更,显式登记,不得默认推广:**
+ - **解除 `non-interactive` 限定**:07-28 微格例外原文限定非交互;归入 data mark 后,状态微格将来可点仍为 2px。
+ - **`≤8px` 不再是归类边界**:尺寸不再作为该类归档依据。已有微格的实际尺寸与用途继续留在组件条目约束,**这不是全局任意放大许可**,也不推广到所有状态徽标。
+ **边界说明(非放宽):** 数值清单只穷尽受治理的角圆角,不穷尽可见几何;固有内容与图元几何在清单之外。
+ **明确不改:** keycap 4px 的值与适用对象(09-06 裁决)不重开,本次只整理其归属与优先级;控件三档的数值与常规用途不变。
+ **每日 token 柱:四角统一 2px。** 恢复 #3802 前柱体自身的 2px 全角处理;本次不采用上角 2px、基线两角 0,也不采用全 0。命中区与焦点/选中指示不得将柱体重新改为 pill。
+ **实施状态:待迁移。** 本 PR 仅修改规范与登记,不修改产品渲染。main 上 `UsageHeatmap` 的交互/非交互半径分支、`UsageTokenBars` 的 pill 柱体以及相关命中布局,作为**已知待修差异**在迁移台账对应条目记录负责人与后续 PR,本次不记为已合规。后续视觉修复一并落实登记形状、等价单日选择与密度处理,并交付实际视觉证据。**该过渡记录不授权新增同类偏差。** 注意热力图 `3px → 2px` 是本次新裁决的视觉调整、不是原样回退;只有柱体 2px 可称恢复——后续 PR 应命名为「按裁决修复图表形状与日期选择」,不得整体描述为纯回退。
+ **落点:** `DESIGN.md §5`(本节重写)、§1 line 19/21、§7 line 355/363/368、§9 line 418、§4 line 274;`design-governance.md §13`(同 PR)。
+
+ - **09-07** **设置分段选中态与用量数据图形修复(用户要求修复;图表方向选定“恢复方格和细柱”)**:分段选项误借页面级 `chat-input-chip-bg`,CINDY Dark 下选中 `#1D1D1D` 与卡底 `#1F1F1F` 几乎同色;统一复用 `SettingsSegmentedControl`,补完整 radio 键盘语义。用户后续选择原「浏览器自动化目标」效果:无外描边的 `surface-chip` 轨道,选中使用 `surface-elevated` 与 `border-default` 胶囊边框;链接打开方式与浏览器自动化目标采用同一组件。用量历史 [#3802](https://github.com/makecindy/cindy/pull/3802) 将点击日期图形套成胶囊,并以 24px 最小列宽撑大图表;用户选定恢复紧凑方格和细柱、保留点击筛选及灰度配色。`DESIGN.md §4/§5` 登记数据图形例外,防止按“按钮胶囊”再次改变数据编码。此记录是修复方向裁决,不代表最终实机视觉已验收。
+
- **09-06** **键盘快捷键外框统一使用 4px 圆角(用户裁决,PR #4001)**:所有可见快捷键外框,无论使用 `<kbd>` 还是承载快捷键的交互按钮,统一采用 `rounded-[4px]`;边框、填充、内边距和文字颜色按所在表面保留上下文差异。该规则是圆角体系的注册例外,覆盖 08-29「4px 不入档」对键盘键帽的适用范围;`DESIGN.md §5` 与 `design-governance.md §10` 已同步回写。
- **09-06** **首页撤掉订阅与赠送余额告知大卡(拍板人 = 用户)**——用户重申: