Skip to content

Add PR-level review feedback persistence#68

Open
C-Hipple wants to merge 1 commit intomainfrom
claude/add-pr-comments-UkEV2
Open

Add PR-level review feedback persistence#68
C-Hipple wants to merge 1 commit intomainfrom
claude/add-pr-comments-UkEV2

Conversation

@C-Hipple
Copy link
Owner

@C-Hipple C-Hipple commented Mar 4, 2026

Summary

Adds support for persisting PR-level review feedback that can be saved independently and pre-filled when submitting a review. This allows users to draft and save overall review comments before formally submitting a review.

Changes

  • Added feedback field to PRResponse interface to include PR-level feedback in API responses
  • Added GetFeedback() database method to retrieve saved feedback for a PR
  • Updated GetPR and SyncPR RPC handlers to include feedback in responses
  • Added "Review Feedback" UI section with textarea for drafting and saving PR-level comments
  • Implemented handleSaveFeedback() to persist feedback via RPCHandler.SetFeedback RPC call
  • Modified "Submit Review" button to pre-fill review body with saved feedback when clicked
  • Added state management for feedback body and save loading state

Test Plan

  • go build ./... passes
  • go test ./... passes

https://claude.ai/code/session_01Cjnt5SUXETenCrGHrNEhPz

C-Hipple pushed a commit that referenced this pull request Mar 5, 2026
Reviews SetFeedback handler design, missing Feedback fields in reply
types, stale feedback after submission, and frontend UX issues.

https://claude.ai/code/session_018PuhqsLkBRPTvUKBzYiqy4
C-Hipple pushed a commit that referenced this pull request Mar 8, 2026
- Add GetFeedback and DeleteFeedback methods to database.go
- Make SetFeedbackReply lightweight (Okay bool only); drop unused ID
  field and remove expensive fetchPRAndRunPlugins call from SetFeedback
- Add fetchFeedback helper on RPCHandler that logs errors instead of
  silently discarding them
- Add Feedback field to GetPRReply, SyncPRReply, AddCommentReply,
  EditCommentReply, DeleteCommentReply, and SubmitReviewReply so
  all PR response types carry the feedback draft consistently
- Delete feedback draft from DB after SubmitReview succeeds, mirroring
  the local-comment cleanup that already happens post-submission

https://claude.ai/code/session_018PuhqsLkBRPTvUKBzYiqy4
Adds a "Review Feedback" panel below the diff in the web UI that allows
users to write and persist a PR-level comment body (equivalent to the
Emacs client's `crs-set-review-feedback`). The feedback is saved to the
server via `RPCHandler.SetFeedback` and pre-populated into the Submit
Review modal body when opened.

Server changes:
- Add `GetFeedback` DB method to read persisted feedback for a PR
- Add `Feedback string` field to `GetPRReply` and `SyncPRReply`, populated
  from the DB on each GetPR/SyncPR call

Client changes:
- Add `feedbackBody` state loaded from `GetPR`/`SyncPR` responses
- Add `handleSaveFeedback` handler calling `RPCHandler.SetFeedback`
- Add Review Feedback panel with textarea and Save Feedback button
- Pre-fill Submit Review modal body from `feedbackBody` on open

https://claude.ai/code/session_01Cjnt5SUXETenCrGHrNEhPz
@C-Hipple C-Hipple force-pushed the claude/add-pr-comments-UkEV2 branch from ddc8aab to 0a89f03 Compare March 10, 2026 19:28
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.

2 participants