Merge PR 7474 UI design references into UI refinements

This commit is contained in:
yixiangihsiang committed 2026-10-28 21:05:01 +08:00
commit 1f4249a0df
32 files changed
+346 -314

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

+22 -22
View File
@@ -9,44 +9,44 @@
en: d42b121ca63177aa
zh: 68b637fae3252c7b
/cookbook-review-a-ui-design/summary:
en: ca3b6e283a6095be
zh: 9024acce33ac5f85
en: 8a1ff691b28a2533
zh: 8c54ae85df6f6e12
/cookbook-review-a-ui-design/table-of-contents:
en: 84af073b2a7eca95
zh: 750633fa3c458d5b
/cookbook-review-a-ui-design/1-define-the-page-or-modal-in-scope:
en: b43b99e09f5c5c5c
zh: f95c8f7006661c1a
en: c9ee94acd903d809
zh: c8d07c75ba94531b
/cookbook-review-a-ui-design/1-define-the-page-or-modal-in-scope/select-scope-by-visual-impact:
en: 03e253193982403b
zh: 5b1e10220ffbe53d
en: ef9ad1428375f1d9
zh: 8f59cd04947c16dd
/cookbook-review-a-ui-design/2-inspect-the-task-and-its-implementation:
en: 33305b3aeaf47316
zh: d9fc73f001d6acca
en: 86301e7487e9cd74
zh: f13bc3da0b2ac2d3
/cookbook-review-a-ui-design/2-inspect-the-task-and-its-implementation/reconcile-the-baseline-across-the-whole-interface:
en: 76d008d0bac44f1f
zh: 2357d78f350b5540
/cookbook-review-a-ui-design/2-inspect-the-task-and-its-implementation/make-the-relationships-explicit:
en: 2a2e815b1b0e74e9
zh: 57f025943a700552
en: 4d26eca838abeb7a
zh: 30f2046b2dc70ed6
/cookbook-review-a-ui-design/2-inspect-the-task-and-its-implementation/keep-a-coverage-record:
en: 4fb9380f3ceeb4bb
zh: 4ce932dfc8ae84b2
en: 61b9e821e98b042a
zh: 9b67719f013e7c3c
/cookbook-review-a-ui-design/3-preserve-the-starting-point:
en: 193e00e7761fc560
zh: cc704fc699413de6
en: a0f8e8d720097515
zh: 4ff54f0c03bfdb48
/cookbook-review-a-ui-design/4-change-the-smallest-responsible-component:
en: 048668959e84707b
zh: 3e3478b0c313ed43
en: 8bcdb909b6825a5e
zh: e140ca3873b302b9
/cookbook-review-a-ui-design/5-verify-behavior-and-comparable-images:
en: ed5690014ab05334
zh: 3f25d7f5118dd2a6
en: 437f3a735dbfa486
zh: 7d6ccfd8da698c49
/cookbook-review-a-ui-design/6-deliver-the-complete-evidence:
en: 7cf5020be5145c13
zh: 810942039512af69
en: cea04ecd81785ca2
zh: b321ae244f050b1c
/cookbook-review-a-ui-design/6-deliver-the-complete-evidence/comparison-delivery-and-cumulative-changes:
en: a6c7ea042ef480d8
zh: f638f58639cc6888
en: c81cdec4ac3decca
zh: 9dcb16b292414fda
/cookbook-review-a-ui-design/further-exploration:
en: 98ac3512211d94ae
zh: 055418a72f29a15b
+27 -23
View File
@@ -8,11 +8,11 @@ English | [中文](reviewing-ui-design.zh.md)
## Summary
Use this workflow for impact-scoped UI changes and explicitly requested whole-interface reviews. Read the page or modal as context, compare affected relationships across and within groups, then record findings and make authorized changes. The [principles and case reference](../ui-design-review-cases.md) supplies judgment criteria; examples do not define coverage. The [required review loop](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop) owns triggers, execution timing and completion criteria.
Use this cookbook for explicitly requested comprehensive reviews and for evidence steps justified by a change's impact or regression risk. Ordinary development follows the lightweight path in the [UI change workflow](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop); it does not execute every section below. The [principles and case reference](../ui-design-review-cases.md) supplies judgment criteria, not a mandatory checklist. Existing tests, GUI PR GIFs and designer/product approval remain governed by their original owners.
Check the complete icon box, including intentional internal whitespace, text columns and gaps before judging the drawn contour. Hit targets are not icon boxes; do not align each glyph’s painted pixels independently. See the [alignment principle](../ui-design-review-cases.md#alignment).
Check associated icons and text against the [same-color rule](../../.agents/skills/dsh-ui-icons/SKILL.md#placement-and-use), including submenu values with chevrons and search placeholders with magnifiers. Compare rendered color and opacity in both themes; record semantic exceptions explicitly.
Check associated icons and text against the [same-foreground rule](../../.agents/skills/dsh-client-ui-ux/references/icons.md#placement-and-use), including submenu values with chevrons and search placeholders with magnifiers. Compare rendered color and opacity in both themes; preserve semantic exceptions.
## Table of Contents
@@ -28,16 +28,16 @@ Check associated icons and text against the [same-color rule](../../.agents/skil
<a id="proposition"></a>
## 1. Define the page or modal in scope
Name the user task and affected page or modal. Select the scope below before editing; routine changes do not default to a product-wide audit. For an explicit full review, enumerate the pages and modals and inspect every region and relevant state within that scope. State local scope and do not present its result as a whole-page conclusion.
Identify the user task and affected page or modal. Record scope when several regions, consumers or design choices need coordination; a straightforward local change needs no separate plan. For an explicitly requested comprehensive review, enumerate the requested pages/modals and relevant states. Do not present local inspection as a whole-page result.
Use the [judgment priorities](../ui-design-review-cases.md#judgment) across that scope: alignment and spatial grouping first, then density, hierarchy, states, component choice, icon optics and geometry. Express each finding as an observable relationship, such as content appearing closer to the next group than to its own label. Follow the user’s requested order and authorization; a full review can identify multiple related defects, and existing implementation authorization does not require renewed approval for routine adjustments.
Use the [judgment priorities](../ui-design-review-cases.md#judgment) across that scope: alignment and spatial grouping first, then density, hierarchy, states, component choice, icon optics and geometry. Express each finding as an observable relationship, such as content appearing closer to the next group than to its own label. Follow the user’s requested order and authorization; a full review can identify multiple related defects, and permission to implement routine adjustments does not replace the [required designer/product review](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation).
Read the [client UI skill](../../.agents/skills/dsh-client-ui-ux/SKILL.md) and the applicable architecture before editing. Use the [responsive skill](../../.agents/skills/dsh-responsive-ui/SKILL.md) for width and input changes, the [style reference](../web-styling.md) for tokens, and the [radius standard](../ui-radius.md) for corner geometry. This workflow adds review and evidence steps, not another set of visual tokens.
<a id="review-scope"></a>
### Select scope by visual impact
Record the scope in a few task-note sentences before editing: changed position → affected groups and shared axes → consumers and conditions → planned evidence. Use a table only when several pages or variants need tracking. File count and package boundaries do not determine visual reach.
Choose inspection scope from the table below. For broader changes, a few task-note sentences can track affected groups, consumers and risk conditions; use a coverage table only when it helps a multi-region review. Local changes do not need a scene inventory. File count and package boundaries do not determine visual reach.
| Change | Minimum inspection scope |
|---|---|
@@ -49,14 +49,16 @@ Record the scope in a few task-note sentences before editing: changed position
A shared consumer can reuse evidence only when the relevant implementation, size, container constraints, content behavior and states are equivalent; record the grouping and its basis. Inspect uncertain cases directly. Source inspection of all consumers is not a claim to have opened every page. Expand scope when a defect recurs beyond the initial region or a fix changes adjacent relationships. Record unrelated discoveries separately instead of silently starting a product-wide redesign.
Choose conditions that challenge the change: long or multiline content for sizing, both themes for color, constrained widths and affected breakpoints for layout, and concurrent states for interaction. Apply the owning responsive and behavior requirements; do not exhaust unrelated combinations or replace coverage reasoning with a fixed screenshot count. Reuse unchanged rules and valid evidence within the task, and recapture after a coherent batch of edits rather than every CSS adjustment. Read only the relevant principle sections and examples; an uncertain design decision is a reason to retrieve more detail.
Apply the [minimum checks](../../.agents/skills/dsh-client-ui-ux/SKILL.md#minimum-checks-for-affected-ui) to each changed property: color requires both themes; layout, spacing, typography and sizing require constrained and long-content checks; interaction requires the affected path and states. These are inspection requirements, including for local edits, not a demand for a screenshot of every condition. Apply the owning responsive and behavior requirements; do not exhaust unrelated combinations or replace coverage reasoning with a fixed screenshot count. Reuse unchanged rules and valid evidence within the task, and recapture after a coherent batch of edits rather than every CSS adjustment. Read only the relevant principle sections and examples; an uncertain design decision is a reason to retrieve more detail.
<a id="inspect"></a>
## 2. Inspect the task and its implementation
Open the actual application at the task's normal entry point. Read in the user's order: page purpose, current content or selection, relevant explanation, primary action, then secondary actions. Identify where alignment, spacing, emphasis, or a control's behavior contradicts that order. Inspect the owning component and its computed styles to distinguish a real layout defect from content, loading, or an unfinished animation.
Inspect the affected result at the normal application entry point. Reuse an instance serving the current implementation; do not restart or rebuild solely for each small edit. Follow the relevant task path and use computed styles when needed to distinguish layout defects from content, loading or unfinished animation.
Write each candidate as a short finding: scene and state, observable effect on the task, source owner, smallest proposed change, and the condition that would make the change inappropriate. Prioritize frequent or shared controls and clearly visible defects. A source search for differing numbers is evidence to inspect, not sufficient reason to standardize them.
For ordinary changes, a finding needs its location, visible problem, correction and verification. Add source ownership, alternatives and conditions that would invalidate the correction when they affect the decision. Prioritize visible or shared defects; differing source numbers alone do not justify standardization.
When diagnosing spacing, record layout boxes, margins, padding, line boxes and visible glyph edges separately. State whether a close control aligns by its button edge or icon box, and check trigger/menu text insets across their different icon sizes. An annotation of visible whitespace is not a measured CSS margin.
### Reconcile the baseline across the whole interface
@@ -66,7 +68,7 @@ Apply the [whole-page and modal principles](../ui-design-review-cases.md#whole-i
### Make the relationships explicit
Before reading CSS, name the semantic groups and draw their shared axes on a full-context screenshot or a simple diagram. Include repeated elements across component boundaries. Record the following for each region; these are review notes, not a new product configuration file.
Identify the relevant groups and alignment references. Draw axes or annotate a full-context screenshot only when the relationship is complex, disputed or needs explanation; this is not a prerequisite to reading CSS. The following prompts are optional aids for documenting a review, not fields to fill for every local change.
| Observation | Record | Example |
|---|---|---|
@@ -87,27 +89,27 @@ Use locally maintained production-component fixtures to reproduce controlled sta
### Keep a coverage record
Use the following record for multi-region reviews; a local change can keep the same facts in a short task note. Do not target a fixed case count. Inspect the selected pages, groups and relationship-changing expansions in context; associate shared-component changes with their affected consumers and any justified equivalent groups.
Use the following record for an explicitly requested comprehensive review or when several regions need tracking. Ordinary local changes need no coverage table or separate note reproducing every field. Inspect the affected relationships and preserve justified equivalence when grouping shared consumers.
| Page or dialog and entry | Semantic groups and cross-group relationships | Inspected conditions | Finding and owner | Evidence after correction | Uninspected |
|---|---|---|---|---|---|
| Name the actual entry and region | Specify both endpoints and complete boxes or text axes | Content, width, theme, state | Record the rule and responsible component | Comparison and relevant behavior results | State limits rather than an ambiguous covered status |
Write each finding as observation, compared objects and intended relationship, structural or computed-style evidence, smallest responsible correction, neighboring relationships at risk, and recheck conditions. Keep insufficiently supported candidates pending instead of applying bulk changes; trace confirmed problem classes through actual consumers until repeated occurrences within the declared scope have recorded results.
For complex findings, explain the compared objects, intended relationship, supporting evidence and risky neighboring effects. Include a plausible wrong fix or retest condition when it clarifies the decision; ordinary findings use the short form above. Keep unsupported candidates pending and investigate confirmed repeated problems within the chosen scope, without starting unrelated cleanup.
<a id="baseline"></a>
## 3. Preserve the starting point
Record the starting source and capture the relevant scenes before editing. Existing uncommitted work is part of that starting point: preserve it with a recoverable snapshot or exact file copies, and compare this round against that snapshot rather than assuming `HEAD` represents the visible application. Keep the source version, scene inputs, and capture conditions with the evidence.
Preserve a recoverable starting version and relevant captures when a comparison is requested or needed to assess a broader change or regression risk. Routine local changes do not require an extra source snapshot or before image. When retaining a baseline, include existing uncommitted work rather than assuming `HEAD` represents the visible application, and record the source identity and capture conditions.
Save the baseline captures with their source identity and conditions in a local evidence directory.
When captures are needed, save images and their conditions in `.ui-review/` at the checkout root or another explicitly selected local directory. The repository ignores `.ui-review/` for generated evidence; review tools can remain installed outside the checkout.
Map every intended visible change to a scene before implementing it. Include controls inside expanded rows, dialogs, alternate provider forms, and loading or disabled states when those positions change. One screenshot of a collapsed parent does not cover its hidden controls. Use safe fixture data for destructive or unavailable states instead of saving changes to a user's real task solely to obtain a screenshot.
Use a scene map for comprehensive reviews or multi-state comparisons that need it; simple changes can be checked directly at the affected position. Include expanded rows, dialogs and relevant loading/disabled states when they affect the claim. A collapsed parent does not cover hidden controls. Use safe fixture data for destructive or unavailable states instead of changing a user's real task just for a screenshot.
<a id="implement"></a>
## 4. Change the smallest responsible component
Fix the owner that creates the inconsistency. A page layout belongs to that page; a shared control state belongs to its primitive; a glyph’s optical viewport belongs to the icon library when the imbalance follows it across consumers. Reuse existing components and theme aliases. Keep each correction tied to a finding from the whole-interface review, recheck affected relationships, and preserve independent workspace changes.
Fix the owner responsible for the task: the page for page layout, its primitive for a shared control state, or the library for glyph imbalance repeated across consumers. Reuse components and theme aliases, verify affected relationships and preserve independent workspace changes. A development fix need not first become a formal review finding.
Check the states that can conflict with the change: for example selected with hover or keyboard focus, expanded with focus, busy with disabled, and validation with long content. Check the narrow container and the width just on each side of a changed breakpoint. Preserve input drafts, keyboard focus, dismissal, and access to the primary action when layout changes. Follow the [testing policy](../testing.md) for checks that exercise behavior; do not add assertions that merely repeat CSS declarations.
@@ -118,11 +120,11 @@ When build or hot-reload state is uncertain, create a separate application insta
<a id="verify"></a>
## 5. Verify behavior and comparable images
Verify the result in the actual application where reachable. Supplement it with production-component fixtures for precise or hard-to-reach states, clearly labeling that source. Use the same content, theme, locale, viewport, zoom, device scale, interaction state, and content anchor for each comparison. Let fonts, data, and transitions settle; a static capture mode may suppress motion in the fixture, but must retain the intended final state.
Inspect the affected result and directly affected neighbors in the actual page. If a required scene is unavailable, report the missing check, reason and next verification; labeled production-component fixtures provide partial evidence, not an actual-page pass. Extra screenshots and comparisons are required when requested or needed to explain broad changes or assess regression risk; routine edits need no separate report. This changes recordkeeping, not the minimum inspection or existing GIF rules. For a comparison, match content, theme, locale, viewport, zoom, device scale, interaction state and content anchor; let fonts, data and transitions settle.
Save final captures in a separate directory and pair them by scene identity and matching conditions.
When producing a comparison, save final captures separately and pair them with the corresponding starting scene under matching conditions.
Check matching capture IDs, dimensions and conditions against the declared scene inventory. Resolve mismatches by correcting the scene or capture conditions. Do not stretch an image, silently change its crop, or present a reconstructed fixture as an earlier application screenshot. A comparison report proves neither complete change coverage nor visual quality: reconcile the expected scenes with the final changes and inspect every image yourself.
For retained comparisons, check dimensions and capture conditions; use scene IDs when there is an inventory. Correct mismatched conditions instead of stretching images, silently changing crops or presenting a reconstructed fixture as an earlier application screenshot. Inspect the delivered images and check that they support the stated scope.
Two captures with the same rendered-source fingerprint demonstrate the capture and reporting workflow, not a UI improvement. An actual before-and-after comparison captures the starting implementation before editing and the resulting implementation afterward. Keep that distinction visible in the delivered report.
@@ -131,22 +133,24 @@ Use equal-sized paired crops with the same content origin when a full page hides
<a id="deliver"></a>
## 6. Deliver the complete evidence
Present each case as scene and problem, design judgment, then its screenshot or paired comparison immediately below. Add a caption naming what to inspect, what each side means, and the source. Do not collect unrelated cases into a detached screenshot wall. If the difference is only faintly visible or the image omits the relationship, choose stronger evidence instead of presenting it as a design exemplar.
An ordinary handoff states what changed, what was checked and any material gap; a short explanation or screenshot can suffice. For a requested detailed case report, place the scene/problem and design judgment beside its image, caption the source and explain what to inspect. Avoid detached screenshot collections or images that do not show the claimed relationship.
Present each proposition with a concise explanation and its before-and-after pairs, before on the left and after on the right, linked to the originals. Identify actual application captures and isolated production-component scenes separately. If the user requests all changes, reconcile the final diff against the scene map and cover every changed visible position, including nested controls; state any missing evidence explicitly.
When a before/after comparison is part of the deliverable, label both sides and distinguish application captures from isolated component scenes. If the user requests all changes, reconcile that scope with the final diff, including nested controls, and state missing evidence. Do not require a paired report for every ordinary correction.
For each reviewed region, report one of: no visible defect found in the stated conditions, a defect with evidence, or not inspected. A finding includes the compared objects, applicable rule owner, intended relation, visible difference, correction, plausible wrong fix, retest condition, and any justified exception. Do not average away a known alignment/grouping failure with unrelated passing checks or infer an overall pass from representative glyphs.
For comprehensive reviews, distinguish inspected-without-findings, defects and uninspected regions. For ordinary changes, report the result and material gaps without a per-region status ledger. Add rule ownership, wrong-fix examples, exceptions or retest conditions only when useful to explain a finding. Known defects cannot be canceled by unrelated passing checks.
Report the checks actually run and their outcome, and distinguish automated metadata checks, behavior tests, and human visual inspection. Include material limitations such as an unavailable application state or an untested platform. Do not describe the work as fully verified while required scenes or checks remain outstanding.
Before handoff, apply the [completion criteria](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop) to the final diff and retained evidence. A concise result with scope, comparison and relevant checks suffices for a local change; a large report is not required. Before PR or push, check cumulative interactions and evidence validity, and rerun only invalidated or missing checks. This is an agent review obligation, not automatic visual approval by CI. Human review for consequential design decisions follows the [escalation rule](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation); explicitly requested or periodic human audits supplement daily checks.
Use the [UI change workflow](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop) at handoff, review and push to check new cumulative effects or invalidated evidence, not to repeat completed inspection. No extra report is required for an unchanged result. Tests and agent inspection do not replace the existing [designer/product approval requirement](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation).
### Comparison delivery and cumulative changes
Keep before on the left and after on the right; use horizontal browsing on narrow screens rather than splitting a pair vertically. Mark regions with a few boxes, shared axes with dashed lines, and locations with arrows only on the after side; annotations must not obscure the text or icons under inspection. Keep annotations as a removable overlay and retain untouched original captures. Explain the relationship before its comparison; retain both endpoints for cross-group findings, supplementing with detail crops and complete pages when needed. Recheck a general report tool’s default presentation against this section; successful generation does not establish left/right layout or after-side annotation compliance.
For a formal comparison report, use before on the left and after on the right. Add non-obscuring annotations only when helpful, on the after image, and retain originals; a removable overlay is useful for interactive reports. Choose a readable narrow-screen presentation rather than requiring a special report interface. Ordinary handoffs may use simple labeled images or concise text; the original GIF requirements remain unchanged.
Deduplicate cumulative summaries by location: pair the earliest reliable before image with the final implementation, retaining comparable conditions. Keep intermediate rounds only as historical evidence, not separate final results; reverted proposals are not current results. List another session's retained changes separately without claiming them. Disclose missing baselines or uncertain ownership. Record actual checks without adding repeated runs as extra coverage.
For an all-changes summary, trace each claim to the cumulative diff, current owner and retained evidence. Separate net changes from behavior already in the baseline; resolve later user revisions before naming final values. Label older captures as historical when they no longer show the current result, and distinguish source-confirmed behavior from a scene inspected again. Feed reusable decisions back to their rule owner and contrasting cases, not local pixel values or an unsupported whole-product pass.
<a id="further-exploration"></a>
## Further Exploration
+27 -23
View File
@@ -8,11 +8,11 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
## 概览
本流程用于按影响范围审查 UI 改动,以及用户明确要求的完整界面审查。先以页面或弹窗为上下文,比较受影响的组间与组内关系,再记录发现并执行已授权的修改。[原则与案例参考](../ui-design-review-cases.zh.md)提供判断依据,例子不定义覆盖范围。[必需审查流程](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop)统一规定触发条件、执行时机和完成标准。
本手册用于明确要求的完整审查,以及由改动影响或回归风险决定需要采用的证据步骤。普通开发按 [UI 改动流程](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop)走轻量路径,不逐节执行本手册。[原则与案例参考](../ui-design-review-cases.zh.md)提供判断依据,不是必做清单。既有测试、GUI PR GIF 和设计/产品审批继续按原有规则执行。
对齐审查先核对图标完整空间(含有意保留的内部留白)、文字列和间距,再检查实际轮廓。热区不等于图标框;不逐个拉齐 glyph 的像素边缘。判断顺序见[对齐原则](../ui-design-review-cases.zh.md#alignment)。
依据[图文同色规则](../../.agents/skills/dsh-ui-icons/SKILL.md#placement-and-use)检查关联的图标与文本,包括子菜单值及其箭头、搜索占位文字及其放大镜。比较明暗主题中的实际颜色与透明度,并明确记录语义例外。
按[同前景色规则](../../.agents/skills/dsh-client-ui-ux/references/icons.md#placement-and-use)核对关联图标与文字,包括子菜单值与箭头、搜索占位文字与放大镜;检查明暗主题中的实际颜色和透明度,保留语义例外。
## 目录
@@ -28,16 +28,16 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
<a id="proposition"></a>
## 1. 确定受审页面或弹窗
写明用户任务和受影响的页面或弹窗,编辑前按下文选择范围;日常改动不默认扩大为整个产品审查。明确要求完整审查时,列出页面与弹窗,检查范围内所有区域及相关状态。局部审查要说明范围,不将结果表述为整页结论。
确定用户任务和受影响页面或弹窗。涉及多个区域、使用方或设计取舍时记录范围;明确的局部修改不需要单独写计划。用户明确要求完整审查时,列出指定页面/弹窗及相关状态。不能把局部检查表述成整页结论。
在这个范围内应用[判断优先级](../ui-design-review-cases.zh.md#judgment):先检查对齐与空间分组,再审查密度、层级、状态、组件选型、图标光学和几何。每个发现写成可观察的关系,例如内容与隔壁组的距离反而小于与自身标签的距离。遵循用户指定的顺序和授权;完整审查可以发现多个相关问题,已有实施授权不需要为常规调整重复请求批准。
在这个范围内应用[判断优先级](../ui-design-review-cases.zh.md#judgment):先检查对齐与空间分组,再审查密度、层级、状态、组件选型、图标光学和几何。每个发现写成可观察的关系,例如内容与隔壁组的距离反而小于与自身标签的距离。遵循用户指定的顺序和授权;完整审查可以发现多个相关问题,常规调整的实施授权不能替代[既有设计/产品审查要求](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation)。
编辑前阅读[客户端 UI Skill](../../.agents/skills/dsh-client-ui-ux/SKILL.md)和适用架构。宽度与输入方式变更使用[响应式 Skill](../../.agents/skills/dsh-responsive-ui/SKILL.md),令牌规则查阅[样式参考](../web-styling.zh.md),圆角几何查阅[圆角标准](../ui-radius.zh.md)。本流程补充审查和证据步骤,不另建一套视觉令牌。
<a id="review-scope"></a>
### 按视觉影响选择范围
编辑前用几句话记录:改动位置 → 受影响的组与共用轴线 → 使用方及条件 → 计划保留的证据。涉及多个页面或变体时再用表格追踪。文件数量和包边界不能决定视觉影响范围。
按下表选择检查范围。较大改动可用几句任务笔记追踪受影响的组、使用方与风险条件;多区域审查确有需要时再用覆盖表。局部修改无需场景清单。文件数量和包边界不能决定视觉影响范围。
| 改动 | 最小检查范围 |
|---|---|
@@ -49,14 +49,16 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
只有相关实现、尺寸、容器约束、内容行为和状态等价时,共享组件使用方才能复用证据;记录归类和依据。不确定的场景直接检查。源码排查全部使用方不等于逐页打开过。问题在初始区域外重复出现,或改法影响邻接关系时,扩大范围。无关发现单独记录,不静默开始整个产品重设计。
按改动选择挑战条件:尺寸检查长文案或多行内容,颜色检查明暗主题,布局检查窄容器和受影响断点,交互检查共存状态。遵守所属响应式与行为要求,不穷举无关组合,也不用固定截图数替代覆盖判断。同一任务中复用未变规则和有效证据,一组相关修改完成后再截图,不逐条 CSS 调整都重拍。只读取相关原则和案例;设计判断不明确时再补充查阅。
对每项变化执行[最低检查要求](../../.agents/skills/dsh-client-ui-ux/SKILL.md#minimum-checks-for-affected-ui):颜色必须查明暗主题;布局、间距、字体和尺寸必须查窄容器与长内容;交互必须查受影响路径和状态。局部修改也要完成这些检查,但不要求每个条件都保存截图。遵守所属响应式与行为要求,不穷举无关组合,也不用固定截图数替代覆盖判断。同一任务中复用未变规则和有效证据,一组相关修改完成后再截图,不逐条 CSS 调整都重拍。只读取相关原则和案例;设计判断不明确时再补充查阅。
<a id="inspect"></a>
## 2. 检查任务路径与实现
从正常入口打开实际应用。按用户的顺序阅读:页面用途、当前内容或选择、相关说明、主操作,再到次要操作。找出对齐、间距、强调方式或控件行为与该顺序冲突的位置。检查所属组件及其计算样式,区分真实布局缺陷与内容、加载或尚未结束的动画造成的现象。
从正常应用入口检查受影响的结果。复用正在运行且使用当前实现的实例,不为每次微调单独重启或重建。沿相关任务路径检查,必要时使用计算样式区分布局缺陷与内容、加载或未结束动画造成的现象。
将候选问题写成简短发现:场景与状态、对任务可见的影响、源码归属、最小建议改法,以及不适用该改法的条件。优先高频或共享控件和明显缺陷。搜索到源码中的数值差异,只能说明需要检查,不能直接成为统一数值的理由。
普通改动说明问题位置、可见现象、修正和验证即可。源码归属、替代方案及改法不适用的条件影响判断时再补充。优先处理可见或共享缺陷;源码数值不同本身不能成为统一数值的理由。
诊断间距时,分别记录布局框、margin、padding、文字行框和字形可见边缘。明确关闭控件按按钮边缘还是图标框对齐,并核对不同图标尺寸下入口与菜单的文本内缩。可见留白的标注不等于测得了 CSS margin。
### 在整个界面内核对适用规范
@@ -66,7 +68,7 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
### 把关系明确写出来
阅读 CSS 前,先说清语义组,并在保留上下文的截图或简图上画出共用轴线,包含跨组件的重复元素。为每个区域记录以下内容;这些是审查笔记,不是新的产品配置文件。
确定相关分组和对齐参照。关系复杂、有争议或需要解释时,才画轴线或标注保留上下文的截图;画图不是阅读 CSS 的前置条件。下表是记录审查时可选的提示,不要求每次局部修改逐项填写。
| 观察项 | 记录内容 | 示例 |
|---|---|---|
@@ -87,27 +89,27 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
### 为审查建立覆盖记录
多区域审查使用下列记录;局部改动可用简短任务笔记记录相同事实。不把固定案例数量当作目标。在上下文中检查选定页面、分组与改变关系的展开区,关联共享组件的受影响使用方及有依据的等价分组。
明确要求完整审查,或确有多个区域需要追踪时使用下表。普通局部修改不需要覆盖表,也不必另写笔记重述所有字段。检查受影响的关系,对共享使用方分组时保留有依据的等价判断。
| 页面/弹窗与入口 | 语义组及跨组关系 | 已查条件 | 发现与归属方 | 修正后证据 | 尚未检查 |
|---|---|---|---|---|---|
| 填实际入口与区域 | 指定比较两端、完整框或文字轴 | 内容、宽度、主题、状态 | 记录规则和责任组件 | 对照图与相关行为结果 | 写明限制,不留含糊的“已覆盖” |
每个发现按“现象 → 比较对象与预期关系 → 结构或计算样式证据 → 最小责任改法 → 可能破坏的邻接关系 → 复查条件”书写。证据不足的候选保留为待核实,不先批量修改;已确认的同类问题则沿实际使用方继续查找,直到本次声明范围内的重复位置均有结果。
复杂问题再说明比较对象、预期关系、支持证据和可能受损的邻接关系。错误修法或复查条件有助于判断时再写;普通发现采用前面的简短形式。证据不足的候选保留为待核实,在选定范围内排查已确认的重复问题,不顺带开展无关清理。
<a id="baseline"></a>
## 3. 保留起点
编辑前记录起始源码并拍摄相关场景。已有未提交改动也是起点的一部分:用可恢复快照或精确文件副本保留它,并以该快照比较本轮变化,不能假定 `HEAD` 就是当前可见应用。证据同时保留源码版本、场景输入和截图条件。
明确要求对照,或较大改动及回归风险需要对照时,保留可恢复的起始版本与相关截图。普通局部修改不要求额外源码快照或修改前截图。保留基线时需包含已有未提交改动,不能假定 `HEAD` 就是当前可见应用,并记录源码身份与截图条件。
把基线截图及其源码身份、截图条件保存在本地证据目录。
需要截图时,把图像及其条件保存在工作树根目录的 `.ui-review/`,或另行明确选择的本地目录。仓库忽略 `.ui-review/` 中的生成证据;审查工具仍可安装在工作树之外。
实施前,为每处计划中的可见修改对应一个场景。展开行、对话框、不同提供商表单,以及加载或禁用状态中的位置发生变化时,也要纳入。折叠父组件的一张截图不能覆盖隐藏控件。破坏性或暂不可达的状态使用安全 fixture 数据,不要仅为截图而保存对用户真实任务的修改。
完整审查或需要追踪多个状态的对照使用场景映射;简单改动可直接检查受影响位置。展开行、弹窗及相关加载/禁用状态影响结论时应纳入,折叠父组件不能覆盖隐藏控件。破坏性或暂不可达状态使用安全 fixture 数据,不为截图而修改用户的真实任务。
<a id="implement"></a>
## 4. 修改最小责任组件
修改产生不一致的归属方。页面布局由该页面负责,共享控件状态由基础组件负责;若一个 glyph 在多个使用位置都失衡,则由图标库负责它的光学视口。复用现有组件和主题别名。每处修正对应整体审查中的一个发现,复查受到影响的关系,并保留工作区已有的独立改动。
修改负责该任务的归属方:页面布局由页面负责,共享控件状态由基础组件负责,跨使用方重复的 glyph 失衡由图标库负责。复用组件与主题别名,验证受影响关系并保留工作区已有独立改动。开发修正无需先写成一条正式审查发现。
检查可能与本次修改冲突的状态,例如选中与悬停或键盘焦点叠加、展开与焦点叠加、忙碌与禁用叠加,以及校验信息与长内容共存。检查窄容器和变更断点两侧的临界宽度。布局变化时保留输入草稿、键盘焦点、关闭方式及主操作的可达性。按[测试策略](../testing.zh.md)验证行为,不添加只复述 CSS 声明的断言。
@@ -118,11 +120,11 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
<a id="verify"></a>
## 5. 验证行为与可比较的截图
能够到达时,在实际应用中验证结果。精确或难以到达的状态可补充生产组件 fixture,并明确标注来源。每组对照保持相同内容、主题、语言、视口、缩放、设备像素比、交互状态和内容锚点。等待字体、数据和过渡稳定;fixture 的静态截图模式可以停用动画,但必须保留预期终态。
在实际页面中检查受影响结果及直接相关的邻接元素。必要场景不可用时,说明缺了哪项检查、原因和下一步验证方法;标明来源的生产组件 fixture 可提供部分证据,不能算作实际页面通过。用户要求对照,或解释较大改动、评估回归风险需要时,才额外保存截图和对照;常规修改无需独立报告。这里简化的是留档,不是最低检查或既有 GIF 要求。制作对照时保持内容、主题、语言、视口、缩放、设备像素比、交互状态和内容锚点一致,并等待字体、数据和过渡稳定。
把最终截图保存到独立目录,并按场景身份及相同条件配对。
制作对照时,将最终截图单独保存,并按对应的起始场景和相同条件配对。
按声明的场景清单检查两侧截图 ID、尺寸和条件是否一致。条件不符时修正场景或截图条件。不要拉伸图像、默默改变裁剪范围,或把重建 fixture 当作更早的应用截图。对比报告不能证明改动覆盖完整,也不能证明视觉质量;仍需将预期场景与最终改动核对,并亲自检查每张图。
保留对照时检查尺寸和截图条件;有场景清单时再核对场景 ID。修正不匹配的条件,不拉伸图片、默默改变裁剪,或把重建 fixture 当作更早的应用截图。检查交付图片,确认它们支持所声明的范围。
两次截图的渲染源码指纹相同时,只能演示截图与报告流程,不能证明 UI 改进。真正的前后对照应当在编辑前拍摄起始实现,编辑后拍摄结果实现。交付报告中也要清楚保留这一区别。
@@ -131,22 +133,24 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
<a id="deliver"></a>
## 6. 交付完整证据
每个案例按“场景与问题 → 设计判断 → 紧接下方的截图或成对对照”呈现。图注说明看哪里、两侧分别表示什么及来源。不要把无关案例集中成脱离正文的截图墙。差异只有勉强可辨、或图片没有包含所讨论关系时,应选择更有解释力的证据,不能将其当作设计范例。
普通交付说明改了什么、检查结果和重要缺口,简短解释或截图即可。明确要求详细案例报告时,将场景/问题、设计判断与图片放在一起,图注说明来源及关注位置。避免脱离正文的截图集合或无法展示所述关系的图片。
每个命题附简短说明与前后对照,左侧为修改前,右侧为修改后,并链接原图。分别标明实际应用截图与生产组件隔离场景。用户要求全部修改时,将最终 diff 与场景映射逐项核对,覆盖每个发生变化的可见位置,包括嵌套控件;缺少的证据明确说明。
交付需要前后对照时,标明两侧含义并区分真实应用截图与隔离组件场景。用户要求全部修改时,将该范围与最终 diff 核对,包含嵌套控件,并说明缺少的证据。普通修正不要求每项制作成对报告。
每个受审区域分别报告:在所述条件下未发现可见缺陷、有证据的缺陷、或尚未检查。发现包含比较对象、适用规则所有方、预期关系、可见差异、修正、看似合理的误修、复查条件及合理例外。不能用无关检查通过来抵消已知的对齐/分组失败,也不能由代表 glyph 推断整体通过。
完整审查区分已查无发现、有缺陷和尚未检查的区域。普通修改报告结果和重要缺口,无需逐区域状态账目。规则归属、错误修法、例外或复查条件有助于解释发现时再补充。无关检查通过不能抵消已知缺陷。
报告实际运行的检查及结果,区分自动元数据校验、行为测试与人工读图。说明重要限制,例如应用状态暂不可达或某个平台尚未测试。必需场景或检查未完成时,不要声称已经完整验证。
交付前,按[完成标准](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop)核对最终 diff 与保留证据。局部改动提供简短范围、对照和相关检查结果即可,不要求大型报告。推 PR 或推送前检查累计影响与证据有效性,只补做失效或缺失的检查。这是 agent 的执行要求,不代表 CI 自动批准视觉质量。重要设计决策按[人工审查条件](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation)处理;明确要求或定期开展的人工审查补充日常检查。
交付、评审和推送时按 [UI 改动流程](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop)检查新增累计影响或失效证据,不重复已经完成的检查。结果未变时无需额外报告。测试和 agent 检查不能替代既有[设计/产品审批要求](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation)。
### 对比交付与累计改动
对照固定为左前右后;窄屏保持成对横向浏览,不自动拆成上下两张。右图用少量框标区域、虚线标共同轴、箭头指位置;标注不能遮住待检查的文字或图标。标注作为可关闭的叠加层,保留未修改的原始截图。每个案例先解释关系,再紧接对照;涉及跨组关系时保留两端,必要时另附局部放大和完整页面。 通用报告工具的默认排版仍需按本节复查;生成成功不表示已经满足左右布局和右图标注要求。
正式对照报告采用左前右后。有助于解释时才在修改后图片上添加不遮挡内容的标注,并保留原图;交互报告可使用可关闭的叠加层。窄屏选择可读的呈现方式,不强制制作专门的报告界面。普通交付可用简单标明含义的图片或简短文字;既有 GIF 要求保持不变。
累计汇总按位置去重:在条件可比的前提下,将最早可靠的修改前截图与最终实现配对。中间轮次只保留为历史证据,不作为独立最终成果;撤销方案不计入现存成果。另一会话的保留改动单列,不归为本次成果。缺少起点或归属不确定时明确说明。记录实际检查,不将重复执行数量当作新增覆盖。
汇总全部修改时,将每项结论追溯到累计 diff、当前实现所有方及保留证据。区分净改动与基线已有行为,先消解用户后续修订,再给出最终数值。旧截图不再代表当前结果时标为历史证据,并区分源码核验与重新打开场景检查。将可复用的判断回写规则所有方及正反案例,不把局部像素值或缺乏依据的全产品通过结论变成规范。
<a id="further-exploration"></a>
## 延伸阅读
+33 -24
View File
@@ -9,14 +9,14 @@
en: 4be954bceeeb7940
zh: d91f6595cd3e85f0
/ui-design-principles-and-review-cases/summary:
en: 1f22942d484be109
zh: 0b0ac297328aa0f2
en: 75120a3fd02294c9
zh: 498343d7b9b30e46
/ui-design-principles-and-review-cases/table-of-contents:
en: 683b785991a7952d
zh: e0a9f88db5cf9c45
en: c5680dfc600a7495
zh: c76ec05c69f1e93c
/ui-design-principles-and-review-cases/what-a-review-must-judge:
en: e51c9f121c18c998
zh: 93b35a247216be09
en: eeff4a5f5e487908
zh: 51eab38ccd10190b
/ui-design-principles-and-review-cases/review-the-entire-page-or-modal-as-one-unit:
en: 324c8d9a0ff36ebb
zh: 3a4c64e15b59f98f
@@ -36,11 +36,11 @@
en: f8b0f72251aa044f
zh: a8b05ce5f3da4221
/ui-design-principles-and-review-cases/principle-examples:
en: 1ff7bb879b274363
zh: 4659578bcdea82a3
en: 7b8a8bdc5acc11d6
zh: 96820c11d2e61787
/ui-design-principles-and-review-cases/1-alignment:
en: 31d18363696173e9
zh: d2bbca62e7ea0120
en: 0cc9d24851a11497
zh: f05bda4fcdf5deac
/ui-design-principles-and-review-cases/1-alignment/text-metrics-and-unequal-content:
en: 14558eb00e9b4902
zh: 333b28dabfccbd6c
@@ -51,17 +51,23 @@
en: 81d165cc1c5c1f7e
zh: 4aef022e141ced64
/ui-design-principles-and-review-cases/1-alignment/example-a3-alignment-between-rows-and-compound-controls:
en: 0f387b953c8c3e34
zh: 5362d3467a65ec59
en: 9e7fae1a4e649ffd
zh: c3992d7dbedbb247
/ui-design-principles-and-review-cases/1-alignment/example-a4-centering-a-content-group-within-its-container:
en: 478771b47daf2cba
zh: 0eee64751cff6c94
/ui-design-principles-and-review-cases/1-alignment/example-a5-visible-size-and-center-of-peer-controls:
en: dbbb588cbae149f0
zh: 1352a6eb01d8340f
en: 376359e2a1de44e9
zh: 2a0b0e4472efefb7
/ui-design-principles-and-review-cases/1-alignment/example-a6-text-starts-across-triggers-and-menus:
en: 1afbbce3f4908bf2
zh: aaf54b32b90a2c82
/ui-design-principles-and-review-cases/1-alignment/example-a7-choosing-the-close-control-edge:
en: c5e9a409c13637bc
zh: 37c915f187d6e9f7
/ui-design-principles-and-review-cases/2-spatial-grouping:
en: f50b8851f4ee2ac3
zh: 63076543756c294e
en: 5a2aebab7e8ab498
zh: 46a18d4ddde7fccc
/ui-design-principles-and-review-cases/2-spatial-grouping/example-g1-separating-content-from-its-action-group:
en: a4c0b1f1ad441155
zh: 360ed71994a101a8
@@ -87,11 +93,11 @@
en: 10fb29eddaac1951
zh: e05636b47e860966
/ui-design-principles-and-review-cases/4-information-hierarchy:
en: 56ecb557d54c1c2e
zh: ede48f8451af4111
en: 7e86e6ff5cd55742
zh: 852a1bb0361134a6
/ui-design-principles-and-review-cases/4-information-hierarchy/example-c1-color-emphasis-within-one-information-unit:
en: a43042a829d82c52
zh: 1609a1cdfe0bbe39
en: f64d746a9106c340
zh: ce3fa91dad4d9ae2
/ui-design-principles-and-review-cases/5-control-states:
en: d247699132b484a0
zh: b71e25d834ce2633
@@ -102,11 +108,14 @@
en: 7a49fdd5a601aa48
zh: e2f9de0d5628a878
/ui-design-principles-and-review-cases/7-icon-optics:
en: 21c39c7bbfd87382
zh: e30f9a6593b32265
en: ff60eb03e9724e71
zh: 8df625c33f3fc3aa
/ui-design-principles-and-review-cases/7-icon-optics/example-o1-optical-alignment-of-different-icon-types:
en: 3301d847dac58dc9
zh: 1eba9e56df9a39f2
en: 3858a85bdf6ee111
zh: 9c8242a594df069f
/ui-design-principles-and-review-cases/7-icon-optics/example-o2-shared-artwork-at-different-consumer-sizes:
en: 6f29eb80bfe3baf4
zh: eb3161af01dd752e
/ui-design-principles-and-review-cases/8-control-geometry-and-corner-relationships:
en: 262cfa8e7dfb969f
zh: 4987ad06db795885
+34 -12
View File
@@ -8,14 +8,14 @@ English | [中文](ui-design-review-cases.zh.md)
## Summary
Use this reference to review an entire page or modal as one visual unit. Judge alignment and spatial grouping across all regions, together with hierarchy, states, color, size and corner geometry. The examples illustrate transferable relationships; they do not define the set of screens to review. Images appear below their corresponding analysis. See the [review cookbook](cookbook/reviewing-ui-design.md) for the workflow and evidence requirements.
Consult the relevant cases when a design relationship is unclear. Ordinary changes inspect affected relationships in page/modal context; they do not require every case, an inventory or a full-page audit. The whole-interface review sections apply when a comprehensive review is explicitly requested. Examples explain transferable principles rather than coverage. See the [review cookbook](cookbook/reviewing-ui-design.md) for optional detailed methods and the owning workflow for effort levels.
## Table of Contents
- [What a review must judge](#judgment)
- [Review the entire page or modal](#whole-interface-review)
- [Applicable DSH standards](#review-baseline)
- [How to use examples](#case-selection)
- [Review the entire page or modal as one unit](#whole-interface-review)
- [Combine the applicable standards first](#review-baseline)
- [Choose cases that expose a design decision](#case-selection)
- [Principle examples](#case-index)
- [1. Alignment](#alignment)
- [2. Spatial grouping](#grouping)
@@ -40,8 +40,6 @@ The page or modal provides the reference for composition; the [impact scope](coo
The reference diagrams explain relationships; they are not implementation captures or accepted before-and-after results. The examples below explain particular principles and do not establish coverage of the page or modal under review.
<a id="combined-cases"></a>
<a id="whole-interface-review"></a>
## Review the entire page or modal as one unit
@@ -119,6 +117,8 @@ Use these examples to understand a relationship that is unclear. Apply the same
| [A3](#case-preview-toolbar) | Alignment between rows and compound controls |
| [A4](#case-empty-center) | Centering a content group within its container |
| [A5](#case-composer-controls) | Visible size and center of peer controls |
| [A6](#case-trigger-menu-text) | Text starts across triggers and menus |
| [A7](#case-close-control-edge) | Choosing the close-control edge |
| [G1](#case-title-actions) | Separating content from its action group |
| [G2](#case-team-sections) | Spacing between complex sections |
| [G3](#case-plugin-groups) | Nested groups along the reading order |
@@ -126,6 +126,7 @@ Use these examples to understand a relationship that is unclear. Apply the same
| [C1](#case-search-color) | Color emphasis within one information unit |
| [S1](#case-sidebar-state) | Persistent selection beside temporary hover |
| [O1](#case-file-optics) | Optical alignment of different icon types |
| [O2](#case-chevron-consumers) | Shared artwork at different consumer sizes |
| [R1](#case-model-radius) | Radii across container and control roles |
| [R2](#case-checkbox-radius) | Small selection controls within a form |
| [R3](#case-automation-radius) | Justified geometry differences between roles |
@@ -133,7 +134,7 @@ Use these examples to understand a relationship that is unclear. Apply the same
<a id="alignment"></a>
## 1. Alignment
The [alignment skill](../.agents/skills/dsh-ui-alignment/SKILL.md) owns shared axes, complete layout boxes, indentation and text metrics. Use the examples below to apply those decisions.
The [alignment reference](../.agents/skills/dsh-client-ui-ux/references/alignment.md) owns shared axes, complete layout boxes, indentation and text metrics. Use the examples below to apply those decisions.
![Alignment diagram: peer rows share axes while account and header controls retain their own geometry](assets/ui-design-review/principles-alignment.svg)
@@ -176,7 +177,7 @@ The comparison below shows actual preset cards with unequal descriptions. On the
**Scene and relationship.** Panel controls sit above file-display controls and an “Open in app” split button. The two rows belong to one preview header, while each row contains operations with different scopes.
**Failure and correction.** Each component may be internally centered while the assembled header has unrelated right insets, heights, and group gaps. Relate the upper icon boxes to the complete lower control, preserving internal icon whitespace rather than aligning extra hit padding or an individual glyph’s painted pixels. Align peer control centers; keep display controls together and separate the external-open action. Treat the split button as one unit. Do not force its arrow onto a column intended for an unrelated panel action.
**Failure and correction.** Each component may be internally centered while the assembled header has unrelated right insets, heights, and group gaps. Relate the upper icon boxes to the complete lower control, preserving internal icon whitespace rather than aligning extra hit padding or an individual glyph’s painted pixels. Align peer control centers; keep display controls together and separate the external-open action. Treat the split button as one unit. Reducing its outer width can equalize visible gaps while retaining the preceding icon columns; verify both segment targets and the frame’s contribution to layout. Do not force its arrow onto a column intended for an unrelated panel action.
**Acceptance.** Inspect both rows with the path, tabs, and content edge visible. Repeat with a long path and a narrow pane. A row of standalone icons is not a substitute for the actual split control.
@@ -198,10 +199,24 @@ The comparison below shows actual preset cards with unequal descriptions. On the
**Acceptance.** Compare both bases and centers in empty, enabled, busy/stop, and narrow layouts. Review the toolbar alongside the composer outline, not as two isolated button screenshots. A reference product's unequal controls do not override an explicit DSH requirement for equal bases.
<a id="case-trigger-menu-text"></a>
### Example A6: Text starts across triggers and menus
**Scene and relationship.** A permission trigger uses a larger, heavier icon than its menu rows, but their corresponding labels should start on one axis. A search prompt, result heading and option label can share a similar reading edge.
**Correction and acceptance.** Sum each surface’s border, padding, leading slot and gap before adjusting it. Matching only icon sizes or outer card edges leaves different text starts. Check the assembled open menu, longer labels and narrow layouts; distinguish device-pixel rounding of portal coordinates from a whole inset mismatch.
<a id="case-close-control-edge"></a>
### Example A7: Choosing the close-control edge
**Scene and relationship.** A modal has a close glyph inside a larger button and a footer action at the content edge. An icon-box edge and a button edge imply different header insets.
**Correction and acceptance.** Name the intended edge before changing the shared header. If the full button aligns with the footer action, retain the icon’s internal centering instead of pulling it to that edge. An explicitly icon-aligned composition remains a distinct variant. Check short and wrapping titles, description/body combinations and footer actions, and preserve the target size.
<a id="grouping"></a>
## 2. Spatial grouping
The [spacing skill](../.agents/skills/dsh-ui-spacing/SKILL.md) owns semantic groups, internal/external gap relationships and visible whitespace. The cases below explain how to apply it.
The [spacing reference](../.agents/skills/dsh-client-ui-ux/references/spacing.md) owns semantic groups, internal/external gap relationships and visible whitespace. The cases below explain how to apply it.
![Grouping diagram: equally spaced blocks versus a nested section with smaller inner gaps and larger section separation](assets/ui-design-review/principles-grouping.svg)
@@ -283,7 +298,7 @@ Make the next reading or decision step visible without turning every text elemen
Use emphasis to express a task-relevant difference. A current selection, an actionable error, and the data needed for a decision deserve stable recognition. Labels and supporting metadata can be quieter, but making useful text difficult to read is not hierarchy. Inspect size, weight, color, position, and surrounding whitespace together; piling all five onto every heading removes meaningful contrast.
Use the [icon owner](../.agents/skills/dsh-ui-icons/SKILL.md) for icon/label foreground roles and their semantic exceptions; example C1 applies that rule to search fields.
Use the [icon owner](../.agents/skills/dsh-client-ui-ux/references/icons.md) for icon/label foreground roles and their semantic exceptions; example C1 applies that rule to search fields.
Typography participates in geometry: compare text starts, baselines and line boxes with the intended font, long translations and relevant font preferences. Pair size with line height and use the weight limits from [visual foundation](../.agents/skills/dsh-client-ui-ux/SKILL.md#visual-foundation). Content, code, terminal and fixed interface roles need not scale identically; check the [font-setting owner](../packages/client/ui-theme/README.md) before treating a deliberate difference as a defect. Correct the container allocation before shrinking useful text to force alignment.
@@ -292,7 +307,7 @@ Typography participates in geometry: compare text starts, baselines and line box
**Scene and relationship.** Compare the empty automation search with the expanded sidebar search. Both pair a magnifier with a prompt, but one makes the icon darker and the other makes the text darker. A model submenu can make the same mistake by pairing a tertiary value with a primary-colored chevron.
**Correction and acceptance.** Give each prompt or value one foreground role, including its associated magnifier or chevron; darkening only the text or only the icon leaves the mismatch. Compare computed color, opacity, disabled styling, and the background together; two identical color tokens can still differ after an ancestor fades one child. Test empty, typed, focused, disabled, light, and dark variants. Typed query text and an independently actionable clear button need not use the placeholder's weaker role.
**Correction and acceptance.** Give the empty-field prompt one foreground role, including the leading icon. Compare computed color, opacity, disabled styling, and the background together; two identical color tokens can still differ after an ancestor fades one child. Test empty, typed, focused, disabled, light, and dark variants. Typed query text and an independently actionable clear button need not use the placeholder's weaker role. A submenu value and its trailing chevron also form one value: a muted model name with a darker chevron fails that relationship even when their geometry is correct.
<a id="states"></a>
## 5. Control states
@@ -328,7 +343,7 @@ Keep the control's label, visible bounds, focus behavior, and click target consi
<a id="icon-optics"></a>
## 7. Icon optics
The [icon skill](../.agents/skills/dsh-ui-icons/SKILL.md) owns interface icon roles, slots, color and optical balance. [Official artwork](../.agents/skills/dsh-official-plugin-artwork/SKILL.md) retains its separate role.
The [icon reference](../.agents/skills/dsh-client-ui-ux/references/icons.md) owns interface icon roles, slots, color and optical balance. [Official artwork](../.agents/skills/dsh-official-plugin-artwork/SKILL.md) retains its separate role.
<a id="case-file-optics"></a>
### Example O1: Optical alignment of different icon types
@@ -337,6 +352,13 @@ The [icon skill](../.agents/skills/dsh-ui-icons/SKILL.md) owns interface icon ro
**Correction and acceptance.** Preserve the depth indent and common text start. Normalize the placement slots, then compare visible centers and perceived weight within them. Do not move the label to compensate for one glyph, or align all depths to one edge. Inspect at normal size and magnification, with selected backgrounds and long names; the magnified view diagnoses the drawing, while normal size determines whether the result balances.
<a id="case-chevron-consumers"></a>
### Example O2: Shared artwork at different consumer sizes
**Scene and relationship.** A chevron appears beside a menu label and inside a larger floating button. Enlarging its drawing within the same view box changes both appearances.
**Correction and acceptance.** Compare the directional family, both weights and actual consumer sizes. Keep a modest supporting glyph beside text; reduce the floating control’s icon size if needed without shrinking its button. A large glyph sheet alone does not establish balance in either composition.
<a id="geometry"></a>
## 8. Control geometry and corner relationships
+32 -10
View File
@@ -8,13 +8,13 @@ description: "DSH 设计判断参考:对齐、空间分组、信息层级、
## 概览
用本参考把整页或整个弹窗作为一个视觉整体审查。在所有区域之间统一判断对齐与空间分组,同时比较层级、状态、颜色、尺寸和圆角。下文例子解释可以迁移的关系,不限定要审查哪些页面;参考图紧接对应分析展示。执行流程与证据要求见[审查 cookbook](cookbook/reviewing-ui-design.zh.md)。
设计关系不明确时查阅相关案例。普通修改以页面/弹窗为上下文检查受影响关系,不要求遍历全部案例、建立清单或完整审查整页。下文整界面审查章节用于明确要求的完整审查。案例解释可迁移的原则,不定义覆盖范围。详细方法按需查阅[审查手册](cookbook/reviewing-ui-design.zh.md),执行深度以所属流程为准。
## 目录
- [审查究竟要判断什么](#judgment)
- [以整页或整个弹窗作为审查单位](#whole-interface-review)
- [适用的 DSH 规范](#review-baseline)
- [先综合适用规范](#review-baseline)
- [如何用例子理解原则](#case-selection)
- [原则示例索引](#case-index)
- [1. 对齐](#alignment)
@@ -40,8 +40,6 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
本文原理图解释元素关系,不是实现截图或已验收的修改前后对照。下文例子用于讲清具体原则,不代表已覆盖当前要审查的页面或弹窗。
<a id="combined-cases"></a>
<a id="whole-interface-review"></a>
## 以整页或整个弹窗作为审查单位
@@ -119,6 +117,8 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
| [A3](#case-preview-toolbar) | 多排控件与复合控件的对齐 |
| [A4](#case-empty-center) | 内容组相对所属容器居中 |
| [A5](#case-composer-controls) | 并列控件的可见尺寸与中心 |
| [A6](#case-trigger-menu-text) | 入口与菜单之间的文本起点 |
| [A7](#case-close-control-edge) | 明确关闭控件的对齐边缘 |
| [G1](#case-title-actions) | 内容与操作组的分隔 |
| [G2](#case-team-sections) | 复杂分区之间的间距 |
| [G3](#case-plugin-groups) | 阅读顺序中的多层分组 |
@@ -126,6 +126,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
| [C1](#case-search-color) | 同一信息单元的图文强调 |
| [S1](#case-sidebar-state) | 持续选中与临时悬停共存 |
| [O1](#case-file-optics) | 不同类型图标的光学对齐 |
| [O2](#case-chevron-consumers) | 共享图形在不同使用尺寸下的表现 |
| [R1](#case-model-radius) | 不同层级容器与控件的圆角 |
| [R2](#case-checkbox-radius) | 表单中小型选择控件的轮廓 |
| [R3](#case-automation-radius) | 不同角色之间有依据的几何差异 |
@@ -133,7 +134,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
<a id="alignment"></a>
## 1. 对齐
[对齐 skill](../.agents/skills/dsh-ui-alignment/SKILL.md)负责共享轴线、完整布局框、层级缩进和文字度量;以下案例用于说明这些判断。
[对齐参考](../.agents/skills/dsh-client-ui-ux/references/alignment.md)负责共享轴线、完整布局框、层级缩进和文字度量;以下案例用于说明这些判断。
![对齐示意:同类行共享轴线,账号和标题操作保留各自几何关系](assets/ui-design-review/principles-alignment.svg)
@@ -176,7 +177,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
**场景与关系。**面板控制位于上排,文件显示控制与“在应用中打开”分段按钮位于下排。两排属于同一个预览页头,每排又包含作用范围不同的操作。
**错误与修正。**各组件内部可能已经居中,组装后仍出现无关的右边距、高度和分组间距。先按上排图标框与下排完整控件建立尾端关系,保留图标内部留白;不能直接对齐额外热区,也不能追齐单个 glyph 的像素边缘。再对齐并列控件中心,把显示控制收成一组,与外部打开操作分开。分段按钮按完整单元处理,不强迫其箭头与无关的面板操作共用列轴。
**错误与修正。**各组件内部可能已经居中,组装后仍出现无关的右边距、高度和分组间距。先按上排图标框与下排完整控件建立尾端关系,保留图标内部留白;不能直接对齐额外热区,也不能追齐单个 glyph 的像素边缘。再对齐并列控件中心,把显示控制收成一组,与外部打开操作分开。分段按钮按完整单元处理。缩小其外部宽度可以在保留前方图标列轴的同时,使可见间距相等;应检查两个分段的点击区域,以及边框对布局尺寸的贡献。不强迫其箭头与无关的面板操作共用列轴。
**验收。**保留路径、标签页与内容边缘,一并观察两排;再检查长路径和窄面板。用一排独立图标代替实际分段控件,不能验证这个关系。
@@ -198,10 +199,24 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
**验收。**检查空输入、可发送、忙碌/停止和窄布局中的底板与中心。保留输入框外轮廓一起观察,不能只看两张独立按钮截图。参考产品里不同大小的操作控件,不能覆盖 DSH 已明确的等大底板要求。
<a id="case-trigger-menu-text"></a>
### 示例 A6:入口与菜单之间的文本起点
**场景与关系。**权限入口使用比菜单行更大、更重的图标,但对应文字应从同一轴线开始。搜索提示、结果分组标题和选项文字也可能共享类似的阅读边缘。
**修正与验收。**先合计各表面的 border、padding、前导槽和 gap,再调整实现。只统一图标大小或卡片外缘,仍可能留下不同的文字起点。检查组装后的展开菜单、长标签和窄布局;区分浮层坐标按设备像素取整的微差与整段内缩错误。
<a id="case-close-control-edge"></a>
### 示例 A7:明确关闭控件的对齐边缘
**场景与关系。**弹窗的关闭图形位于较大的按钮内,底部操作靠内容边缘。图标框边缘与按钮边缘对应不同的标题栏内缩。
**修正与验收。**修改共享标题栏前先明确目标边缘。如果完整按钮与底部操作对齐,就保留图标在按钮内居中,不再把图标拉到该边缘。明确采用图标对齐的构图仍是独立变体。检查短标题、换行标题、说明/正文组合与底部操作,并保留点击区域大小。
<a id="grouping"></a>
## 2. 空间分组
[间距分组 skill](../.agents/skills/dsh-ui-spacing/SKILL.md)负责语义组、组内外间距关系和可见留白;以下案例说明如何应用。
[间距分组参考](../.agents/skills/dsh-client-ui-ux/references/spacing.md)负责语义组、组内外间距关系和可见留白;以下案例说明如何应用。
![分组示意:等间距堆叠与分层分组的区别,组内较近,分区之间更远](assets/ui-design-review/principles-grouping.svg)
@@ -283,7 +298,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
强调必须表达与任务有关的差异。当前选择、可处理的错误和决策依据,需要稳定可辨;标签和补充信息可以更弱,但让有用的文字难以阅读不是层级设计。联合观察字号、字重、颜色、位置和周围留白;每个标题都把五种强调用满,反而失去有意义的区别。
图标与文字的前景角色及语义例外由[图标专项](../.agents/skills/dsh-ui-icons/SKILL.md)负责;案例 C1 将该规则用于搜索框。
图标与文字的前景角色及语义例外由[图标参考](../.agents/skills/dsh-client-ui-ux/references/icons.md)负责;案例 C1 将该规则用于搜索框。
字体也是几何的一部分:结合预期字体、长翻译与相关字体设置,比较文字起点、基线和行框。字号配套行高,并遵循[视觉基础](../.agents/skills/dsh-client-ui-ux/SKILL.md#visual-foundation)的字重限制。正文、代码、终端与固定界面角色不必同幅缩放;把差异判为缺陷前,核对[字体设置所有方](../packages/client/ui-theme/README.zh.md)。先修容器分配,不用缩小有用文字来强行对齐。
@@ -292,7 +307,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
**场景与关系。**比较空的自动化搜索框与展开的侧栏搜索框。二者都是放大镜配合提示文字,但一处图标更深,另一处文字更深。模型子菜单把三级色的值与主色箭头搭配时,也会产生同样的问题。
**修正与验收。**为每个提示或值指定一个前景色角色,包含其关联的放大镜或箭头;只加深文字或只加深图标仍然不一致。联合检查计算后的颜色、透明度、禁用样式与背景;祖先单独淡化某个子元素时,相同 token 仍可能产生不同结果。检查空值、输入文字、焦点、禁用及明暗主题。已输入的查询文字和具有独立操作的清除按钮,不必使用较弱的占位提示色。
**修正与验收。**为空输入提示指定一个前景色角色,包含前导图标。联合检查计算后的颜色、透明度、禁用样式与背景;祖先单独淡化某个子元素时,相同 token 仍可能产生不同结果。检查空值、输入文字、焦点、禁用及明暗主题。已输入的查询文字和具有独立操作的清除按钮,不必使用较弱的占位提示色。子菜单的值与尾部 chevron 也构成同一个值;即使几何正确,弱化的模型名称配更深的箭头仍不符合该关系。
<a id="states"></a>
## 5. 控件状态
@@ -328,7 +343,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
<a id="icon-optics"></a>
## 7. 图标光学
[图标 skill](../.agents/skills/dsh-ui-icons/SKILL.md)负责界面图标的角色、槽位、颜色和视觉平衡;[官方 artwork](../.agents/skills/dsh-official-plugin-artwork/SKILL.md)保留独立职责。
[图标参考](../.agents/skills/dsh-client-ui-ux/references/icons.md)负责界面图标的角色、槽位、颜色和视觉平衡;[官方 artwork](../.agents/skills/dsh-official-plugin-artwork/SKILL.md)保留独立职责。
<a id="case-file-optics"></a>
### 示例 O1:不同类型图标的光学对齐
@@ -337,6 +352,13 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
**修正与验收。**保留层级缩进和共同文字起点,先统一放置槽,再比较槽内可见中心与视觉重量。不能移动文字去补偿单个 glyph,也不能把所有深度压到同一边缘。检查正常尺寸和放大图,包含选中底色与长文件名;放大图用于诊断绘制,正常尺寸决定结果是否平衡。
<a id="case-chevron-consumers"></a>
### 示例 O2:共享图形在不同使用尺寸下的表现
**场景与关系。**同一个 chevron 既出现在菜单文字旁,也出现在较大的悬浮按钮中。在同一 viewBox 内放大绘制范围,会同时改变两处表现。
**修正与验收。**对比各方向、两种字重及实际使用尺寸。文字旁保留适度的辅助图形;必要时缩小悬浮控件里的图标,但不缩小按钮。只看放大的图标总表,不能证明这两种构图都平衡。
<a id="geometry"></a>
## 8. 控件几何与圆角关系