展示 INI 面板 shell workflow session readiness

This commit is contained in:
2026-06-16 06:52:38 +08:00
parent 68ff2fb5d6
commit eb50e6b455
6 changed files with 120 additions and 14 deletions

View File

@@ -1844,3 +1844,67 @@ host_wasm_opfs_browser_smokes=ok
继续以实质能力推进为主。下一批可把 `sessionReadiness` 纳入 shell handoff workflow display/render rows
让外部 shell 的已挂载 handoff 面板直接展示 ready/blocked 原因;仍保持只读,不新增控制按钮,不解析
G-code不扩大 LinuxCNC 语义边界。
二十三、2026-06-16 继续执行记录INI panel shell workflow session readiness display
本轮继续以功能实质性推进为主,把 `sessionReadiness` 从只读 status 进一步接入 shell handoff
workflow summary/display/render rows。现在外部 shell 的已挂载 workflow 面板可以直接显示 machine-session
ready/blocked 状态与 missing 原因,不需要进入 editor 页面或读取底层 state bundle。
完成内容:
- `wasm-port/runtime/ui/ini-panel/ui-shell.js` 的
`createIniPanelShellSessionHandoffWorkflowSummary()` 新增:
- `sessionReadiness` 摘要;
- `session-readiness` display/render row
- ready 状态显示为 `ready`
- blocked 状态显示为 `blocked: <missing reasons>`
- workflow display view-model 与 render-state 自动继承新增 row
- workflow DOM renderer/mount result 的 row count 和 row ids 覆盖新增 `session-readiness` 行;
- workflow overview embedding report 记录新的 render row count
- `wasm-port/tests/browser/ini_panel_shell_integration_workflow_smoke.html` 覆盖真实 external shell
workflow summary、render-state 和 DOM mount 中的 session readiness 行;
- `wasm-port/docs/panel-entry.md` 记录 workflow summary rows 已包含 machine-session ready/blocked state
- `PROJECT_COMPLETION_TRACKER.md` 同步 latest completed batch 与 Browser/UI workflow 状态;
- 未新增控制按钮;
- 未执行 action-plan
- 未解析 G-code
- 未解释 canonical events
- 未新增 JS CNC 语义;
- 未运行 opt-in runtime probes
- 未 promotion blocked runtime family
- 未改变 LinuxCNC interpreter、tool、parameter、planner、kinematics、remap 或 LinuxCNC-owned
runtime semantics。
验证已通过:
```bash
git diff --check
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/ui/node/verify_ini_panel_ui_shell.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/tests/host/verify_host_smokes.sh
```
关键输出:
```text
ini_panel_ui_shell_node_smoke=ok
ui_node_smokes=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_unexpected_fail=0
host_wasm_opfs_browser_smokes=ok
```
下一步工作计划:
继续以实质能力推进为主。下一批可为 `sessionReadiness` display row 增加独立 machine-readable
workflow report/helper或者把同一展示能力接入 workflow overview 页面自身;仍保持只读,不新增控制按钮,
不解析 G-code不扩大 LinuxCNC 语义边界。