feat: complete M2 content workspace and inspector
This commit is contained in:
1 parent
931f561e7f
commit
cf6eaba534
438 files changed
+59749
-19043
No files matched your search
@@ -0,0 +1,41 @@
|
||||
# Named native scenario format
|
||||
|
||||
Scenario files use these top-level fields:
|
||||
|
||||
```yaml
|
||||
name:
|
||||
purpose:
|
||||
preconditions:
|
||||
build_lane:
|
||||
fixture:
|
||||
steps:
|
||||
assertions:
|
||||
evidence:
|
||||
cleanup:
|
||||
invalidates:
|
||||
```
|
||||
|
||||
Keep steps deterministic and phrased as user actions. Assertions describe visible behavior, state transitions, persistence, and failure recovery. Evidence names the target window/crop and expected files. Cleanup must identify every spawned process and fixture mutation.
|
||||
|
||||
The runner exposes the scenario instead of pretending manual interactions are automated:
|
||||
|
||||
```bash
|
||||
bash scripts/codex/native_qa.sh plan <scenario>
|
||||
bash scripts/codex/native_qa.sh launch <scenario>
|
||||
bash scripts/codex/native_qa.sh attach <scenario> <existing-editor-pid>
|
||||
bash scripts/codex/native_qa.sh capture <scenario> <runner-pid>
|
||||
bash scripts/codex/native_qa.sh record <scenario> <assertion-index> pass|fail [note]
|
||||
bash scripts/codex/native_qa.sh status <scenario>
|
||||
bash scripts/codex/native_qa.sh close <scenario> <runner-pid>
|
||||
bash scripts/codex/native_qa.sh restore <scenario> --dry-run
|
||||
bash scripts/codex/native_qa.sh restore <scenario> --apply
|
||||
```
|
||||
|
||||
`launch` snapshots a workspace-contained regular-file fixture before the editor starts; `attach`
|
||||
does the same while reusing an existing editor and never closes that user-owned process. `restore --apply`
|
||||
prints and flushes the baseline/current hash plan, refuses to run while the recorded process
|
||||
is alive, validates the snapshot hash, and restores atomically. A scenario is accepted only when all
|
||||
named assertions are recorded as passing and the required evidence exists; visual interaction remains
|
||||
user-controlled unless explicitly delegated.
|
||||
|
||||
Recurring scenario families include Content Browser item/empty-space menus, multi-selection, destination-first import, move/reference repair, duplicate/undo/derived cleanup, material-slot assignment/inheritance, DefaultGrid Forward/Solari, and package launch.
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
name: content-browser-card-layout
|
||||
purpose: Verify production-quality grid/list card layout and model-thumbnail identity at wide and narrow browser sizes.
|
||||
preconditions: The running editor has the project Content Browser available with long asset names and the Poly Haven desk imported.
|
||||
build_lane: dev
|
||||
fixture:
|
||||
steps:
|
||||
- Open the Content Browser grid and navigate to the Office model folder.
|
||||
- Inspect long Material, Texture, and model names with clean and dirty status states.
|
||||
- Resize the Content Browser and Details splitter through narrow and wide layouts.
|
||||
- Switch to list view and compare status markers and column alignment.
|
||||
- Inspect the Poly Haven metal office desk card and one mesh-subasset preview.
|
||||
assertions:
|
||||
- Grid labels stay inside clipped two-line footers with ellipsis and no status overlap.
|
||||
- Dirty, processing, and error state use the fixed top-right status rail rather than text over the label.
|
||||
- List status markers occupy fixed space and do not shift or truncate neighboring columns unpredictably.
|
||||
- Toolbar, Details splitter, and cards remain usable without clipped controls at narrow sizes.
|
||||
- The office desk and mesh-subasset thumbnails show rendered geometry, never an albedo texture substitute.
|
||||
evidence: Target-window captures for grid-wide, grid-narrow, list, and desk geometry states plus hashes.
|
||||
cleanup: Close only a runner-spawned editor; this scenario does not mutate project fixtures.
|
||||
invalidates: Asset-card, Content Browser layout, status model, or thumbnail-routing changes.
|
||||
@@ -0,0 +1,26 @@
|
||||
name: material-slot-live-edit
|
||||
purpose: Verify persistent live Material edits, explicit save separation, and the unified responsive slot widget.
|
||||
preconditions: editor_scene contains a primitive and static mesh using a project Material; no editor process is running.
|
||||
build_lane: dev
|
||||
fixture: assets/materials/pebble_bricks.ron
|
||||
steps:
|
||||
- Select the primitive using pebble_bricks and expand its material parameters.
|
||||
- Drag a scalar control, release it, and observe the surface for at least five seconds.
|
||||
- Switch selection away and back, then compare the scalar value and rendered surface.
|
||||
- Narrow and widen the Inspector around the responsive threshold.
|
||||
- Save the active Material document and observe status and processing indicators.
|
||||
- Select a static mesh material slot and compare its slot presentation.
|
||||
- Leave the expanded material card idle for five minutes while sampling the editor process GPU memory and terminal diagnostics.
|
||||
- Close and relaunch the editor, then reopen the same Material slot.
|
||||
assertions:
|
||||
- The surface changes continuously, does not flicker back after release, and the editor remains responsive.
|
||||
- Selection changes preserve the live value and the compact amber dirty indicator without label overlap.
|
||||
- Scalar save becomes clean without a PROCESSING state or a long-running UI operation.
|
||||
- Primitive and static-mesh slots use the same compact header and schema-driven parameter layout.
|
||||
- Narrow and wide layouts contain every control without overlap, clipping, garbled rows, or redundant diagnostics prose.
|
||||
- No Apply, Revert, Ctrl+S hint, inline Explicit label, or inline Source & Diagnostics section appears.
|
||||
- GPU memory remains bounded, no repeated egui multipass ID warning appears, and the editor stays alive without a renderer Out of Memory error.
|
||||
- Relaunch preserves the saved Material value and rendered result.
|
||||
evidence: Target-window captures for dirty-wide, dirty-narrow, saved, and relaunched states plus hashes.
|
||||
cleanup: Close the spawned editor and atomically restore pebble_bricks.ron from the runner snapshot.
|
||||
invalidates: Material UI, material persistence, or slot-resolution code changes.
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
name: penpot-material-inspector
|
||||
purpose: Verify the final Penpot Materials list and material-slot panel at its 640 px and 420 px Inspector reference widths.
|
||||
preconditions: editor_scene contains primitive, static-mesh, and skinned-mesh material users; no editor process is running.
|
||||
build_lane: dev
|
||||
fixture: assets/materials/pebble_bricks.ron
|
||||
steps:
|
||||
- Launch the editor on the real desktop and size the Inspector to the 640 px reference width.
|
||||
- Select a primitive, static mesh, and skinned mesh in turn and expand each material panel.
|
||||
- Compare Materials ownership, expanded slot header, PARAMETERS spine, Surface, six Inputs rows, UV, and Advanced geometry with the current Penpot reference.
|
||||
- Narrow the Inspector to the 420 px floor and verify every value, channel, texture, Locate, and Clear control reflows.
|
||||
- Open the material picker, dismiss it without selection, then assign a valid project Material and inspect inherited and direct states.
|
||||
- Drop a Texture onto the material assignment target and inspect the invalid state without assigning it.
|
||||
- Open Base Color and exercise Wheel, Sliders, Presets, Apply, Cancel, Escape, and outside dismissal.
|
||||
- Edit a scalar and color, release the controls, switch actors, then save and relaunch the editor.
|
||||
- Inspect imported-source, DefaultGrid, and broken-reference presentations through the available fixture states.
|
||||
assertions:
|
||||
- The 640 px Inspector matches the current Penpot palette, Source Sans Pro typography, 32 px Materials heading, 82 px expanded slot header, 592 px parameter sections, six 30 px input rows, spacing, borders, and fixed property geometry without visible drift.
|
||||
- Primitive, static-mesh, and skinned-mesh slots use the same panel geometry and have no redundant second slot presentation.
|
||||
- At the 420 px Inspector floor, six 56 px input rows put paired texture controls on the second line with no horizontal scrolling, clipping, compressed labels, or missing actions.
|
||||
- Direct assignments have no Explicit badge; inherited, dirty, processing, failed, read-only, imported-source, and built-in states retain one header geometry.
|
||||
- Picker dismissal and invalid Texture drops make no assignment or source save; valid Material or Instance drops use the blue accent state.
|
||||
- Wheel, Sliders, and Presets preview live; Apply retains the dirty in-memory value and Cancel, Escape, or outside dismissal restores the exact pre-open value.
|
||||
- Material controls perform no pointer-release write or scalar/color processing job and keep the existing live GPU handle visible across actor selection.
|
||||
- Save and relaunch preserve the authored value, while broken explicit references retain failed identity and visible DefaultGrid fallback.
|
||||
evidence: Target-window captures for 640 px primitive/static/skinned, narrow reflow, color modes, invalid drop, dirty state, and relaunch plus hashes.
|
||||
cleanup: Close the spawned editor and atomically restore pebble_bricks.ron from the runner snapshot.
|
||||
invalidates: Design tokens, fonts, material panel geometry, material picker, color picker, authored documents, or material resolver changes.
|
||||
Reference in new issue
Block a user