|
| 1 | +# PR_26161_030 Controls Device Refresh Profile Polish Report |
| 2 | + |
| 3 | +## Scope |
| 4 | +- Moved Refresh Devices into Controller Profile next to Device Type. |
| 5 | +- Added creator-facing Devices inspector guidance. |
| 6 | +- Updated Create Profile From Default so it saves a DB-backed profile and immediately opens that profile in edit mode. |
| 7 | +- Changed controller input edit-mode identification to Theme V2 gold text on the selected Action only. |
| 8 | + |
| 9 | +## Branch Validation |
| 10 | +- PASS: current branch verified as `main` before edits. |
| 11 | + |
| 12 | +## Impacted Lane |
| 13 | +- Controls / Input Mapping. |
| 14 | + |
| 15 | +## Playwright Impacted |
| 16 | +- Yes. |
| 17 | + |
| 18 | +## Validation Performed |
| 19 | +- PASS: `node --check toolbox/controls/controls.js` |
| 20 | +- PASS: `node --check tests/playwright/tools/InputMappingV2Tool.spec.mjs` |
| 21 | +- PASS: `Select-String -Path toolbox/controls/index.html -Pattern '<style',' onclick=',' onchange=',' oninput=',' onsubmit='` |
| 22 | +- PASS: `git diff --check` |
| 23 | +- PASS: `npx playwright test tests/playwright/tools/InputMappingV2Tool.spec.mjs` |
| 24 | + |
| 25 | +## Manual Validation Steps |
| 26 | +- Open Controls and confirm Refresh Devices appears to the left of Controller Profile Device Type. |
| 27 | +- Open Inspector > Devices and confirm the guidance reads: `Press a button on the controller, then refresh Device Type.` |
| 28 | +- Connect or mock a gamepad, refresh devices, choose the gamepad, then click Create Profile From Default. |
| 29 | +- Confirm the DB-backed profile appears immediately in edit mode with generated input/action dropdowns visible. |
| 30 | +- Press a controller input while editing and confirm only the selected Action text turns Theme V2 gold. |
| 31 | +- Confirm the selected input row does not receive a background, border, or layout highlight. |
| 32 | +- Assign profile Actions, save, reload, and confirm assignments persist. |
| 33 | + |
| 34 | +## Skipped Lanes |
| 35 | +- Full samples validation skipped by request. |
| 36 | +- Broad workspace, engine, auth, production DB, and sample lanes skipped because this PR only changes Controls UI/runtime behavior, one reusable Theme V2 text utility, and targeted Playwright coverage exercises the impacted lane. |
| 37 | + |
| 38 | +## Runtime Engine Behavior |
| 39 | +- PASS: no production game runtime or engine behavior changed. |
| 40 | + |
| 41 | +## Theme V2 Styling Note |
| 42 | +- PASS: added reusable `.text-gold` in Theme V2 typography because the imported Theme V2 bundle did not provide a text-only gold utility. No page-local CSS, inline styles, tool CSS, background, border, or layout styling was added. |
| 43 | + |
| 44 | +## Requirement Checklist |
| 45 | +- PASS: Read `docs_build/dev/PROJECT_INSTRUCTIONS.md` before edits. |
| 46 | +- PASS: Verified branch `main` before edits. |
| 47 | +- PASS: Continued from PR_26161_029 behavior. |
| 48 | +- PASS: Controls status remains Wireframe. |
| 49 | +- PASS: Controls data remains DB-backed through the shared DB/mock adapter only. |
| 50 | +- PASS: Refresh Devices appears left of Controller Profile > Device Type. |
| 51 | +- PASS: Inspector > Devices guidance appears at the top. |
| 52 | +- PASS: Create Profile From Default creates a DB-backed controller profile. |
| 53 | +- PASS: Create Profile From Default immediately places the newly added profile into edit mode. |
| 54 | +- PASS: Generated input/action dropdowns are visible after Create Profile From Default. |
| 55 | +- PASS: Controller input press in edit mode identifies the selected Action with Theme V2 gold text only. |
| 56 | +- PASS: No background, border, layout, or extra visual effect is added for the selected controller input. |
| 57 | +- PASS: Controller profile edit-mode behavior, generated input list, action dropdowns, custom Actions, reset confirmation, Input Mapping accordion, Controller Profile accordion, and DB persistence are preserved. |
| 58 | +- PASS: No sample JSON alignment, auth behavior, production game runtime behavior, or unrelated rewrites were added. |
| 59 | +- PASS: Theme V2 only; no inline CSS, inline JS, script/style blocks, or inline event handlers were added. |
| 60 | +- PASS: Targeted Controls/Input Mapping Playwright validation passed. |
| 61 | +- PASS: Playwright V8 coverage report produced for changed runtime JavaScript. |
0 commit comments