|
| 1 | +# PR_26139_009-collision-inspector-css-template-only |
| 2 | + |
| 3 | +## Scope |
| 4 | +- Added the official First-Class Tool Starter V2 stylesheet to Collision Inspector V2. |
| 5 | +- Removed Collision Inspector V2 CSS rules that restyled Tool Starter/template foundations. |
| 6 | +- Kept only tool-specific Collision Inspector layout, result, canvas, legend, scroll, and fullscreen rules. |
| 7 | +- Preserved A/B rotate inputs, fixed three-decimal Origins output, scale normalization, and shared engine collision behavior from PR_26139_008. |
| 8 | + |
| 9 | +## Template CSS Cleanup |
| 10 | +- Removed local `:root` theme variable declarations from `tools/collision-inspector-v2/styles/collisionInspectorV2.css`. |
| 11 | +- Removed local body/page shell styling. |
| 12 | +- Removed local global `button`, `input`, `select`, and `textarea` styling. |
| 13 | +- Removed local Tool Starter header, menu, panel, field, and output base styling. |
| 14 | +- Removed local accordion base styling. |
| 15 | +- Collision Inspector V2 now consumes `../templates-v2/styles/toolStarter.css` as the visual source of truth. |
| 16 | + |
| 17 | +## Remaining Tool-Specific CSS |
| 18 | +- Equal-height open accordion groups for the left and right Collision Inspector panels. |
| 19 | +- Manifest summary, result badge, metrics, canvas viewport, canvas physical-size normalization, legend markers, scroll containers, and fullscreen Collision Inspector grid placement. |
| 20 | +- These rules are scoped to `collision-inspector-v2` selectors or specific tool element IDs. |
| 21 | + |
| 22 | +## Validation |
| 23 | +- PASS: `node --check tests/playwright/tools/CollisionInspectorV2.spec.mjs` |
| 24 | +- PASS: `npx playwright test tests/playwright/tools/CollisionInspectorV2.spec.mjs --project=playwright --workers=1 --reporter=list` |
| 25 | + - Validates the template stylesheet link is present. |
| 26 | + - Validates Collision Inspector V2 uses Tool Starter structure/classes. |
| 27 | + - Validates Collision Inspector CSS does not redefine `:root`, body/page shell, global controls, Tool Starter base selectors, or accordion base selectors. |
| 28 | + - Validates left/right accordions still share vertical space evenly. |
| 29 | + - Validates A/B rotate inputs, fixed Origins output, scale normalization, collision modes, drag collision, zoom, logs accordion, missing dimensions failure, and workspace launch behavior. |
| 30 | +- PASS: `npm run build:manifest` |
| 31 | + - This repo does not define a plain `npm run build`; `build:manifest` is the available build script. |
| 32 | + - Removed generated `docs/build` output after validation. |
| 33 | +- PASS: `git diff --check` |
| 34 | + - Only CRLF working-copy warnings were reported. |
| 35 | + |
| 36 | +## Full Samples Smoke Test |
| 37 | +- Skipped as requested. This PR is limited to Collision Inspector V2 CSS/template alignment and targeted visual/layout validation. |
| 38 | + |
| 39 | +## Changed Files |
| 40 | +- `tools/collision-inspector-v2/index.html` |
| 41 | +- `tools/collision-inspector-v2/styles/collisionInspectorV2.css` |
| 42 | +- `tests/playwright/tools/CollisionInspectorV2.spec.mjs` |
0 commit comments