Repository navigation
refactor(webui): switch form controls to Mantine inputs - #1172
Conversation
There was a problem hiding this comment.
Important
Disabled switches can show a second checkbox over their label. Fix the shared switch styling before merging.
Approach — Using Mantine behind the shared field wrappers keeps draft tracking, native refs, and busy-state handling in the application.
Reviewed changes
- Workspace forms. Migrated settings, moderation, and list controls, including the native date filters.
- Administration and appearance. Migrated release policy, alert-channel, and theme fields.
- Shared styling and coverage. Mapped Mantine inputs to the existing theme tokens, preserved the custom server picker, and checked the production CSS bundle and Firefox control sizing.
The WebUI build and 117 focused tests passed across workspace behavior, administration, contrast, and packaging. A Chromium fixture with Mantine 9.8.3 and the compiled PR CSS confirmed the rendering and interaction regressions below and inline. The full workspace test run reached the shell’s 120-second limit.
Non-blocking
- Long entries lose their resize handle. Mantine defaults
Textareatoresize: none, so users pasting a long Known spam sample into the five-row field can no longer expand it to inspect the message. Setresize: "vertical"for the shared textarea. Known spam sample · Mantine textarea styles - Search and numeric fields lose native pointer shortcuts. In Chromium, the migrated rule search loses its clear button and the Onboarding Trap join window loses its increment and decrement arrows. Preserve those affordances in the shared input styling. Rule search · Join window · Mantine input styles
gpt-6.2-sol | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed 976d00d, the follow-up to the review of b8c682b.
- Fixed disabled switch rendering. Kept the native input transparent and applied disabled opacity to the visible track.
- Added contrast-suite coverage. Asserted the opacity rules for the native input and track.
Verified in Chromium with the built stylesheet and real Mantine switches. The native input stayed transparent for checked and unchecked disabled switches in both light and dark themes. The WebUI build and all 44 contrast and packaging tests passed.
gpt-6.2-sol | 𝕏
976d00d to
fb06467
Compare
Linked issuesChecked at commit fb06467 #1132 refactor(webui): switch form controls to Mantine inputs · 6 of 6 met
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the rebase from 976d00d to fb06467 onto the UI-scale changes in #1171.
- Scaled label spacing. Carried the
.25remlabel gap into the shared Mantine field rule so it follows the browser’s root text size. - Preserved density and picker coverage. Carried forward the updated typography and server-icon expectations alongside the Mantine switch and custom server-picker assertions.
The WebUI build and 99 focused test cases passed, including headless Firefox layout checks in both themes, enlarged-text layout, administration state, contrast, and packaging.
gpt-6.2-sol | 𝕏

Closes #1132
Part of #1127, #1151 (Phase 2).
Summary
Checkbox,Switch,TextInput, andTextareaalongsideNativeSelectfromtools/webui/mantine.jsand importInlineInput.layer.css,Checkbox.layer.css, andSwitch.layer.cssintools/webui/style.css(retainingCombobox.layer.cssbecauseNativeSelectrendersComboboxChevron).Input,TextInput,Textarea,NativeSelect,Checkbox, andSwitchonto the shared Sentinel tokens (--control-height,--compact-height,--target-min,--radius-field,--input,--input-border,--accent,--accent-text,--panel2,--muted,--bad) with zero hardcoded hex literals infrontend/appearance.js.type="date"list filters without adding@mantine/dates), selects (includingAppearance), textareas, switches, and checkboxes acrossfrontend/app.js,frontend/appearance.js,frontend/administration.js, andfrontend/list-controls.jsto Mantine components while preservinguseDraftControl,noAutofill,FieldId,BusyContext, ref forwarding, andServerPicker's custom listbox (feat(webui): larger server icons and an expandable sidebar showing server names #1122)..input,.select,.textarea,.toggle, and.checkboxclasses and first-party skins fromfrontend/controls.cssandfrontend/style.css.scripts/package-webui-test.mjs,scripts/frontend-contrast-test.mjs,scripts/frontend-state-test.mjs, andscripts/administration-state-test.mjswith regression coverage for Mantine form controls and removal of retired daisy form classes.Validation
bash scripts/ci-preflight.sh --only frontend— passed (webui build + audit, ESLint + selftest + flake checks,frontend-state-test.mjs631/631 including real headless FirefoxdensityProbein Light & Dark at 1280×800 / 1920×1080 / 700×800,frontend-contrast-test.mjs39/39,frontend-warmup-test.mjs13/13,frontend-sr-only-test.mjs1/1,package-webui-test.mjs4/4,administration-state-test.mjs42/42).5c6a07d:npm run build --prefix tools/webui+frontend-contrast-test.mjs+package-webui-test.mjs+administration-state-test.mjs+eslint-web-selftest.sh+git diff --check— all passed.b8c682bc86773c557c3f7b6929da3f326916c5e8Summary by Sourcery
Standardize frontend form controls on Mantine while preserving existing form behavior and the custom server picker.
Enhancements:
Build:
Tests: