推进 INI 面板 shell integration mount DOM smoke

This commit is contained in:
2026-06-15 11:51:11 +08:00
parent 1375e0ddd5
commit 54f8551c50
4 changed files with 148 additions and 1 deletions

View File

@@ -2565,3 +2565,81 @@ host_wasm_opfs_browser_smokes=ok
继续推进 browser/UI workflow。下一批建议在 shell integration browser workflow 中增加 ready
mount-state DOM rendering helper 或 smoke把 control-page ready 后的 mount render-state 渲染到
外部 shell 自有 DOM 并校验 row/status仍保持只读不新增控制按钮不解析 G-code。
三十二、2026-06-15 继续执行记录INI panel shell integration ready mount DOM smoke
本轮按“第一原则:加快实质性推进”继续推进 browser/UI workflow在真实 shell integration
browser workflow 中新增外部 shell 自有 DOM renderer校验 waiting 与 ready mount-state DOM
显示。
完成内容:
- `ini_panel_shell_integration_workflow_smoke.html` 新增外部 shell 自有只读 mount 区域:
- `[data-external-shell-mount]`
- `[data-external-shell-mount-status]`
- `[data-external-shell-mount-rows]`
- 新增 `renderExternalShellMountState(renderState)` 测试 helper
- workflow 初始阶段把默认 waiting mount render-state 渲染到外部 shell DOM
- workflow 在真实 control page iframe ready 后,把 ready mount render-state 渲染到外部 shell DOM
- browser smoke 校验 waiting DOM
- status 为 `Blocked: session-load-state`
- `data-handoff-ready="false"`
- `session-load-state` row status 为 `blocked`
- browser smoke 校验 ready DOM
- status 为 `Ready: No blocking reasons`
- `data-handoff-ready="true"`
- `session-load-state` row value 为 `ready`
- `session-load-state` row status 为 `pass`
- `docs/panel-entry.md` 记录 shell integration workflow 中外部 shell-owned DOM 渲染;
- `verify_ini_panel_entry_docs.mjs` 覆盖外部 shell mount DOM hooks 与 workflow smoke
- 未新增控制按钮;
- 未解析 G-code
- 未解释 canonical events
- 未新增 JS CNC 语义;
- 未改变 OPFS/session persistence、LinuxCNC interpreter、tool、parameter、planner 或
LinuxCNC-owned runtime semantics。
验证已通过:
```bash
git diff --check
wasm-port/tests/ui/node/verify_ini_panel_entry_docs.sh
wasm-port/tests/ui/node/verify_ini_panel_launch_api_manifest.sh
wasm-port/tests/ui/node/verify_ini_panel_ui_shell.sh
wasm-port/tests/ui/node/verify_ini_panel_shell_integration_manifest.sh
wasm-port/tests/ui/node/verify_ui_node_smokes.sh
SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_ini_panel_browser.sh
wasm-port/tools/verify_vendor_sync.sh
wasm-port/tools/verify_no_standalone_cnc_semantics.sh
SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_interp_wasm.sh
SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_sim_configs_inventory_wasm.sh
wasm-port/tests/host/verify_host_smokes.sh
```
关键输出:
```text
ini_panel_entry_docs_node_smoke=ok
ini_panel_launch_api_manifest_node_smoke=ok
ini_panel_ui_shell_node_smoke=ok
ini_panel_shell_integration_manifest_node_smoke=ok
browser_ini_opfs_smoke=ok
browser_ini_control_page_smoke=ok
browser_ini_launch_smoke=ok
browser_ini_shell_integration_workflow_smoke=ok
ui_node_smokes=ok
vendor sync up to date
standalone CNC semantics guard complete
interp_wasm_node_smoke=ok
sim_configs_wasm_node_inventory_executed=28
sim_configs_wasm_node_inventory_passed=28
sim_configs_wasm_node_inventory_skipped=131
sim_configs_wasm_node_inventory_unexpected_fail=0
host_wasm_opfs_browser_smokes=ok
```
下一步建议:
继续推进 SDK/API surface。下一批建议把外部 shell mount DOM renderer 抽成可复用 helper
`renderIniPanelShellSessionHandoffMountState()` 或等价 API并用 Node/browser smoke 保护其
DOM contract仍保持只读不新增控制按钮不解析 G-code。