|
1 | | -# PR_26175_ALFA_002-toolbox-status-bar-context-polish |
| 1 | +# PR_26175_ALFA_005-game-hub-audit-findings-cleanup |
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 | +Clean up the targeted Game Hub audit findings from `PR_26175_ALFA_004-game-hub-completion-status-audit`. |
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_005-game-hub-audit-findings-cleanup`. |
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 | +- Resolve the targeted Game Hub Playwright failures recorded by the ALFA_004 audit. |
| 11 | +- Keep the cleanup focused on stale or over-broad test expectations unless product code is required by validation. |
| 12 | +- Preserve the existing Game Hub table workflow behavior. |
| 13 | +- Preserve the shared toolbox selected-game status bar behavior. |
| 14 | +- Preserve Game Journey completion-metrics API/service behavior. |
| 15 | +- Do not implement unrelated product or UI changes. |
| 16 | + |
| 17 | +## ALFA_004 Findings To Clean Up |
| 18 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs:238`: duplicate `Open Game Hub` link strict-mode conflict after the shared toolbox status bar added its own Game Hub action. |
| 19 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs:257`: stale expectation that no `Game Status` label exists. |
| 20 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs:582`: stale guest-mode expectation that no `Game Status` label exists. |
| 21 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs:1019`: toolbox role-filter lane records known `500 /api/game-journey/completion-metrics` requests outside the Game Hub table workflow. |
19 | 22 |
|
20 | 23 | ## Exact Targets |
21 | 24 | - `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` |
| 25 | +- `tests/playwright/tools/GameHubMockRepository.spec.mjs` |
| 26 | +- `docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_report.md` |
| 27 | +- `docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_validation-lane.md` |
| 28 | +- `docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_requirements-checklist.md` |
28 | 29 | - `docs_build/dev/reports/codex_review.diff` |
29 | 30 | - `docs_build/dev/reports/codex_changed_files.txt` |
30 | 31 |
|
31 | 32 | ## 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. |
36 | | -- No inline styles, style blocks, or page-local CSS. |
| 33 | +- No Game Hub product or UI behavior changes unless targeted validation proves they are required. |
| 34 | +- No Game Journey completion-metrics product/API/service changes. |
37 | 35 | - No API/service contract changes. |
| 36 | +- No browser-owned product data as source of truth. |
| 37 | +- No silent fallbacks. |
| 38 | +- No inline styles, style blocks, or page-local CSS. |
38 | 39 | - No engine core changes. |
39 | 40 | - No `start_of_day` folder changes. |
40 | 41 |
|
41 | 42 | ## Validation |
42 | 43 | Run: |
43 | 44 |
|
44 | 45 | ```powershell |
45 | | -npx playwright test tests/playwright/tools/ToolboxSelectedGameStatusBar.spec.mjs --workers=1 |
| 46 | +npx playwright test tests/playwright/tools/GameHubMockRepository.spec.mjs --workers=1 |
46 | 47 | ``` |
47 | 48 |
|
48 | 49 | Also verify the changed source does not introduce inline styles or style blocks: |
49 | 50 |
|
50 | 51 | ```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 |
| 52 | +rg -n "<[s]tyle|[s]tyle=" tests/playwright/tools/GameHubMockRepository.spec.mjs docs_build/dev/BUILD_PR.md docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_report.md docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_validation-lane.md docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_requirements-checklist.md |
52 | 53 | ``` |
53 | 54 |
|
54 | 55 | ## Artifact |
55 | 56 | Create repo-structured delta ZIP: |
56 | 57 |
|
57 | 58 | ```text |
58 | | -tmp/PR_26175_ALFA_002-toolbox-status-bar-context-polish_delta.zip |
| 59 | +tmp/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_delta.zip |
59 | 60 | ``` |
0 commit comments