github oddur/gnosis v0.42.0-beta.6

pre-release2 hours ago

This pre-release turns the Changes file tree into a way to review: you can see the functions and classes each file changes, and work through them with one key. Everything here is Beta and sits behind the Symbols option above the tree.

Changed symbols in the file tree (#581)

Turn on Symbols above the file tree (or Settings › Review › "Show changed symbols in the file tree").

  • Expand a file to see what it changes: its imports or top-level code first, then each changed function, method or class, nested as in the code.
  • Rows show the change: an icon for the kind, coloured for added, modified or removed, and the line counts.
  • Click a symbol to jump to it in the diff. The tree search matches symbol names too.
  • The symbol you're reading lights up as you scroll the diff.

Review with V (#582)

With Unviewed only and Symbols on, press V to mark what you're reading as viewed and go on to the next change, until nothing is left.

  • Every change is a stop. Functions, a class's own changed lines (Body), a file's Imports or Top level, and whole files without symbols (JSON, Markdown, images, lockfiles).
  • Containers and files follow their contents. A class shows ✓ once everything in it is viewed. A file is marked Viewed when its last item is, and stays open until you move on.
  • Long functions page. In a function taller than the screen, V scrolls a page at a time and marks it once you've seen all of its changed lines. The row reads "Reading 40%", then "Read".
  • Moves count once. A function moved to another file is one stop, on the new copy. Ticking it ticks the old copy too.
  • Shift+V takes the last V back. n and Shift+N go to the next or previous unviewed item without marking anything.
  • The toolbar shows what's left, for example "18 / 145 files viewed · 42 left to review". When you finish, Everything viewed offers Review PR.
  • Keys pressed during a scroll wait for it. V or Enter pressed while the diff is still scrolling to an item acts on that item once the scroll ends.
  • Enter comments on the item you're on. ⌘↩ saves the draft, and ⌘⇧↩ saves it and goes on.
  • Peek at a symbol. Rest the pointer on a symbol in the tree, or press Space, to see just its diff without leaving your place. The peek lists the changed functions in this PR that call it.
  • Options under the tree: Auto-mark marks a symbol viewed once you've scrolled through it. Peek on hover turns the hover peek on or off. ↺ resets Viewed for these changes, with Undo.

Re-review only what changed

When the author pushes, symbols whose code didn't change keep their tick. Changed ones come back as ↻ Changed, in the tree, on the outline and on hunk headers ("Changed since you viewed"), and V walks exactly those. A file whose items all carried over stays Viewed. Ticks saved before this version don't carry over; ticks from now on do.

Documentation

Gnosis has user documentation at gnosis.to/docs: 15 pages covering the queue, reviewing a PR, explanations, conflicts, stacks, settings and keyboard shortcuts, with screenshots in light and dark. (#578, #579, #580)

Fixes

  • Flaky checks: more robust browser checks on CI; each suite has its own time limit. (#575, #576)
  • CI: draft PRs run the Linux checks only. A release now requires a passing Checks run on its commit. (#574)

Don't miss a new gnosis release

NewReleases is sending notifications on new releases.