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
- Updated Preview Generator V2 status header order from `Status Clear +` to `Status + Clear`.
5
+
- Hydrated Preview Generator V2 workspace launches with a real absolute filesystem `repoRoot` resolved by Workspace Manager V2.
6
+
- Direct workspace preview generation now combines `repoRoot` with the manifest-relative generated preview target, logs the resolved paths, and writes to the validated absolute output path.
7
+
- Display-only/non-absolute `repoRoot` values now fail workspace launch hydration, keep Generate Preview disabled, and do not silently fall back.
8
+
9
+
## Repo Root Hydration Notes
10
+
- Workspace Manager V2 resolves an absolute repo root for Preview Generator V2 launch context only.
11
+
- Existing workspace manifests remain manifest-relative for `gameRoot`, `assetsPath`, and asset paths.
12
+
- The Playwright repo server exposes the current absolute repo root for launch hydration and validates preview writes stay inside that repo root.
13
+
14
+
## Direct Write Notes
15
+
- Hydrated Asteroids launch resolves the generated preview target as `games/Asteroids/assets/images/preview.svg`.
16
+
- Preview Generator V2 logs:
17
+
- resolved `repoRoot`
18
+
- resolved absolute preview output path
19
+
- direct write target
20
+
- direct write success or failure
21
+
- If the launch context has `repoRoot: "HTML-JavaScript-Gaming"` or any other non-absolute display value, direct write remains disabled.
22
+
23
+
## UI Notes
24
+
- Preview Generator V2 status header now renders as `Status + Clear`.
25
+
- The pre-generation preview image can still display the manifest-selected preview source such as `preview.png`; direct generation writes to the generated `preview.svg` target.
26
+
27
+
## Validation
28
+
-`npm run test:workspace-v2`
29
+
- Result: PASS, 10 tests passed.
30
+
- Validated Asteroids Preview Generator V2 workspace launch, absolute repo root hydration, direct write to `games/Asteroids/assets/images/preview.svg`, status path logging, and blocked non-absolute repoRoot handling.
31
+
32
+
## Out Of Scope
33
+
- Deprecated `tools/workspace-v2` was not modified.
34
+
- Sample JSON was not modified.
35
+
- Full samples smoke test was skipped because this PR is Preview Generator repo hydration scoped.
awaitexpect(page.locator("#log")).toContainText("WARN Workspace background image role is missing; using manifest palette background color Background #05070A.");
awaitexpect(page.locator("#log")).toContainText("FAIL Workspace launch context hydration: repoRoot must be an absolute filesystem path, received HTML-JavaScript-Gaming.");
0 commit comments