Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): use the linked pull request row layout on the pull requests page #12536

Mergedmaria-rcksmerged 23 commits intomain fromrefs/pull/12536/headmerged by maria-rcks View on GitHub

maria-rckscommented

The pull requests page and a thread's linked pull requests panel showed the same data in two different layouts. The page rows were 66px tall with the number and dot-separated meta on a second line, while the panel was denser and easier to scan.

Both now render through one shared row (PullRequestListRow.tsx): glyph, then #number and title with the checks and review glyphs right after the title text and the diff counts alone on the right, then author and labels under them with the time on the right. The review glyph appears only when there is a verdict: green person-check when approved, amber person-x when changes were requested, and a muted outline when GitHub itself reports that the branch rules still require a review. An unreviewed pull request wears none. GitHub's reviewDecision counts only reviews that satisfy the branch rules, so an approval from a review bot such as Macroscope left it empty; the server's list, search and detail reads now carry each reviewer's latest review and, when GitHub reports no verdict, the reviews decide, with changes requested outranking approval. The page shows repository and labels on that line; the panel keeps head → base, where the branch is the thing a thread is about. The page rows sit at 56px with the old side padding, a little roomier than the panel's 44px rows in its narrow column. The page keeps its selection state, stack popover, checks popover, label overflow slots, search-match badge and content-visibility skipping (intrinsic content height 36.5px, the two lines without padding). The panel keeps its stack indent, source tooltip and row menu. The conflict badge now sits on the corner of the state glyph in both, so titles line up whether or not a row is blocked.

Verified in the web app against a fresh worktree database with six linked PRs, light and dark. Typecheck, lint and the row test ran on Blacksmith; the test helper now walks slot props since the row hands its slots to the shared lines as props.

Pull requests page

Before, light:

Pull requests page before, light

After, light:

Pull requests page after, light

Before, dark:

Pull requests page before, dark

After, dark:

Pull requests page after, dark

Approved rows, with the checks and review glyphs after the title:

Pull requests page after, approved rows, light

Pull requests page after, approved rows, dark

Linked pull requests panel

Before, light:

Linked pull requests panel before, light

After, light:

Linked pull requests panel after, light

Before, dark:

Linked pull requests panel before, dark

After, dark:

Linked pull requests panel after, dark

Label chips

The bordered pill with a colored dot is replaced where labels are displayed on the web: the list rows, the ghost rows and the summary tab. The label picker and the filter menu keep their small color dots next to the name. One shared PullRequestLabelChip draws the label as a round chip with no border or dot, washed in its own color at 8% on light and 12% on dark, with the name in a mix of that color and the theme foreground (30% label on light, 45% on dark, mixed toward the contrast-aware foreground), so white, black and pale yellow labels all clear 4.5:1 on their wash, selected row included. Labels without a usable color fall back to the muted tag. The chip shrinks with its row and is pinned to 16px in the list on every viewport, so a labeled row stays the reserved height. The list rows above show the chips; the summary tab:

Light:

Summary tab label chips, light

Dark:

Summary tab label chips, dark

Narrow list beside the detail, one chip and a "+1":

Narrow list rows with one label chip and an overflow count

Group headers

Authored and Others were bare muted text. Each group now opens like a sidebar shelf: the involvement glyph (pen, eye, people), the name, the count, and a rule out to the edge.

Authored group header, light

Others group header, light

Others group header, dark

Linked panel row menu

The row actions button was invisible until hover but still took its width on every row, leaving an empty column at the right. It now overlays the right end of the second line on the hovered row only, on the row's own hover color fading in from the left, so rows use their full width at rest and the diff counts stay visible.

At rest:

Linked panel rows using the full width, light

Hovered:

Linked panel row hovered, the menu button over the time

Menu open, dark:

Linked panel row menu open, dark

Out-of-date base branch

When the base has moved on, the base branch name in the detail header turns amber alongside the warning mark, and pointing at either opens the same popover with the update actions.

Out-of-date base branch, name in amber with the popover open, light

Out-of-date base branch, dark

Narrow rows and the conflict badge

The page with the detail panel open, so rows are about 320px wide. Every meta field shrinks and truncates and the time stays in view:

Pull requests page with the detail panel open, light

The linked panel with a conflicting pull request at the bottom. The conflict badge sits on the corner of the state glyph in both views, so titles line up whether or not a row is blocked:

Linked pull requests panel with a conflicting pull request, light

Written by claude-fable-5-1 in Claude Code.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Pull-request rows now present lifecycle, conflict, approval, checks, author, status, metadata, and update-time information in a consistent layout.
    • Author details include avatars, usernames, and full-name tooltips when applicable.
    • Thread pull-request rows now clearly show source and target branches.
  • Style

    • Improved pull-request row spacing, sizing, and loading placeholders for a more consistent browsing experience.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR changes the default pull-request experience across shared row rendering, linked panels, labels, grouping, detail interactions, and GitHub review-status ingestion. Its cross-cutting production impact and substantial new shared UI logic warrant human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review Change StackReview Change Stack

      Note

      Reviews paused

      It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

      Use the following commands to manage reviews:

      • @coderabbitai resume to resume automatic reviews.
      • @coderabbitai review to trigger a single review.

      Use the checkboxes below for quick actions:

      • ▶️ Resume reviews
      • 🔍 Trigger review

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

      Review profile: CHILL

      Plan: Advanced

      Run ID: 429ca228-8a36-4b49-9ad8-ab97cffbd5c4

      📥 Commits

      Reviewing files that changed from the base of the PR and between 0cf51755df4d3fe1e876eb29343d4012b45b2c87 and d4a6011f5b844fe90439c21ca90f71deb9409cb0.

      📒 Files selected for processing (1)
      • apps/web/src/components/pullRequest/PullRequestRow.tsx
      💤 Files with no reviewable changes (1)
      • apps/web/src/components/pullRequest/PullRequestRow.tsx

      Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


      📝 Walkthrough

      Walkthrough

      Changes

      The pull-request row primitives now provide shared glyph, content, author, branch, and layout rendering. The main list and thread panel use these primitives. Loading-row spacing and dimensions were updated, and the test helper now traverses element props.

      Pull Request Row Rendering

      Layer / File(s)Summary
      Shared row primitives
      apps/web/src/components/pullRequest/PullRequestListRow.tsx, apps/web/src/components/pullRequest/pullRequestChecks.test.tsx
      Added shared row constants and components for glyphs, lines, authors, and branches. The test helper now walks element-valued props.
      Main list row integration
      apps/web/src/components/pullRequest/PullRequestRow.tsx, apps/web/src/components/pullRequest/PullRequestGhosts.tsx
      Updated the main row to use shared layout classes and a local intrinsic-size class. Removed branch names from the main row metadata. Expanded loading-row padding, spacing, and placeholder heights.
      Thread panel row integration
      apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx
      Replaced inline thread-row rendering with the shared glyph, content, author, branch, and layout components.

      Priority: ➖ Normal

      Estimated code review effort: 3 (Moderate) | ~20 minutes

      Change: Feature

      🚥 Pre-merge checks | ✅ 4 | ❌ 1

      ❌ Failed checks (1 warning)

      Check nameStatusExplanationResolution
      Docstring Coverage⚠️ WarningDocstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 6 files.Write docstrings for the functions missing them to satisfy the coverage threshold.
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Title check✅ PassedThe title clearly describes the main change: applying the linked pull request row layout to the pull requests page.
      Description check✅ PassedThe description explains the changes, motivation, UI impact, verification steps, and includes before-and-after screenshots for the UI changes. It does not use the template headings or include the chec…
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR

      Comment `@coderabbitai help` to get the list of available commands.
    4. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Additional UI consistency findings in apps/web/src/components/pullRequest/PullRequestListRow.tsx:

      • PullRequestRowAuthor does not spread element props or expose a data-slot. Follow the ComposerBanner slot contract so consumers can compose the shared slot without adding wrappers.
      • PullRequestRowBranches hard-codes its element and classes without accepting className, spreading span props, or exposing data-slot. Follow the ComposerBanner slot pattern.
      Posted via Macroscope — UI Consistency
    5. Note

      Written by claude-fable-5-1 on behalf of Maria

      Same answer as the resolved thread on PullRequestListRow.tsx: these row pieces have two callers in one directory and no consumer that needs spread props or data-slot. Keeping the API to what the page and panel use.

    6. maria-rcks merged this411da2a

    7. maria-rcks closed this

Sign in to join this conversation.