Skip to content

Move on to the stories left once the last crosscut is accepted - #127

Merged
nedtwigg merged 3 commits into
mainfrom
crosscut-moves-on
Dec 1, 2026
Merged

nedtwigg merged 3 commits into
mainfrom
crosscut-moves-on

Conversation

@nedtwigg

@nedtwigg nedtwigg commented Dec 1, 2026

Copy link
Copy Markdown
Member

On #108, one crosscut was in 33 of 34 changed stories. Accepting it left a line saying it was accepted, and nothing said one story was left, or which one. The way on was a button three sections down. This is the first part of making crosscuts and stories one review. It adds no route.

What changes

  • Accepting the last crosscut offered moves on by itself to the first undecided story, in the undecided filter, just as approving a story moves on to the next. It doesn't move on if the approval it confirmed didn't go through.
  • The batch page says what's left: "Every crosscut is accepted, and what's left is a story at a time", with the same Review button Differences has. That button is now one shared component, ReviewUndecided.tsx. Both copies start from the first undecided story in the sidebar's order, which is the order next and previous go through. Before, Differences started from view.rows order.
  • Crosscuts are looked for on any of a batch's pages, for someone who may decide. A story reached any other way, from a link or the list, says "A change here is in 32 other stories too", with Look through it, which opens that crosscut on the batch page. Only the batch page re-renders for each percent of looking.
  • CrosscutState gains lookingThrough and lookThrough, so a story page can say which crosscut to open. The story page takes one crosscuts prop in place of accepted.

Specs: three new rules in ui.md → Repeated changes, and two rationale entries.

Tried on #108's real batch

I used a local sandbox that reads the cloud and keeps decisions in memory only. Opening pages-story-states--approved shows the banner. Look through it opens the batch page on that crosscut. Accepting and confirming the 33 approvals lands on parts-feedback-bar--copy-dialog, "1 of 1". Back on the batch page, it says every crosscut is accepted, and Review points at copy-dialog.

Snapshots

Two new stories: Pages/Batch/All Crosscuts Accepted and Pages/Story/States/In An Offered Crosscut. Pages/Batch may also change wherever its Review button now starts from a different story.

Testing

pnpm test passes: ui 160, store 661, render 147, cli 553. /simplify ran, and this PR includes its fixes:

  • One shared Review button, in list order.
  • One crosscuts prop on the story page.
  • open renamed to lookThrough.
  • The rule that held two rules split into two.
  • Progress redrawn only on the batch page.

Left as they are, by choice:

  • Which crosscut is open stays in memory, not the URL. It was component state before this, and a crosscut route would replace it.
  • The move-on uses a state flag and an effect, since what's left is only known once the approval's re-render lands.
  • Fitting stragglers still decodes on the main thread, once per batch.

🤖 Generated with Claude Code

nedtwigg and others added 2 commits November 30, 2026 17:01
Accepting the last crosscut offered goes on to the first undecided story,
as approving one does, and the batch page says how many are left. Crosscuts
are looked for on every page of a batch, so a story reached any other way
says when its change is in one, with a way to go through it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One Review button, from the first undecided story in the order the list
has it, for Differences and for once every crosscut is accepted. A story
page takes the crosscuts whole, and no page but the batch's draws again
for each percent of looking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@selfie-bot selfie-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Two small things in useCrosscuts, both inline. The move-on itself reads right to me: apply(next) and setMovingOn(true) land in the same batched render, so the effect sees the post-approval undecided.

Comment thread ui/src/client/crosscuts.ts Resolved
Comment thread ui/src/client/crosscuts.ts Resolved
… the latest progress

The story harness now holds which crosscut is open, as the page does, so
going through one works there. Progress found on a story page is kept and
shown on arriving at the batch page, not 0 until the next percent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nedtwigg
nedtwigg merged commit 1279b3f into main Dec 1, 2026
7 checks passed
@nedtwigg
nedtwigg deleted the crosscut-moves-on branch December 1, 2026 02:12
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.

2 participants