Skip to content

feat: add PR review comments tab in bottom panel#212

Open
eugenioenko wants to merge 1 commit into
mainfrom
feat/pr-comments-bottom-panel
Open

feat: add PR review comments tab in bottom panel#212
eugenioenko wants to merge 1 commit into
mainfrom
feat/pr-comments-bottom-panel

Conversation

@eugenioenko

Copy link
Copy Markdown
Owner

Summary

  • Add FetchPRComments, AddPRComment, and AddPRInlineComment functions to internal/github/github.go for fetching and posting PR comments via gh api
  • Create PRCommentsWidget in internal/ui/pr_comments_widget.go -- a scrollable bottom-panel widget that groups general comments and inline comments by file, with an input area for submitting new comments
  • Wire the widget into the bottom panel as a "COMMENTS" tab, auto-populated when a PR is loaded, with callbacks for opening inline comment file locations and submitting new comments asynchronously

Test plan

  • Unit tests for PRComment type in internal/github/github_test.go
  • Widget unit tests covering empty state, comment grouping, keyboard navigation, input focus/submit/escape, cursor position, and focused input in internal/ui/pr_comments_widget_test.go
  • Updated e2e panel tests to account for the new "comments" tab (panel count and click coordinates)
  • make build succeeds
  • make test passes (pre-existing config test failure unrelated)

🤖 Generated with Claude Code

Add a Comments tab to the bottom panel that displays PR review comments
(both inline and general) when a PR is loaded. Users can navigate
comments, click inline comments to jump to the referenced file/line,
and submit new general comments via an input area.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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