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>
78 lines
4.6 KiB
JSON
78 lines
4.6 KiB
JSON
{
|
||
"schema": "freecad-web-manual/scenario/v1",
|
||
"chapter": "ch02",
|
||
"workflow": "part-task-panels",
|
||
"title": "Part 任务面板:Shape Builder、Fillet、Chamfer、Boolean 与 Check Geometry",
|
||
"actions": [
|
||
{ "type": "goto", "url": "/project.html?workbench=Part" },
|
||
{ "type": "waitFor", "selector": "select[aria-label=\"Workbench\"]" },
|
||
{ "type": "wait", "ms": 1000 },
|
||
|
||
{ "type": "click", "selector": "nav[aria-label=\"Application menus\"] details", "hasText": "File", "target": ":scope > summary" },
|
||
{ "type": "click", "role": "button", "name": "新建 Document", "exact": true },
|
||
{ "type": "wait", "ms": 2000 },
|
||
{ "type": "eval", "script": "for (const d of document.querySelectorAll('nav[aria-label=\"Application menus\"] details[open]')) d.open = false" },
|
||
|
||
{ "type": "click", "selector": "button[data-command=\"Part_Box\"] >> visible=true" },
|
||
{ "type": "wait", "ms": 1400 },
|
||
{ "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" },
|
||
{ "type": "wait", "ms": 300 },
|
||
{ "type": "fill", "selector": "input[aria-label=\"Length\"]", "value": 80 },
|
||
{ "type": "fill", "selector": "input[aria-label=\"Width\"]", "value": 60 },
|
||
{ "type": "fill", "selector": "input[aria-label=\"Height\"]", "value": 20 },
|
||
{ "type": "click", "role": "button", "name": "应用尺寸并重算", "exact": true },
|
||
{ "type": "wait", "ms": 1200 },
|
||
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||
{ "type": "wait", "ms": 500 },
|
||
|
||
{ "type": "click", "selector": "button[data-command=\"Part_Builder\"] >> visible=true" },
|
||
{ "type": "waitFor", "selector": "section[aria-label=\"Shape builder\"]" },
|
||
{ "type": "wait", "ms": 500 },
|
||
{ "type": "assertVisible", "selector": "section[aria-label=\"Shape builder\"]" },
|
||
{ "type": "shot", "name": "01-shape-builder", "selector": "section[aria-label=\"Shape builder\"]" },
|
||
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||
{ "type": "wait", "ms": 500 },
|
||
|
||
{ "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" },
|
||
{ "type": "wait", "ms": 300 },
|
||
{ "type": "click", "selector": "button[data-command=\"Part_Fillet\"] >> visible=true" },
|
||
{ "type": "waitFor", "selector": "section[aria-label=\"Fillet task\"]" },
|
||
{ "type": "wait", "ms": 600 },
|
||
{ "type": "assertAnyText", "selector": "section[aria-label=\"Fillet task\"]", "contains": "Fillet" },
|
||
{ "type": "shot", "name": "02-fillet", "selector": "section[aria-label=\"Fillet task\"]" },
|
||
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||
{ "type": "wait", "ms": 500 },
|
||
|
||
{ "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" },
|
||
{ "type": "wait", "ms": 300 },
|
||
{ "type": "click", "selector": "button[data-command=\"Part_Chamfer\"] >> visible=true" },
|
||
{ "type": "waitFor", "selector": "section[aria-label=\"Chamfer task\"]" },
|
||
{ "type": "wait", "ms": 600 },
|
||
{ "type": "assertAnyText", "selector": "section[aria-label=\"Chamfer task\"]", "contains": "Chamfer" },
|
||
{ "type": "shot", "name": "03-chamfer", "selector": "section[aria-label=\"Chamfer task\"]" },
|
||
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||
{ "type": "wait", "ms": 500 },
|
||
|
||
{ "type": "click", "selector": "button[data-command=\"Part_Boolean\"] >> visible=true" },
|
||
{ "type": "waitFor", "selector": "fieldset.primitive-editor:has-text(\"布尔运算\")" },
|
||
{ "type": "wait", "ms": 500 },
|
||
{ "type": "assertAnyText", "selector": "fieldset.primitive-editor:has-text(\"布尔运算\")", "contains": "Base" },
|
||
{ "type": "shot", "name": "04-boolean", "selector": "fieldset.primitive-editor:has-text(\"布尔运算\")" },
|
||
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||
{ "type": "wait", "ms": 500 },
|
||
|
||
{ "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" },
|
||
{ "type": "wait", "ms": 300 },
|
||
{ "type": "click", "selector": "button[data-command=\"Part_CheckGeometry\"] >> visible=true" },
|
||
{ "type": "waitFor", "selector": "section[aria-label=\"Check geometry task\"]" },
|
||
{ "type": "wait", "ms": 500 },
|
||
{ "type": "click", "role": "button", "name": "Check shapes", "exact": true },
|
||
{ "type": "wait", "ms": 2000 },
|
||
{ "type": "assertAnyText", "selector": "section[aria-label=\"Check geometry task\"]", "contains": "Valid" },
|
||
{ "type": "shot", "name": "05-check-geometry", "selector": "section[aria-label=\"Check geometry task\"]" },
|
||
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||
{ "type": "wait", "ms": 500 },
|
||
{ "type": "save" }
|
||
]
|
||
}
|