Skip to content

Rebuild the pull request view as a review workspace - #7

Merged
Kaldy14 merged 1 commit into
mainfrom
feature/pr-review-cockpit
Nov 26, 2026
Merged

Kaldy14 merged 1 commit into
mainfrom
feature/pr-review-cockpit

Conversation

@Kaldy14

@Kaldy14 Kaldy14 commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Problem

Reviewing a pull request in Git Gud meant leaving the inbox, reading one long page, and stepping through "Blocks" instead of files. Status was easy to miss, loading jumped, and the view felt boxy and hard to scan.

What this changes

  • Workspace. A pull request opens with the inbox beside it as a list. Four tabs answer four questions: Overview (can this merge, what should worry me), Conversation, Tour, Code. J/K switch pull requests, H/L switch tabs, and a shortcut bar teaches the keys.
  • Overview. A decision page: the merge verdict in one tinted band, each blocker with the action that clears it, risk, review threads, behavior changes.
  • Tour and Code. One shared diff surface that shows files instead of Blocks: file tree, per-file Viewed, a progress strip, and tour points linked to their lines in both directions.
  • Safety. A pull request that changes while it loads (a push or a retarget) is read again; merging and reviewing are bound to the commit on screen; leaving with an unsaved comment asks first.
  • Look and feel. Every status has its own icon, loading keeps the page's shape, panels share one canvas and one left edge, and motion is one-shot and off under reduced motion. Merge is the highlighted button only while the verdict is "Ready to merge".

Details are in CHANGELOG.md, docs/README.md, DESIGN.md and CLAUDE.md.

Verification

  • pnpm typecheck clean, pnpm lint 0 errors (21 existing fast-refresh warnings), pnpm test 194 files, 1,617 passed, 8 skipped.
  • Exercised in the real app on Linux (isolated profile, real Kaldy14/git-gud pull requests): all four tabs, loading states, keyboard flow, list and tab motion.
  • Not verified: macOS, windows under about 1240px after the final redesign, reduced motion (code review only), and paths that need a push, a submitted review or an AI scan.

Council review

Rounds: 10 (1 to 4 code and motion; 5 to 10 design, scored "I would love using this" from screenshots; round 10 confirmed the two reviewers still under 9.5)

Member R1 R2 R3 R4 R5 R6 R7 R8 R9 R10
Claude Opus 5.5 7.5/10 8.5/10 9/10 8.5/10 7.5/10 8.5/10 9.0/10 9.3/10 9.4/10 9.6/10
GPT-6.2 Sol 7.4/10 8/10 8.5/10 8.5/10 8.0/10 8.8/10 9.2/10 9.4/10 9.6/10 not asked
Muse Wonder Full 1.0 7.5/10 8/10 9/10 9/10 7.5/10 8.5/10 8.9/10 9.2/10 9.4/10 9.6/10
Gemini 4 Neon 7.3/10 8.5/10 9/10 9.5/10 7.5/10 8.5/10 9.1/10 9.6/10 9.7/10 not asked

Unresolved: the redesign's code (rounds 5 to 10) was judged from screenshots, not code review. Softer diff tints (Muse) and right-anchored inbox columns (Opus) were declined. A few style rules for the old two-row header are now unused.

🤖 Generated with Claude Code

A pull request now opens in a workspace: the inbox stays beside it as a
list, and four tabs answer four questions (Overview: can this merge and
what should worry me; Conversation; Tour; Code). J/K switch pull
requests, H/L switch tabs, and a shortcut bar teaches the keys.

- Overview is a decision page with the merge verdict in one tinted band,
  each blocker with its action, risk, review threads and behavior changes.
- Tour and Code share one diff surface showing files instead of blocks,
  with a file tree, per-file Viewed and tour points linked to their lines.
- A pull request that changes while it loads is read again, merging is
  bound to the commit on screen, and unsaved comments are never lost.
- Every status has its own icon, loading keeps the page's shape, and
  motion is one-shot and off under reduced motion.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T15:01:01.930808Z 1809173 PR opened
🔒 Security Review ✅ Completed 2026-11-26T15:04:03.167958Z 1809173 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 123 files, which is 23 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This organization's CodeRabbit subscription is cancelled. Resubscribe in Billing to continue reviews beyond the free-tier limit.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e9f941ed-c942-4cf5-acf9-ef217079af2d
Commits

Reviewing files that changed from the base of the PR and between f04ad63 and 1809173.

Files selected for processing: 123

  • CHANGELOG.md
  • CLAUDE.md
  • DESIGN.md
  • docs/README.md
  • src/main/github.merge.test.ts
  • src/main/github.test.ts
  • src/main/github.ts
  • src/main/ipc.ts
  • src/main/ipcValidation.test.ts
  • src/main/ipcValidation.ts
  • src/main/pullRequestTour.test.ts
  • src/main/pullRequestTour.ts
  • src/preload/index.ts
  • src/renderer/src/components/github/BackgroundJobConfirm.tsx
  • src/renderer/src/components/github/BugFinderView.tsx
  • src/renderer/src/components/github/PullRequestDetailTabs.tsx
  • src/renderer/src/components/github/PullRequestGuideIndicator.tsx
  • src/renderer/src/components/github/PullRequestHeaderActions.tsx
  • src/renderer/src/components/github/PullRequestInboxView.test.ts
  • src/renderer/src/components/github/PullRequestInboxView.tsx
  • src/renderer/src/components/github/PullRequestMergeChecklist.tsx
  • src/renderer/src/components/github/PullRequestMergeDialog.tsx
  • src/renderer/src/components/github/PullRequestRefreshControl.tsx
  • src/renderer/src/components/github/PullRequestReviewLoading.tsx
  • src/renderer/src/components/github/PullRequestReviewStatus.tsx
  • src/renderer/src/components/github/PullRequestReviewSubmissionDialog.tsx
  • src/renderer/src/components/github/PullRequestReviewView.tsx
  • src/renderer/src/components/github/PullRequestReviewerPicker.tsx
  • src/renderer/src/components/github/PullRequestRiskChip.tsx
  • src/renderer/src/components/github/PullRequestStatusIcon.tsx
  • src/renderer/src/components/github/conversation/PullRequestCommentComposer.tsx
  • src/renderer/src/components/github/conversation/PullRequestConversationTab.tsx
  • src/renderer/src/components/github/conversation/PullRequestTimelineItem.tsx
  • src/renderer/src/components/github/guide/GuideExcerpt.tsx
  • src/renderer/src/components/github/guide/GuideTour.tsx
  • src/renderer/src/components/github/guide/PullRequestGuideTab.tsx
  • src/renderer/src/components/github/guide/pullRequestTourQuery.ts
  • src/renderer/src/components/github/overview/OverviewBehaviorSection.tsx
  • src/renderer/src/components/github/overview/OverviewChecks.tsx
  • src/renderer/src/components/github/overview/OverviewIssuesSection.tsx
  • src/renderer/src/components/github/overview/OverviewMergeSection.tsx
  • src/renderer/src/components/github/overview/OverviewRiskSection.tsx
  • src/renderer/src/components/github/overview/PullRequestOverviewTab.tsx
  • src/renderer/src/components/github/overview/overviewCheckRuns.test.ts
  • src/renderer/src/components/github/overview/overviewCheckRuns.ts
  • src/renderer/src/components/github/overview/overviewParts.tsx
  • src/renderer/src/components/github/overview/pullRequestMergeVerdict.test.ts
  • src/renderer/src/components/github/overview/pullRequestMergeVerdict.ts
  • src/renderer/src/components/github/overview/pullRequestReviewThreads.test.ts
  • src/renderer/src/components/github/overview/pullRequestReviewThreads.ts
  • src/renderer/src/components/github/pullRequestDetailTab.test.ts
  • src/renderer/src/components/github/pullRequestDetailTab.ts
  • src/renderer/src/components/github/pullRequestInboxGroups.ts
  • src/renderer/src/components/github/pullRequestInboxStatus.ts
  • src/renderer/src/components/github/pullRequestLiveDetail.test.ts
  • src/renderer/src/components/github/pullRequestLiveDetail.ts
  • src/renderer/src/components/github/pullRequestMergeBlockers.test.ts
  • src/renderer/src/components/github/pullRequestMergeBlockers.ts
  • src/renderer/src/components/github/pullRequestNavigation.ts
  • src/renderer/src/components/github/pullRequestReviewDrafts.test.ts
  • src/renderer/src/components/github/pullRequestReviewDrafts.ts
  • src/renderer/src/components/github/pullRequestReviewSubmission.test.ts
  • src/renderer/src/components/github/pullRequestReviewSubmission.ts
  • src/renderer/src/components/github/pullRequestTimeline.test.ts
  • src/renderer/src/components/github/pullRequestTimeline.ts
  • src/renderer/src/components/github/rail/PullRequestListRail.tsx
  • src/renderer/src/components/github/rail/pullRequestRail.test.ts
  • src/renderer/src/components/github/rail/pullRequestRailModel.ts
  • src/renderer/src/components/github/rail/pullRequestRailVisibility.ts
  • src/renderer/src/components/github/shortcuts/PullRequestShortcutBar.tsx
  • src/renderer/src/components/github/shortcuts/pullRequestShortcutList.test.ts
  • src/renderer/src/components/github/shortcuts/pullRequestShortcutList.ts
  • src/renderer/src/components/github/shortcuts/pullRequestShortcuts.test.ts
  • src/renderer/src/components/github/shortcuts/pullRequestShortcuts.ts
  • src/renderer/src/components/github/tour/PullRequestTourTab.tsx
  • src/renderer/src/components/github/tour/TourProgress.tsx
  • src/renderer/src/components/github/tour/TourStepPanel.tsx
  • src/renderer/src/components/github/tour/pullRequestTourQuery.ts
  • src/renderer/src/components/github/tour/pullRequestTourWalk.test.ts
  • src/renderer/src/components/github/tour/pullRequestTourWalk.ts
  • src/renderer/src/components/github/tour/tourText.ts
  • src/renderer/src/components/github/tour/usePullRequestTourWalk.ts
  • src/renderer/src/components/github/tour/useTourDiffSurface.tsx
  • src/renderer/src/components/github/workspace/PullRequestWorkspace.tsx
  • src/renderer/src/components/github/workspace/pullRequestLeaveGuard.test.ts
  • src/renderer/src/components/github/workspace/pullRequestLeaveGuard.tsx
  • src/renderer/src/components/github/workspace/pullRequestWorkspaceChrome.ts
  • src/renderer/src/components/github/workspace/pullRequestWorkspaceKeys.test.ts
  • src/renderer/src/components/github/workspace/pullRequestWorkspaceKeys.ts
  • src/renderer/src/components/review/ReviewBenchmarkExplorer.tsx
  • src/renderer/src/components/review/ReviewDiffParts.tsx
  • src/renderer/src/components/review/ReviewFilesPanel.tsx
  • src/renderer/src/components/review/ReviewFilesView.tsx
  • src/renderer/src/components/review/ReviewGuidePanel.tsx
  • src/renderer/src/components/review/ReviewImageGalleryDialog.tsx
  • src/renderer/src/components/review/ReviewPatternsDialog.tsx
  • src/renderer/src/components/review/ReviewTypeDefinitionDialog.tsx
  • src/renderer/src/components/review/ReviewView.tsx
  • src/renderer/src/components/review/reviewContextExpansion.ts
  • src/renderer/src/components/review/reviewFileScope.test.ts
  • src/renderer/src/components/review/reviewFileScope.ts
  • src/renderer/src/components/review/reviewFileTree.test.ts
  • src/renderer/src/components/review/reviewFileTree.ts
  • src/renderer/src/components/review/reviewUnitTitles.test.ts
  • src/renderer/src/components/review/reviewUnitTitles.ts
  • src/renderer/src/components/ui/useSlidingIndicator.ts
  • src/renderer/src/lib/motion.ts
  • src/renderer/src/main.tsx
  • src/renderer/src/queries/github.test.ts
  • src/renderer/src/queries/github.ts
  • src/renderer/src/styles/main.css
  • src/renderer/src/styles/pr-conversation.css
  • src/renderer/src/styles/pr-motion.css
  • src/renderer/src/styles/pr-overview.css
  • src/renderer/src/styles/pr-shell.css
  • src/renderer/src/styles/pr-surface.css
  • src/renderer/src/styles/pr-tour.css
  • src/renderer/src/styles/pr-workspace.css
  • src/renderer/src/workspace/WorkspaceShell.tsx
  • src/shared/ipc.ts
  • src/shared/pullRequestTour.test.ts
  • src/shared/pullRequestTour.ts
  • src/shared/types.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Kaldy14
Kaldy14 merged commit 0308ed8 into main Nov 26, 2026
3 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 180917383e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +474 to +475
const moved = moveReviewLineCursor(scroller, lineCursor, key === 'ArrowDown' ? 1 : -1, event.shiftKey, firstVisibleChunkId(scroller));
setLineCursor(moved);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exclude collapsed files from keyboard line navigation

After a file's diff has mounted, collapsing it or marking it Viewed keeps its hunks mounted inside a hidden body. This call still navigates all mounted chunks: reviewChunkElements() filters only for a shadow root, not visibility. Consequently, pressing Down at the end of the preceding expanded file moves the cursor into the collapsed file, and pressing C opens a composer inside that hidden body instead of on visible code. Filter cursor navigation to expanded files and reset or relocate a cursor when its file collapses.

Useful? React with 👍 / 👎.

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