|
| 1 | +# PR_26162_049-controls-tooltips-defaults-pause-lock |
| 2 | + |
| 3 | +## Branch Validation |
| 4 | +- PASS: current branch is `main`. |
| 5 | +- Expected branch: `main`. |
| 6 | + |
| 7 | +## Requirement Checklist |
| 8 | +- PASS: Read `docs_build/dev/PROJECT_INSTRUCTIONS.md` before edits. |
| 9 | +- PASS: Continued from PR_26162_048 without changing the enabled checkbox styling. |
| 10 | +- PASS: Added hover/ARIA tooltip text for Game Controls columns: |
| 11 | + - `D = Down` |
| 12 | + - `H = Hold` |
| 13 | + - `U = Up` |
| 14 | + - `DC = Double Click / Double Press` |
| 15 | +- PASS: Movement default rows now use Hold only. |
| 16 | +- PASS: Aim default rows now use Hold only. |
| 17 | +- PASS: Movement and aim defaults leave Down, Up, and Double Click unchecked. |
| 18 | +- PASS: `action.pause` remains visible in Game Controls. |
| 19 | +- PASS: `action.pause` is engine-owned and rendered read-only/locked. |
| 20 | +- PASS: `action.pause` cannot be disabled through the UI because no edit action is exposed and loaded/saved pause rows are normalized to enabled. |
| 21 | +- PASS: `action.pause` cannot be deleted through the UI because no Trash action is exposed and save/read repair restores it if missing. |
| 22 | +- PASS: Game Controls explains `Pause is handled by the engine.` |
| 23 | +- PASS: DB-backed Game Controls and Account User Controls separation is preserved. |
| 24 | +- PASS: No sample JSON alignment, auth behavior, production account system, or unrelated rewrites were added. |
| 25 | + |
| 26 | +## Changed Files |
| 27 | +- `toolbox/controls/index.html` |
| 28 | +- `toolbox/controls/controls.js` |
| 29 | +- `tests/playwright/tools/InputMappingV2Tool.spec.mjs` |
| 30 | +- `docs_build/dev/reports/playwright_v8_coverage_report.txt` |
| 31 | +- `docs_build/dev/reports/coverage_changed_js_guardrail.txt` |
| 32 | +- `docs_build/dev/reports/controls-tooltips-defaults-pause-lock-report.md` |
| 33 | + |
| 34 | +## Impacted Lanes |
| 35 | +- Toolbox Controls runtime lane. |
| 36 | +- Playwright impacted: Yes. |
| 37 | + |
| 38 | +## Validation Performed |
| 39 | +- PASS: `node --check toolbox/controls/controls.js` |
| 40 | +- PASS: `node --check tests/playwright/tools/InputMappingV2Tool.spec.mjs` |
| 41 | +- PASS: `git diff --check` |
| 42 | +- PASS: `rg -n "<style|style\\s*=|\\son[a-z]+\\s*=" toolbox/controls/index.html toolbox/controls/controls.js` returned no matches. |
| 43 | +- PASS: `npx playwright test tests/playwright/tools/InputMappingV2Tool.spec.mjs --grep "Toolbox Controls|Game Controls edits|Game Controls validates|Controls split"` |
| 44 | + |
| 45 | +## Playwright Result |
| 46 | +- PASS: 4 targeted Controls tests passed. |
| 47 | +- Covered behavior: |
| 48 | + - D/H/U/DC hover and ARIA tooltip metadata. |
| 49 | + - Movement and aim defaults use Hold only. |
| 50 | + - Pause remains visible and locked. |
| 51 | + - Pause has no Edit or Trash action. |
| 52 | + - Pause remains enabled and canonical after save/reload. |
| 53 | + - Existing Controls runtime/Account User Controls separation remains intact. |
| 54 | + |
| 55 | +## V8 Coverage |
| 56 | +- Generated: `docs_build/dev/reports/playwright_v8_coverage_report.txt` |
| 57 | +- Result: `(94%) toolbox/controls/controls.js - executed lines 667/667; executed functions 68/72` |
| 58 | +- Guardrail: no changed runtime JS coverage warnings. |
| 59 | + |
| 60 | +## Skipped Lanes |
| 61 | +- Full samples validation skipped: samples are out of scope and no sample JSON, game runtime, or sample launch behavior changed. |
| 62 | +- Full workspace suite skipped: this PR only changes the Controls tool UI/runtime behavior and targeted Controls Playwright covers the affected behavior. |
| 63 | +- Account/User Controls full behavior lane skipped beyond separation regression: no Account/User Controls files or behavior were changed. |
| 64 | + |
| 65 | +## Manual Validation Steps |
| 66 | +1. Open `/toolbox/controls/index.html`. |
| 67 | +2. Hover the D, H, U, and DC column headers and confirm their tooltip meanings. |
| 68 | +3. Confirm Move and Aim rows show Hold checked and Down, Up, and Double Click unchecked. |
| 69 | +4. Confirm `action.pause` / Pause is visible. |
| 70 | +5. Confirm the Pause row says `Pause is handled by the engine.` |
| 71 | +6. Confirm Pause has no Edit or Trash button. |
| 72 | +7. Reload the page and confirm Pause remains visible, enabled, and locked. |
| 73 | + |
| 74 | +## Samples Decision |
| 75 | +- SKIP: Full samples validation was not run because this PR does not touch samples, sample data, or production runtime behavior. |
0 commit comments