Skip to content

diffotator 2.0 — walkthrough mode

Choose a tag to compare

@adisagar2003 adisagar2003 released this 22 Oct 20:58
· 9 commits to main since this release

diffotator 2.0 — review a change as a walkthrough

Big changes are hard to review because a file list has no shape. diffotator now opens every review on a walkthrough.

diffotator's walkthrough

What's new

  • Home page — What this change does (summary, key changes, decisions, the one place to look hardest) beside Know this first (the domain background, linked to the docs it came from).
  • The map — the change grouped into blocks by behaviour, drawn with React Flow and laid out by ELK, so arrows route around boxes. Blocks hold sub-blocks or files; files hold their tests. Labelled arrows between blocks, dashed arrows for file-to-file calls, and hovering a box lights its own arrows.
  • Drill in like a website — blocks, files, commits and domain docs open in the same spot, with a breadcrumb, ← Back and browser Back.
  • Keyboard first — ←↑→↓ move between boxes, ⏎ opens, 1–9 jump, ⌫/Esc back, j/k walk files in walkthrough order (tests right after their file), ⇧T file ↔ tests, / or ⌘K go to any file, ⇧C Classic, ? for all keys.
  • Classic — the full git client is one click away.
  • /diffotator <MR or PR link> — checks the change out into a temporary worktree, reads the diff, the ticket and your repo's own docs, writes the walkthrough, and opens it. On someone else's change it never edits their branch: question: comments are answered in chat, the rest come back as draft review comments posted only when you say so.
  • No walkthrough? The map groups the change by folder.
  • Stronger diff and syntax colours in both views.

Upgrade

cd diffotator && git pull
cp claude/diffotator.md ~/.claude/commands/diffotator.md

Still no npm install: React, React Flow and ELK ship prebuilt in web/vendor/.

Under the hood

  • --walkthrough <path> and GET /api/walkthrough; the walkthrough is repaired against the scope's changed files so every file appears exactly once.
  • Hardening from review: block ids can no longer hang the server, term sources must stay inside the repo, and /api/file refuses paths outside it.