Skip to content

feat: Add per-file comment button to the Review tab - #167

Open
Ziinc wants to merge 2 commits into
mainfrom
claude/review-file-comment-button-4k3ttm
Open

feat: Add per-file comment button to the Review tab#167
Ziinc wants to merge 2 commits into
mainfrom
claude/review-file-comment-button-4k3ttm

Conversation

@Ziinc

@Ziinc Ziinc commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Each file's collapsible header now has an "Add file comment" button
(like GitHub's per-file comments) that opens a comment composer at the
top of that file's collapsible, above the diff. Submitted comments
render as editable cards in that same spot.
File-level comments reuse the existing LineComment pipeline (storage,
review markdown, action-bar count) via a sentinel hunkId so they never
attach to a diff line and are exempt from outdated-comment detection.

Each file's collapsible header now has an "Add file comment" button
(like GitHub's per-file comments) that opens a comment composer at the
top of that file's collapsible, above the diff. Submitted comments
render as editable cards in that same spot.

File-level comments reuse the existing LineComment pipeline (storage,
review markdown, action-bar count) via a sentinel hunkId so they never
attach to a diff line and are exempt from outdated-comment detection.
@Ziinc Ziinc changed the title Add per-file comment button to the Review tab feat: Add per-file comment button to the Review tab Aug 6, 2026
- Reformat the CommentInput JSX that biome's format check flagged.
- Extract FileRowComponent's header (chevron, viewed toggle, add-comment
  button, file badges, overflow menu) into FileRowHeader, and the
  file-level comment thread into FileCommentSection, bringing
  FileRowComponent back under eslint's 500-line max-lines limit.
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