Revue: a review mode for reviewing a pull request's changes inside the IDE #1

Closed
opened 2026-11-11 23:43:04 +01:00 by thatrichan · 2 comments
Owner

A review mode for the Revue plugin: a dedicated editor tab where you go through a pull request's changes and comment on them as you would in Revue itself.

What it should do

  • Open from the Revue tool window (a pull request's details page) and from Find Action, as its own editor tab for one pull request.
  • Show the pull request's changes file by file in the IDE's own diff viewer, and move between them: next/previous change, next/previous file, and a list or tree of the files to jump to.
  • Comment like in Revue: select lines (click and drag across them, or a range by keyboard) and write a comment on them.
  • Pending comments are both Revue's local drafts and the service's pending review (GitHub's): shown, added and edited here, so they show up in the app and go out with the review.
  • Show the existing conversation on the lines it's about, as inlays in the diff: threads, their replies, and your own pending comments, with replying where Revue allows it.
  • Submit the review from the IDE, with the same choices Revue offers (Approve / Request changes / Comment and anything else it has), asked from Revue so the two never differ.
  • Keep in step with Revue: what's added here appears in the app, and what's added there appears here.

What it can build on

  • The plugin already asks Revue for a pull request's files and their changed lines (revue --branch-pull, revue --pull), for pending comments (revue --pending), and adds one (revue --comment --file --line --start-line).
  • Still needed from Revue, as editor questions:
    • each file's two sides (base and head text), to feed the IDE's diff viewer, since today the patch is only reduced to changed line ranges;
    • the review threads with their positions;
    • adding to and editing the service's pending review, not only drafts;
    • the review's submit choices, and submitting.
  • It also needs to work when the pull request's branch isn't checked out, since the diff's sides come from Revue, not the working copy.

Decided

  1. Diff view: the IDE's own diff viewer (DiffManager / SimpleDiffRequest, threads and pending comments as inlays).
  2. Pending comments: both Revue's drafts and the service's pending review.
  3. Submitting: from the IDE, with Revue's choices, asked from Revue.
A **review mode** for the Revue plugin: a dedicated editor tab where you go through a pull request's changes and comment on them as you would in Revue itself. ## What it should do - Open from the Revue tool window (a pull request's details page) and from **Find Action**, as its own editor tab for one pull request. - Show the pull request's changes file by file in the IDE's own diff viewer, and move between them: next/previous change, next/previous file, and a list or tree of the files to jump to. - Comment like in Revue: select lines (click and drag across them, or a range by keyboard) and write a comment on them. - Pending comments are both Revue's local drafts and the service's pending review (GitHub's): shown, added and edited here, so they show up in the app and go out with the review. - Show the existing conversation on the lines it's about, as inlays in the diff: threads, their replies, and your own pending comments, with replying where Revue allows it. - Submit the review from the IDE, with the same choices Revue offers (Approve / Request changes / Comment and anything else it has), asked from Revue so the two never differ. - Keep in step with Revue: what's added here appears in the app, and what's added there appears here. ## What it can build on - The plugin already asks Revue for a pull request's files and their changed lines (`revue --branch-pull`, `revue --pull`), for pending comments (`revue --pending`), and adds one (`revue --comment --file --line --start-line`). - Still needed from Revue, as editor questions: - each file's two sides (base and head text), to feed the IDE's diff viewer, since today the patch is only reduced to changed line ranges; - the review threads with their positions; - adding to and editing the service's pending review, not only drafts; - the review's submit choices, and submitting. - It also needs to work when the pull request's branch isn't checked out, since the diff's sides come from Revue, not the working copy. ## Decided 1. **Diff view:** the IDE's own diff viewer (`DiffManager` / `SimpleDiffRequest`, threads and pending comments as inlays). 2. **Pending comments:** both Revue's drafts and the service's pending review. 3. **Submitting:** from the IDE, with Revue's choices, asked from Revue.
Author
Owner

Decided:

  1. Diff view: the IDE's own diff viewer (DiffManager / SimpleDiffRequest, with the threads and pending comments as inlays), not a view of our own.
  2. Pending comments: both Revue's local drafts and the service's pending review (GitHub's), to add and edit.
  3. Submitting the review: yes, from the IDE, with the same choices Revue offers (Approve / Request changes / Comment and whatever else it has), asked from Revue rather than hard-coded in the plugin, so the two never differ.
Decided: 1. **Diff view:** the IDE's own diff viewer (`DiffManager` / `SimpleDiffRequest`, with the threads and pending comments as inlays), not a view of our own. 2. **Pending comments:** both Revue's local drafts and the service's pending review (GitHub's), to add and edit. 3. **Submitting the review:** yes, from the IDE, with the same choices Revue offers (Approve / Request changes / Comment and whatever else it has), asked from Revue rather than hard-coded in the plugin, so the two never differ.
Author
Owner

Moved to thatrichan/revue-companion#3: the Revue plugin now lives in its own repository, thatrichan/revue-companion (jetbrains/), as Revue Companion.

Moved to thatrichan/revue-companion#3: the Revue plugin now lives in its own repository, thatrichan/revue-companion (`jetbrains/`), as Revue Companion.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thatrichan/jetbrains-plugins#1
No description provided.