Files
workinf_Blender_Wasm/docs/web/MODULE-COVERAGE.md
mes123456 2b10cd3197 fix(web): settle each Outliner expand before the next toggle
The armature panel case failed ten headed reruns because the fixture's
expand loop clicked a label list scanned before earlier replies landed:
it re-clicked rows the reply had just opened and closed them again, so
each round flipped the same rows and the loop never settled. Re-read
each row's own label before clicking and wait for that toggle to reach
the tree; no timeout budget changes.

The armature row was never missing from the tree. It hangs under its
parent ScaledRigParent one level deeper, exactly as desktop
make_object_parent_hierarchy_collections builds it. Correct the known
limitations and module coverage entries, and keep the resolved gap rows
so the history and its evidence stay traceable.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 17:44:11 +08:00

83 lines
10 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Editor module coverage
This page cross-walks the 21 `EDITOR_TYPES` entries in `web/protocol/editor-workflow.ts` against the
e2e specs, headed receipts and known gaps. It exists so that a module is never called covered because a
file with its name exists. The Outliner parity work (G1–G6, B1–B6) is the reference standard; the other
modules are measured against the same bar.
## Method
Coverage levels, strongest first:
- `PROVEN` — a spec assertion or a headed receipt shows a user-visible operation executing on the native
Main: an operator ran, Main changed, and the change was read back or saved.
- `READBACK_OR_PROBE` — the spec reads Main state or drives the protocol without proving the editor
performs the user operation that a desktop user would perform.
- `GATE_ONLY` — the spec proves a gate, block or disabled path, not the editing path behind it.
- `INDIRECT` — the editor is exercised only as a side effect of another editor's workflow, with no
assertion on its own surface.
- `UNCOVERED` — no e2e evidence; the editor appears only in routing tables or workflow fixtures.
Rules:
- A spec file name is not evidence. Every `PROVEN` cell names the assertion or receipt it relies on.
- Headed receipts under `tests/golden/*-HEADED-*` are local artifacts and stay untracked; the headed
run counts below come from the `tools/web/run-*-headed.mjs` `KNOWN_CASES` tables.
- `G1`–`G6` parity classes are recorded in the parity ledger; gaps here use `RESIDUAL` when they are
evidence or protocol gaps rather than a named Outliner class.
## Editor matrix
| Editor | App surface | e2e evidence | Headed receipts | Level | Gaps |
| --- | --- | --- | --- | --- | --- |
| `VIEW_3D` | viewport canvas, quick toolbar, native viewport overlays | `viewport-navigation-web-production` ("wheel zoom, Shift+MMB pan, click select and G/X modal"), `viewport-navigation-native-production`, `viewport-consistency` | 18 cases / 142 dirs (`run-viewport-navigation-headed.mjs`) | `PROVEN` | — |
| `OUTLINER` | React tree rows, restriction columns, library and override markers | `outliner-treeview-production` ("renders native rows with tree semantics and keeps selection wired"), `outliner-headed-production` (48 cases) | 48 cases / 193 dirs (`run-outliner-headed.mjs`) | `PROVEN` | MOD-OUTLINER-01, MOD-OUTLINER-02 |
| `PROPERTIES` | `modifier-stack-ui-production`, `armature-authoring-workbench`, b4 property panels | `modifier-stack-ui-production` ("commits only changed native fields"), `b4-properties-ui-production`, `b4-light-world-output-ui-production`, `wbv2-modifier-parameter-production` | none dedicated | `PROVEN` | MOD-PROPERTIES-01, MOD-PROPERTIES-02 |
| `UV_IMAGE` | UV editing surface, native UV area bridge | `web-uv-workspace-gate` ("finds a writable native UV area and commits an unwrap"), `wbv2-uv-unwrap-batch-production`, `ui-editor-view2d-production` | none dedicated | `PROVEN` | — |
| `NODE` | shader editor, geometry nodes canvas, compositor canvas | `shader-editor-flow-production`, `web-geonodes-canvas` ("adds, connects and commits a graph"), `web-compositor-canvas` ("builds, executes and commits a graph"), `shader-editor-all-nodes-production` | none dedicated | `PROVEN` | — |
| `GRAPH` | Graph Editor surface in the area header | `web-area-graph-editor` ("Camera viewport is real and Graph Editor edits animation keys") | none dedicated | `PROVEN` | MOD-ANIM-01 |
| `DOPE_SHEET` | Dope Sheet surface in the area header | no dedicated assertion; animation specs drive keyframes but not the Dope Sheet rows | none dedicated | `INDIRECT` | MOD-DOPESHEET-01, MOD-ANIM-01 |
| `NLA` | NLA strip track, `wbv2-nla-stack-production` | `nla-strip-ui-production` ("moves native strips and preserves Main through failure and recovery"), `wbv2-nla-stack-production` | none dedicated | `PROVEN` | MOD-NLA-01 |
| `SPREADSHEET` | Spreadsheet browser and CSV export | `web-spreadsheet-readonly` ("browses mesh data, filters columns and exports CSV without editing the Main") | none dedicated | `PROVEN` (read path) | MOD-SPREADSHEET-01 |
| `TIMELINE` | Timeline area, marker rows | `action-marker-ui-production` ("Action creation, keyframes and timeline markers remain editable"), `b5-animation-ui-production` | none dedicated | `PROVEN` | MOD-ANIM-01 |
| `CLIP` | Clip editor routing only | no clip editing spec; `ui-editor-workflow-production` only names the editor | none | `UNCOVERED` | MOD-CLIP-01 |
| `MASK` | Mask datablock readout and selection context | `tracking-mask-production` ("reads Blender Mask data and selection context"), `ui-editor-view2d-production` | none dedicated | `READBACK_OR_PROBE` | — |
| `SEQUENCER` | sequencer strip list, scene strips | `sequencer-authoring-ui-production` ("edits persist in native Main with rollback and history"), `scene-strip-ui-production` | none dedicated | `PROVEN` | MOD-SEQUENCER-01 |
| `TEXT` | Text datablock source editing | `wbv2-text-source-production` ("preserves Text datablock source through Main recovery and reopen") | none dedicated | `PROVEN` (datablock path) | — |
| `CONSOLE` | Python Console session, server operator panel | `console-wasm-keyboard-production` ("uses native Main keyboard history and save/reopen"), `server-operator-ui-production` | none dedicated | `PROVEN` | — |
| `INFO` | Info editor surface | no dedicated assertion; operator reports are read through other surfaces | none | `UNCOVERED` | MOD-INFO-01 |
| `FILE_BROWSER` | file open/save flows, download entry | `file-copy-production`, `file-import-progress` (streamed byte progress and cancellation), `web-save-download-semantics` | none dedicated | `PROVEN` | — |
| `PREFERENCES` | Preferences dialog and keymap editor | `web-preferences` ("Preferences persist through OPFS and keymap rebinding takes effect") | none dedicated | `PROVEN` | — |
| `TOPBAR` | desktop header menus, workspace tabs | `desktop-menu-workflows` ("desktop header menus add, undo, rename and export a real Main scene") | none dedicated | `PROVEN` | — |
| `STATUSBAR` | status line text | asserted incidentally inside other specs (for example the object count in the armature case snapshot) | none | `INDIRECT` | — |
| `UNSUPPORTED` | fallback surface for unknown editor ids | `ui-editor-workflow-production`, capability gates for blocked editors | none | `GATE_ONLY` | — |
## Gap register
`OPEN` — reachable by a user, not fixed. `PARTIAL` — the path works but a stated part is missing.
`BLOCKED` — cannot be exercised until another gap clears. `FROZEN` — evidence is deliberately capped.
`RESOLVED` — closed with evidence; the row stays so the history and its proof remain traceable.
| ID | Description | User-visible impact | Evidence | Category | Priority | State |
| --- | --- | --- | --- | --- | --- | --- |
| MOD-OUTLINER-01 | The armature row was reported missing from the pose-constraint Outliner. It never was: the armature is a child of `ScaledRigParent` and sits one level deeper, exactly as desktop `make_object_parent_hierarchy_collections` builds it. Ten headed reruns failed because the expand loop in `web/tests/fixtures/native-ui-workflow.ts` clicked a label list scanned before earlier replies landed and re-clicked rows the reply had just opened, so the branch never stayed open. | None after the fix; before it the armature branch never settled open, so the row was unreachable from the Outliner. | `docs/web/KNOWN_LIMITATIONS.md` armature bullet; `web/tests/fixtures/native-ui-workflow.ts`; headed rerun of `armature panel operates on the selected bone` | RESIDUAL | P1 | `RESOLVED` |
| MOD-OUTLINER-02 | The Outliner is empty in the Rendering workspace, so objects cannot be picked from there. | Row selection has to be done in another workspace first. | `docs/web/KNOWN_LIMITATIONS.md` Rendering workspace bullet | RESIDUAL | P2 | `OPEN` |
| MOD-PROPERTIES-01 | The armature panel case could not run because its first step selects the armature row. Same cause as MOD-OUTLINER-01. | None after the fix. | `web/tests/e2e/armature-editor-coverage-ui-production.spec.ts` | RESIDUAL | P1 | `RESOLVED` |
| MOD-PROPERTIES-02 | `setSceneViewLayerAOVs` and `setSceneViewLayerLightgroups` carry a revision field that the Worker never compares. | Two tabs can overwrite each other's AOV and lightgroup edits without a conflict. | `web/protocol/web-engine-revisions.ts`, `web/tests/unit/web-engine-revisions.test.mjs` | RESIDUAL | P2 | `OPEN` |
| MOD-NLA-01 | `setNLAStack` carries a revision field that the Worker never compares. | A stale NLA stack submission is accepted instead of rejected. | `web/protocol/web-engine-revisions.ts` | RESIDUAL | P3 | `OPEN` |
| MOD-SEQUENCER-01 | `setSequencerTransitions` parses the timeline without comparing `timeline.revision`. | Stale transition edits are accepted. | `web/protocol/web-engine-revisions.ts` | RESIDUAL | P2 | `OPEN` |
| MOD-SPREADSHEET-01 | The Spreadsheet browses, filters and exports but offers no edit path. | Dataset editing stays in the desktop editor. | `web/tests/e2e/web-spreadsheet-readonly.spec.ts` | RESIDUAL | P3 | `PARTIAL` |
| MOD-ANIM-01 | Keyframe evidence stops at "an action datablock appeared": the Outliner tree exposes no fcurve or keyframe counts, so no count assertion is made. | Reviewers cannot confirm key counts from the tree. | `docs/web/KNOWN_LIMITATIONS.md` keyframe bullet; `outliner-keyframe-keys-web` | RESIDUAL | P3 | `FROZEN` |
| MOD-DOPESHEET-01 | The Dope Sheet is exercised only through animation specs that assert on other surfaces. | A Dope Sheet regression could pass the suite. | `web/tests/e2e/b5-animation-ui-production.spec.ts` | RESIDUAL | P3 | `PARTIAL` |
| MOD-CLIP-01 | The Clip editor has no e2e case; only the editor workflow fixture names it. | Clip editing is unverified end to end. | `web/tests/e2e/ui-editor-workflow-production.spec.ts` | RESIDUAL | P3 | `OPEN` |
| MOD-INFO-01 | The Info editor has no dedicated case; operator reports are read through other surfaces. | Info report rows are unverified. | `web/tests/e2e` inventory | RESIDUAL | P3 | `OPEN` |
## Sources reused
- `web/protocol/editor-workflow.ts` — `EDITOR_TYPES`, action prefixes and workflow IR.
- `web/tests/e2e` — 413 specs, of which 174 are `*production*` cases.
- `tools/web/run-outliner-headed.mjs`, `run-viewport-navigation-headed.mjs`,
`run-armature-robot-headed.mjs`, `run-mesh-decimate-headed.mjs` — headed `KNOWN_CASES` tables.
- `tests/golden/WBV2/dynamic-inventory.json` — production inventory and coverage ledger.
- `docs/web/KNOWN_LIMITATIONS.md` — the canonical limitation and residual-gap text.