feat(web): object picker in workbench shell, verify sketch panel on stage

workbench.html routes Sketcher desktop commands to the standalone sketcher
probe, which had no document, so Sketcher_EditSketch always failed with
"The selected live document does not exist in this runtime". The shell also
only exposed an object selection table for BIM, so no command could receive
a selected sketch.

- workbench shell: add a generic document object list (details
  .workbench-object-picker) that writes both the shell selection and the
  command payload selection for every module
- ch03: document the working session path (NewSketch creates
  workbench_document/Sketch, then EditSketch on that selection) with two
  stage screenshots, plus the measured layout (panel left 284 vs stage left
  260, zero horizontal overflow)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 06:54:05 +08:00
parent 8bdf8db8d6
commit c3b3160f33
10 changed files with 194 additions and 10 deletions

View File

@@ -0,0 +1,94 @@
{
"schema": "freecad-web-manual/capture/v1",
"generatedAt": "2026-11-22T22:48:44.343Z",
"chapter": "ch03",
"workflow": "sketch-workbench-stage",
"scenario": "manual/scenarios/ch03-sketcher-workbench.json",
"origin": "http://127.0.0.1:5183",
"ok": true,
"trace": [
{
"at": "2026-11-22T22:48:29.354Z",
"action": "goto",
"url": "/workbench.html?module=Sketcher&command=Sketcher_NewSketch"
},
{
"at": "2026-11-22T22:48:29.538Z",
"action": "waitFor",
"selector": "textarea[aria-label=\"命令 JSON 参数\"]",
"text": null
},
{
"at": "2026-11-22T22:48:32.610Z",
"action": "click",
"selector": "执行选中命令"
},
{
"at": "2026-11-22T22:48:37.646Z",
"action": "click",
"selector": "aside button.command"
},
{
"at": "2026-11-22T22:48:38.852Z",
"action": "eval"
},
{
"at": "2026-11-22T22:48:39.496Z",
"action": "click",
"selector": "执行选中命令"
},
{
"at": "2026-11-22T22:48:40.658Z",
"action": "waitFor",
"selector": "fieldset[aria-label=\"Sketch drawing\"]",
"text": null
},
{
"at": "2026-11-22T22:48:43.162Z",
"action": "assertVisible",
"selector": "section[aria-label=\"Sketch edit session\"]"
},
{
"at": "2026-11-22T22:48:44.055Z",
"action": "shot",
"name": "01-sketch-stage-panel",
"bytes": 257327
},
{
"at": "2026-11-22T22:48:44.057Z",
"action": "eval"
},
{
"at": "2026-11-22T22:48:44.336Z",
"action": "shot",
"name": "02-sketch-panel-full",
"bytes": 518511
},
{
"at": "2026-11-22T22:48:44.343Z",
"action": "assertAnyText",
"selector": "main.stage",
"contains": "Sketch"
}
],
"shots": [
{
"id": "ch03/sketch-workbench-stage/01-sketch-stage-panel",
"file": "manual/assets/ch03/sketch-workbench-stage/01-sketch-stage-panel.png",
"bytes": 257327,
"sha256": "a35b9c01a52e760c480ee0977966657c45af083314c49bb811ac61f82de83d51",
"fullPage": false,
"selector": "main.stage"
},
{
"id": "ch03/sketch-workbench-stage/02-sketch-panel-full",
"file": "manual/assets/ch03/sketch-workbench-stage/02-sketch-panel-full.png",
"bytes": 518511,
"sha256": "cc44f1cfa0d0c75d11dcb0b4f0817a8e4edcac3bc3f1bc215b2de4d7984264ec",
"fullPage": true,
"selector": null
}
],
"pageErrors": [],
"consoleErrors": []
}

View File

@@ -1,15 +1,15 @@
{
"schema": "freecad-web-manual/final-status/v1",
"generatedAt": "2026-11-22T12:57:20.816Z",
"generatedAt": "2026-11-22T22:52:26.538Z",
"state": "complete",
"chapters": 15,
"chaptersWithAppendix": 17,
"screenshots": 128,
"screenshots": 130,
"commands": 1573,
"modules": 31,
"nativeHandlers": 378,
"verifiedCommands": 12,
"workflows": 26,
"workflows": 27,
"boundaries": 5,
"pageCheck": {
"ok": true,
@@ -17,7 +17,7 @@
"mobileOverflow": 0,
"brokenImages": [],
"searchHits": 4,
"images": 130,
"images": 132,
"sections": 164
},
"entry": "web/teaching/manual.html",
@@ -42,5 +42,5 @@
"由 generate-final-status.mjs 自动派生,不要手改。",
"UI 表面清单:333 项,缺口 0 项。"
],
"screenshotsCaptured": 128
"screenshotsCaptured": 130
}

View File

@@ -1,6 +1,6 @@
{
"schema": "freecad-web-manual/page-check/v1",
"generatedAt": "2026-11-22T12:57:12.993Z",
"generatedAt": "2026-11-22T22:51:15.602Z",
"url": "http://127.0.0.1:5191/manual.html",
"viewports": [
{
@@ -14,7 +14,7 @@
"searchHits": 4,
"chapters": 17,
"sections": 164,
"images": 130,
"images": 132,
"brokenImages": [],
"commandRows": 1573,
"overflow": 0,
@@ -31,7 +31,7 @@
"searchHits": 4,
"chapters": 17,
"sections": 164,
"images": 130,
"images": 132,
"brokenImages": [],
"commandRows": 1573,
"overflow": 0,