Skip to content

feat(review): a note on the whole change (M, or the Review menu) - #168

Merged
backnotprop merged 1 commit into
mainfrom
feat/review-whole-change-note
Nov 20, 2026
Merged

backnotprop merged 1 commit into
mainfrom
feat/review-whole-change-note

Conversation

@backnotprop

Copy link
Copy Markdown
Contributor

Adds a note on the whole change to the code review screen.

  • M (new action change-comment), or the first row of the Review menu, "Comment on the whole change", opens the comment box for a note on no file.
  • The note has the browser's general-comment shape (scope: "general", filePath: "", lines 0, side new).
  • It heads the notes rail under "Whole change", labelled "review note". It is edited (e) and removed (x) like other notes and counts in "Send N new".
  • The feedback lists it first under ## Global comments, the way the browser's export does. This works for local reviews and for pull requests (under the # PR Review header).
  • Fix: resolving notes skipped nothing for general notes and read a file with an empty path. That fails for the work tree (it reads a folder) and for a commit (it reads a tree), so a review with a general note in its record could not open. General notes now resolve without a read.

M was free in every code review context. A config that already gave M to another action keeps loading, and change-comment is then unbound, as for the other late actions.

Docs: README (code review section and key table) and the ? help screen.

Tests: the note's JSON shape; resolving it in uncommitted, staged and commit scopes; rail order; the key and older configs; screen flows for M, the menu row, edit and remove, sending, reload and reopen, and a pull request review.

Checked by hand in tmux on a scratch repository and on PR #163 fetched into the cache repository (no clone). Feedback was delivered through PLANNOTATOR_TUI_DELIVER_CMD.

M, or the first row of the Review menu, writes a note on the whole change: the
browser's review-level (general) comment, with no file. It heads the rail under
"Whole change", is edited and removed like any note, counts in Send, and is sent
first under "## Global comments" as the browser sends its global comments, for
local reviews and pull requests alike.

Resolving notes now skips general notes instead of reading a file with an empty
path, which failed for the work tree (a folder) and for a commit (a tree).
@backnotprop
backnotprop force-pushed the feat/review-whole-change-note branch from 6c2f72f to a9e97a6 Compare November 20, 2026 01:26
@backnotprop
backnotprop added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit d5b4f10 Nov 20, 2026
3 checks passed
@backnotprop
backnotprop deleted the feat/review-whole-change-note branch November 20, 2026 01:40
@backnotprop backnotprop mentioned this pull request Nov 23, 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