Interface design document and manual now share one authoritative surface inventory (333 surfaces across 9 categories, gap 0), and every chapter carries real Playwright screenshots of the panels it documents. - tools/fcweb: ui-surface-scan/ui-surface-inventory (deterministic --check), build-ui-doc renders panel catalog, workbench matrix and mapping tables; blank toolbar crops (<1 KB) are skipped and pruned instead of embedded - web/tools/manual: generate-panel-index (ch16), audit-ui-gaps, generate-final-status, generate-gaps-doc; pager is per-chapter so the manual no longer overflows horizontally - manual: 130 screenshot references / 128 PNGs, panel sections for ch02-ch13 - web/src: utility menus stop click propagation (menu reopened on item click); workbench shell gains an OPFS document picker so workbench.html can bind a real document instead of the fixed workbench-document id; Sketcher panel moves from the command column to the main stage Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
42 lines
2.3 KiB
JSON
42 lines
2.3 KiB
JSON
{
|
|
"schema": "freecad-web-manual/scenario/v1",
|
|
"chapter": "ch03",
|
|
"workflow": "sketcher-constraints-panels",
|
|
"title": "Sketcher 约束面板:草图工具、约束编辑器与自由度读数",
|
|
"actions": [
|
|
{ "type": "goto", "url": "/partdesign.html" },
|
|
{ "type": "wait", "ms": 1200 },
|
|
|
|
{ "type": "click", "role": "button", "name": "新建文档", "exact": true },
|
|
{ "type": "wait", "ms": 2200 },
|
|
{ "type": "click", "role": "button", "name": "新建 Body", "exact": true },
|
|
{ "type": "wait", "ms": 2200 },
|
|
{ "type": "click", "role": "button", "name": "创建草图", "exact": true },
|
|
{ "type": "wait", "ms": 1400 },
|
|
{ "type": "click", "role": "button", "name": "矩形", "exact": true },
|
|
{ "type": "wait", "ms": 1500 },
|
|
|
|
{ "type": "waitFor", "selector": "div.segmented[aria-label=\"Profile type\"]" },
|
|
{ "type": "assertAnyText", "selector": "fieldset:has(div.segmented[aria-label=\"Profile type\"])", "contains": "Width" },
|
|
{ "type": "shot", "name": "01-sketch-toolbar", "selector": "fieldset:has(div.segmented[aria-label=\"Profile type\"])" },
|
|
|
|
{ "type": "click", "role": "button", "name": "几何与约束", "exact": true },
|
|
{ "type": "wait", "ms": 900 },
|
|
{ "type": "waitFor", "selector": "fieldset:has(> legend:text-is(\"Constraint 1\"))" },
|
|
{ "type": "wait", "ms": 400 },
|
|
{ "type": "assertAnyText", "selector": "fieldset:has(> legend:text-is(\"Constraint 1\"))", "contains": "Coincident" },
|
|
{ "type": "shot", "name": "02-constraint-tools", "selector": "fieldset:has(> legend:text-is(\"Constraint 1\"))" },
|
|
|
|
{ "type": "click", "role": "button", "name": "Add sketch constraint", "exact": true },
|
|
{ "type": "wait", "ms": 900 },
|
|
{ "type": "waitFor", "selector": "fieldset:has(> legend:text-is(\"Constraint 5\"))" },
|
|
{ "type": "wait", "ms": 400 },
|
|
{ "type": "assertAnyText", "selector": "fieldset:has(> legend:text-is(\"Constraint 5\"))", "contains": "Dimension name" },
|
|
{ "type": "shot", "name": "03-constraint-dialog", "selector": "fieldset:has(> legend:text-is(\"Constraint 5\"))" },
|
|
|
|
{ "type": "waitFor", "selector": "dl.object-summary" },
|
|
{ "type": "assertAnyText", "selector": "dl.object-summary", "contains": "自由度" },
|
|
{ "type": "shot", "name": "04-sketch-status", "selector": "dl.object-summary" }
|
|
]
|
|
}
|