|
| 1 | +# PR_26168_220-promotion-lanes-storage-path-status |
| 2 | + |
| 3 | +## Branch Validation |
| 4 | + |
| 5 | +PASS: current branch is `main`. |
| 6 | + |
| 7 | +- Expected branch: `main` |
| 8 | +- Current branch: `main` |
| 9 | +- Local branches found: `main` |
| 10 | + |
| 11 | +## Scope Summary |
| 12 | + |
| 13 | +PASS: PR220 is scoped to promotion lane labels/copy and Admin Infrastructure project asset storage path status. |
| 14 | + |
| 15 | +- Owner Operations no longer offers `Promote DEV to UAT`. |
| 16 | +- Owner Operations now offers `Promote DEV to IST` and `Promote IST to UAT`, with status-first copy describing project metadata, asset references, and project asset storage objects. |
| 17 | +- Admin Infrastructure now renders path match status from a read-only Local API route backed by `.env` `GAMEFOUNDRY_ASSET_STORAGE_PATH`. |
| 18 | +- Browser code receives only lane, path, and yes/no/ERROR status values; no secrets or connection strings are exposed. |
| 19 | + |
| 20 | +## Requirement Checklist |
| 21 | + |
| 22 | +| Requirement | Status | Evidence | |
| 23 | +| --- | --- | --- | |
| 24 | +| Read `docs_build/dev/PROJECT_INSTRUCTIONS.md` first | PASS | Instructions were read before branch guard or edits. | |
| 25 | +| Hard stop unless current branch is `main` | PASS | `git branch --show-current` returned `main`; `git branch --list` showed `* main`. | |
| 26 | +| Remove `Promote DEV to UAT` from Owner Operations | PASS | `owner/operations.html` and `OWNER_OPERATION_ACTIONS` no longer include `promote-dev-to-uat`; Playwright asserts the button count is zero. | |
| 27 | +| Add `Promote DEV to IST` | PASS | Added HTML button and server action id `promote-dev-to-ist`; Playwright clicks it and receives a `SKIP` manual-only result. | |
| 28 | +| Add `Promote IST to UAT` | PASS | Added HTML button and server action id `promote-ist-to-uat`; Playwright clicks it and receives a `SKIP` manual-only result. | |
| 29 | +| Explain promotion scope | PASS | Owner Operations copy and promotion plan rows name project metadata, asset references, and project asset storage objects. | |
| 30 | +| Admin section title/copy states `Project Asset Storage Paths use GAMEFOUNDRY_ASSET_STORAGE_PATH` | PASS | Admin Infrastructure table caption contains the exact storage path variable copy. | |
| 31 | +| DEV row true/yes only for `/dev/projects/` | PASS | Playwright default status fixture with `/dev/projects/` shows DEV `yes` and all other lanes `no`. | |
| 32 | +| IST row true/yes only for `/ist/projects/` | PASS | API lane matching uses exact path comparison; non-matching IST row renders `no` in targeted Playwright. | |
| 33 | +| UAT row true/yes only for `/uat/projects/` | PASS | API lane matching uses exact path comparison; non-matching UAT row renders `no` in targeted Playwright. | |
| 34 | +| PROD row true/yes only for `/prod/projects/` | PASS | API lane matching uses exact path comparison; non-matching PROD row renders `no` in targeted Playwright. | |
| 35 | +| Missing `.env` variable makes all rows `ERROR` | PASS | Dedicated Playwright case renders DEV/IST/UAT/PROD rows with `ERROR`. | |
| 36 | +| Do not display `GAMEFOUNDRY_ASSET_STORAGE_PATH` repeatedly as row value | PASS | Rows render only lane, path, and status value; static and Playwright checks confirm row body does not contain the variable name. | |
| 37 | +| Do not expose secrets | PASS | The Admin API returns only lane/path/status and `secretsExposed:false`; no storage credentials, keys, passwords, or connection strings are rendered. | |
| 38 | +| No inline script/style/event handlers | PASS | Static check passed for no `<style>`, no inline `style=`, no inline script blocks, and no `on*=` handlers. | |
| 39 | +| Use external JS only | PASS | Admin status behavior lives in `assets/theme-v2/js/admin-infrastructure.js`; Owner behavior remains external module JS. | |
| 40 | +| Use Theme V2 only | PASS | Pages continue to use `assets/theme-v2/css/theme.css` and existing Theme V2 classes only; no CSS was added. | |
| 41 | +| Do not add unrelated storage or promotion behavior | PASS | Changes are limited to read-only status rendering, promotion lane labels/plans, tests, and required reports. | |
| 42 | +| Do not run full samples smoke | PASS | Full samples smoke was skipped because no sample JSON or sample runtime surface changed. | |
| 43 | + |
| 44 | +## Validation Lane Report |
| 45 | + |
| 46 | +PASS: `node --check assets/theme-v2/js/admin-infrastructure.js` |
| 47 | + |
| 48 | +PASS: `node --check assets/theme-v2/js/owner-operations.js` |
| 49 | + |
| 50 | +PASS: `node --check src/engine/api/admin-infrastructure-api-client.js` |
| 51 | + |
| 52 | +PASS: `node --check src/dev-runtime/server/local-api-router.mjs` |
| 53 | + |
| 54 | +PASS: `node --check tests/playwright/tools/AdminPlatformToolsWireframes.spec.mjs` |
| 55 | + |
| 56 | +PASS: Admin/Owner static contract check |
| 57 | + |
| 58 | +- Confirmed Admin Infrastructure has no inline styles, style blocks, inline script blocks, or inline event handlers. |
| 59 | +- Confirmed Admin Infrastructure keeps `assets/GFS-Infrastructure v1-3.png` and does not display `assets/GFS-Infrastructure v1-2.png`. |
| 60 | +- Confirmed storage path rows do not repeat `GAMEFOUNDRY_ASSET_STORAGE_PATH`. |
| 61 | +- Confirmed Owner Operations removed DEV to UAT and added DEV to IST / IST to UAT. |
| 62 | +- Confirmed Local API route reads `GAMEFOUNDRY_ASSET_STORAGE_PATH` from `.env` and returns `ERROR` when missing. |
| 63 | + |
| 64 | +PASS: `git diff --check` |
| 65 | + |
| 66 | +- Exit code 0. |
| 67 | +- Git reported expected Windows line-ending warnings only. |
| 68 | + |
| 69 | +PASS: targeted Playwright UI behavior |
| 70 | + |
| 71 | +Command: |
| 72 | + |
| 73 | +`npx playwright test tests/playwright/tools/AdminPlatformToolsWireframes.spec.mjs -g "Infrastructure Admin wireframe preserves template structure|Infrastructure storage path status reports missing env path as ERROR|Owner Operations exposes owner-only connection validation and manual operation actions"` |
| 74 | + |
| 75 | +Result: |
| 76 | + |
| 77 | +- 3 passed. |
| 78 | +- Admin Infrastructure validated v1-3-only image, zoom behavior, storage path status rows, missing-env ERROR rows, external JS, and no page failures. |
| 79 | +- Owner Operations validated DavidQ owner visibility, DEV to IST and IST to UAT actions, removed DEV to UAT action, safe status/copy, and manual-only operation results. |
| 80 | + |
| 81 | +NOTE: The first run of the same targeted Playwright command had 2 passed and 1 failed because the updated Owner promotion fixture omitted the existing `Local API` copy expected after validation. The copy was corrected in the server fixture and the test fixture, then the same targeted command passed. |
| 82 | + |
| 83 | +PASS: Playwright V8 coverage report produced at `docs_build/dev/reports/playwright_v8_coverage_report.txt`. |
| 84 | + |
| 85 | +- `(80%) assets/theme-v2/js/admin-infrastructure.js` |
| 86 | +- `(100%) assets/theme-v2/js/owner-operations.js` |
| 87 | +- `(100%) src/engine/api/admin-infrastructure-api-client.js` |
| 88 | +- `(0%) src/dev-runtime/server/local-api-router.mjs` is an advisory WARN because Playwright browser V8 coverage does not collect Node-side server runtime. |
| 89 | + |
| 90 | +SKIP: Full samples smoke was not run because this PR changes Admin Infrastructure, Owner Operations, and Local API status surfaces only; sample JSON and sample runtime behavior were not touched. |
| 91 | + |
| 92 | +## Manual Validation Notes |
| 93 | + |
| 94 | +PASS: Static inspection confirmed Admin Infrastructure displays the storage variable only in the caption and uses lane rows for `/dev/projects/`, `/ist/projects/`, `/uat/projects/`, and `/prod/projects/`. |
| 95 | + |
| 96 | +PASS: Static inspection confirmed the Admin browser code renders `yes`, `no`, or `ERROR` only; it does not render secrets or full connection strings. |
| 97 | + |
| 98 | +PASS: Static inspection confirmed Owner Operations is status-first and keeps destructive/promotion work manual-only. |
| 99 | + |
| 100 | +PASS: `docs_build/dev/reports/codex_review.diff` and `docs_build/dev/reports/codex_changed_files.txt` were produced for review. |
0 commit comments