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
Built Collision Inspector V2 into a usable manifest-driven debugging tool for object orientation and collision behavior.
6
+
7
+
Playwright impacted: Yes.
8
+
9
+
## Scope Completed
10
+
11
+
- Added an Asteroids validation load path to Collision Inspector V2.
12
+
- Loaded selectable Object A/Object B entries from `tools.object-vector-studio-v2.objects`.
13
+
- Added collision modes: Bounds, Vector, Pixel/Sprite, and Hybrid.
14
+
- Added mouse drag movement for either selected object.
15
+
- Added per-object runtime rotation controls.
16
+
- Added live diagnostics for collision state, overlap, bounds, object origins, world origins, rotation, transformed point samples, and debug log output.
17
+
- Routed Pixel/Sprite and Hybrid checks through manifest vector shape raster masks generated at runtime from the selected manifest objects.
18
+
- Removed synthetic fallback geometry from unsupported shapes; unsupported geometry produces no collision polygon instead of defaulting to a rectangle.
19
+
- Added Workspace Manager V2 launch/hydration for Collision Inspector V2 when Object Vector Studio V2 manifest objects are present.
20
+
- Kept Asteroids object geometry manifest-owned only; no hardcoded Asteroids geometry or fallback vector maps were added.
-`npx playwright test tests/playwright/tools/CollisionInspectorV2.spec.mjs --project=playwright --workers=1 --reporter=list`
44
+
- 2 passed.
45
+
-`npx playwright test tests/playwright/tools/WorkspaceManagerV2.spec.mjs --project=playwright --workers=1 --reporter=list -g "uses header lifecycle controls and launches tools from fixed Workspace Manager V2 tiles"`
46
+
-`npx playwright test tests/playwright/tools/WorkspaceManagerV2.spec.mjs --project=playwright --workers=1 --reporter=list -g "syncs Workspace Manager V2 dirty lifecycle buttons and closes clean toolState data"`
47
+
-`npx playwright test tests/playwright/tools/WorkspaceManagerV2.spec.mjs --project=playwright --workers=1 --reporter=list -g "registers Workspace Manager V2 from the tools index"`
48
+
49
+
FAIL, broader existing gate:
50
+
51
+
-`npm test`
52
+
- Fails in `pretest` at `tools/dev/checkSharedExtractionGuard.mjs`.
53
+
- Reported `189 unexpected violation(s)` across existing shared-extraction guard categories.
54
+
- The failure spans existing game, sample, engine, and tool files; it also flags changed Collision Inspector V2 helper patterns as part of that broader guard.
55
+
56
+
FAIL, broader existing Workspace V2 suite:
57
+
58
+
-`npm run test:workspace-v2`
59
+
- 54 passed, 2 failed.
60
+
- Failing test: `validates optional Text to Speech V2 schema contract through Workspace Manager V2 schema`
61
+
- Expected `activeContext.tools` to include `text2speech-V2`; received false.
62
+
- Failing test: `tracks Object Vector Studio V2 dirty state through persisted edits and save outcomes`
63
+
- Expected a generated manifest schema validation failure; save succeeded instead.
64
+
- Collision Inspector V2 launch, tile, hydration, and toolState cleanup coverage passed inside this run.
65
+
66
+
Advisory coverage:
67
+
68
+
-`docs/dev/reports/playwright_v8_coverage_report.txt` and `docs/dev/reports/coverage_changed_js_guardrail.txt` list changed runtime JS files.
69
+
- Workspace-only coverage reports WARN for Collision Inspector V2 runtime files because the Workspace V2 suite does not collect that page. The targeted Collision Inspector V2 Playwright spec exercises the Collision Inspector V2 page directly.
70
+
71
+
Full samples smoke test:
72
+
73
+
- Skipped. This PR is limited to Collision Inspector V2 and Workspace Manager V2 launch wiring, and the current repo instructions say full samples smoke is only for broad shared sample/runtime impact.
74
+
75
+
## Manual Validation
76
+
77
+
1. Start the repo server used by Playwright or any local static server for the repo.
78
+
2. Open `/tools/collision-inspector-v2/index.html`.
79
+
3. Click `Load Asteroids Manifest`.
80
+
4. Confirm the summary reports Asteroids and 7 vector objects loaded.
81
+
5. Select `object.asteroids.ship` as Object A and `object.asteroids.large-asteroid` as Object B.
82
+
6. Drag Object B into Object A.
83
+
7. Switch collision mode through Bounds, Vector, Pixel/Sprite, and Hybrid.
84
+
8. Change Object A/Object B rotation values and confirm origins, rotation, transformed points, and summary JSON update live.
85
+
9. Open Workspace Manager V2, select Asteroids, and launch Collision Inspector V2 from the Utilities group.
86
+
10. Confirm the Workspace nav is visible, the tool loads Asteroids objects from workspace context, and Return to Workspace works.
87
+
88
+
Expected result:
89
+
90
+
- Collision Inspector V2 only uses Object Vector Studio V2 manifest objects.
91
+
- No default vector maps or hardcoded Asteroids geometry appear.
92
+
- Missing or invalid manifest object data produces visible/actionable log failures instead of hidden fallback geometry.
0 commit comments