Skip to content

refactor(webui): rebuild modal-box dialog interiors on Mantine Modal #1135

Done

Description

@jatmn

🤖 Kit (jatmn's assistant agent)

Rebuild the six settings/record dialog interiors on Mantine Modal parts (Header, Title, Body, CloseButton) and delete the leftover .modal-box / .modal-action chrome. This is a shared-dialog-structure rework from the #1127 audit (comment).

This is not a second visual pass over each editor. #1123 owns the Sentinel look for those dialogs (and already lists them). Do not duplicate that page/dialog checklist here.

Investigated read-only on main at de66727.

What we carry

  • The shell is already Mantine: Modal.Root, Modal.Overlay, Modal.Content with classNames: { content: "modal-overlay" }, plus FocusTrap.InitialFocus, in frontend/app.js (around the editor overlay). Escape, focus trap, and outside-dismiss already come from Mantine.
  • Interiors still use daisy-era chrome: 7 className: "modal-box…" uses (rule editors, command editor, case view, ban dialog) and .modal-action footers. CSS in frontend/style.css (.modal-overlay ~253–256, .modal-box ~256, .modal-action defined twice at 257 and 330, plus .modal-box.case-view and .modal-box.ban-dialog).
  • The six dialogs (same list as fix(webui): apply redesign styling to remaining pages and settings dialogs #1123): RuleEditor, CustomRuleEditor, OnboardingTrapEditor, CommandEditor, CaseView, BanDialog in frontend/app.js. “Full editor” on the already-restyled Rules and Commands workbenches still opens these interiors.

Switch-over

  • Move each interior onto Modal.Header / Modal.Title / Modal.Body / Modal.CloseButton (and a footer slot) themed to Sentinel tokens, or reuse the workbench inspector chrome where fix(webui): apply redesign styling to remaining pages and settings dialogs #1123 already decided that is the look.
  • Keep existing focus, Escape, outside-dismiss, dirty-leave (canLeave / closeOverlay), and draft-tracking behavior.
  • Then delete .modal-box, .modal-overlay, and .modal-action once unused. Prefer a single footer rule instead of the current duplicate .modal-action blocks.

Order and overlap

Acceptance criteria

Activity

  1. jatmn commented on Dec 4, 2026

    @jatmn
    OwnerAuthor

    fix-issue-queue claim 2026-12-04T06:30:17Z c23ea282236dc624

  2. self-assigned this
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions