推进 INI 面板 workflow overview embedding mount DOM contract

This commit is contained in:
2026-06-15 21:23:53 +08:00
parent ac77de3c13
commit 861c854309
12 changed files with 200 additions and 5 deletions

View File

@@ -529,3 +529,92 @@ wasm-port/tests/native/verify_sim_configs.sh
- host 聚合输出 `host_wasm_opfs_browser_smokes=ok`
- blocked runtime family 明确保留 blocked不误 promotion
- 文档中下一步建议只剩真实外部依赖或明确 scope 外事项。
八、2026-06-15 继续执行记录INI panel workflow overview embedding mount DOM contract
本轮按 `text14.txt` 执行,从 Browser/UI workflow 收口批次开始快速推进。新增只读
workflow-overview embedding mount DOM contract为 mount render-state 定义 mount/status/rows
selectors、dataset keys 与 render-result fields给后续 DOM readiness 和 renderer 提供稳定契约。
完成内容:
- `ui-shell.js` 新增
`createIniPanelShellWorkflowOverviewEmbeddingMountDomContract()`
- mount DOM contract 输出:
- `apiName: "ini-panel-shell-workflow-overview-embedding-mount-dom-contract"`
- `contractVersion: 1`
- `requiredNodeIds: ["mount", "status", "rows"]`
- 默认 selectors
- `[data-workflow-overview-embedding-mount]`
- `[data-workflow-overview-embedding-mount-status]`
- `[data-workflow-overview-embedding-mount-rows]`
- `mountDatasetKeys`
- `rowDatasetPrefix: "workflowOverviewEmbeddingMount"`
- `rowDatasetKeys`
- `renderResultFields`
- 支持自定义 `rowDatasetPrefix` 与 selectors
- `createIniPanelLaunchApiManifest().methods` 新增
`getWorkflowOverviewEmbeddingMountDomContract`
- `createIniPanelShellViewModel()` 暴露
`createWorkflowOverviewEmbeddingMountDomContract`
- `launch.html` 的 `window.linuxCncIniPanelLaunchApi` 新增真实 browser 入口
`getWorkflowOverviewEmbeddingMountDomContract()`
- `workflow-overview.html` 的 `window.linuxCncIniPanelWorkflowOverviewApi` 新增真实 browser
入口 `getWorkflowOverviewEmbeddingMountDomContract()`
- `verify_ini_panel_ui_shell.mjs` 覆盖默认 contract 与自定义 prefix/selectors
- `verify_ini_panel_launch_api_manifest.mjs` 覆盖 launch manifest 与 launch 页面真实 API
- `verify_ini_panel_shell_integration_manifest.mjs` 覆盖 helper export、launch method count 与文档记录;
- `verify_ini_panel_entry_docs.mjs` 与 `docs/panel-entry.md` 同步记录新 helper/API
- `ini_panel_workflow_overview_smoke.html` 校验 workflow overview iframe 自身 mount DOM contract
- `ini_panel_shell_integration_workflow_smoke.html` 校验外部 shell 自定义 mount DOM contract
- `ini_panel_launch_smoke.html` 校验 launch API 与 workflow overview iframe API 暴露新 contract helper
- 未新增控制按钮;
- 未执行 action-plan
- 未解析 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_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_ui_shell_node_smoke=ok
ini_panel_launch_api_manifest_node_smoke=ok
ini_panel_shell_integration_manifest_node_smoke=ok
ini_panel_entry_docs_node_smoke=ok
ui_node_smokes=ok
browser_ini_opfs_smoke=ok
browser_ini_control_page_smoke=ok
browser_ini_launch_smoke=ok
browser_ini_workflow_overview_smoke=ok
browser_ini_shell_integration_workflow_smoke=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
```
下一步建议:
继续推进 Browser/UI workflow 收口批次。下一批建议新增只读
`createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness()` 或等价 helper检查 mount
render-state contract 所需 document/mount/status/rows 节点是否存在,输出 missing/checks
为后续 renderer 和 mount workflow 提供稳定前置 gate仍保持只读不新增控制按钮不解析 G-code。