推进 INI 面板 workflow overview embedding mount result

This commit is contained in:
2026-06-15 20:35:39 +08:00
parent 75f71c2563
commit 83df80d00f
12 changed files with 245 additions and 5 deletions

View File

@@ -1763,3 +1763,97 @@ host_wasm_opfs_browser_smokes=ok
`mountIniPanelShellWorkflowOverviewEmbeddingState()` 或等价 helper把 embedding render-state、DOM
readiness、renderer result 与错误捕获合并成不抛异常的结构化 mount workflow result仍保持只读
不新增控制按钮,不解析 G-code。
十七、2026-06-15 继续执行记录INI panel workflow overview embedding mount workflow result
本轮先处理 `text12.txt` 遗留问题:删除未提交的重复/错序“四十三”记录块,使 `text12.txt`
回到归档干净状态;随后按 `text13.txt` 继续推进 browser/UI workflow。新增只读
workflow-overview embedding mount workflow result把 embedding render-state、DOM readiness、
renderer result 与错误捕获合并成不抛异常的结构化 mount result。
完成内容:
- 清理 `text12.txt` 遗留重复记录:
- 删除复制“四十二”内容的错序“四十三”块;
- `git diff -- text12.txt` 为空;
- `text12.txt` 标题重复检查无输出;
- `ui-shell.js` 新增 `mountIniPanelShellWorkflowOverviewEmbeddingState()`
- mount workflow result 输出:
- `apiName: "ini-panel-shell-workflow-overview-embedding-dom-mount"`
- `workflowVersion: 1`
- `phase: "ready" | "blocked"`
- `ready`
- `statusLine`
- `contract`
- `domReadiness`
- `renderState`
- `renderResult`
- `error`
- DOM 不 ready 时返回 blocked 结果,不抛异常;
- renderer 异常时捕获到 `error` 字段并返回 blocked 结果;
- `createIniPanelLaunchApiManifest().methods` 新增
`mountWorkflowOverviewEmbeddingState`
- `createIniPanelShellViewModel()` 暴露
`mountWorkflowOverviewEmbeddingState`
- `launch.html` 的 `window.linuxCncIniPanelLaunchApi` 新增真实 browser 入口
`mountWorkflowOverviewEmbeddingState()`
- `workflow-overview.html` 的 `window.linuxCncIniPanelWorkflowOverviewApi` 新增真实 browser
入口 `mountWorkflowOverviewEmbeddingState()`
- `verify_ini_panel_ui_shell.mjs` 覆盖 fake DOM mount workflow result 与 missing DOM blocked result
- `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 workflow result
- `ini_panel_shell_integration_workflow_smoke.html` 校验外部 shell 使用自定义 embedding DOM
contract 调用 mount workflow result
- `ini_panel_launch_smoke.html` 校验 launch API 与 workflow overview iframe API 暴露新 mount 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。下一批建议新增只读
`createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel()` 或等价 helper把 embedding
mount workflow result 压缩成 stable `title`、`statusText`、`detailText` 与 rows便于外部 shell
直接显示 mount 结果;仍保持只读,不新增控制按钮,不解析 G-code。