Skip to content

Auto-advance r to the next unreviewed file - #3

Closed
madhermit wants to merge 2 commits into
mainfrom
review-flow
Closed

madhermit wants to merge 2 commits into
mainfrom
review-flow

Conversation

@madhermit

Copy link
Copy Markdown
Owner

Review-flow polish for the reviewed marks in rift diff:

  • r auto-advances: marking a file jumps to the next unreviewed one (wrapping, skipping the All row and ticked files), so a full pass is r r r. When nothing is left it flashes "all changes reviewed" and stays put.
  • r stays a toggle: pressing it on a reviewed file unmarks and does not advance — revisiting is deliberate.
  • Clearer U labeling: the footer hint read U unreviewed, which parses as "un-review"; it now reads U hide reviewed, and the active filter shows unreviewed only in the list title. (U filters the view; it never changes marks.)

The unreviewed-only view keeps its existing self-advancing behavior (marked files drop out of the list). New SplitList.SelectKey powers the programmatic advance; nextUnreviewed is unit-tested (advance, skip, wrap, exhausted).

Verification

  • mise run check green.
  • tmux-driven: r marks and advances (✓ glyph, counter increments, selection moves), marking the last file flashes "all changes reviewed" without moving, r on a reviewed file unmarks and stays.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EB5anNK6czSCdjg51CH7VD

Marking a file reviewed now jumps the selection to the next file that
still needs eyes (wrapping past the end, skipping the All row and
already-reviewed files), so a full review pass is r-r-r instead of
r-j-r-j; when nothing is left it flashes 'all changes reviewed' and
stays. Un-marking stays put — going back to a file to unmark it is
deliberate. The unreviewed-only view keeps its existing behavior (the
marked file drops out, which advances by itself).

Also de-ambiguates the filter's labels: the footer hint read
'U unreviewed', which parses as un-review; it now reads 'hide
reviewed', and the active-filter title says 'unreviewed only'.
Marking a file in the unreviewed-only view re-filters the list via
SetItems, which reset the selection to the top — advancing only for a
top-to-bottom pass and yanking the reviewer back to row one when they
marked from the middle. Re-select the next unreviewed file after the
marked one instead (the same nextUnreviewed target the default view's
auto-advance uses), falling back to the top only when the list empties.
@madhermit madhermit closed this Jul 16, 2026
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.

1 participant