Repository navigation
refactor(webui): rebuild modal-box dialog interiors on Mantine Modal - #1178
Conversation
There was a problem hiding this comment.
Important
The shared shell introduces two accessibility regressions. The case body becomes unreadable at enlarged text on a phone-sized viewport, and the modal exposes the entire body as its accessible description.
Approach The shared Mantine shell fits the six dialogs and keeps dismissal on the existing overlay handler. The layout needs to keep content reachable when the header and footer wrap.
Reviewed changes I reviewed all five changed files and ran the WebUI build, focused modal and case tests, contrast checks, and packaging checks. I also compared the case layout on the PR and base builds in Firefox.
- Dialog structure The three rule editors, command editor, case view, and ban dialog use shared Mantine slots and a common action footer.
- Styling and packaging Sentinel tokens theme the modal slots, and the package checks cover the removal of the old modal classes.
- Interaction coverage The updated state tests exercise the dialog structure, dismissal, and dirty-leave prompts.
gpt-6.2-sol | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
I reviewed 4f6edbf and verified both accessibility fixes from the prior review.
- Moved scrolling to the whole dialog on short viewports. In Firefox at 360×640 and 667×375 with a 32px default font, I could Tab through the case details and footer actions and back to Close.
- Kept the dialog title as the accessible name. The shared body now uses a plain container, so Mantine omits
aria-describedbyfor the structured content. - Added regression coverage for both fixes. The WebUI build and focused dialog state, Firefox reflow, contrast, and packaging checks passed. The Firefox checks used local API fixtures.
gpt-6.2-sol | 𝕏
4f6edbf to
204d5f9
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
I compared 204d5f9 with the previously reviewed 4f6edbf. The WebUI build and all 49 packaging and contrast checks passed.
- Rebased onto the Sentinel card migration. The inline rule heading uses
sf-card-title, the shared focus rule retains.table-scroll, and the package checks cover both Paper and Modal styles. - Preserved both dialog accessibility fixes. Short viewports still scroll the full dialog, and structured bodies stay out of
aria-describedby.
gpt-6.2-sol | 𝕏

Closes #1135
Summary
RuleEditor,CustomRuleEditor,OnboardingTrapEditor,CommandEditor,CaseView,BanDialog) infrontend/app.jsonto MantineModalcompound parts (Modal.Header,Modal.Title,Modal.CloseButton,Modal.Body) plus a shared pinned.sf-modal-footerviaModalDialogShellandmodalSizeFor..modal-overlay,.modal-box, and duplicate.modal-actionrules fromfrontend/style.cssand replaces them with a single Sentinel-themed Mantine modal rule set that covers portal heading typography, 24px close-button target sizing,:focus-visibleoutlines, Light/Dark contrast, and narrow/enlarged-text wrapping.FocusTrap.InitialFocus, Escape, outside-dismiss,canLeave/closeOverlaydirty-leave checks, draft tracking, busy-state disabling, and save/delete/cancel flows.scripts/package-webui-test.mjs,scripts/frontend-contrast-test.mjs, andscripts/frontend-state-test.mjswith regression coverage for Mantine Modal structure, sizing, contrast, and close/dirty-leave semantics across all six dialogs.Validation
bba4928e07b4cff3e02bd469ddb31a6073145b62bash scripts/ci-preflight.sh --only frontend— PASStools/webuiinstall, audit (0vulnerabilities), and buildtools/eslintinstall, audit (0vulnerabilities), selftest, flake test (10/10)scripts/frontend-state-test.mjs(636/636, JSDOM + real headless Firefox in Light/Dark, narrow360×640at 32px root font, andCaseViewlayout)scripts/frontend-contrast-test.mjs(44/44)scripts/frontend-warmup-test.mjs(13/13)scripts/frontend-sr-only-test.mjs(1/1)scripts/package-webui-test.mjs(4/4)scripts/administration-state-test.mjs(42/42)git diff --check— PASSdist/frontend/bundle. Rust checks are covered by hosted CI.Summary by Sourcery
Standardize the six settings and record dialogs on Mantine Modal components with a shared, accessible layout.
Enhancements:
Tests: