Repository navigation
feat(review): code review screen, plannotator-tui review - #154
Merged
Merged
Conversation
backnotprop
force-pushed
the
feat/review-screen
branch
2 times, most recently
from
November 15, 2026 17:49
639f729 to
0a99295
Compare
…ints Code review will draw the same pieces as document review. They move out of app/ into ui/, and the terminal setup becomes with_terminal() so another screen can run its own event loop. No behaviour change.
The diff is drawn by diffs-rs without its chrome; header, notes rail, footer, comment box, Pi picker and keys are this app's, shared with document reviews. Notes are the review crate's CodeAnnotation records in review.json; r recaptures and notes follow their lines or go Outdated. Sends use the same delivery, clipboard fallback and feedback archive (surface review, with target.review). A Pi session can leave notes on new-side lines. Unix only; Windows says it is not available yet.
…e link spec and tool
…s, 1 note not 1 notes
…ent review's question The question now lives in the shared comment box: Compose::key asks when Esc would lose changed text, and Compose::heading titles the box with it. Document reviews behave as before.
…epository The launcher finds the repository from the focused pane's folder, then the workspace's, then its own, and captures the diff first, so a folder outside a repository or without changes fails before any pane opens. The doc pane gets PLANNOTATOR_TUI_REVIEW (the scope) and PLANNOTATOR_TUI_REPO; herdr pane checks them after the message and terminal variables and before PLANNOTATOR_TUI_FILE. Placement and delivery resolve as for herdr open. The development manifest offers it as the review action on macOS and Linux.
…s credit The picker sorted by last activity, which changes each time a Pi goes busy or idle, so rows could swap under the cursor. It now lists the folder's sessions first, then by name. A rail title too wide for its bubble cut the credit off; the credit then moves into the note as a From: line.
backnotprop
marked this pull request as ready for review
November 15, 2026 20:31
backnotprop
force-pushed
the
feat/review-screen
branch
from
November 15, 2026 20:31
d07b87e to
3348f7a
Compare
backnotprop
enabled auto-merge
November 15, 2026 20:31
Merged
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
plannotator-tui review [--staged | --base REF | --commit SHA] [DIR]opens a git diff. You move through it, select lines, write comments, suggested code or file notes, and send them the same way a document review sends: Herdr pane, Rex, a Pi chosen withP, a delivery command, or the clipboard.This builds on #150 (the
plannotator-tui-reviewcrate, now in main).plannotator-tui herdr review [--staged | --base REF | --commit SHA] [--placement P] [--deliver-to PANE]opens the same review in a Herdr pane, for the focused pane's repository (else the workspace's folder, else the current one). It checks the diff first, so a folder outside a repository or with no changes fails before any pane opens. The pane getsPLANNOTATOR_TUI_REVIEW(the scope) andPLANNOTATOR_TUI_REPO.herdr panechecks them after the message and terminal variables and beforePLANNOTATOR_TUI_FILE. The development manifest has it as thereviewaction (macOS and Linux, no default key). The diff is drawn by diffs-rs, from itsmainbranch, withchrome: false. The TODO inCargo.tomlsays to switch to crates.io 0.2.0 before release.Layout
src/review/, parallel toapp/:cli: args, terminal, event loop.mod:Screen, capture, placing notes.diff: wraps the diffs-rs engine.notes: rail order and labels.drafts: c, s, C, e, x.input: keys and mouse.draw,rail,overlays: the frame.send: send, finish, archive.pi: Pi notes.tests/.src/ui/is new and shared byapp/andreview/: the comment box (moved fromapp/compose.rs, with a shareddraw), the Pi picker, send button state, and footer hint flow.DeliveryError::wants_copy/status.cli::with_terminal.theme::theme().archive::Target.review(the browser'sFeedbackReviewTargetshape), plus code fields onAnnotationRecord.Keys
v…vselects lines.ccomment.ssuggest: the box is prefilled with the new lines; old-side lines are refused.Cnote on the whole file.]/[hunk,n/Nfile.h/lold/new side.Tabdiff ↔ notes rail; in the rail:j/k,e,x.usplit/unified,wwrap,ffile list.Esend new,Ssend and close,Ppick the target.mmenu:Rresend all,Ffinish,Uundo.rrecompute the diff: notes follow their lines; changed ones go to "Outdated".qasks first when notes are unsent.Escwith changed text asks "discard comment? y discard · n keep editing". This is the document review's question, now in the shared comment box.?help.Every key can be rebound; the new actions load with old configs.
Pi
A Pi session can leave notes on the diff.
fileis absolute and must be a changed file.lineis a new-side line the diff shows.quoteis optional. Each note is credited to its author.The registry
fileslists the changed files. There is a new code,not_in_diff.docs/spec-pi-link.md, the tool description andintegrations/pi/README.mdare updated.node integrations/pi/test.mjspasses (53 checks).Screens (120×40, real run in a private tmux)
Checks
cargo fmt --check,cargo clippy --workspace --all-targets -D warningsandcargo test --workspacepass: 709 tests, including 39 new code-review tests and 6 for the launcher (3 of them through the real binary against a recording fakeherdr) on real temp git repos with TestBackend and a fake delivery.herdr/test-manifest.pypasses.--target x86_64-pc-windows-msvc).--version.Not done
Dscope menu, and anHarchive view in code review.h/lswitch sides, so long lines needwto wrap.Tabtoggles diff ↔ notes; the file list isf, not a Tab stop.rreturns the diff to the top.