From 00c52872fac81995a985383175575ea4a428704c Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 29 Jul 2026 20:25:34 -0600 Subject: [PATCH] ui: migrate the extension pages and Configs; five components they needed Phase 2, part 1. Three files leave Semantic UI (baseline 75 -> 72), and the components they needed join the library and the gallery: Header Semantic's shape (as/icon/subheader/dividing). 47 files use
, and the level now picks the size, so the type scale stays a scale instead of each call site choosing a font size. Message gains an icon and a dismiss button. ActionInput input and button sharing one outline, for . Loading centered loader with a caption, replacing the + wrapper div in 19 places. Modal becomes compound - Modal.Header/.Content/.Actions, plus Semantic's open, closeIcon, and size names - because 34 files are written against that shape. test-utils mounts MantineProvider with ThemeProvider's exact configuration: migrated components render Mantine internals and every one of their test files would otherwise need its own provider. One Semantic bleed found and fixed: semantic.min.css sets `h1,h2,h3,h4,h5 { font-family: Lato }` and loads after Mantine's element rule, so headings ignored the theme's body face. Only visible in amber, where the body is mono and the headings were not. A class-level restatement outranks it; the rule comes out when Semantic does. Verified: 925 jest tests, clean production build, and a night-mode audit of every painted pixel in the gallery (red-only, one known false positive). The Configs backup and restore flow was exercised against the real API. --- app/src/components/ThemeSamplePage.js | 64 +++++- app/src/components/admin/Configs.js | 211 +++++++++--------- .../admin/ExtensionInstallSuggestion.js | 29 +-- app/src/components/admin/ExtensionPage.js | 116 +++++----- app/src/components/ui/Feedback.tsx | 45 +++- app/src/components/ui/Inputs.tsx | 21 ++ app/src/components/ui/Overlays.tsx | 65 +++++- app/src/components/ui/Surfaces.tsx | 39 +++- app/src/components/ui/ui.css | 136 +++++++++++ app/src/components/ui/ui.test.js | 74 ++++++ app/src/semantic-baseline.json | 3 - app/src/test-utils.js | 20 +- 12 files changed, 621 insertions(+), 202 deletions(-) diff --git a/app/src/components/ThemeSamplePage.js b/app/src/components/ThemeSamplePage.js index bd33d0b2..f418da63 100644 --- a/app/src/components/ThemeSamplePage.js +++ b/app/src/components/ThemeSamplePage.js @@ -1,15 +1,19 @@ import React, {useContext, useState} from 'react'; import {ThemeContext} from '../contexts/contexts'; import { + ActionInput, Button, Card, CardGroup, Confirm, + Header, Icon, IconButton, Label, Loader, + Loading, Message, + Modal, Panel, Placeholder, Progress, @@ -52,10 +56,12 @@ const Row = ({children}) =>
; export function ThemeSamplePage() { - const {theme, setTheme} = useContext(ThemeContext); + const {theme} = useContext(ThemeContext); const [confirmOpen, setConfirmOpen] = useState(false); const [comments, setComments] = useState(true); const [hotspot, setHotspot] = useState(true); + const [dismissed, setDismissed] = useState(false); + const [modalOpen, setModalOpen] = useState(false); return

Component gallery

@@ -74,6 +80,20 @@ export function ThemeSamplePage() { +
+ +
Page title (h1)
+
Section (h2)
+
With an icon and a divider (h3)
+
Subsection (h4)
+
Smallest (h5)
+

+ The level picks the size, so the type scale stays a scale: call sites + choose a heading level for the document outline, never a font size. +

+
+
+
@@ -130,6 +150,12 @@ export function ThemeSamplePage() { HTTP 403 from the remote server after 3 attempts. Retry, or check the URL. + setDismissed(true)}> + {dismissed + ? 'Dismissed — it would be gone in the real interface.' + : 'A nudge the user can clear. Only offer dismiss when clearing it is harmless.'} +
@@ -200,6 +226,14 @@ export function ThemeSamplePage() {