Repository navigation
feat(web): edit pending pull request review comments - #1
Merged
Merged
Conversation
Pending line comments could only be discarded and retyped. The pending card now has the same pen button posted comments use; it reopens the comment composer with the text, in the Code tab and in Guide excerpts. Submitting a review now clears only the comments sent unchanged, so a comment edited while the review is in flight stays pending, matching how the summary already behaves. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bengobeil
requested changes
Nov 11, 2026
bengobeil
left a comment
Owner
There was a problem hiding this comment.
Are you sure the padding/margin between the pen and the trash can is Conforming to their specs and also I'm noticing the brightness Of the pen and the garbage can seems off And Can you give examples for all four in dark mode as well?
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
|
Addressed in fa415a5:
|
bengobeil
reviewed
Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…original Co-Authored-By: Claude Opus 5.5 <[email protected]>
bengobeil
approved these changes
Nov 12, 2026
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.
Pending line comments in a pull request review could only be discarded and retyped. Posted comments already had a pen button to edit them; pending ones did not.
The pending comment card now shows the same pen button (
PullRequestEditButton) at the end of the comment's text row, the same placement posted review comments use. Like every other pen in the pull request view, it appears on hover or keyboard focus (always on touch screens). It reopens the existing comment composer prefilled with the text, with Save/Cancel, Escape and Cmd/Ctrl+Enter, in both the Code tab and Guide excerpts. The trash button is unchanged. Pending comments are client-side drafts, so this is a store update (updateComment) with no server or contract change. Mobile already supports tap-to-edit.Submitting a review now clears only the comments that were sent unchanged (matched by identity), so a comment edited while the review is in flight stays pending, the same way the summary already behaves.
Tests:
pullRequestReviewStore.test.ts: the existing submitted-snapshot case now also edits a comment in flight and checks it stays pending with its new text.PullRequestReviewAnnotation.browser.test.tsx(new): pen, then edit; Cancel and Escape keep the original text, and Save sends the edited text once. It fails when Cancel no longer closes the editor.Verification:
vp run check:changedpasses (format, lint, knip, typecheck, tests, react compiler); fullvp run buildpasses. Screenshots are from rendering the card in the browser test runner; tested by hand in a local desktop dev build.Work done by Claude Opus 5.5 in Claude Code (via T3 Code).
🤖 Generated with Claude Code