Repository navigation
Grow a delta with hunks within a level of its pixels - #110
Merged
Merged
Conversation
A hunk too few stories have joins the first delta of its size whose own pixels it's within a level of, on both sides. On #108's batch, one logo change was four deltas by exact pixels, and a dialog backdrop a level off left one story out; now accepting the three offers finishes all 143. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Accepting a delta now holds the key of each hunk that joined it, so a story's page redraws them wherever it's opened. Joins are applied to the scans once, so offering, finishing, and listing group as before. Fitting decodes each story once for all its hunks, keeps a delta's own pixels only for the pass, and shares the order of deltas with the offers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
selfie-bot
approved these changes
Nov 30, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A delta grouped only identical pixels, so one visual change split whenever what was behind it differed by a level. On #108's batch, the new logo in the review UI's header was 4 deltas across 143 stories:
228,233,237against227,233,237)Accepting the three offers now approves 143 of 143 stories, up from 142.
How it grows. Once every hunk is hashed, a straggler (a hunk whose pixels fewer than 3 stories have) joins the first delta of its size whose own pixels it's within a level of, in every channel, on both sides.
What it costs. One comparison per straggler and delta of its size, stopping at the first pixel that's off by more than 1.
MAX_FIT_AREA(500,000 pixels, both sides together) are fitted. Larger ones group only exactly.What the reviewer sees. A delta's row says how many stories are "within a level of the rest", and each of those says so as it's gone through, listed after the exact ones.
Accepting. Accepting a delta holds every key it covers, so a story's page redraws the hunks that joined too, wherever it's opened. The approval still redraws each story from its own image, so the tolerance only decides what's grouped.
docs/specs/ui.md→ Repeated changes, its rationale, and the glossary's definition of a delta are updated.Tested:
ui/test/deltas.test.tscovers finding stragglers, the fit, the area limit, joined scans, and accepting.cli/test/deltas.test.tsstill passes against the real differ.pages-batch--a-delta-that-grew, shows a near match.🤖 Generated with Claude Code