ai-powered-conversational-intelligence

Settings Modal

How Settings opens, renders, and closes. See docs/functional-ui-audit.md §1 for the full investigation this document summarizes (including the one real bug found and fixed).

Implementation

frontend/src/components/layout/SettingsDialog.tsx, built on frontend/src/components/ui/dialog.tsx (a thin wrapper around @radix-ui/react-dialog). One instance in the whole app, owned by AppShell.tsx, opened only via the header’s UserMenu → “Settings” (see docs/navigation-and-actions.md for why this is the single owner of that action).

Overlay and layering

Interaction

Content

Renders the pre-existing HistorySettingsSection (Appearance/theme/ accent/application font/code-and-SQL font + live preview + reset/language — see docs/ui-design-system.md’s Typography section, per-database connection status + test/refresh actions, discovered-tables list, AI-insight and voice-mode toggles) inside the scrollable content region. No duplicate Theme/Logout/Profile controls exist here — those are owned exclusively by UserMenu.

Tests

frontend/src/components/layout/SettingsDialog.test.tsx — opens with a labeled dialog and a real backdrop; closes on Escape and restores focus to the trigger; closes via the close button and restores focus; moves focus into the dialog on open.

frontend/src/components/ui/dialog.test.tsx and frontend/src/components/layout/AppShell.test.tsx (both added 2026-09-19) — the opaque-backdrop/opaque-panel/single-instance regression coverage and the background-inert-while-open coverage described in docs/settings-modal-visual-bug.md.

Responsive behavior

Not restructured in this pass (no defect found) — max-w-lg with viewport-relative max-h already reflows correctly at tablet/mobile widths via Tailwind’s default responsive container behavior; a dedicated mobile full-screen variant was not built since the current settings surface (one scrolling list, no category navigation) doesn’t need one to stay usable at small widths.