Repository navigation
Rename a delta to a crosscut, and offer one 2 stories share - #126
Merged
Merged
Conversation
…ssary A crosscut is one change repeated across stories, grouped by what a hunk holds. A hunk group is by where hunks are, in one story. Names only: the accepted crosscuts keep their storage key, so none is forgotten. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two stories with the same change read as one change, and offering nothing looked like the page had missed it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
selfie-bot
approved these changes
Dec 1, 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, one change repeated across stories, is now a crosscut. "Delta" said nothing about the change being shared, and "group" would have meant two things, since a hunk group is hunks near each other in one story. A crosscut groups hunks by what they hold, across stories.
Glossary
render_batches. It no longer says "record", which the glossary uses for a pair's cached diff.system.md→ Future gains Composite hunks. Today two merges join changes: the differ's 12-pixel cut, which keeps no pieces, and hunk groups, which do. One merge that keeps its pieces would let a crosscut be agnostic to a raw or composite hunk. Not scheduled.The rename
deltas.tsbecomescrosscuts.tsinshared/andclient/, andDeltaOffers.tsxbecomesCrosscutOffers.tsx, with their tests and stories.selfie-ui/deltasbecomesselfie-ui/crosscuts. CSS classes and identifiers are renamed too.deltaKeysOfbecomeshunkKeysOfRow, since it returns a row's hunk keys.selfie:accepted-deltas:<batch>, with a comment saying why, so no browser forgets what it accepted.maxChannelDelta, and "delta 255" in flake notes.product-demo/'s scene ID.hunkGroups.One behavior change: 2 stories, not 3
MIN_AFFECTEDis 2. On #108, two stories with the same change read as one change, and offering nothing looked like the page had missed it.ui.mdand its rationale say so. The tests that assumed 3 now check the same things at 2, andRepeatedChangesshows a 2-story offer.Snapshots
Expect renamed and changed stories, which need approving:
Pages/Story/DeltasbecomesPages/Story/Crosscuts.Testing
pnpm testpasses: ui 160, store 661, render 147, cli 553./simplifyran. It brought a comment on the kept storage key, a diagram insystem.mdthat still said 3, a 2-story story, and clearer glossary wording. Two optional renames are left for later:keysOfandhunkKeysOfRow.🤖 Generated with Claude Code