-
Notifications
You must be signed in to change notification settings - Fork 0
PR_26179_CHARLIE_031-sprites-picker-zoom #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
docs_build/dev/reports/PR_26179_CHARLIE_031-sprites-picker-zoom.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| # PR_26179_CHARLIE_031-sprites-picker-zoom | ||
|
|
||
| Team: CHARLIE | ||
|
|
||
| Mode: Batch governance stacked feature workflow | ||
|
|
||
| Base branch: PR_26179_CHARLIE_030-sprites-undo-redo | ||
|
|
||
| Branch: PR_26179_CHARLIE_031-sprites-picker-zoom | ||
|
|
||
| ## Summary | ||
|
|
||
| Implemented Sprite Creator picker and zoom display controls. Picker reads an existing unsaved draft pixel color and updates the active editor color. Zoom changes only the canvas display scale through Theme V2 CSS and page-session UI state. No persistence, database, API, schema, browser-owned authoritative product data, or start_of_day files were changed. | ||
|
|
||
| ## Branch Validation | ||
|
|
||
| PASS | ||
|
|
||
| - Built on the previous stacked Sprite branch. | ||
| - Scope stayed limited to Picker and Zoom display controls. | ||
| - Move remains disabled/deferred. | ||
| - No DB/API/schema changes. | ||
| - No product data persistence was added. | ||
| - No stale PR #219-#228 code was copied. | ||
| - ZIP package created at the user-requested batch path. | ||
|
|
||
| ## Requirement Checklist | ||
|
|
||
| PASS - Picker implemented for existing painted pixels. | ||
|
|
||
| PASS - Picker updates the active editor color without mutating the canvas. | ||
|
|
||
| PASS - Zoom display controls added for 100%, 200%, and 400%. | ||
|
|
||
| PASS - Zoom is display-only and does not persist data. | ||
|
|
||
| PASS - Move remains disabled/deferred. | ||
|
|
||
| PASS - Theme V2 CSS used for zoom sizing. | ||
|
|
||
| PASS - No inline CSS, script blocks, style blocks, or inline event handlers added. | ||
|
|
||
| PASS - Targeted Playwright coverage updated. | ||
|
|
||
| ## Validation Lane | ||
|
|
||
| PASS - `node --check assets/toolbox/sprites/js/index.js` | ||
|
|
||
| PASS - `node --check dev/tests/playwright/tools/SpritesToolShell.spec.mjs` | ||
|
|
||
| PASS - `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` | ||
|
|
||
| PASS - Runtime guard scan found no prohibited inline style/script/event-handler or stale placeholder text in touched runtime files. | ||
|
|
||
| PASS - `npx playwright test dev/tests/playwright/tools/SpritesToolShell.spec.mjs --workers=1 --reporter=list` | ||
|
|
||
| ## Manual Validation Notes | ||
|
|
||
| 1. Open `toolbox/sprites/index.html`. | ||
| 2. Paint a pixel with Gold. | ||
| 3. Change the active editor color to Blue. | ||
| 4. Select Picker and click the Gold pixel. | ||
| 5. Confirm the active editor color returns to Gold and the canvas does not change. | ||
| 6. Select Zoom and click 200%, 400%, and 100%. | ||
| 7. Confirm the canvas display scale updates and no sprite data is saved. | ||
|
|
||
| ## ZIP | ||
|
|
||
| `dev/workspace/zip/PR_26179_CHARLIE_031-sprites-picker-zoom_delta.zip` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| assets/theme-v2/css/gamefoundrystudio.css | ||
| assets/toolbox/sprites/js/index.js | ||
| dev/tests/playwright/tools/SpritesToolShell.spec.mjs | ||
| docs_build/dev/reports/PR_26179_CHARLIE_030-sprites-undo-redo.md | ||
| docs_build/dev/reports/PR_26179_CHARLIE_031-sprites-picker-zoom.md | ||
| docs_build/dev/reports/codex_changed_files.txt | ||
| docs_build/dev/reports/codex_review.diff | ||
| toolbox/sprites/index.html |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the center panel is wide enough for the normal grid to reach its 520px cap, the 200% control only grows the grid to 720px (about 138%), and the adjacent 400% rule caps at 960px (about 185%), even though the UI/status reports 200% and 400%. This makes the new zoom controls visibly under-scale the canvas in the common desktop layout; tie these widths to the base canvas size or use a real scale so the displayed zoom matches the selected percentage.
Useful? React with 👍 / 👎.