|
1 | | -# PR_26175_ALFA_002-toolbox-status-bar-context-polish |
| 1 | +# PR_26175_ALFA_006-game-hub-create-project-validation |
2 | 2 |
|
3 | 3 | ## Purpose |
4 | | -Polish the shared toolbox status bar context display so it shows only selected-game name/purpose on the left and categorized tool context in the center. |
| 4 | +Add creator-facing validation for the Game Hub create-project row so blank game names do not silently create fallback projects. |
5 | 5 |
|
6 | 6 | ## Source Of Truth |
7 | | -This `BUILD_PR.md` is the source of truth for `PR_26175_ALFA_002-toolbox-status-bar-context-polish`. |
| 7 | +This `BUILD_PR.md` is the source of truth for `PR_26175_ALFA_006-game-hub-create-project-validation`. |
8 | 8 |
|
9 | 9 | ## Exact Scope |
10 | | -- Do not include environment text in the status bar because environment already appears in the platform banner. |
11 | | -- On the left side, display the selected Game Hub game name and selected Game Hub game purpose. |
12 | | -- On the center side, display tool context messages for tool actions, save state, validation messages, warnings, or errors. |
13 | | -- Preserve normal placement above the footer. |
14 | | -- Preserve fullscreen/tool display mode bottom anchoring. |
15 | | -- Preserve Idea Board selected-game filtering exclusion. |
16 | | -- Preserve Game Hub as selected-game owner through the existing repository contract. |
17 | | -- Keep the shared Theme V2 toolbox component model. |
18 | | -- Update targeted Playwright coverage for the polished left and center context. |
| 10 | +- Validate the Game Hub add-game row before calling the repository create method. |
| 11 | +- Block signed-in creator saves when the game name is blank or whitespace-only. |
| 12 | +- Keep the add-game row open after validation failure. |
| 13 | +- Show a creator-safe validation message in the existing Game Hub status log. |
| 14 | +- Mark the game name input invalid for accessibility. |
| 15 | +- Preserve valid create/open/delete behavior. |
| 16 | +- Preserve guest save redirect behavior. |
| 17 | +- Preserve API/service/repository contracts. |
| 18 | +- Add targeted Playwright coverage for the create validation path. |
19 | 19 |
|
20 | 20 | ## Exact Targets |
21 | 21 | - `docs_build/dev/BUILD_PR.md` |
22 | | -- `assets/theme-v2/js/toolbox-status-bar.js` |
23 | | -- `assets/theme-v2/css/status.css` |
24 | | -- `tests/playwright/tools/ToolboxSelectedGameStatusBar.spec.mjs` |
25 | | -- `docs_build/dev/reports/PR_26175_ALFA_002-toolbox-status-bar-context-polish_report.md` |
26 | | -- `docs_build/dev/reports/PR_26175_ALFA_002-toolbox-status-bar-context-polish_validation-lane.md` |
27 | | -- `docs_build/dev/reports/PR_26175_ALFA_002-toolbox-status-bar-context-polish_requirements-checklist.md` |
| 22 | +- `toolbox/game-hub/game-hub.js` |
| 23 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs` |
| 24 | +- `docs_build/dev/reports/PR_26175_ALFA_006-game-hub-create-project-validation_report.md` |
| 25 | +- `docs_build/dev/reports/PR_26175_ALFA_006-game-hub-create-project-validation_validation-lane.md` |
| 26 | +- `docs_build/dev/reports/PR_26175_ALFA_006-game-hub-create-project-validation_requirements-checklist.md` |
28 | 27 | - `docs_build/dev/reports/codex_review.diff` |
29 | 28 | - `docs_build/dev/reports/codex_changed_files.txt` |
30 | 29 |
|
31 | 30 | ## Out Of Scope |
32 | | -- No environment status in the toolbox status bar. |
33 | | -- No row highlights. |
34 | | -- No large banners. |
35 | | -- No modal-style status messages. |
| 31 | +- No repository/API/service contract changes. |
| 32 | +- No Game Journey completion-metrics changes. |
| 33 | +- No shared toolbox status bar changes. |
| 34 | +- No unrelated Game Hub workflow changes. |
| 35 | +- No browser-owned product data as source of truth. |
| 36 | +- No silent create-name fallback in the Game Hub page flow. |
36 | 37 | - No inline styles, style blocks, or page-local CSS. |
37 | | -- No API/service contract changes. |
38 | 38 | - No engine core changes. |
39 | 39 | - No `start_of_day` folder changes. |
40 | 40 |
|
41 | 41 | ## Validation |
42 | | -Run: |
| 42 | +Run targeted create-project validation: |
43 | 43 |
|
44 | 44 | ```powershell |
45 | | -npx playwright test tests/playwright/tools/ToolboxSelectedGameStatusBar.spec.mjs --workers=1 |
| 45 | +npx playwright test tests/playwright/tools/GameHubMockRepository.spec.mjs --workers=1 --grep "Game Hub creates, opens, and deletes mock games" |
46 | 46 | ``` |
47 | 47 |
|
48 | | -Also verify the changed source does not introduce inline styles or style blocks: |
| 48 | +Also verify changed source does not introduce inline styles or style blocks: |
49 | 49 |
|
50 | 50 | ```powershell |
51 | | -rg -n "<style|style=" assets/theme-v2/js/toolbox-status-bar.js assets/theme-v2/css/status.css tests/playwright/tools/ToolboxSelectedGameStatusBar.spec.mjs |
| 51 | +rg -n "<[s]tyle|[s]tyle=" toolbox/game-hub/game-hub.js tests/playwright/tools/GameHubMockRepository.spec.mjs docs_build/dev/BUILD_PR.md docs_build/dev/reports/PR_26175_ALFA_006-game-hub-create-project-validation_report.md docs_build/dev/reports/PR_26175_ALFA_006-game-hub-create-project-validation_validation-lane.md docs_build/dev/reports/PR_26175_ALFA_006-game-hub-create-project-validation_requirements-checklist.md |
52 | 52 | ``` |
53 | 53 |
|
54 | 54 | ## Artifact |
55 | 55 | Create repo-structured delta ZIP: |
56 | 56 |
|
57 | 57 | ```text |
58 | | -tmp/PR_26175_ALFA_002-toolbox-status-bar-context-polish_delta.zip |
| 58 | +tmp/PR_26175_ALFA_006-game-hub-create-project-validation_delta.zip |
59 | 59 | ``` |
0 commit comments