推进 INI 面板 session summary helper
This commit is contained in:
68
text10.txt
68
text10.txt
@@ -1471,3 +1471,71 @@ host_wasm_opfs_browser_smokes=ok
|
||||
“日志文本/DOM 状态/机器可读状态”三份并行维护的 host-boundary 数据,如果有,选择一个
|
||||
小型候选提取为纯 helper 并接入 `verify_ui_node_smokes.sh`;仍不触碰 interpreter、OPFS
|
||||
bridge 或 LinuxCNC-owned runtime semantics。
|
||||
|
||||
二十一、2026-06-14 继续执行记录:INI panel session summary helper
|
||||
|
||||
本轮继续沿 OPFS/session/UI boundary 推进,把 INI panel 的 session snapshot 日志构造
|
||||
收敛为纯 helper,并把它纳入 UI Node smoke wrapper。
|
||||
|
||||
完成内容:
|
||||
|
||||
- 新增 `wasm-port/runtime/ui/ini-panel/session-summary.js`;
|
||||
- 导出:
|
||||
- `createSessionSnapshotSummary(snapshot, fallbackLabel)`;
|
||||
- `sessionSnapshotSummaryLogLines(summary)`;
|
||||
- `sessionSnapshotMetadataLogLines(summary)`;
|
||||
- helper 只聚合 session snapshot boundary facts:
|
||||
- snapshot label;
|
||||
- workflow;
|
||||
- default G-code OPFS path;
|
||||
- ini/parameter/tool/gcode OPFS paths;
|
||||
- `wasm-port/runtime/ui/ini-panel/app.js` 的保存、恢复、restore-load 日志改为复用纯 helper;
|
||||
- `wasm-port/tests/ui/node/verify_ini_panel_session_summary.mjs` 覆盖:
|
||||
- 正常 session snapshot summary;
|
||||
- runtime label override;
|
||||
- 空 snapshot 默认值;
|
||||
- log lines 输出;
|
||||
- `wasm-port/tests/ui/node/verify_ui_node_smokes.sh` 现在同时覆盖 run summary 与 session summary helper;
|
||||
- 未改变 UI runtime、OPFS bridge、interpreter run API、G-code 文本、canonical-event 输出
|
||||
或 LinuxCNC-owned runtime semantics。
|
||||
|
||||
验证已通过:
|
||||
|
||||
```bash
|
||||
git diff --check
|
||||
wasm-port/tests/ui/node/verify_ui_node_smokes.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/opfs/node/verify_file_service.sh
|
||||
SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_ini_panel_browser.sh
|
||||
SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_interp_browser.sh
|
||||
wasm-port/tests/host/verify_host_smokes.sh
|
||||
```
|
||||
|
||||
关键输出:
|
||||
|
||||
```text
|
||||
ini_panel_run_summary_node_smoke=ok
|
||||
ini_panel_session_summary_node_smoke=ok
|
||||
ui_node_smokes=ok
|
||||
host_wasm_opfs_browser_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
|
||||
opfs_file_service_node_smoke=ok
|
||||
browser_ini_opfs_smoke=ok
|
||||
browser_interp_smoke=ok
|
||||
```
|
||||
|
||||
下一步建议:
|
||||
|
||||
继续沿 OPFS/session/UI boundary 推进。优先扫描 INI panel 中是否还有类似
|
||||
“日志文本 / DOM 状态 / 机器可读状态”三份并行维护的 host-boundary 数据,如果有,继续
|
||||
抽取为纯 helper 并接入 `verify_ui_node_smokes.sh`;保持 helper 只描述 host/runtime 边界,
|
||||
不扩展 CNC 语义。
|
||||
|
||||
Reference in New Issue
Block a user