Skip to content

PR_26179_CHARLIE_032-sprites-shape-tools#268

Merged
ToolboxAid merged 1 commit into
mainfrom
PR_26179_CHARLIE_032-sprites-shape-tools
Jun 28, 2026
Merged

PR_26179_CHARLIE_032-sprites-shape-tools#268
ToolboxAid merged 1 commit into
mainfrom
PR_26179_CHARLIE_032-sprites-shape-tools

Conversation

@ToolboxAid

Copy link
Copy Markdown
Owner

Summary

  • Implement simple pixel-art Line, Rectangle, and Circle tools.
  • Use two-click start/end drawing into unsaved page-session editor state only.
  • Keep Move deferred and preserve no persistence/no DB/API/schema scope.

Validation

  • PASS: node --check assets/toolbox/sprites/js/index.js
  • PASS: node --check dev/tests/playwright/tools/SpritesToolShell.spec.mjs
  • PASS: git diff --check for touched runtime/test files
  • PASS: targeted Sprite Creator Playwright shell test

Artifact

  • dev/workspace/zip/PR_26179_CHARLIE_032-sprites-shape-tools_delta.zip

@ToolboxAid ToolboxAid marked this pull request as ready for review June 28, 2026 20:17
@ToolboxAid ToolboxAid changed the base branch from PR_26179_CHARLIE_031-sprites-picker-zoom to main June 28, 2026 20:17
@ToolboxAid ToolboxAid merged commit f41a8f6 into main Jun 28, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a2eb2204d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

function drawCircle(start, end) {
const radius = Math.max(Math.abs(end.row - start.row), Math.abs(end.column - start.column));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the clicked circle endpoint as the radius

When the circle end pixel is diagonal from the start by more than one cell, this Chebyshev radius does not match the Euclidean perimeter test below, so the user-selected end pixel is often not painted at all (for example, center (5,5) and end (7,7) gives radius 2, but that endpoint is distance 2.83 and fails the <= 0.6 threshold). Since the tool asks users to choose a start and end pixel for the circle, diagonal radius clicks produce a circle that does not pass through the chosen endpoint; derive the radius consistently with the perimeter test or explicitly rasterize through the selected end.

Useful? React with 👍 / 👎.


## ZIP

`dev/workspace/zip/PR_26179_CHARLIE_032-sprites-shape-tools_delta.zip`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Package the ZIP at the required tmp path

The repo-level AGENTS.md Packaging section requires every BUILD artifact at <project folder>/tmp/<TASK_NAME>_delta.zip, but this report records dev/workspace/zip/PR_26179_CHARLIE_032-sprites-shape-tools_delta.zip instead. Downstream artifact collection that follows the repo contract will miss this delta package even though the validation report says the ZIP was created, so the build should produce/report the required tmp/ path.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant