Skip to content

improve(ui): cap long session menus and search groups - #197653

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/dawn-prawn-2
Nov 12, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/dawn-prawn-2

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

With many shared groups, the Move to group submenu grew to the full window height, and finding one group meant scanning a long list. Its 1–9 key hints also crowded the check mark.

User Impact

User impact: Move to group stays at a compact height and scrolls. When there are more than eight groups, a search field at the top filters the list.

  • Same height: Move to group, Assign to…, and Add to section share one height cap: about ten rows, with half of the next row showing so the list clearly scrolls. Assign to… was taller before, at 420 px.
  • Search: Desktop search uses the same always-visible field as Assign to…. The phone sheet keeps its existing single search control. Typing on a row goes into the field. Each opening starts unfiltered. If nothing matches, the menu says “No groups match your search.” and still offers the commands.
  • Commands stay reachable: Remove from group / Move back to groups and New group now sit below a divider, so they no longer read as groups.
  • No number hints: The 1–9 group shortcuts are removed. Typing now searches instead.
  • Sticky search edge: On scroll, rows now slide under the search divider instead of showing as fragments above or below it. This applies to Assign to… as well.

No change to short group lists beyond the divider and the removed number hints.

Why This Change Was Made

The group list is a flat list, and shared groups have no owner, so it cannot be split into “mine” and “everyone’s”. A height cap and the existing search pattern are enough for long lists. Search only appears once the list scrolls, so small workspaces keep a plain menu.

Evidence

Screenshots are from the bundled Control UI with a mocked Gateway at 1280×800, using fixture groups and people. “Before” is main at 945efbb.

Move to group, 29 groups

Before After
Move to group, before Move to group, after

Search, the no-match state in dark theme, Assign to…, and the short list are in the screenshot comment.

  • pnpm tsgo:ui, oxlint, oxfmt, stylelint, and pnpm ui:i18n:verify: pass.
  • UI unit tests for the session menu, the Solid menu host, sidebar session feedback, and the chat header session menu: 84 tests pass. One new test covers search, the empty state, selection while filtered, and the reset on reopen.
  • Mocked Gateway E2E: 10 files, 67 tests pass. They cover groups, group return, new group, group identity, operator scopes, the sidebar, the mobile sidebar menu, owner assignment, personal sections, and chat header lineage. The session ownership E2E (19 tests) also passes, including the sharing directory scroll.

Maintainer verification

The published correction fixes compact-menu query retention, a duplicated phone search field, and focused desktop rows covering the sticky search while scrolling. All menu entry paths share the existing preparation owner. The phone keeps its own search field; desktop search covers the scroll gutters and focused-row outline.

Passed 92 focused tests, three browser interaction cases, desktop/phone production-UI flows, UI typechecking, scoped lint/format and the test-line guard. Independent review of the final correction found no actionable P0–P2 findings. Browser scenarios use synthetic Gateway data.

Inspected current desktop and phone screenshots. Earlier author evidence is retained above; it is not a claim that the maintainer reran every historical suite.

The final CI run passed its functional and security checks. The sole underlying failure is the approved CSS-size exception: +424 raw bytes and +56 gzip bytes; startup/route JavaScript and request counts did not grow. The size failure is recorded as waived, not as a passing check.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 12, 2026 08:59
Move to group now scrolls at a shared height with Assign to and Add to
section, and long group lists get a search field. The numbered key hints
are gone and the Remove/New group commands sit below a divider.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: bf889a1e-01c3-445e-ad5a-f41be1d96336
@clawsweeper

clawsweeper Bot commented Nov 12, 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.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Screenshots

Bundled Control UI with a mocked Gateway, 1280×800, fixture groups and people. "Before" is main at 945efbb; "After" is this PR.

Move to group, 29 groups

Before After
Move to group, before Move to group, after

Searching, and no match (dark)

Typed "pr" No match
Move to group, filtered by pr Move to group, no match, dark theme

Assign to…, same height cap

Before After
Assign to, before Assign to, after

Short group list (no search)

Before After
Short group list, before Short group list, after

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR caps session list submenus, adds search for long group lists, and removes numbered group shortcuts.

Example: Open Move to group with 29 groups at 1280×800.

  • Before: The submenu fills nearly the entire window and requires scanning.
  • After: The submenu scrolls within a 366 px cap, and typing “pr” filters the groups.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful and visually demonstrated, with concrete mobile integration defects and patch-caused validation failures.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Eight inspected screenshots exercise the bundled Control UI with synthetic Gateway data at 1280×800 and show the changed group and assignment layouts, filtering, empty state, and short-list behavior; this is appropriate visual proof under the scoped UI workflow.
Patch quality 🦪 silver shellfish (2/6) 4 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Large group lists occupy excessive screen height and make finding a destination slow.
Reason: The inspected desktop before/after captures show a useful improvement using existing UI primitives; maintainer authorship establishes direction, including the explicit shortcut tradeoff.

Merge readiness

⛔ Needs changes before merge - 5 items remain

Keep this PR open: the desktop improvement is useful, but mobile search ownership, compact query reset, and two patch-caused CI failures need correction.

Priority: P2
Reviewed head: 01b2a59be0d83bbde7dd1ea9c61027f66c233733

Before merge

  • Use one search owner in the mobile group sheet (P2) - With more than eight groups, this content entry also reaches the mobile header through view.compact("group"). chat-header-session-menu-mobile.tsx already renders its own search toggle and query field, and its entries() appends non-group content after the group rows. The result is a second search field below the groups, with two independent filters applied in sequence. For example, entering “Research” in the added field and “Docs” in the existing field hides both groups; clearing the existing field still leaves the first filter active. Integrate the existing mobile search owner rather than rendering a competing field, preserving its Unicode matching contract.
  • Reset group search when compact navigation enters the group view (P2) - The reset is attached only to onBeforeShow, which Menu invokes for child submenus. Compact entries explicitly have no children; SessionMenuContent instead handles compact:open-group by changing compactView. With nine groups, search for “Docs”, choose Back, and reopen Move to group: groupQuery still contains “Docs”, so the list remains filtered despite the stated reset-on-opening behavior. Reset through the existing compact navigation entry path as well.
  • Update the assignment browser contract for the new height (P2) - Changing Assign to… from 420 px to 366 px leaves session-people-search.browser.test.ts:92 asserting maxHeight: "420px". Exact-head Chromium and WebKit annotations show this failure, which also fails the aggregate gate. Update the affected consumer test to the intended shared cap while retaining its scrolling and keyboard assertions.
  • Bring the added CSS within the enforced growth allowance (P2) - The exact-head performance comparison reports total CSS raw increasing from 1,705,772 to 1,706,104 bytes. Because the base already exceeds its fixed ceiling, only 64 bytes of variance are allowed; this PR adds 332 bytes and fails control-ui-performance. Reduce or consolidate the added rules to meet the existing budget. The documented exception on the earlier search PR does not authorize this additional growth.
  • Explain or restore the original intent of Mobile group search - fix(ui): match mobile group searches across NFC and NFD forms #191945: The existing mobile page owns group filtering and normalizes canonically equivalent Unicode strings without changing stored group names.

Findings

  • [P2] Use one search owner in the mobile group sheet — ui/src/components/session-menu-view.tsx:283-285
  • [P2] Reset group search when compact navigation enters the group view — ui/src/components/session-menu-view.tsx:169-174
  • [P2] Update the assignment browser contract for the new height — ui/src/styles/sidebar-menus.css:41-44

Provenance

Tests

  • Missing end-to-end proof: A red-on-base execution of the added regression is not recorded.
Agent review details

How this fits together

The shared session-menu renderer turns session state and group names into desktop submenu entries and compact views consumed by sidebar and chat-header menus; existing action owners dispatch selections.

flowchart TD
  A[Session state and groups] --> B[Shared session menu entries]
  B --> C[Desktop native menus]
  B --> D[Compact sidebar menu]
  B --> E[Mobile header page]
  C --> F[Session action owner]
  D --> F
  E --> F
Loading

Technical review

Best possible solution:

Keep the shared height cap and desktop search, integrate the existing mobile search owner, reset compact searches on entry, and repair the affected tests and CSS budget.

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

The supplied screenshots establish the original tall-menu behavior; source tracing establishes the introduced mobile and compact paths, and exact-head CI annotations establish the validation failures.

Is this the best way to solve the issue?

Reusing HeaderSearch and the existing menu renderer is appropriate, but the shared change must account for the mobile page's existing search and compact navigation lifecycle.

Full review comments:

  • [P2] Use one search owner in the mobile group sheet — ui/src/components/session-menu-view.tsx:283-285
    With more than eight groups, this content entry also reaches the mobile header through view.compact("group"). chat-header-session-menu-mobile.tsx already renders its own search toggle and query field, and its entries() appends non-group content after the group rows. The result is a second search field below the groups, with two independent filters applied in sequence. For example, entering “Research” in the added field and “Docs” in the existing field hides both groups; clearing the existing field still leaves the first filter active. Integrate the existing mobile search owner rather than rendering a competing field, preserving its Unicode matching contract.
    Confidence: 0.99
  • [P2] Reset group search when compact navigation enters the group view — ui/src/components/session-menu-view.tsx:169-174
    The reset is attached only to onBeforeShow, which Menu invokes for child submenus. Compact entries explicitly have no children; SessionMenuContent instead handles compact:open-group by changing compactView. With nine groups, search for “Docs”, choose Back, and reopen Move to group: groupQuery still contains “Docs”, so the list remains filtered despite the stated reset-on-opening behavior. Reset through the existing compact navigation entry path as well.
    Confidence: 0.98
  • [P2] Update the assignment browser contract for the new height — ui/src/styles/sidebar-menus.css:41-44
    Changing Assign to… from 420 px to 366 px leaves session-people-search.browser.test.ts:92 asserting maxHeight: "420px". Exact-head Chromium and WebKit annotations show this failure, which also fails the aggregate gate. Update the affected consumer test to the intended shared cap while retaining its scrolling and keyboard assertions.
    Confidence: 1
  • [P2] Bring the added CSS within the enforced growth allowance — ui/src/styles/sidebar-menus.css:13-16
    The exact-head performance comparison reports total CSS raw increasing from 1,705,772 to 1,706,104 bytes. Because the base already exceeds its fixed ceiling, only 64 bytes of variance are allowed; this PR adds 332 bytes and fails control-ui-performance. Reduce or consolidate the added rules to meet the existing budget. The documented exception on the earlier search PR does not authorize this additional growth.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7c36f1a9d92c.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/components/session-menu.test.ts src/components/session-menu-solid.test.tsx src/pages/chat/components/chat-header-session-menu-mobile.test.tsx
  • pnpm --dir ui test src/components/session-people-search.browser.test.ts --project=chromium
  • OPENCLAW_UI_WEBKIT=1 pnpm --dir ui test src/components/session-people-search.browser.test.ts --project=webkit
  • pnpm tsgo:ui
  • pnpm lint:ui:styles

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit dc61fee adds ui/src/components/session-menu-view.tsx:190 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dc61feec89a7; files: ui/src/components/session-menu-view.tsx)

PR surface

Source +62, Tests +29. Total +91 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 94 32 +62
Tests 2 44 15 +29
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 138 47 +91

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded menu usability improvement with recoverable mobile search defects and focused CI repairs.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 12, 2026, 4:17 AM ET / 09:17 UTC.

@vyctorbrzezowski

vyctorbrzezowski commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Maintainer verification caught and repaired three interaction defects: reopening the compact group picker retained the previous query; the phone sheet received a second search field; and a focused desktop row could cover the sticky search field while scrolling.

All entry paths now use the same submenu preparation. The phone keeps its existing search owner, and desktop rows and focus outlines stay below the sticky search. The approved menu height and structure are preserved.

Passed: 92 focused tests, three browser interaction cases, production-UI group search/selection on desktop and phone, UI typechecking, scoped lint/format, and the test-line guard. Independent final review found no actionable P0–P2 issues. These captures use the production UI and synthetic Gateway data.

Desktop group picker after correction

Phone group picker with one search field

@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 12, 2026 16:19
@vyctorbrzezowski
vyctorbrzezowski merged commit d3ce53d into main Nov 12, 2026
101 of 104 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/dawn-prawn-2 branch November 12, 2026 16:26
@vyctorbrzezowski

vyctorbrzezowski commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Merged via squash with the approved CSS-size exception. Functional and security checks passed; the remaining size gate is recorded as waived, not passed.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
Bound long session menus and keep group search usable across desktop, compact and phone surfaces. Reopening resets the query, phone keeps its single search field, and focused rows scroll beneath the sticky desktop search.

Co-authored-by: vyctorbrzezowski <[email protected]>
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants