Skip to content

Commit 3fdbf98

Browse files
committed
docs(diff-ux): declare the primary use case — flat stream, file-by-file, mark-and-collapse
States explicitly that the flat stream reviewed top-to-bottom is the main flow the design optimizes (commits lens, history, zoom are secondary). Marking a file reviewed now collapses it in place to its one-line header, GitHub-style, so the stream shrinks into a to-do list as you scroll; the sticky file header carries the file's own Reviewed button and fold triangle so scroll-and-mark never leaves the stream; Space on a file header or last hunk marks and collapses the whole file and advances to the next unreviewed file. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01756Rh35n65zC4xHQcQAqBL
1 parent 9113559 commit 3fdbf98

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

docs/internal/unified-diff-experience-design.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,10 @@ triangles fold, verb buttons act, the scrollbar map jumps on click.
348348
marked; auto-quarantined `noise` group (generated/lock/format-only) folded
349349
at the bottom and **excluded from the 4/9 denominator**. Hovering a row
350350
reveals its own small verb buttons (viewed-toggle, open).
351-
- **Stream** (center): the section document. Sticky file·function header;
352-
the focused hunk grows its **verb-button row** — click or key, same thing.
351+
- **Stream** (center): the section document. Sticky file·function header —
352+
which carries the current file's `[✓ Reviewed]` button and fold triangle,
353+
so the primary scroll-and-mark loop (§3.6) never leaves the stream; the
354+
focused hunk grows its **verb-button row** — click or key, same thing.
353355
Right-click any line/hunk/file opens a context menu listing the same verbs
354356
with their keys printed (menus teach the keymap).
355357
- **Scrollbar map** (right): hunk positions, comment marks, viewed regions
@@ -490,8 +492,21 @@ that fold with their hunk and re-anchor across lenses; a fuzzy anchor shows
490492

491493
### 3.6 The review loop: Space, Enter, Esc, C
492494

495+
**The primary use case is the flat stream, reviewed file-by-file, top to
496+
bottom.** Everything else — commits lens, history, zoomed files — is
497+
secondary; the design optimizes this loop first: scroll (or `Space`) down
498+
one continuous document, and as each file is dealt with, mark it reviewed —
499+
whereupon it **collapses in place to its one-line header**
500+
(`✓ src/parser.rs +6 −1`), GitHub-style. The stream physically shrinks
501+
into a to-do list of what's left; unmarking or clicking a collapsed header
502+
re-expands it. Scrolling itself is a first-class review motion: the sticky
503+
file header carries the file's own `[✓ Reviewed]` button and fold triangle,
504+
so scroll-and-mark never needs the rail or a jump back to the file's top.
505+
493506
- **`Space`** — mark the thing at point viewed (or *kept* in an agent scope)
494-
and jump to the next unreviewed thing. The gauge ticks; noise files never
507+
and advance: on a hunk, next hunk; on the last hunk of a file (or on a
508+
file header), the whole file — which collapses — and the cursor lands on
509+
the next unreviewed file's first hunk. The gauge ticks; noise files never
495510
inflate the denominator. When nothing is left, the workspace offers the
496511
exits as buttons:
497512

0 commit comments

Comments
 (0)