Skip to content

Break up pr-review.tsx (4,361 lines) into sub-components and hooks #19

Description

@jennings

src/browser/components/pr-review.tsx is 4,361 lines — well above the 500-line threshold. It mixes diff viewing, keyboard navigation, virtualizer logic, and data loading in one file.

Goal

Reduce pr-review.tsx to under 800 lines by extracting distinct concerns into separate files.

Planned sub-tasks

  • Extract DiffViewer as a separate component
  • Extract keyboard navigation and virtualizer logic into a useDiffNavigation hook

Tracking issue — do not implement directly. See sub-issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Default priority

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions