Files
FreeCADWasmDev/web/manual/scenarios/ch16-shell-surfaces.json
wangdequan 300c8efb01 docs(web): full UI surface inventory, illustrated manual, panel screenshots
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>
2026-11-23 01:30:31 +08:00

55 lines
3.3 KiB
JSON

{
"schema": "freecad-web-manual/scenario/v1",
"chapter": "ch16",
"workflow": "shell-surfaces",
"title": "壳层区域、偏好、快捷键、命令面板、底部停靠、任务面板",
"actions": [
{ "type": "goto", "url": "/project.html?workbench=Part" },
{ "type": "waitFor", "selector": "select[aria-label=\"Workbench\"]" },
{ "type": "wait", "ms": 1200 },
{ "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": 2200 },
{ "type": "eval", "script": "for (const d of document.querySelectorAll('nav[aria-label=\"Application menus\"] details[open]')) d.open = false" },
{ "type": "shot", "name": "01-shell-overview", "fullPage": true },
{ "type": "click", "selector": ".utility-menus > button", "hasText": "Tools" },
{ "type": "wait", "ms": 300 },
{ "type": "shot", "name": "02-tools-menu", "fullPage": true },
{ "type": "click", "selector": ".utility-menus .dropdown button", "hasText": "Preferences" },
{ "type": "wait", "ms": 400 },
{ "type": "shot", "name": "03-preferences", "selector": ".web-preferences" },
{ "type": "click", "selector": "[aria-label=\"Close preferences\"]" },
{ "type": "wait", "ms": 300 },
{ "type": "click", "selector": ".utility-menus > button", "hasText": "Tools" },
{ "type": "wait", "ms": 200 },
{ "type": "click", "selector": ".utility-menus .dropdown button", "hasText": "Customize shortcuts" },
{ "type": "wait", "ms": 400 },
{ "type": "shot", "name": "04-shortcuts", "fullPage": true },
{ "type": "click", "selector": "[aria-label=\"Close shortcut editor\"]" },
{ "type": "wait", "ms": 300 },
{ "type": "click", "selector": ".utility-menus > button", "hasText": "Tools" },
{ "type": "wait", "ms": 200 },
{ "type": "click", "selector": ".utility-menus .dropdown button", "hasText": "Command palette" },
{ "type": "wait", "ms": 400 },
{ "type": "shot", "name": "05-command-palette", "fullPage": true },
{ "type": "click", "selector": "[aria-label=\"Close command palette\"]" },
{ "type": "wait", "ms": 300 },
{ "type": "click", "selector": ".utility-menus > button", "hasText": "Windows" },
{ "type": "wait", "ms": 200 },
{ "type": "click", "selector": ".utility-menus .dropdown button", "hasText": "Selection / Report views" },
{ "type": "wait", "ms": 600 },
{ "type": "shot", "name": "06-bottom-dock", "fullPage": true },
{ "type": "shot", "name": "07-viewport-tools", "selector": "[role=\"toolbar\"][aria-label=\"Object transform\"]" },
{ "type": "click", "selector": ".part-menu > summary", "timeout": 30000 },
{ "type": "wait", "ms": 300 },
{ "type": "click", "selector": "details.part-submenu", "hasText": "Primitives", "target": ":scope > summary" },
{ "type": "wait", "ms": 300 },
{ "type": "click", "selector": "button[data-command=\"Part_Box\"]" },
{ "type": "wait", "ms": 1200 },
{ "type": "shot", "name": "08-task-panel", "fullPage": true },
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
{ "type": "wait", "ms": 400 },
{ "type": "assertVisible", "selector": "select[aria-label=\"Workbench\"]" }
]
}