Repository navigation
Replace the WebUI component stack with Mantine - #1096
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Important
Changing the Analytics metric prompts users to discard unsaved changes. The shared stylesheet also strips the base styling from the migrated Mantine buttons.
Approach The staged Mantine migration fits the existing WebUI architecture and keeps the API controllers and accessible SVG charts in place.
Reviewed changes I reviewed the Analytics filter and charts, Automod and Administration controls, shared appearance, and static asset build.
- Analytics. The enforcement chart can show one metric using the existing summary data. Membership and the heatmap stay visible.
- Automod and Administration. Mantine provides the cards, badges, editor sections, and selected actions.
- Theme and packaging. Both entry points share the appearance provider, component styles, and bundled dependency notices.
The locked npm build and 91 targeted checks passed, including the Firefox Analytics layout test. I reproduced both findings in Chromium with fixture data.
gpt-6.2-sol | 𝕏
There was a problem hiding this comment.
✅ No new issues found. Both findings from the previous review are fixed.
Reviewed changes I reviewed the follow-up commit ab7b09e.
- Excluded the Analytics filter from draft tracking. Changing the enforcement metric now lets users leave Analytics without a discard prompt.
- Restored Mantine button styling. The shared stylesheet loads the reset before the component rules, so the button variants retain their padding, backgrounds, and borders. Mantine stylesheet import order
- Added a Firefox regression. It changes the enforcement metric, navigates to Automod, and checks both page actions’ computed styles. The regression and the existing Analytics layout test passed in frontend CI.
gpt-6.2-sol | 𝕏
There was a problem hiding this comment.
ℹ️ One minor styling regression is noted inline.
Approach Completing the migration through the shared provider keeps the API and draft controllers in place.
Reviewed changes I reviewed commit 94d9df0 against the previously reviewed head, ab7b09e.
- Migrated remaining workspace and Administration controls. Mantine now renders the shared buttons, badges, panels, and tables, with app CSS handling control dimensions and states.
- Replaced editor dialogs and field wrappers. Mantine handles dialog focus and dismissal, and native controls use explicit label associations.
- Removed daisyUI and Headless UI from the build. Both entry pages retain their asset names, shared runtime, and dependency notices.
- Extended regression coverage. The locked build and focused local checks passed, including the Firefox editor and narrow-screen case tests. The combined local run reached its two-minute limit. Frontend CI passed at the reviewed head.
gpt-6.2-sol | 𝕏
There was a problem hiding this comment.
Important
The restored accent color makes links in light-mode template subtext fall below the 4.5:1 contrast target.
Reviewed changes
I reviewed 546d310 against the previously reviewed head, 94d9df0.
- Restored template preview link color. Markdown links use the shared accent color and retain their underline.
- Added light and dark contrast coverage. The test checks the link color against the preview background in both themes. All 29 tests in
scripts/frontend-contrast-test.mjspassed. A Chromium fixture using the production parser and styles reproduced the subtext regression.
gpt-6.2-sol | 𝕏
There was a problem hiding this comment.
✅ No new issues found. Template preview subtext and links meet the 4.5:1 contrast target in both themes.
Reviewed changes I reviewed 11bc964 against the previous review at 546d310.
- Restored subtext contrast. Discord
-#lines use the muted text color at full opacity. Links inside them keep their accent color and reach 4.96:1 in light mode and 7.28:1 in dark mode. - Extended regression coverage. All 29 contrast tests and 44 focused Markdown preview tests passed, including the new case for a link inside a
-#line. The mounted preview tests verify the rendered HTML using jsdom.
gpt-6.2-sol | 𝕏

What changed
Replace the WebUI component stack with Mantine across the server workspace and owner Administration. Remove daisyUI and Headless UI from the dependency graph and from both published entry pages.
Verification
Reviewed head
94d9df0657b5202991b61868767ab9401150d595.Summary by Sourcery
Replace the WebUI’s former component libraries with Mantine while preserving its existing appearance and workspace behavior.
New Features:
Enhancements:
Build:
Documentation:
Tests:
Chores:
BEGIN_COMMIT_OVERRIDE
feat(webui): replace the WebUI component stack with Mantine (#1096)
END_COMMIT_OVERRIDE