Files
workinf_Blender_Wasm/docs/status/TEACH-HUB-20261125.md
mes123456 c47fa79102
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
feat(web): viewport transform parity — offscreen backend, per-island pivots, ortho sizing
- Offscreen worker backend publishes the camera probe, so the G/R/S modal's
  pointer basis, transform gizmo and wireframe work on both renderers.
- Edit-mode INDIVIDUAL_ORIGINS pivots every connected island on its own centre,
  committed as one grouped transaction (T(P)·R·S·T(-P) in object space).
- Gizmo hits carry the pivot index; orthographic views size the axes from the
  visible world height instead of the 45° fov fallback.
- View-menu navigation no longer switches workspace when a viewport is already
  on screen (the engine workspace transaction dropped the editor out of Edit).
- Modal commits queue behind the shared command tail, so a trailing
  editEditorContext cannot consume the user's first Ctrl+Z.
- Floating sidebar rotation field confirmed in degrees; headed cases for the
  offscreen path, per-island pivots and the sidebar unit, plus receipts/docs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 07:48:17 +08:00

5.5 KiB
Raw Blame History

TEACH-HUB 互动教学工具状态(2026-11-25)

交付内容

面向用户的 HTML 教学工具,31 章一次做完:

  • 静态教学目录页 /teach/:31 张章节卡、搜索、三种入口模式、继续上次学习、进度环、图文手册链接、线上版本身份。
  • 应用内教学层 /teach=chNN&mode=guide|demo|explain:聚光灯高亮、实时校验、自动演示、只做讲解、进度续学;挂在 Web 入口和原生入口两处。
  • 课时数据 web/app/public/teach/lessons/ch01..ch31.json 是唯一事实来源;catalog.json 由 tools/web/teach/build-teach-catalog.mjs 生成。
  • 生成工具与静态校验:tools/web/teach/build-teach-catalog.mjs、tools/web/teach/check-teach.mjs。
  • 回归:web/tests/deployed/09-teach.spec.ts + web/tests/deployed/support/teach-checks.ts,数据驱动回放每一章。

本轮实现要点

  • 面板自动避让:目标控件落在面板下方时(大纲树、属性标签页都在右列),面板翻到另一侧,避免遮住它正在指的那个控件。
  • 打开章节自动切到 setup.workspace;点「准备本章练习工程」后打开工程再恢复该工作区。
  • setup.entry:涉及原生桌面画布的章节(ch26)用 /?teach=chNN 进入,目录页据此生成入口。
  • 原生画布暴露 data-native-canvas-open,让「桌面 / Web 业务工具」可被机器校验。
  • 场景判定顺序修正:{object, active:true} 先判 active(成员为选中态),再判存在。
  • 演示 DSL 与校验求值对每个探针设 2 s 上限;此前缺省 30 s 等待会一次轮询吃光整条用例的 60 s 预算。

验证结果(真实,未粉饰)

静态校验:

node tools/web/teach/check-teach.mjs
→ 31 chapters, 105 steps, 119 checks, 0 issue(s)

本地有头回归(--local,构建产物 web/dist),多轮结果稳定在 PASS 22 · FAIL 10(32 条 = 31 章 + 目录页)。

失败集合在轮次之间会漂移(例如 ch01 首轮通过、后续两轮超时;ch13 上一轮通过、本轮超时;ch26 单跑通过、全量超时),说明这些失败主要来自共享浏览器里逐章重载 300 MB 引擎的稳定性与 60 秒用例预算,而不是课时数据本身。最后一轮的失败清单:ch01、ch03、ch06、ch08、ch11、ch13、ch17、ch18、ch23、ch26,全部如实标记 NOT_CLAIMED;此前各轮分别验证过 ch01、ch02、ch10、ch13、ch26 通过。

失败原因(来自报告与回执,不猜测):

章节 现象 已定位原因 / 处理
ch02 60 s 用例超时 搜索面板模态遮罩盖住教学面板 → 已把教学面板 z-index 提到模态之上,单跑通过
ch10 等 button "添加" 超时 视口菜单条就绪偏慢 → 重跑通过,仍标记 NOT_CLAIMED
ch11 等 menuitem "三角化" 超时 选择模式按钮真名是 1 Vertex / 2 Edge / 3 Face,已据此重写为 3 步;面 菜单链路仍未通过
ch01/ch03/ch06/ch08/ch17/ch18/ch23/ch26 60 s 超时或标签页被关闭 章节特定动作(工程打开后处理、区域菜单、改名、Texture Paint、PBR 渲染、桌面画布)过程中渲染进程被关闭,或引擎重载把用例推过 60 s 预算

找到的产品缺口(未修,已记录)

  • Rendering 工作区大纲树为空:同一工程在 Layout/Modeling/Animation 都有对象行,Rendering 工作区的 Outliner 渲染 0 行,用户无法在那里选对象。已写入 docs/web/KNOWN_LIMITATIONS.md;ch22 暂时改为先在 Layout 选对象再切 Rendering。
  • 模态对话框压住教学面板:操作搜索 等模态面板的遮罩 z-index 高于教学面板,讲解时无法一边看对话框一边点「下一步」。
  • 教学面板原先默认位置正好压住大纲树/属性标签页(已修:自动避让)。

线上部署与复验(2026-11-25)

  • 发布:tools/web/deploy-58014.sh → 版本目录 20261125-workinf_blender_wasm-10851c1e0,health=200,线上与本地 wasm 哈希一致(9febac5d…)。
  • 线上冒烟 --smoke:8/8 通过(入口隔离响应头、引擎启动、打开/保存、PBR 渲染、WASM 内嵌、GLB 导入导出、偏好落盘)。报告 tests/golden/DEPLOYED-FUNCTIONAL-20261125。
  • 线上教学回归分三批执行,合计 23 / 32 通过:
    • 第一批(目录页 + ch01–ch10):7 通过 / 4 失败(ch01、ch03、ch06、ch08)
    • 第二批(ch11–ch20):7 通过 / 3 失败(ch11、ch17、ch18)
    • 第三批(ch21–ch31):9 通过 / 2 失败(ch23、ch26)
  • 线上失败集合与本地高度一致(ch01/ch03/ch06/ch08/ch11/ch17/ch18/ch23 两边都失败;ch26 线上冒烟通过、教学回归超时),仍归因于逐章重载引擎的稳定性与 60 秒用例预算,不是课时数据本身。未通过章节继续标记 NOT_CLAIMED。
  • TLS:部署自检提示证书 2026-11-30 22:31 GMT 到期(5 天),需确认自动续签成功。

未完成

  • 上表 10 章的机器回放未通过,不能宣称「31 章全部经回归验证」;课时本身存在且可被引导使用,但接受度以人工走查为准。
  • 尚未在云上执行:本地优先,本地稳定后再部署复验(用户既有要求)。
  • ch22 依赖布局切换绕开 Rendering 大纲树缺口;缺口修复后应改回在 Rendering 内直接选对象。

复现命令

node tools/web/teach/build-teach-catalog.mjs
node tools/web/teach/check-teach.mjs
cd web && npm run build
DISPLAY=:1 node tools/web/run-deployed-functional-tests.mjs --local --grep "teach-"