Skip to content

ci: add a highlighted diff image to the Paparazzi PR comment - #221

Merged
dzid26 merged 1 commit into
mainfrom
claude/paparazzi-diff-image
Oct 15, 2026
Merged

dzid26 merged 1 commit into
mainfrom
claude/paparazzi-diff-image

Conversation

@dzid26

@dzid26 dzid26 commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Before: the Paparazzi PR comment showed before and after images only.

After: a third image highlights the changed pixels in red over a faded copy of the after render. Snapshots without a before render, or whose size changed, get no diff image.

How: .github/scripts/png-diff.js runs pixelmatch 5.3.0 (with pngjs) in the untrusted job and stages pr-paparazzi/diff/. The comment workflow validates those PNGs like the others and adds the image. A failed diff render only warns; the comment still posts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Snapshots

No visual change in the snapshots at 6e06e4b (vs 081345c).

Full-screen emulator shots: Actions → PR screenshots → Run workflow, choosing the head branch of this PR.

@dzid26
dzid26 merged commit d3adcda into main Oct 15, 2026
3 checks passed
@dzid26
dzid26 deleted the claude/paparazzi-diff-image branch October 15, 2026 15:59
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