Skip to content

improve(ui): search within Settings pages - #104675

Merged
shakkernerd merged 13 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/settings-search-blocks
Jul 12, 2026
Merged

shakkernerd merged 13 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/settings-search-blocks

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

Related: #103138

What Problem This Solves

The Settings sidebar search only matches top-level pages and group headings. Users still need to know which page owns a specific setting, so queries such as avatar, MCP, CPU, or push notifications cannot lead them to the relevant block.

Why This Change Was Made

This PR extends the existing search with block metadata for Quick Settings and virtual sections, plus the existing recursive schema-field matcher for advanced configuration. Direct page matches stay first, nested results are grouped under the same localized page label used by the sidebar, and selecting a result opens and scrolls to the matching block.

One- and two-character queries use word-prefix matching instead of arbitrary substrings, so cp matches CPU without also matching MCP or ACP. Queries of three or more characters retain substring matching.

User Impact

Users can search for the setting they remember instead of first guessing its page. Results preserve their page context, and deep links open the correct Quick Settings card, virtual section, or schema section.

Evidence

  • Focused Control UI tests: 71 passed.
  • Control UI TypeScript check: node scripts/run-tsgo.mjs -p tsconfig.ui.json --incremental false.
  • Mocked-Gateway sidebar E2E: 5 passed, including nested results, direct navigation, active-state behavior, and the short-query cp regression.
  • git diff --check origin/main...HEAD.

Proposed deep-search results

Gateway-related pages and matching blocks:

Proposed Gateway search results

MCP page plus the matching General block:

Proposed MCP search results

Avatar search routed to the Personal block:

Proposed avatar search results

This is AI-assisted work. The implementation was manually reviewed against the current Settings navigation, config schema search, route behavior, and focused automated proof.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Jul 11, 2026
@clawsweeper

clawsweeper Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed July 12, 2026, 7:43 AM ET / 11:43 UTC.

Summary
The PR extends Settings sidebar search to nested quick-setting cards, virtual sections, and recursive schema fields, with short-query prefix matching and route/hash deep links to matching blocks.

PR surface: Source +461, Tests +231. Total +692 across 18 files.

Reproducibility: not applicable. This PR adds a deeper Settings search capability rather than reporting broken established behavior; the intended interaction is covered by mocked-Gateway E2E but not independently reproduced in a real setup.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: vector/embedding metadata: ui/src/components/config-form.meta.ts, vector/embedding metadata: ui/src/components/config-form.render.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦐 gold shrimp
Patch quality: 🦐 gold shrimp
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Replace hardcoded nested labels and search terms with localized or schema-owned metadata.
  • Resolve current-main conflicts and refresh focused validation on the resulting head.
  • Attach redacted real-browser proof of result selection through active destination state.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: Three screenshots directly show nested result rendering, but they do not show the changed click-through behavior; add a redacted browser recording or linked Playwright artifact showing selection, URL/search/hash, destination scroll, and active state, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.

Risk before merge

  • [P1] GitHub reports merge conflicts, and conflict resolution spans Settings modules that materially changed on current main; the resolved head needs a fresh whole-surface review rather than a blind rebase.
  • [P1] The static screenshots do not prove the real-browser click, route/hash update, target scroll, and active-result behavior, even though mocked E2E coverage exists.

Maintainer options:

  1. Decide the mitigation before merge
    Keep the single shared matcher and router-backed deep-link design, but derive nested labels and searchable copy from localized/schema-owned metadata, adapt it to current main, and provide real-browser proof of selection through active destination state.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P2] The localization defect is mechanically repairable, but the maintainer label and MEMBER authorship require explicit maintainer handling; the author must also resolve conflicts and add real-browser proof.

Security
Cleared: The diff is confined to Control UI source, styles, and tests, with no dependency, workflow, permission, secret, package-resolution, or downloaded-code changes.

Review findings

  • [P2] Localize the nested search metadata — ui/src/pages/config/settings-search.ts:27-29
Review details

Best possible solution:

Keep the single shared matcher and router-backed deep-link design, but derive nested labels and searchable copy from localized/schema-owned metadata, adapt it to current main, and provide real-browser proof of selection through active destination state.

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

Not applicable: this PR adds a deeper Settings search capability rather than reporting broken established behavior; the intended interaction is covered by mocked-Gateway E2E but not independently reproduced in a real setup.

Is this the best way to solve the issue?

Mostly yes at the architecture level: reusing the recursive config matcher and router state is preferable to a parallel search system, but the English-only static metadata is not the narrowest maintainable owner boundary.

Full review comments:

  • [P2] Localize the nested search metadata — ui/src/pages/config/settings-search.ts:27-29
    Move these user-visible labels and searchable terms behind the Control UI i18n or existing schema/owner metadata instead of hardcoding English. The current Settings search and underlying cards are localized, but this table leaves nested results such as “Gateway Host” and “Push notifications” in English and prevents equivalent translated queries from finding them. This remains unresolved from the prior review because the head SHA has not changed.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1389d7ee88c5.

Label changes

Label justifications:

  • P2: This is a normal-priority Control UI discoverability feature with a concrete localization defect and limited blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Three screenshots directly show nested result rendering, but they do not show the changed click-through behavior; add a redacted browser recording or linked Playwright artifact showing selection, URL/search/hash, destination scroll, and active state, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Three screenshots directly show nested result rendering, but they do not show the changed click-through behavior; add a redacted browser recording or linked Playwright artifact showing selection, URL/search/hash, destination scroll, and active state, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +461, Tests +231. Total +692 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 15 876 415 +461
Tests 3 234 3 +231
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 1110 418 +692

What I checked:

  • Unresolved prior finding: The static nested-result table still hardcodes English labels and searchText, so translated Settings UI labels and equivalent non-English queries do not share the localized search contract. (ui/src/pages/config/settings-search.ts:27, 64100f905aa5)
  • Re-review continuity: The current PR head is the same SHA as the previous review, so the previously reported localization blocker has not been changed or fixed. (64100f905aa5)
  • Existing localized owner metadata: Current main renders quick-setting and notification labels through translation keys, providing canonical localized display copy that the proposed search metadata should reuse or mirror through i18n. (ui/src/pages/config/quick.ts:981, 1389d7ee88c5)
  • Automated interaction coverage: The mocked-Gateway E2E clicks a nested result and verifies the destination path, hash, visible target, nested aria-current state, and inactive parent state. (ui/src/e2e/sidebar-customization.e2e.test.ts:215, 64100f905aa5)
  • Proof inspection: The Gateway, MCP, and Avatar screenshots visibly show grouped nested results, but no image shows clicking a result, URL/search/hash changes, destination scrolling, or active-state completion. (64100f905aa5)
  • Current-main integration state: GitHub reports the PR as dirty, and current main has materially changed several touched Settings and config-form modules since the PR base, requiring a refreshed whole-surface review after conflict resolution. (ui/src/pages/config/config-page.ts:1, 1389d7ee88c5)

Likely related people:

  • steipete: Authored the merged Settings sidebar search foundation and its localized navigation/search contract, making him the strongest feature-history routing candidate. (role: introduced behavior; confidence: high; commits: fe2486247b6f; files: ui/src/components/settings-sidebar.ts, ui/src/app-navigation.ts, ui/src/e2e/sidebar-customization.e2e.test.ts)
  • Vincent Koc: Current-main history attributes the latest localized Settings sidebar, navigation, config-page, and view refresh to this contributor, so they are relevant to adapting the branch after current-main drift. (role: recent area contributor; confidence: medium; commits: be900f21167d; files: ui/src/components/settings-sidebar.ts, ui/src/app-navigation.ts, ui/src/pages/config/config-page.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.
Review history (1 earlier review cycle)
  • reviewed 2026-07-11T20:23:41.848Z sha 64100f905aa5399a7c70b5d1e067ce270d50349a :: needs changes before merge. :: [P2] Localize the nested search metadata

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/settings-search-blocks branch from 5c2e104 to 64100f9 Compare July 11, 2026 20:13
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Jul 11, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Jul 11, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@shakkernerd
shakkernerd force-pushed the brzezowski/settings-search-blocks branch from 64100f9 to ecb9f22 Compare July 12, 2026 20:46
@shakkernerd
shakkernerd merged commit b640718 into openclaw:main Jul 12, 2026
19 checks passed
@shakkernerd

Copy link
Copy Markdown
Contributor

Merged using rebase.

What changed after review:

  • Preserved precise nested Settings results while removing duplicate page/block matches.
  • Made schema search recursive across arrays and dynamic maps, localized short-query matching, and contained stale or failed config/schema loads.
  • Added precise Settings deep-link and browser coverage without changing config, protocol, or persistence contracts.

Verification:

  • Rebased and refreshed onto current origin/main before pushing.
  • AWS Crabbox aws/cbx_05015ea63064: focused UI tests (run_e25e64056816), changed gate (run_2f2d813373e0), and production build (run_5d6fc0849e9b) passed.
  • Browser proof run_2228323184c4: 6/6 scenarios passed, including schema search to the visible Browser settings target.
  • Auto-review: clean after all accepted findings were resolved.
  • GitHub checks: no required checks configured.

Landed on main:

  • Final landed SHA: b640718204b1628dcc9ed0b8d652c729c82cb46b; range c25cd32c287a4f9aa772cba533823146a324dcae...b640718204b1628dcc9ed0b8d652c729c82cb46b.

Thanks @vyctorbrzezowski!

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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants