Skip to content

improve(ui): show the search field at the top of pickers and menus - #197540

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/crisp-crab-3
Nov 12, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/crisp-crab-3

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

Related: #189573

What Problem This Solves

Searchable pickers and menus opened with a title and a search icon on the right, so finding someone or something in a long list (people, projects, agents, devices) took an extra click before typing, and the title repeated what the trigger already said.

User Impact

User impact: the search field is always visible at the top of a searchable card, and the crowded pickers open ready to type.

  • Where it shows: Assign to…, the Projects and Where pickers on the new session page, the project list in the command palette's new session settings, the Sessions filters popover, Jump to file in the diff panel, the session menu's member list, and every searchable select picker (owners, agents, models).
  • Focus on open: the Projects and Where pickers, the palette's project list, searchable select pickers and Jump to file open with the field focused when a hardware keyboard is likely. Touch-only devices and phone sheets leave the on-screen keyboard down until the field is tapped.
  • Assign to… keeps focus on the first row, so Enter still assigns to you, and typing goes straight into the field, including when the submenu was opened by hover.
  • Typing on a row moves into the field instead of row typeahead. Escape clears a query first and closes on the next press. A clear button appears once there is a query.
  • Phone sheets keep their title row and show the field under it.

Not changed: the session sharing popover keeps its own Permissions heading with a search toggle, and the composer's skills menu keeps its header toggle. Both are section headers inside a larger menu rather than a card's only header.

Why This Change Was Made

#189573 moved each card's search behind a header title and a search icon. This keeps that PR's shared header component as the one owner for card search and changes what it renders: a leading search icon, the field, and a clear button. The collapsed state went away, and with it the per-host "searching" signals, the toggle's keyboard routing in the shared menu, and the special cases for a title that swaps with a field.

Hosts line the icon and text up with their own rows through two CSS custom properties on the shared row, so the icon sits on the rows' icon or avatar column and the text on their label column.

Accepted edge: a touch-only device that later gets a hardware keyboard starts focusing the field after the first hardware key press, the same rule the shortcut hints already use.

Evidence

  • The production-bundle project-selection E2E also passed; the current project-search screenshot was inspected. Capture instrumentation was temporary and restored without changing the committed test.

  • Maintainer-authorized budget exception: built CSS grows by 334 bytes against a 64-byte tolerance, exceeding the effective limit by 270 bytes. This is PR-attributable growth, not an inherited failure. All other CI jobs passed; the aggregate failure comes from this budget check.

  • Maintainer review found that a searchable list could keep keyboard focus while losing its active-option accessibility relationship. The list now keeps that relationship when search is visible, without changing the layout or adding state or lookups.

  • The existing browser helper now checks the actually focused element. It failed on the incoming code; after the correction, all 60 relevant Chromium tests and the same 60 WebKit tests passed. UI typecheck, formatting, whitespace, and pre-commit checks also passed.

  • Independent review of the complete corrected diff found no actionable P0–P2 issues. It did not execute tests or inspect unchanged files; the maintainer separately reviewed the focus and menu owners.

Screenshots are from the mocked Control UI (pnpm dev:ui:mock) at 1280×860 and 390×844, 2× scale, with fixture people and agents added to the mock only for the capture (not committed). "Before" is main at 55cac59.

Assign to…

Before After
Assign to…, before Assign to…, after

Projects picker, new session page

Before After
Projects picker, before Projects picker, after

The other surfaces (Where picker, Sessions filters, agent picker on desktop and as a phone sheet, the palette's project list, a typed query, dark theme) are in the screenshot gallery comment.

Original author validation before the accessibility correction:

  • pnpm tsgo:ui, pnpm lint:ui:styles, pnpm ui:i18n:verify, pnpm check:control-ui-controllers, oxlint and format on the changed files: pass.
  • UI unit tests for the touched owners and all of ui/src/pages/new-session: 73 files, 819 tests pass.
  • Chromium browser tests for the select picker, agent select, decision model picker, people search, sidebar session filter, placement controls, and the shared menu contracts: pass.
  • Mocked Gateway E2E, 14 files covering owner assignment, the command palette's session settings, the Sessions filters, and the new session page's Projects and Where pickers: pass.
  • Local autoreview (Codex, gpt-6.1-sol, priority P1) on b06aeb5b8c..dd3a0bc257 (published as 758c21078d with the same tree): scoped-clean, no actionable findings. It reviewed the patch only and did not run tests.

Remaining gaps: the full application E2E scenarios were not rerun on WebKit; the 60 component/browser cases above cover the corrected picker behavior. The real-Gateway model picker E2E and two interaction benchmark scenario scripts were updated by the author but were not run locally. CI has completed with only the documented CSS budget failure and its dependent aggregate.

Requested by @vyctorbrzezowski.

Work sessions

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

Worked on by

roboclaw-bot and others added 2 commits November 12, 2026 05:01
Cards that can be searched showed a title with a search icon on the right, so
searching took an extra click and the field replaced the title once open.
The field is now always visible at the top with a leading search icon and a
clear button once there is a query. The repeated card titles are gone; the
trigger or parent row already names the card.

The Projects and Where pickers, the palette's project list, searchable select
pickers and Jump to file open with the field focused when a hardware keyboard
is likely. Touch-only devices and phone sheets leave the keyboard down until
the field is tapped. Assign to keeps row focus and still searches on typing.
Escape clears a query first and closes on the next press.

Reworks #189573.

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 37924412-21cd-4fdf-97e7-1a050716866e
@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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: L labels Nov 12, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Screenshots

Mocked Control UI, light theme unless noted. "Before" is main at 55cac59; "After" is this PR. Fixture people and agents were added to the mock only for the capture.

Assign to…

Before After
Assign to…, before Assign to…, after

Projects picker, new session page

Before After
Projects picker, new session page, before Projects picker, new session page, after

Where picker, new session page

Before After
Where picker, new session page, before Where picker, new session page, after

Sessions filters

Before After
Sessions filters, before Sessions filters, after

Agent picker (searchable select picker)

Before After
Agent picker (searchable select picker), before Agent picker (searchable select picker), after

Agent picker as a phone sheet, 390 px

Before After
Agent picker as a phone sheet, 390 px, before Agent picker as a phone sheet, 390 px, after

Project list in the command palette's new session settings

Before After
Project list in the command palette's new session settings, before Project list in the command palette's new session settings, after

After only

Typing from a hovered Assign to… submenu Projects picker with a query Dark theme
Assign to with a query, after Projects picker with a query, after Assign to in the dark theme, 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: 🦐 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. 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 makes search fields permanently visible at the top of searchable pickers and menus.

Example: Open Assign to… to find Atlas.

  • Before: The submenu shows a title and search toggle.
  • After: The submenu immediately shows Search people and agents… above the choices.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Clear visual evidence and a coherent shared-owner change support the direction, but two focused corrections remain.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the shared search header through Assign to… and Projects in the mocked Control UI and directly demonstrate the visible-field change; reported browser and E2E checks provide supporting interaction coverage.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Search is less discoverable behind an icon, and repeated titles occupy space above long choice lists.
Reason: The maintainer-authored direction authorizes this presentation change, and inspected screenshots demonstrate its intended benefit.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this PR open for the maintainer-approved UI change; phone-sheet accessibility and a diff-caused CSS budget failure need correction before merge.

Priority: P2
Reviewed head: 758c21078db5420eb5df45bc8665118416faedd9

Before merge

  • Preserve the focused phone list's active descendant (P2) - Open a searchable agent or language picker as a phone sheet and navigate with arrow keys. This branch focuses list while searching is true, but the list's aria-activedescendant at lines 618–619 is emitted only when searching is false. The highlighted option is consequently advertised only by the unfocused input, and retained-focus navigation never focuses an option. Screen readers lose the active-choice relationship. Keep the active descendant on the focused list while leaving the search field visible and unfocused.
  • Reduce the added CSS to satisfy the existing budget (P2) - The current-head control-ui-performance job measures 1,704,920 raw CSS bytes against 1,704,586 on the base. Because the base already exceeds the fixed ceiling, only 64 bytes of build variance are allowed; this PR adds 334 bytes and fails the required lane and aggregate CI gate. Consolidate the touched search-row styles to remove at least the excess growth rather than raising the budget or treating the entire failure as inherited.

Findings

  • [P2] Preserve the focused phone list's active descendant — ui/src/components/select-picker-view.tsx:205-207
  • [P2] Reduce the added CSS to satisfy the existing budget — ui/src/components/solid/overlay.css:740-745

Tests

  • Missing end-to-end proof: The focused phone list's active-descendant contract lacks a regression assertion; no red-on-base/green-on-head run for that repair is supplied.
Agent review details

How this fits together

Control UI picker and menu hosts supply queries and catalogs to the shared search header, while existing owners retain filtering, selection, and mutations.

flowchart TD
  User[User input] --> Overlay[Existing overlay owner]
  Overlay --> Header[Shared search header]
  Header --> Query[Existing query owners]
  Query --> Choices[Filtered choices]
  Choices --> Selection[Existing selection actions]
Loading

Technical review

Best possible solution:

Keep the shared visible search row, preserve active-descendant reporting on the focused phone list, and reduce the touched CSS enough to satisfy the existing budget.

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

The supplied screenshots establish the presentation change, source establishes the focused-list accessibility mismatch, and current-head CI records the CSS failure; no target code was executed during this review.

Is this the best way to solve the issue?

Reusing HeaderSearch and removing collapsed-search state is appropriate, but field visibility must no longer determine whether the focused list exposes its highlighted option.

Full review comments:

  • [P2] Preserve the focused phone list's active descendant — ui/src/components/select-picker-view.tsx:205-207
    Open a searchable agent or language picker as a phone sheet and navigate with arrow keys. This branch focuses list while searching is true, but the list's aria-activedescendant at lines 618–619 is emitted only when searching is false. The highlighted option is consequently advertised only by the unfocused input, and retained-focus navigation never focuses an option. Screen readers lose the active-choice relationship. Keep the active descendant on the focused list while leaving the search field visible and unfocused.
    Confidence: 0.97
  • [P2] Reduce the added CSS to satisfy the existing budget — ui/src/components/solid/overlay.css:740-745
    The current-head control-ui-performance job measures 1,704,920 raw CSS bytes against 1,704,586 on the base. Because the base already exceeds the fixed ceiling, only 64 bytes of build variance are allowed; this PR adds 334 bytes and fails the required lane and aggregate CI gate. Consolidate the touched search-row styles to remove at least the excess growth rather than raising the budget or treating the entire failure as inherited.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 00ac159ff5d6.

Provenance checked

  • Collapsed search headers and menu typing changes intended behavior with a stated reason (fc1833d: Reduce visual weight for short lists while preserving immediate typing and menu keyboard ownership.)
  • Automatic project search changes intended behavior with a stated reason (f33f9c1: Expose search for larger repository inventories and preserve repository-identity matching.)
  • Phone-sheet focus keeps the original intent (fcf922b: Keep the on-screen keyboard closed until search is explicitly tapped.)
  • Lazy Where-picker focus keeps the original intent (87a94c4: Defer picker bodies while preserving focus when their lazy content arrives.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test --run src/components/select-picker.browser.test.tsx src/components/agent-select-opening.browser.test.ts
  • pnpm tsgo:ui
  • pnpm lint:ui:styles
  • pnpm ui:check-performance:base
  • Verify at 390 px that phone-sheet opening leaves the search unfocused and the focused list retains a valid active descendant through arrow navigation.

What I checked:

  • Pinned introduction and current main: Reviewed the merge-base-to-head patch at 758c210; fetched main retains the previous header-search and picker behavior. (ui/src/components/solid/header-search.tsx:139, 758c21078db5)
  • Phone focus and accessibility mismatch: Phone sheets focus the list while searching is true, but the list's aria-activedescendant remains conditional on searching being false; retained-focus navigation does not move focus to option rows. (ui/src/components/select-picker-view.tsx:205, 758c21078db5)
  • Attributed performance failure: The performance job reports base CSS at 1,704,586 raw bytes and head CSS at 1,704,920 bytes: growth of 334 bytes exceeds the 64-byte allowance when the base already exceeds its ceiling. Gzip grows by 48 bytes. The aggregate CI gate fails on this lane. (ui/src/components/solid/overlay.css:740, 758c21078db5)
  • Inspected visual proof: The four prepared screenshots directly show before/after Assign to… and Projects surfaces in the mocked Control UI, with the search field visible above retained choices. (758c21078db5)
  • Intent and keyboard history: improve(ui): move card search into the header #189573 intentionally introduced collapsed header search; its discussion documents preserving hovered assignment typing through menu-owned search registration. This PR explicitly revises the presentation while retaining that registration. (ui/src/components/menu-shortcuts.ts:45, fc1833d1f77e)
  • Policy and inspection limits: Read the root, UI, and scripts AGENTS.md files and applied the Solid, test-audit, and simplification guidance; no maintainer-notes directory exists. The installed Solid cheatsheet is unavailable, and full CI logs redirect to a blocked storage host; readable GitHub annotations establish the performance failure. The checkout remains clean. (AGENTS.md:1, 758c21078db5)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit fc1833d adds ui/src/components/solid/header-search.tsx:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fc1833d1f77e; files: ui/src/components/solid/header-search.tsx)

PR surface

Source -36, Tests -78, Other +8. Total -106 across 58 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 23 239 275 -36
Tests 32 76 154 -78
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 14 6 +8
Total 58 329 435 -106

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.

Review metrics

Metric Value Why it matters
Built CSS delta +334 B raw; +48 B gzip CI's base/head comparison attributes the raw CSS budget failure to growth beyond the permitted 64-byte build variance.

Labels

Label changes:

  • add P2: This is a useful UI improvement with a bounded phone-picker accessibility regression and a focused CSS budget repair.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a useful UI improvement with a bounded phone-picker accessibility regression and a focused CSS budget repair.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • 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, 12:22 AM ET / 05:22 UTC.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 12, 2026

@vyctorbrzezowski vyctorbrzezowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the search/focus changes and active-option correction. Verified 60 Chromium and 60 WebKit cases, UI types, and the production-bundle project-selection flow. Approved with the maintainer-authorized CSS budget exception documented in the PR body.

@vyctorbrzezowski
vyctorbrzezowski merged commit f9fec33 into main Nov 12, 2026
122 of 125 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/crisp-crab-3 branch November 12, 2026 06:48
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged as f9fec33. Verified the picker correction with 60 Chromium and 60 WebKit tests, UI typechecking, and the production-bundle project-selection flow. The documented CSS budget exception was approved by the maintainer; the design is preserved.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
…penclaw#197540)

Keep search visible at the top of searchable pickers and menus, preserving touch-first focus and keyboard behavior. Keep the active option exposed when the list retains focus.

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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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