Skip to content

fix(ui): compact mobile session actions - #132020

Merged
vyctorbrzezowski merged 8 commits into
mainfrom
fix/mobile-session-more-menu
Aug 28, 2026
Merged

vyctorbrzezowski merged 8 commits into
mainfrom
fix/mobile-session-more-menu

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

Closes #132019

What Problem This Solves

On mobile, the session More menu occupied most of the screen while visibility and member controls remained in a separate header action. The Delete icon also did not visually match its destructive label.

Why This Change Was Made

The mobile More menu now uses a consistent 34px row rhythm and includes Visibility and Members in a focused sharing drilldown. It reuses the existing sharing renderer and callbacks, preserves the read-only draft indicator for non-managers, and keeps large member lists within the established mobile height limit. The desktop sharing control is unchanged.

User Impact

Mobile users get a denser session action menu, one fewer header icon, and direct access to Visibility and Members from More. Draft state remains visible to members, large sharing lists stay scrollable, and Delete is consistently recognizable as destructive.

Evidence

The before-and-after captures below were recorded at 390x844 in light and dark themes and inspected after capture.

Before

Light:

Mobile More menu before, light

Dark:

Mobile More menu before, dark

After

Light:

Mobile More menu after, light

Dark:

Mobile More menu after, dark

Sharing drilldown, light:

Mobile sharing submenu after, light

Sharing drilldown, dark:

Mobile sharing submenu after, dark

Validation:

  • Required CI passed on the exact head.
  • Component coverage verifies the compact sharing drilldown and draft-publish action.
  • Browser coverage verifies 34px rows, destructive styling, the non-manager draft indicator, and scrolling for a 30-member sharing list in light and dark themes.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 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: M maintainer Maintainer-authored PR labels Aug 28, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 5:22 PM ET / 21:22 UTC.

ClawSweeper review

What this changes

The PR makes the mobile Control UI session-actions menu denser and moves owner/admin sharing controls into a More-menu drilldown while keeping the desktop control.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open. The final head addresses the three prior review blockers through the existing sharing owner and has no new actionable correctness finding; it remains a maintainer-labelled PR with exact-head CI still running and a local current-main source-inspection gap.

Priority: P2
Reviewed head: d5b36bbe73904db826b82f55d8ab92d8293d7eea

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused UI repair with prior blockers addressed and targeted browser/component coverage, pending normal exact-head CI completion.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored UI PR is exempt from the external-contributor proof gate; its body reports 390×844 screenshots and browser coverage, though the media could not be independently retrieved while GitHub DNS was unavailable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored UI PR is exempt from the external-contributor proof gate; its body reports 390×844 screenshots and browser coverage, though the media could not be independently retrieved while GitHub DNS was unavailable.
Evidence reviewed 6 items Compact routing preserves the owner boundary: The header creates one sharing-props object using the existing load and mutation callbacks, retains the standalone control for desktop and non-managers, and supplies that same object to the compact menu.
Compact menu reuses canonical sharing behavior: The menu opens sharing as a compact view, resets its view on show/hide, and delegates visibility/member selections to the existing sharing selector instead of implementing another mutation path.
Authorization remains at the sharing owner: The existing sharing owner verifies the current manageable session and operator scopes before loading or mutating visibility/members; the PR calls those callbacks unchanged.
Findings None None.
Security None None.

How this fits together

The Control UI chat header combines the selected session with Gateway-advertised permissions to render session actions. On narrow panes, this change places the existing visibility and member controls inside the More menu and sends mutations through the existing sharing owner.

flowchart LR
  A[Selected session] --> C[Chat header]
  B[Gateway permissions] --> C
  C --> D[Mobile More menu]
  D --> E[Sharing drilldown]
  E --> F[Existing session-sharing owner]
  C --> G[Desktop sharing control]
Loading

Before merge

  • Resolve merge risk (P1) - Current-main blobs could not be independently read because the partial clone's promisor fetch failed while GitHub DNS was unavailable; the supplied base-change map is the available current-main context.
  • Resolve merge risk (P1) - This bug-fix branch has a production net increase of 50 lines; the added compact-view state and canonical-renderer routing are behaviorally necessary, but the implementation should remain consolidated rather than growing a parallel sharing path.
  • Complete next step (P2) - No repair job is appropriate: prior findings are addressed and the remaining work is normal exact-head CI completion plus any maintainer review of the current-main context gap.
Agent review details

Security

None.

PR surface

Source +50, Tests +208, Other 0. Total +258 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 5 186 136 +50
Tests 2 209 1 +208
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 2 0
Total 8 397 139 +258

Review metrics

Metric Value Why it matters
Production versus test delta production +186/-136 (net +50); tests +209/-1; baseline +2/-2 The production increase implements compact-menu state and shared-renderer routing; tests cover the mobile layout and preserved draft/member behavior.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #132019
Summary: This PR is the explicitly linked candidate fix for the reported mobile session-menu behavior.

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
    Keep one canonical sharing renderer and mutation owner; after exact-head CI succeeds, merge the compact presentation rather than adding another mobile-specific sharing implementation.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one canonical sharing renderer and mutation owner; after exact-head CI succeeds, merge the compact presentation rather than adding another mobile-specific sharing implementation.

Do we have a high-confidence way to reproduce the issue?

No independent current-main reproduction was run: the linked report provides a 390×844 Mock Gateway path and the PR supplies captures, but this read-only review did not execute code and current-main blobs were unavailable locally.

Is this the best way to solve the issue?

Yes. The compact view reuses the established sharing renderer, callbacks, and authorization owner instead of creating a second mobile mutation flow; direct current-main blob comparison remains unavailable.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 740f54e8ede8.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored UI PR is exempt from the external-contributor proof gate; its body reports 390×844 screenshots and browser coverage, though the media could not be independently retrieved while GitHub DNS was unavailable.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is not_applicable.
  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This is a bounded Control UI usability repair with limited blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored UI PR is exempt from the external-contributor proof gate; its body reports 390×844 screenshots and browser coverage, though the media could not be independently retrieved while GitHub DNS was unavailable.

Evidence

What I checked:

  • Compact routing preserves the owner boundary: The header creates one sharing-props object using the existing load and mutation callbacks, retains the standalone control for desktop and non-managers, and supplies that same object to the compact menu. (ui/src/pages/chat/chat-pane-header.ts:184, d5b36bbe7390)
  • Compact menu reuses canonical sharing behavior: The menu opens sharing as a compact view, resets its view on show/hide, and delegates visibility/member selections to the existing sharing selector instead of implementing another mutation path. (ui/src/pages/chat/components/chat-header-session-menu.ts:123, d5b36bbe7390)
  • Authorization remains at the sharing owner: The existing sharing owner verifies the current manageable session and operator scopes before loading or mutating visibility/members; the PR calls those callbacks unchanged. (ui/src/pages/chat/chat-pane-sharing.ts:78, d5b36bbe7390)
  • Prior blockers are covered at the changed boundary: The new browser test checks 34px compact rows, destructive icon styling, a capped scrollable 30-member drilldown, and the preserved non-manager draft marker; the component test exercises the compact sharing selection path. (ui/src/e2e/mobile-chat-session-menu.e2e.test.ts:65, d5b36bbe7390)
  • Current-main context limitation: The supplied introduction evidence identifies these UI files as PR-introduced and no base-only UI changes; direct reads of fetched main SHA 740f54e failed because this partial clone attempted a promisor fetch while GitHub DNS was unavailable. (ui/src/pages/chat/components/chat-session-sharing.ts:74, 740f54e8ede8)
  • Feature-history routing: Local history associates the base copies of the reviewed chat-header, menu, and sharing modules with Peter Steinberger's commit; its broader auth-focused message makes exact feature ownership ambiguous. (ui/src/pages/chat/chat-pane-header.ts:1, cd0113889fb0)

Likely related people:

  • Peter Steinberger: Commit cd01138 locally records the base copies of all three reviewed chat-header/sharing modules, though its broader feature attribution is ambiguous. (role: adjacent owner; confidence: low; commits: cd0113889fb0; files: ui/src/pages/chat/chat-pane-header.ts, ui/src/pages/chat/components/chat-header-session-menu.ts, ui/src/pages/chat/components/chat-session-sharing.ts)

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-28T18:40:49.834Z sha eefcdd6 :: needs changes before merge. :: [P2] Preserve the draft-state indicator for non-managers | [P2] Preserve the high-volume member cap in the inline view | [P3] Give the draft-publish row the compact height
  • reviewed 2026-08-28T18:52:52.767Z sha 4506a90 :: needs changes before merge. :: [P2] Preserve the draft-state indicator for mobile members | [P2] Keep the sharing drilldown capped for large member lists | [P3] Make the draft-publish action use the compact row style
  • reviewed 2026-08-28T19:28:55.350Z sha 4506a90 :: found issues before merge. :: [P2] Preserve the mobile draft indicator for members | [P2] Keep large member lists capped in compact sharing | [P3] Style the compact draft-publish item as a menu row

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

The mobile row density is now substantially tighter: every rendered root action is fixed at 34px, and the full menu is roughly 90px shorter than the previous PR head at 390x844. The E2E check now asserts the actual rendered row boxes and total menu height, rather than only the CSS minimum.

Follow-up comparison

Theme Previous PR head Updated
Light Previous mobile More menu, light Shorter mobile More menu, light
Dark Previous mobile More menu, dark Shorter mobile More menu, dark

Validation:

  • OPENCLAW_CAPTURE_UI_PROOF=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/mobile-chat-session-menu.e2e.test.ts (2 passed)
  • node scripts/run-vitest.mjs ui/src/pages/chat/components/chat-header-session-menu.test.ts ui/src/pages/chat/components/chat-session-sharing.test.ts (27 passed)
  • node scripts/check-changed.mjs -- ui/src/e2e/mobile-chat-session-menu.e2e.test.ts ui/src/styles/chat/split-view.css
  • git diff --check

@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Aug 28, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 28, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Addressed every review item on the current head:

  • Kept the draft-state indicator visible for narrow non-manager sessions while leaving management actions in the sharing drilldown.
  • Applied the established 420px/60vh limit to compact sharing and covered a 30-member mobile list.
  • Applied the compact row class to the draft-publish action and verified its rendered 34px height.

The existing desktop sharing control and the approved mobile interaction design are unchanged. Exact-head CI passed.

@vyctorbrzezowski
vyctorbrzezowski merged commit a1e4e4e into main Aug 28, 2026
167 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the fix/mobile-session-more-menu branch August 28, 2026 21:31
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
* fix(ui): compact mobile session actions

* fix(ui): shorten mobile session menu rows

* fix(ui): preserve compact sharing states

* fix(ui): align compact publish label

* style(ui): format compact sharing tests

* fix(ui): cap compact sharing menu

* chore(ui): record compact menu startup baseline

* fix(ui): match sharing menu height contract
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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.

[Bug]: Mobile session More menu is oversized and splits visibility controls

1 participant