Repository navigation
feat(webui): rebuild Settings as one-setting rows with search - #3553
Merged
Merged
Conversation
Settings now lays every tab out as sections of one-setting rows: label and optional description on the start side, the control on the inline end, stacked below a 38 rem panel width through a container query. Advanced settings sit one drill-down level in (glass material, advanced sampling, the non-Sampling live groups, server details), with Back returning focus to the drill row. A search above the tabs filters rows across all tabs in English and Korean and by internal name, from an index the static tabs render from plus the last-read /settings schema, and moves focus to the chosen row's control. Browser-local settings (appearance, request defaults, next-run profile) save on choice with no Save button, and an out-of-range value stays on screen as not saved. Live server values keep draft, Apply and conflict refresh, with a pending count above the level switch. Profile CLI and import or export open in Dialogs, and resets use the shared confirmation. Settings copy moves to Run and Stop terms. The contract, settings.md and the user guides record the rows, search and the two saving exceptions. The shell floor no longer waits two frames before measuring. Refs #3524
Moving rows into drill-down levels and adding search left four paths that misbehaved: - Search on a tab that never reads /settings (Appearance) found no live or startup rows, because the index only holds the last recorded read. A search with a Ready model and no record now reads the schema once. - Enter picked results in rank order while the list groups by tab, so Enter could open a setting other than the one shown first. Results now sort by tab, then label matches, then index order. - Apply with an invalid draft on a closed level returned with no message. It now says how many values need fixing, and the drill row that opens the level names the count. - Choosing a row that needs a Ready model while none is Ready left focus on the body for up to 240 frames, then moved it to the tab even after the person had clicked or typed elsewhere. The fallback is now immediate for that case, and any pointer or key input cancels the wait. The field also drops aria-controls when no results list is rendered. Settings unit tests (121), typecheck, lint, the i18n drift test and the Chromium settings spec pass; the new tests fail with the fixes reverted. Bundle regenerated. Refs #3524
With save on choice, every valid profile edit publishes a new profile, and the effect that clears typed text on a profile change ran after the form's own save too. A valid edit in one field therefore erased another field's out-of-range text and its "Not saved" notice, against the contract that such a value stays on screen as not saved. The form now skips that reset after its own save; a scope switch, import or reset still clears it. docs/webui/settings.md now states the search order (by tab, label matches first within a tab) and the one-off schema read a search makes when no tab has read it yet. Settings unit tests (122), typecheck, lint and the Chromium settings spec pass; the new profile test fails with the fix reverted. Bundle regenerated. Refs #3524
Member
Author
Implementation Review SummaryIntent
Findings Addressed
Remaining Items
Verification
|
A drill-down level reset only through the tab strip, so leaving Requests by a link or hash change and coming back reopened Advanced sampling. The screen now drops the level whenever the active tab changes, by any route; a search pick still opens its level because it sets the target tab first. Refs #3524
Member
Author
|
Security and performance review of the Settings rebuild at 7297f93. No CRITICAL or HIGH findings, so no fixes were committed. Verified clean:
Open, not fixed (below the auto-fix threshold):
Verification: typecheck, lint, settings vitest (123/123) and the Chromium settings spec (11/11) pass. |
Apply now collects parsed values and parse errors in null-prototype records, so a server setting named `__proto__` stays an own key of the PATCH body and of the invalid count instead of dropping out silently. The settings search normalizes each index entry once and caches it, because server help text has no length cap and was re-normalized on every keystroke. Both were LOW findings from the security pass on the PR. Refs #3524
The fallback test asserted after a fixed 80 ms, which a loaded full-suite run missed once (focus was still on the route heading). It now polls for up to 20 such waits for the tab to take focus; the full unit suite then passed 836/836 three times in a row. Refs #3524
Bring in the Chat workspace restructure (#3552) and the Helm chart publishing work (#3554) so the Settings rebuild for #3524 stays mergeable. - Icons: the union of both sides, `forward` and `back` from Settings plus `add`, `parameters` and `privacy` from Chat; the icon count test now expects 30. - Docs: design-system.md lists all 30 glyphs and keeps the Settings note on the re-exported `Icon`; both user guides keep the Settings rows and search paragraph and take Chat's wording that the history and privacy dialog opens from the shield button in Chat's header. - Strings: the fixture merged cleanly to 1040 entries with no key edited on both sides, so `StringCatalog.strings.maxItems` in docs/webui/api.yaml rises from 1024 to 2048; the generated DTO has no drift. - Bundled assets were regenerated with scripts/webui/build_bundle.py rather than hand-merged. Validated with typecheck, lint, the unit suite (843 tests), the theme and agents checks, the bundle verify, the WebUI contract check, and the Chromium settings, chat and shell Playwright specs (39 passed).
inureyes
marked this pull request as ready for review
November 29, 2026 00:41
inureyes
added a commit
that referenced
this pull request
Nov 29, 2026
Brings in the Chat workspace (#3552), Settings rows and search (#3553), the Helm chart and GHCR publishing work, and the other main commits since the branch point. All source files merged without conflicts. The string fixture ends at 1050 entries: the union of both sides, minus six Settings and Chat keys that main deleted and Activity never touched; every key whose copy differs was changed on one side only, and that side's copy is kept. Only the generated src/webui/assets bundle conflicted, so it was regenerated from the merged sources with scripts/webui/build_bundle.py rather than hand-merged. Validated with webui typecheck, lint, unit (859 tests), the theme and agents checks, build_bundle.py --verify, and make verify-webui-contract.
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3524. Part of #3526.
Settings moves to the new grammar. Each tab is now a set of sections made of one-setting rows. Advanced settings sit one drill-down level in, and a search filters rows across every tab.
.settings-screen, not a viewport breakpoint. Playwright checks both sides of it at 390, 1024 and 1440.SettingsSectionputs a section's own on/off switch in its header (toggle). No section has a real on/off today, so the slot is unit-tested but unused. I did not invent a synthetic switch over shared server state.min_p,repetition_penalty,seed), the DRY, Diffusion, Template and Other live groups, and Server details (geometry, values under internal names, read-only reasons)./settingsschema; if no read exists yet, the screen makes one non-loading read while a query is typed.ux-contract.mdrecords both exceptions.settings.mdand both user guides describe the new layout.Dialog, and the three resets useuseConfirm. Settings strings move to Run and Stop terms (decision 5), for example "Next run · browser profile" and "다음 실행 · 브라우저 프로필".Shared edits outside
features/settings/:icons.tsxadds theforwardandbackchevrons, andprimitives.tsxre-exportsIcon. The design-system icon list is updated to match.maxItemscap, soapi.yamlis unchanged.shell.spec.ts: I removed the two-frame wait inshellGeometry.mainbaseline or on this branch. I measured every frame after the hash change, across 16 runs and with 8x CPU throttling.Bundle: initial JS gzip is 316,231 B (+760, from the two glyphs) and total is 476,094 B (+5,281).
Validation:
webui/:typecheck,lint,check:theme-selectors,check:themesandcheck:agentspass.unitpasses 836/836 and the Chromiumbrowsersuite 140/140.build_bundle.py --verifyandmake verify-webui-contractpass.browser:all,make verify-webui-rust,make verify-webui-integration-fakeor the served-CSP spec. They are left for the central gate.mlxcel-server -m qwen3-0.6b-4bit --webui --settings --props, with two Chromium contexts. Results:Changes during review
The review found four HIGH issues, all fixed:
From the security pass, Apply now collects values in null-prototype records, and search text is normalized once per entry.