Skip to content

Commit 0167f1a

Browse files
committed
ALFA 005 game hub audit findings cleanup
1 parent 6d94477 commit 0167f1a

7 files changed

Lines changed: 281 additions & 549 deletions

docs_build/dev/BUILD_PR.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,60 @@
1-
# PR_26175_ALFA_002-toolbox-status-bar-context-polish
1+
# PR_26175_ALFA_005-game-hub-audit-findings-cleanup
22

33
## 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`.
55

66
## 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`.
88

99
## 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.
1922

2023
## Exact Targets
2124
- `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`
2829
- `docs_build/dev/reports/codex_review.diff`
2930
- `docs_build/dev/reports/codex_changed_files.txt`
3031

3132
## 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.
3735
- 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.
3839
- No engine core changes.
3940
- No `start_of_day` folder changes.
4041

4142
## Validation
4243
Run:
4344

4445
```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
4647
```
4748

4849
Also verify the changed source does not introduce inline styles or style blocks:
4950

5051
```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
5253
```
5354

5455
## Artifact
5556
Create repo-structured delta ZIP:
5657

5758
```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
5960
```
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# PR_26175_ALFA_005-game-hub-audit-findings-cleanup Report
2+
3+
## Overall Status
4+
PASS
5+
6+
ALFA_005 cleaned up the targeted Game Hub audit findings from ALFA_004 without changing Game Hub product UI, Game Journey API/service behavior, or repository contracts.
7+
8+
## Cleanup Evidence
9+
10+
| Requirement | Status | Evidence |
11+
| --- | --- | --- |
12+
| Replace stale BUILD source of truth with ALFA_005 | PASS | `docs_build/dev/BUILD_PR.md:1` defines `PR_26175_ALFA_005-game-hub-audit-findings-cleanup`. |
13+
| Resolve duplicate `Open Game Hub` strict-mode finding | PASS | Deprecated-route assertion now scopes the link lookup to `main`, avoiding the shared toolbox status bar action while preserving the route check: `tests/playwright/tools/GameHubMockRepository.spec.mjs:251`. |
14+
| Resolve stale creator `Game Status` label finding | PASS | The create/open/delete test now verifies absence of legacy `Game Status` form controls instead of rejecting valid table/readiness text: `tests/playwright/tools/GameHubMockRepository.spec.mjs:270`. |
15+
| Resolve stale guest `Game Status` label finding | PASS | The guest save-blocking test uses the same legacy form-control assertion: `tests/playwright/tools/GameHubMockRepository.spec.mjs:595`. |
16+
| Resolve role-filter completion-metrics validation finding | PASS | Toolbox index role-filter setup now provides an explicit server API fixture for `/api/game-journey/completion-metrics`, preserving the Browser -> Server API -> Data Source response shape without changing production API behavior: `tests/playwright/tools/GameHubMockRepository.spec.mjs:213`, `tests/playwright/tools/GameHubMockRepository.spec.mjs:984`. |
17+
| Preserve Game Hub table workflow behavior | PASS | Cleanup is limited to Playwright selectors and route fixture setup; no Game Hub product files changed. |
18+
| Preserve shared toolbox status bar behavior | PASS | No status bar source or CSS files changed. The deprecated-route test now coexists with the status bar Game Hub action. |
19+
| Preserve Game Journey completion-metrics API/service behavior | PASS | No Game Journey API, service, or persistence files changed. The spec uses a targeted Playwright route fixture only for the toolbox role-filter lane. |
20+
| Avoid unrelated product/UI changes | PASS | Changed implementation file is limited to `tests/playwright/tools/GameHubMockRepository.spec.mjs`. |
21+
22+
## Validation Summary
23+
- PASS: `npx playwright test tests/playwright/tools/GameHubMockRepository.spec.mjs --workers=1` produced 14 passed, 0 failed.
24+
- PASS: changed-source style scan found no inline style or style-block matches.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# PR_26175_ALFA_005-game-hub-audit-findings-cleanup Requirements Checklist
2+
3+
- PASS: BUILD_PR.md was replaced with ALFA_005 as the source of truth.
4+
- PASS: Cleanup stayed focused on ALFA_004 Game Hub audit findings.
5+
- PASS: Duplicate `Open Game Hub` link strict-mode finding was resolved.
6+
- PASS: Stale creator-mode `Game Status` label assertion was resolved.
7+
- PASS: Stale guest-mode `Game Status` label assertion was resolved.
8+
- PASS: Toolbox role-filter completion-metrics validation finding was resolved with a targeted Playwright fixture.
9+
- PASS: Game Hub table workflow behavior was preserved.
10+
- PASS: Shared toolbox status bar behavior was preserved.
11+
- PASS: Game Journey completion-metrics API/service behavior was preserved.
12+
- PASS: No product or UI implementation files changed.
13+
- PASS: Targeted Game Hub validation passed.
14+
- PASS: Changed-source style scan passed.
15+
- PASS: Required reports were created.
16+
- PASS: Repo-structured delta ZIP was created.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# PR_26175_ALFA_005-game-hub-audit-findings-cleanup Validation Lane
2+
3+
## Commands
4+
```powershell
5+
npx playwright test tests/playwright/tools/GameHubMockRepository.spec.mjs --workers=1
6+
```
7+
8+
Result: PASS, 14 passed and 0 failed.
9+
10+
```powershell
11+
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
12+
```
13+
14+
Result: PASS, no matches.
15+
16+
## Notes
17+
- The ALFA_004 validation lane reported 10 passed and 4 failed.
18+
- The same impacted Game Hub spec now passes completely after the scoped cleanup.
19+
- No product or UI implementation changes were required.
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
assets/theme-v2/css/status.css
2-
assets/theme-v2/js/toolbox-status-bar.js
31
docs_build/dev/BUILD_PR.md
4-
docs_build/dev/reports/PR_26175_ALFA_002-toolbox-status-bar-context-polish_report.md
5-
docs_build/dev/reports/PR_26175_ALFA_002-toolbox-status-bar-context-polish_validation-lane.md
6-
docs_build/dev/reports/PR_26175_ALFA_002-toolbox-status-bar-context-polish_requirements-checklist.md
2+
tests/playwright/tools/GameHubMockRepository.spec.mjs
3+
docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_report.md
4+
docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_validation-lane.md
5+
docs_build/dev/reports/PR_26175_ALFA_005-game-hub-audit-findings-cleanup_requirements-checklist.md
76
docs_build/dev/reports/codex_changed_files.txt
87
docs_build/dev/reports/codex_review.diff
9-
tests/playwright/tools/ToolboxSelectedGameStatusBar.spec.mjs

0 commit comments

Comments
 (0)