Repository navigation
improve(ui): align chat branch and PR rows - #125232
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 11:44 PM ET / August 18, 2026, 03:44 UTC. ClawSweeper reviewWhat this changesThe PR updates chat branch and pull-request row markup and styles to use shared grid alignment, grouped repository/branch identity, and a neutral Create PR action. Merge readinessKeep open for maintainer review. The exact head makes a coherent, limited Control UI layout change; current main lacks it, no blocking correctness or security issue was found, and the contributor supplied visual proof. The remaining gate is approval of the visual direction plus an exact-head green merge result. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI displays branch and pull-request context directly above the chat composer. Session metadata enters the chat renderer, which renders row controls and status information styled by the shared chat layout stylesheet. flowchart LR
A[Session branch data] --> C[Chat row renderer]
B[Pull request metadata] --> C
C --> D[Branch and PR row markup]
D --> E[Shared grid layout]
E --> F[Chat composer context]
Decision needed
Why: The code preserves behavior, but the final color, emphasis, and hierarchy are intentional user-visible product choices rather than an existing functional contract. Before merge
Agent review detailsSecurityNone. PR surfaceSource +26. Total +26 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the shared row structure if the maintainer accepts the proposed visual hierarchy, then land only the exact-head green merge result. Do we have a high-confidence way to reproduce the issue? Not applicable: this is visual polish rather than a reported functional failure; the contributor supplied screenshots of the affected states. Is this the best way to solve the issue? Yes: one shared row structure and grid avoids per-state alignment offsets while preserving the existing values, actions, links, warnings, and callbacks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ebac7313525a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
a0288b9 to
ba65578
Compare
|
Merged via squash.
|
* improve(ui): align chat branch and PR rows * improve(ui): collapse absent PR number slot * improve(ui): give Create PR a neutral chip surface * improve(ui): rebalance merged PR row contrast * improve(ui): use standard squircle for PR rows * fix(ui): consolidate static PR link styling




Closes #125228
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Branch and pull-request summaries above the chat composer currently shift between no-PR, open, draft, and merged states because their optional content, icons, text, and controls do not share stable layout slots. Repository and branch identity also lacks a clear typographic hierarchy, and the
Create PRaction appears more emphasized than its neutral role warrants.Why This Change Was Made
This change gives every branch and pull-request summary a shared grid with stable icon and pull-request-number slots, baseline-aligned repository and branch identity, and a consistently centered trailing group. It keeps the repository and branch together without separator punctuation, sets the repository to weight 500, preserves the secondary monospace branch style, and makes
Create PRborderless and neutral while retaining its hit area and subtle hover/focus feedback. Existing values, states, icons, ordering, warnings, and create/open behavior are unchanged.User Impact
Branch and pull-request summaries are easier to scan across all states. Their identity, diff, CI, state, warning, and action content remains visually aligned, while
Create PRno longer reads as an alarm or status indicator.Evidence
ui/src/pages/chat/components/chat-pull-requests.tsandui/src/styles/chat/layout.css.Create PRaction.