|
| 1 | +# PR_26130_025-text-to-speech-v2-deep-rename-and-accordion-state |
| 2 | + |
| 3 | +## Scope |
| 4 | + |
| 5 | +Updated Text to Speech V2 and direct Workspace Manager/tool references for the canonical `text2speech-V2` spelling, playback gating, scroll behavior, last-item delete behavior, and accordion height behavior. |
| 6 | + |
| 7 | +## Changes |
| 8 | + |
| 9 | +- Renamed Text to Speech V2 direct code, CSS, DOM ids, test selectors, tool ids, schema ids, logs, sample wiring, and workspace/tool references from `text2speach` to `text2speech`. |
| 10 | +- Added explicit legacy compatibility for the old `text2speach-V2` tool path, schema path, sample JSON path, workspace toolState key, and tool id alias so existing links/session state migrate visibly instead of silently failing. |
| 11 | +- Disabled Speak, Pause, Resume, and Stop until a valid named speech item is selected and text/voice options are present. |
| 12 | +- Added internal scrolling for Output Summary content and summary pre blocks. |
| 13 | +- Allowed deleting the last Named Sentence, leaves a safe empty runtime state, and blocks copy/export/save through schema validation until a new schema-valid item is added. |
| 14 | +- Centered Add, Duplicate, and Delete actions. |
| 15 | +- Updated Text to Speech V2 accordions so open accordions share available vertical space and closed accordions collapse in normal and fullscreen modes. |
| 16 | +- Kept Workspace Manager V2 Text to Speech tile availability based on normal repo/game selection and selected-game launch purpose. |
| 17 | + |
| 18 | +## Legacy Migration Notes |
| 19 | + |
| 20 | +Preserved compatibility only for required direct Text to Speech V2 references: |
| 21 | + |
| 22 | +- `/tools/text2speach-V2/index.html` redirects to `/tools/text2speech-V2/index.html` while preserving query string and hash. |
| 23 | +- `/tools/schemas/tools/text2speach-V2.schema.json` remains as an alias file whose `$id` points to `tools/schemas/tools/text2speech-V2.schema.json`. |
| 24 | +- `/samples/phase-19/1903/sample.1903.text2speach-V2.json` remains as an alias payload matching the canonical `sample.1903.text2speech-V2.json`. |
| 25 | +- `workspace.tools.text2speach-V2` session state migrates to `workspace.tools.text2speech-V2` with a status log entry. |
| 26 | +- `root.tools.text2speach-V2` workspace payloads migrate to `root.tools.text2speech-V2` during Workspace Manager context normalization and report the migration in status. |
| 27 | +- Tool registry alias maps `text2speach-V2` to `text2speech-V2`. |
| 28 | + |
| 29 | +## Validation |
| 30 | + |
| 31 | +- `node --check tools/text2speech-V2/js/TextToSpeechToolApp.js` passed. |
| 32 | +- `node --check tools/workspace-manager-v2/js/services/WorkspaceManagerV2ContextService.js` passed. |
| 33 | +- `node --check tools/toolRegistry.js` passed. |
| 34 | +- `node --check tests/playwright/tools/WorkspaceManagerV2.spec.mjs` passed. |
| 35 | +- `npm run test:workspace-v2` passed: 35 tests passed. |
| 36 | +- `git diff --check` passed with line-ending normalization warnings only. |
| 37 | + |
| 38 | +## Skipped |
| 39 | + |
| 40 | +- Full samples smoke test skipped because the BUILD request explicitly said not to run it. |
0 commit comments