Skip to content

improve(ui): align chat branch and PR rows - #125232

Merged
clawsweeper merged 6 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/chat-branch-pr-rows
Aug 18, 2026
Merged

clawsweeper merged 6 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/chat-branch-pr-rows

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

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 PR action 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 PR borderless 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 PR no longer reads as an alarm or status indicator.

Evidence

  • Inspected the existing branch, open, draft, merged, rate-limited, diff, CI, dismiss, create, and responsive rendering paths.
  • Confirmed the change is limited to ui/src/pages/chat/components/chat-pull-requests.ts and ui/src/styles/chat/layout.css.
  • Confirmed the warning triangle remains separate from the neutral Create PR action.
  • Confirmed no displayed values, state logic, semantic icons, information ordering, links, or event handlers changed.
  • Validation commands and visual captures were intentionally not run for this draft.

@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 17, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 17, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 11:44 PM ET / August 18, 2026, 03:44 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 3 items remain

Keep 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
Reviewed head: ba65578f4bca8c05d7a19add7919eb8c3ae902fd
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong visual evidence and a focused patch support normal maintainer review, pending exact-head CI and the visual-direction decision.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR contains four after-change screenshots covering the changed row states, themes, long names, and narrow viewport; private details should remain redacted in any refreshed captures.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR contains four after-change screenshots covering the changed row states, themes, long names, and narrow viewport; private details should remain redacted in any refreshed captures.
Evidence reviewed 6 items Exact-head rendering change: The branch and PR paths now wrap repository and branch text in the same identity element while retaining existing links, diff controls, warnings, and dismissal behavior.
Current-main comparison: Current main still uses the former flex layout and separate repository/branch children; the PR head introduces the shared grid and identity group, so the central UI change is not already implemented.
Caller and existing behavior coverage: The chat view passes branch data, PRs, rate-limit state, expand, dismiss, and session-diff callbacks into this renderer; existing unit and browser E2E coverage exercises open, merged, rate-limited, and Create PR states.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should the Control UI adopt the proposed neutral Create PR treatment and repository/branch visual hierarchy across chat row states? Accept the visual direction: Keep the shared grid and neutral action treatment, subject to exact-head CI and merge refresh.

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

  • Resolve merge risk (P1) - The GitHub snapshot marks the branch behind current main and exact-head checks are incomplete; refresh the merge result and require green exact-head checks before landing.
  • Complete next step (P2) - A maintainer must confirm the visual product direction and land only after the exact-head merge and CI gates are green.
Agent review details

Security

None.

PR surface

Source +26. Total +26 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 3 50 24 +26
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 50 24 +26

Review metrics

Metric Value Why it matters
Production vs test LOC production +50/-24 (net +26); tests +0/-0 All changes are markup and stylesheet work implementing the visible layout; existing unit/E2E coverage and supplied screenshots cover the retained row states.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #125228
Summary: This PR is the linked candidate implementation for the same chat-row alignment request tracked by the open issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Adopt the shared row structure if the maintainer accepts the proposed visual hierarchy, then land only the exact-head green merge result.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a bounded visual consistency improvement without a user-visible workflow regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR contains four after-change screenshots covering the changed row states, themes, long names, and narrow viewport; private details should remain redacted in any refreshed captures.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR contains four after-change screenshots covering the changed row states, themes, long names, and narrow viewport; private details should remain redacted in any refreshed captures.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR contains four after-change screenshots covering the changed row states, themes, long names, and narrow viewport; private details should remain redacted in any refreshed captures.

Evidence

What I checked:

  • Exact-head rendering change: The branch and PR paths now wrap repository and branch text in the same identity element while retaining existing links, diff controls, warnings, and dismissal behavior. (ui/src/pages/chat/components/chat-pull-requests.ts:229, ba65578f4bca)
  • Current-main comparison: Current main still uses the former flex layout and separate repository/branch children; the PR head introduces the shared grid and identity group, so the central UI change is not already implemented. (ui/src/styles/chat/layout.css:2340, ba65578f4bca)
  • Caller and existing behavior coverage: The chat view passes branch data, PRs, rate-limit state, expand, dismiss, and session-diff callbacks into this renderer; existing unit and browser E2E coverage exercises open, merged, rate-limited, and Create PR states. (ui/src/pages/chat/chat-view.ts:555, ba65578f4bca)
  • Visual proof: The contributor's August 18 visual-closeout comment supplies dark/light desktop and narrow captures covering no-PR, open, draft, merged, long-name, CI, diff, and rate-limit states.
  • Feature-history provenance: Available current-main blame attributes the existing branch/PR renderer baseline to this commit; the component remains the architectural owner of these row states. (ui/src/pages/chat/components/chat-pull-requests.ts:229, 064efce05679)
  • Dependency boundary: The changed renderer imports Lit and an OpenClaw coercion helper, with no Codex runtime, protocol, harness, or generated-contract dependency; Codex-specific dependency inspection is therefore not applicable. (ui/src/pages/chat/components/chat-pull-requests.ts:1, ba65578f4bca)

Likely related people:

  • Peter Steinberger: Current-main blame attributes the existing branch and pull-request rendering boundary to this commit. (role: current renderer baseline contributor; confidence: medium; commits: 064efce05679; files: ui/src/pages/chat/components/chat-pull-requests.ts)
  • vyctorbrzezowski: Current-main file history includes prior UI work by this contributor before the proposed change. (role: recent adjacent Control UI contributor; confidence: medium; commits: 47399310a08e, 71eab1118d4d; files: ui/src/pages/chat/components/chat-pull-requests.ts, ui/src/styles/chat/layout.css)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the branch or merge result as needed and let the exact-head check suite finish green.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-08-17T11:20:33.245Z sha b9cbf13b345a9af56aed30e7c21629c611f080cc :: needs maintainer review before merge. :: none
  • reviewed 2026-08-18T01:18:37.360Z sha 8b72d723c66abe5197df4a5e13ff926c5183bfa1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-18T02:23:57.809Z sha a0288b9e050b0f78ea878096016d41b92d4b6140 :: needs maintainer review before merge. :: none

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Visual closeout

The mock fixture covers the no-PR branch row with neutral Create PR, open, draft, and merged pull requests, long repository and branch names, diff counts, CI states, and the rate-limit warning. In each capture, the full stack is visible so icon, optional PR number, identity, and trailing slots can be compared across states.

Dark, desktop Light, desktop
Dark desktop branch and pull-request rows Light desktop branch and pull-request rows
Dark, narrow Light, narrow
Dark narrow branch and pull-request rows Light narrow branch and pull-request rows

Observed: the no-PR row collapses the absent number slot; PR rows retain the number slot; repository/branch identity remains grouped; trailing diff, CI, state, warning, and actions stay centered; long branches truncate without displacing controls; merged contrast and the neutral Create PR chip remain legible in both themes and at the narrow viewport.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 18, 2026 01:11
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 18, 2026
@clawsweeper
clawsweeper force-pushed the brzezowski/chat-branch-pr-rows branch from a0288b9 to ba65578 Compare August 18, 2026 03:37
@clawsweeper
clawsweeper merged commit c75d4dc into openclaw:main Aug 18, 2026
166 checks passed
@clawsweeper

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
* 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
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/chat-branch-pr-rows branch October 1, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align branch and pull-request summary rows in chat

2 participants