|
| 1 | +# PR_26127_007-schema-alignment-preview-role-and-workspace-filtering |
| 2 | + |
| 3 | +## Scope |
| 4 | +- Reviewed `docs/dev/PROJECT_INSTRUCTIONS.md` before implementation. |
| 5 | +- Reviewed attached schema bundle `tools/schemas.zip` entries for `schemas/workspace.manifest.schema.json` and `schemas/tools/asset-manager-v2.schema.json` without extracting or modifying the ZIP. |
| 6 | +- Kept scope limited to Workspace Manager V2, Asset Manager V2, Preview Generator V2 launch hydration, manifests, schema, and dedicated Playwright coverage. |
| 7 | +- Did not modify deprecated `tools/workspace-v2`. |
| 8 | +- Did not modify sample JSON. |
| 9 | + |
| 10 | +## Schema Alignment Notes |
| 11 | +- `tools/schemas/workspace.manifest.schema.json` already required only `palette-manager-v2` and `asset-manager-v2`; that SSoT requirement remains unchanged. |
| 12 | +- Removed `previewImagePath` from the Asset Manager V2 payload schema and from Asteroids manifest data. |
| 13 | +- Changed image role naming to `preview`; removed `bezel` and `preview-image` from active Asset Manager V2 image roles. |
| 14 | +- Moved stretch override allowance from `assets.image.bezel.*` to `assets.image.preview.*`. |
| 15 | +- Updated Asteroids preview/bezel manifest data to a single `assets.image.preview.bezel` entry with role `preview` and `stretchOverride`. |
| 16 | + |
| 17 | +## Workspace Launch Notes |
| 18 | +- Preview Generator V2 now derives the preview target from Asset Manager V2 image assets with role `preview`. |
| 19 | +- Workspace-launched Preview Generator V2 shows only Games as the visible Target Source; Samples and Tools are hidden and disabled. |
| 20 | +- Workspace Manager V2 moves the template tile to Viewers and displays it as `Tool Starter V2`. |
| 21 | +- UAT seeding now loads `games/_template/workspace-manager-v2-UAT.manifest.json` as a `_template` game context with `games/_template/` and `games/_template/assets`. |
| 22 | +- The active game selector displays the explicit `Template UAT` context while UAT is active. |
| 23 | +- No Asteroids-specific fallback was added for UAT. |
| 24 | + |
| 25 | +## Validation |
| 26 | +- `node --check` passed for changed runtime JS files and changed Playwright specs. |
| 27 | +- JSON parse validation passed for changed schema/manifest JSON files. |
| 28 | +- Workspace manifest service validation passed for: |
| 29 | + - `games/Asteroids/game.manifest.json` |
| 30 | + - `games/_template/workspace-manager-v2-UAT.manifest.json` |
| 31 | +- `npm run test:workspace-v2` passed: 24 passed. |
| 32 | +- Full samples smoke test skipped because this PR is Workspace V2/tool UAT scoped and sample JSON is out of scope. |
| 33 | + |
| 34 | +## Manual Validation Notes |
| 35 | +- Launch Workspace Manager V2, load Asteroids, confirm the exported manifest has no `previewImagePath` and includes `assets.image.preview.bezel`. |
| 36 | +- Launch Asset Manager V2 from Workspace Manager V2 and confirm image roles are `sprite`, `background`, `preview`, and `ui`. |
| 37 | +- Pick image files containing `preview` or `bezel` and confirm role/id use `preview`. |
| 38 | +- Launch Preview Generator V2 from Workspace Manager V2 and confirm only Games is visible under Target Source. |
| 39 | +- Open Workspace Manager V2 with `?workspace=uat`, seed UAT, and confirm the context uses `games/_template/`. |
0 commit comments