Skip to content
quarry View Ticket
Login

View Ticket

web: landing detail — record, diff against target, discussion

Closed0cb092bdd278b90916e46c671720c8b17cf771f6Created 99.5 days agoUpdated 68.0 days ago
Description2026-08-23 12:23:15
The review surface for one landing: the record, the diff of the branch against its target computed at view time (zit#127 keeps the record pointing at a moving branch, so the diff must not be cached against a frozen range), the forum thread inline and commentable, and the state transitions. Morphs over SSE like the rest of the write plane so a comment or a state change updates every open viewer.
2026-08-23 21:50:51

Shipped at /r/{repo}/landing/{id}: the record, the branch's check-ins, the diff, the discussion, and the controls.

  • Diff computed at view time, branch against target. The record points at a MOVING branch, so a range frozen at open would describe a proposal that no longer exists. Needed two additions: checkin.diff gained an explicit from base (it only ever diffed against a parent, which a landing is not), and branch names resolve to tips at render.
  • Bounded, with a link to the full diff. This record's own change is 20 files and rendered 900KB, which stalled a browser; a decision surface shipping a megabyte helps nobody.
  • Check-ins listed beside the diff (zit#133's display half, from our own index): a proposal is changes with REASONS attached, and a diff keeps the changes and throws the reasons away.
  • Transitions render as events, not comments. zit stores them as replies because a reply is an artifact fossil understands; showing one as zit-landing-state: accepted would be the encoding leaking through the interface built to hide it. The API classifies, because it holds the raw body.
  • Markdown preview through the shared composer, the same Write/Preview the wiki and forum use.
  • Mergeability from zit#131's probe, memoised on the two tips: 1.9s cold, 50ms warm.