|
| 1 | +# PR_26179_CHARLIE_024-sprites-canvas-grid |
| 2 | + |
| 3 | +Team: CHARLIE |
| 4 | +Workflow: stacked feature workflow |
| 5 | +Base branch: PR_26179_CHARLIE_023-sprites-toolbar-placeholders |
| 6 | +Canonical ZIP path: dev/workspace/zip/PR_26179_CHARLIE_024-sprites-canvas-grid_delta.zip |
| 7 | + |
| 8 | +## Summary |
| 9 | + |
| 10 | +Added a visible Sprite Creator pixel canvas grid with 16x16 and 32x32 display modes. The grid is rendered by external JavaScript and styled through Theme V2 CSS. This PR adds display behavior only; no persistence, drawing, API, DB, schema, or authoritative browser product data was added. |
| 11 | + |
| 12 | +## Branch Validation |
| 13 | + |
| 14 | +PASS |
| 15 | + |
| 16 | +- Current branch: PR_26179_CHARLIE_024-sprites-canvas-grid |
| 17 | +- Based on: PR_26179_CHARLIE_023-sprites-toolbar-placeholders |
| 18 | +- No start_of_day files changed |
| 19 | +- No DB/API/schema files changed |
| 20 | +- No stale PR #219-#228 code copied |
| 21 | + |
| 22 | +## Requirement Checklist |
| 23 | + |
| 24 | +| Requirement | Status | Notes | |
| 25 | +| --- | --- | --- | |
| 26 | +| Add visible pixel canvas grid | PASS | Grid renders on page load. | |
| 27 | +| Support 16x16 display mode | PASS | Default grid has 256 cells. | |
| 28 | +| Support 32x32 display mode | PASS | Toggle renders 1024 cells. | |
| 29 | +| No persistence | PASS | No storage/API/database writes. | |
| 30 | +| No drawing behavior | PASS | Pixel cells are disabled display cells. | |
| 31 | +| Theme V2 compliant | PASS | CSS added to shared Theme V2 stylesheet; no inline styles. | |
| 32 | +| No DB/API/schema changes | PASS | Only shell, CSS, JS, test, reports changed. | |
| 33 | + |
| 34 | +## Validation Lane Report |
| 35 | + |
| 36 | +Commands: |
| 37 | + |
| 38 | +```text |
| 39 | +node --check assets/toolbox/sprites/js/index.js |
| 40 | +node --check dev/tests/playwright/tools/SpritesToolShell.spec.mjs |
| 41 | +git diff --check -- toolbox/sprites/index.html assets/toolbox/sprites/js/index.js assets/theme-v2/css/gamefoundrystudio.css dev/tests/playwright/tools/SpritesToolShell.spec.mjs |
| 42 | +rg --pcre2 -n -i "<style|style=|<script(?![^>]+src=)|on(click|change|submit|input|load|error)=|imageDataUrl|local-mem|fake-login|MEM DB" toolbox/sprites/index.html assets/toolbox/sprites/js/index.js dev/tests/playwright/tools/SpritesToolShell.spec.mjs |
| 43 | +npx playwright test dev/tests/playwright/tools/SpritesToolShell.spec.mjs --workers=1 --reporter=list --output=<temp> |
| 44 | +``` |
| 45 | + |
| 46 | +Results: |
| 47 | + |
| 48 | +- Node syntax checks: PASS |
| 49 | +- `git diff --check`: PASS |
| 50 | +- Guard scan: PASS, no matches |
| 51 | +- Targeted Playwright: PASS, 1 test passed |
| 52 | + |
| 53 | +## Manual Validation Notes |
| 54 | + |
| 55 | +1. Open `/toolbox/sprites/index.html` from the stacked branch. |
| 56 | +2. Confirm the Pixel Grid renders in 16x16 mode by default. |
| 57 | +3. Click 32x32 and confirm the grid updates and the status text changes. |
| 58 | +4. Confirm no pixel drawing or save/load behavior exists yet. |
| 59 | + |
| 60 | +## ZIP Path |
| 61 | + |
| 62 | +`dev/workspace/zip/PR_26179_CHARLIE_024-sprites-canvas-grid_delta.zip` |
0 commit comments