Repository navigation
feat(ui): add desktop and mobile review controls - #176349
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
5d1f7ab to
cd55d43
Compare
cd55d43 to
40b8c1e
Compare
|
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. |
40b8c1e to
0d572be
Compare
0d572be to
6251d80
Compare
6251d80 to
4cb7c89
Compare
4cb7c89 to
f75204d
Compare
f75204d to
d92d471
Compare
d92d471 to
92cbe50
Compare
84dbdf5 to
e41ebf6
Compare
* 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








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
untrackallowance 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
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
Detail 1