Files
FreeCADWasmDev/web/manual/scenarios/ch09-bim-panels.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

127 lines
3.3 KiB
JSON

{
"schema": "freecad-web-manual/scenario/v1",
"chapter": "ch09",
"workflow": "bim-task-panels",
"title": "BIM task panels",
"actions": [
{
"type": "goto",
"url": "/workbench.html?module=BIM&command=BIM_Views"
},
{
"type": "waitFor",
"selector": "section[aria-label=\"BIM Views Manager\"]",
"timeout": 120000
},
{
"type": "wait",
"ms": 3000
},
{
"type": "shot",
"name": "01-bim-views"
},
{
"type": "seed",
"file": "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD/web/manual/fixtures/ch01-ui-and-document.FCStd",
"name": "ch01-ui-and-document.FCStd"
},
{
"type": "eval",
"script": "(async () => { const root = await navigator.storage.getDirectory(); const docs = await root.getDirectoryHandle(\"freecad-documents\", { create: true }); const src = await docs.getFileHandle(\"ch01-ui-and-document.FCStd\"); const bytes = new Uint8Array(await (await src.getFile()).arrayBuffer()); const lib = await root.getDirectoryHandle(\"bim-library\", { create: true }); const dst = await lib.getFileHandle(\"ch01-ui-and-document.FCStd\", { create: true }); const writable = await dst.createWritable(); await writable.write(bytes); await writable.close(); })()"
},
{
"type": "goto",
"url": "/workbench.html?module=BIM&command=BIM_Library"
},
{
"type": "waitFor",
"selector": "fieldset:has-text(\"Objects Library\")",
"timeout": 120000
},
{
"type": "waitOptions",
"selector": "fieldset:has-text(\"Objects Library\") select",
"min": 2
},
{
"type": "select",
"selector": "fieldset:has-text(\"Objects Library\") select",
"label": "ch01-ui-and-document.FCStd"
},
{
"type": "wait",
"ms": 2000
},
{
"type": "shot",
"name": "02-bim-library",
"selector": "fieldset:has-text(\"Objects Library\")"
},
{
"type": "goto",
"url": "/workbench.html?module=BIM&command=BIM_Setup"
},
{
"type": "waitFor",
"selector": "fieldset:has-text(\"BIM preferences\")",
"timeout": 120000
},
{
"type": "wait",
"ms": 2500
},
{
"type": "click",
"role": "button",
"name": "Read current preferences",
"exact": true
},
{
"type": "wait",
"ms": 3000
},
{
"type": "shot",
"name": "03-bim-preferences-read",
"selector": "fieldset:has-text(\"BIM preferences\")"
},
{
"type": "goto",
"url": "/workbench.html?module=BIM&command=BIM_Material"
},
{
"type": "waitFor",
"selector": "button:has-text(\"Assign to selection\")",
"timeout": 120000
},
{
"type": "wait",
"ms": 2500
},
{
"type": "shot",
"name": "04-bim-material",
"selector": "section[aria-label=\"Axis and material task\"]"
},
{
"type": "goto",
"url": "/workbench.html?module=BIM&command=BIM_IfcExplorer"
},
{
"type": "waitFor",
"selector": "fieldset:has-text(\"IfcExplorer\")",
"timeout": 120000
},
{
"type": "wait",
"ms": 3000
},
{
"type": "shot",
"name": "05-bim-ifc-explorer",
"selector": "fieldset:has-text(\"IfcExplorer\")"
}
]
}