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 Text to Speech V2 workspace launch navigation only. Workspace launches now show a below-header Text to Speech V2 workspace nav with Return to Workspace, matching the Palette Manager V2 placement pattern while keeping speech playback controls inside the Named Sentences surface.
6
+
7
+
## Scope Guard
8
+
9
+
- Text to Speech V2 only for implementation files.
10
+
- No schema files changed.
11
+
- No Workspace Manager schema contract changes.
12
+
- No Text to Speech V2 payload/schema shape changes.
- Moved the Text to Speech V2 workspace nav out of the Named Sentences accordion to the below-header position used by Palette Manager V2.
26
+
- The below-header workspace nav uses Text to Speech V2 classes: text2speach-V2__menu, text2speach-V2__workspace-menu, and text2speach-V2__menu-actions.
27
+
- The workspace nav contains Return to Workspace only.
28
+
- The regular speech action buttons remain in the Named Sentences accordion and remain available during workspace launches.
29
+
- Return to Workspace continues to preserve hostContextId in the Workspace Manager V2 return URL.
30
+
31
+
## Playwright Impacted
32
+
33
+
Yes.
34
+
35
+
Playwright validates:
36
+
- Standalone Text to Speech V2 launch keeps the workspace nav hidden.
37
+
- Workspace-launched Text to Speech V2 shows the below-header workspace nav.
38
+
- The Return to Workspace button is visible in workspace launch mode.
39
+
- The workspace nav is placed between the collapsible header and the main Text to Speech V2 app surface.
40
+
- Return to Workspace preserves the active hostContextId in the Workspace Manager V2 URL.
41
+
42
+
Expected pass behavior:
43
+
- Workspace nav is visible only for launch=workspace, fromTool=workspace-manager-v2, and hostContextId launches.
44
+
- Standalone launches do not show the workspace nav.
45
+
- Return navigation returns to Workspace Manager V2 without clearing or dirtying workspace/toolState data.
46
+
47
+
Expected fail behavior:
48
+
- Missing or misplaced workspace nav, missing Return to Workspace button, or lost hostContextId fails the Playwright assertions.
49
+
50
+
## Validation
51
+
52
+
-`npm run test:workspace-v2` passed: 30 tests passed.
53
+
- Initial `npm run test:workspace-v2` attempt timed out due the command timeout; rerun with a longer timeout passed.
-`git diff --check HEAD -- ...` passed with line-ending warnings only.
58
+
59
+
## Full Samples Smoke Test
60
+
61
+
Skipped. Reason: this PR is limited to Text to Speech V2 workspace nav placement and does not modify shared sample loading, broad runtime sample launch paths, or game/sample data contracts.
62
+
63
+
## Manual Test Steps
64
+
65
+
1. Open Text to Speech V2 directly from `tools/text2speach-V2/index.html`.
66
+
2. Confirm no below-header Workspace actions nav is visible.
67
+
3. Open Workspace Manager V2, select a repo and Asteroids, then launch Text to Speech V2.
68
+
4. Confirm a below-header Workspace actions nav appears with Return to Workspace.
69
+
5. Click Return to Workspace.
70
+
6. Confirm the browser returns to Workspace Manager V2 with the same hostContextId and the active workspace/toolState remains open.
awaitexpect(page.locator("#text2speach-V2SpeechText")).toHaveValue("Welcome to Toolbox Aid. This is the default Text to Speech V2 sample line for previewing narration, prompts, and menu feedback.");
awaitexpect(page.locator("#text2speach-V2SpeechText")).toHaveValue("Welcome to Toolbox Aid. This is the default Text to Speech V2 sample line for previewing narration, prompts, and menu feedback.");
expect(spoken[0].text).toBe("Welcome to Toolbox Aid. This is the default Text to Speech V2 sample line for previewing narration, prompts, and menu feedback.");
0 commit comments