Skip to content

feat(ui): add desktop and mobile review controls - #176349

Merged
vyctorbrzezowski merged 9 commits into
mainfrom
brzezowski/session-ui-v3/review-panel
Oct 21, 2026
Merged

vyctorbrzezowski merged 9 commits into
mainfrom
brzezowski/session-ui-v3/review-panel

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Review needs readable desktop and mobile diff layouts without losing file context, disclosure state, or the identity of the checkout being reviewed.

User Impact

Adds desktop file navigation and view controls, mobile diff cards and Sync details, and separate controls for line wrapping, word changes, and split view. Refreshing retains compatible file presentation while stale diff and file-text responses remain excluded. Menus stay anchored to their trigger when the containing sheet moves.

Why This Change Was Made

Keeps loading, request generations, caches, and gap expansion with the existing diff owner. Presentation modules share its live data and operations. Workspace consumers reuse the same uncommitted-diff request and result. Search focus and navigation scrolling follow settled DOM updates.

The Review panel and its menus render as direct Solid components, preserving the existing layout, disclosures, and menu behavior. Retired native adapters are removed.

Risk and coverage

This changes shared diff rendering and loading as well as presentation. Stale diff and file-text responses must remain excluded.

The recorded unavailable-desktop-target timeout reproduced in isolated validation. A controlled lazy-publication delay subsequently reproduced a lost request, which the shared panel-readiness correction addresses. The original status-retry failure was not independently reproduced. The welcome-avatar case passed in isolation with matching main sources, but its original failed-shard timing remains unattributed; no avatar patch is included. The separate quota saved-clear status failure was reproduced on main.

Evidence

  • Recorded focused validation: Review panel and menu checks passed (45 unit and 1 Chromium cases; 5.80 s command wall).

  • File/diff lifecycle checks passed: 98 cases across five unit files (4.98 s wall) and seven cases across three Chromium files (2.89 s wall).

  • The new shared disclosure test passed both cases with pnpm test ui/src/pages/chat/components/session-file-disclosures.browser.test.tsx --maxWorkers=1 (2.34 s wall; 8 ms test time). Its negative control fails when synchronous measurement commits are removed.

  • The obsolete two-call untrack allowance for the diff panel is removed with those calls. Scoped independent review found no actionable P0–P2 issues.

  • Review focus and scrolling follow settled DOM updates. The focused run passed 25 unit and four Chromium cases (4.20 s wall), including the Search-focus regression; removing settlement loses the expected focus.

  • Direct Solid panel validation passed all 25 unit cases (3.33 s command wall) and four Chromium cases (3.13 s). The rendered panel and existing expectations are preserved. UI and chat-test types, scoped lint, formatting, and review passed. This validates the focused panel candidate on macOS with pinned Bun, not a full-suite or hosted Linux CI result.

CI timing for the updated tests is pending; the measured local costs above are scoped runs.

Visual evidence

Captured before: dccff201b07e. Captured after: 5856f7237579.

Synthetic fixtures and a mock Gateway show the integrated session UI at these revisions. These images are not isolated proof of this PR; stills do not establish interaction or live-service results.

Published comparisons: Review and activity.

Code review on desktop

The same chat.ts diff is expanded with added and deleted lines. Full views also include changed-file siblings and counts.

Full view

Before After
Code review on desktop: Before — full view Code review on desktop: After — full view

Detail 1

Before After
Code review on desktop: Before — detail 1 Code review on desktop: After — detail 1
Additional views and states

Code review on mobile

The updated dock shows the diff card and complete anchored menu. The menu covers part of the code and lower lines continue beyond the viewport.

Full view

Before After
Code review on mobile: Before — full view Code review on mobile: After — full view

Detail 1

Before After
Code review on mobile: Before — detail 1 Code review on mobile: After — detail 1

@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 5d1f7ab055d0969c7953af2183e0d8bb558d20b9, but the PR head is now 63a255cd3a298d575dd8f611124a5d551c07e6f0. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (1 earlier review cycle)
  • reviewed 2026-10-18T19:30:33.426Z sha 5d1f7ab :: blocked before merge. :: [P2] Wire the new presentation through the shipped Chat host | [P2] Initialize desktop mode from legacy layout preferences

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/session-ui-v3/review-panel branch from 5d1f7ab to cd55d43 Compare October 19, 2026 11:37
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/session-ui-v3/review-panel branch from cd55d43 to 40b8c1e Compare October 19, 2026 11:44
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 19, 2026 11:46
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Previously saved Split preferences are honored in a 360 px Review panel. Light and dark comparisons use the same two-file diff and stored split=true, wrap=false preference.

Native Control UI captures using synthetic mocked-Gateway data. These compare the captured repair variants; they do not certify the final combined revision.

Full-context before/after images come first, followed by the corresponding detail crops.

Before: Review ignores stored Split preference, light theme — full context

After: Review honors stored Split preference, light theme — full context

Before: Review ignores stored Split preference, dark theme — full context

After: Review honors stored Split preference, dark theme — full context

Before: Review ignores stored Split preference, light theme — detail crop

After: Review honors stored Split preference, light theme — detail crop

Before: Review ignores stored Split preference, dark theme — detail crop

After: Review honors stored Split preference, dark theme — detail crop

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/session-ui-v3/review-panel branch from 40b8c1e to 0d572be Compare October 19, 2026 14:53
@vyctorbrzezowski vyctorbrzezowski added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 19, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/session-ui-v3/review-panel branch from 0d572be to 6251d80 Compare October 19, 2026 18:51
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/session-ui-v3/review-panel branch from 6251d80 to 4cb7c89 Compare October 19, 2026 20:08
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/session-ui-v3/review-panel branch from 4cb7c89 to f75204d Compare October 19, 2026 21:11
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/session-ui-v3/review-panel branch from f75204d to d92d471 Compare October 19, 2026 23:01
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/session-ui-v3/review-panel branch from d92d471 to 92cbe50 Compare October 19, 2026 23:52
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/session-ui-v3/review-panel branch from 84dbdf5 to e41ebf6 Compare October 21, 2026 01:34
@vyctorbrzezowski
vyctorbrzezowski merged commit 608a467 into main Oct 21, 2026
12 of 13 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/session-ui-v3/review-panel branch October 21, 2026 01:35
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* feat(ui): add desktop and mobile review controls

* fix(ui): anchor Review menus to their native trigger

* fix(ui): retain review menu entries during selection

* refactor(ui): narrow diff view exports

* fix(ui): preserve saved review split preference

* refactor(ui): preserve review panel focus and scroll ownership

* fix(ui): retain review state through native lifetimes

* fix(ui): settle review navigation without synchronous flush

* refactor(ui): keep diff loader aliases internal
@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant