You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds the Object Vector Studio V2 animation/state foundation only. The change stays within Object Vector Studio V2 schema, runtime UI/CSS/JS, and Workspace Manager V2 Playwright coverage.
6
+
7
+
## Changes
8
+
9
+
- Added durable object animation states for idle, thrust, damaged, destroyed, active, and inactive.
10
+
- Added state selector and Create State controls.
11
+
- Added per-state frame payloads with per-shape visibility and transform overrides.
12
+
- Added frame timeline UI with state/frame thumbnails, frame selection, frame duplication, and frame ordering controls.
-`npx playwright test tests/playwright/tools/WorkspaceManagerV2.spec.mjs --project=playwright --workers=1 --reporter=line -g "Object Vector Studio V2"`
30
+
-`npm run test:workspace-v2`
31
+
32
+
Result:
33
+
34
+
- Targeted Object Vector Studio V2 coverage passed: 4 passed.
35
+
- Full Workspace Manager V2 suite passed: 43 passed.
36
+
- Playwright V8 coverage report generated at `docs/dev/reports/playwright_v8_coverage_report.txt` and copied to required report path `docs/dev/reports/playwright_v8_coverage.txt`.
37
+
- Full samples smoke test skipped per request; this PR is limited to Object Vector Studio V2 animation/state runtime and is covered by targeted Workspace V2 Playwright validation.
38
+
39
+
## Playwright Coverage
40
+
41
+
Validates:
42
+
43
+
- State creation from the fixed Object Vector Studio V2 state set.
44
+
- Frame duplication and ordering.
45
+
- Playback controls and FPS/loop wiring.
46
+
- State/frame selection synchronization while preserving the active object.
47
+
- Per-state frame transform overrides.
48
+
- Onion-skin preview.
49
+
- State-aware JSON copy/export and SVG metadata export.
50
+
- Invalid animation payload rejection before render.
51
+
52
+
Expected pass behavior:
53
+
54
+
- Valid state/frame operations mutate only schema-valid object payloads and render the selected frame.
55
+
56
+
Expected fail behavior:
57
+
58
+
- Invalid animation payloads are rejected through schema validation and logged as FAIL without partial render.
59
+
60
+
## Manual Validation
61
+
62
+
1. Open `tools/object-vector-studio-v2/index.html`.
63
+
2. Load a schema-valid Object Vector Studio V2 payload and runtime palette.
64
+
3. Create a template object, select `Idle`, and click `Create State`.
65
+
4. Duplicate and reorder frames, then adjust a selected shape transform.
66
+
5. Use Play, Pause, Stop, Loop, FPS, and Onion controls.
67
+
6. Export SVG and JSON.
68
+
69
+
Expected outcome:
70
+
71
+
- The active object remains selected, frame thumbnails stay synchronized, preview playback advances frames, JSON includes states/frames, and SVG includes state/frame metadata.
<divid="objectVectorStudioV2LoadStatus" class="object-vector-studio-v2__callout" role="status">Schema-only loading is idle. Import JSON or launch with workspace toolState data that includes a palette.</div>
0 commit comments