From 0a8c7635827a5812b970dc2269409e22158b27de Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Wed, 11 Nov 2026 00:26:25 -0500 Subject: [PATCH] fix(ui): finish focus rings and InfoTip names InfoTip subjects: theme gallery cards (theme name), profile role badge (Role), security overview (Extensions, Notifications), Services empty state, proxy panel, AI fallback toggle, base-domain row, RequiresDocker. Focus rings: add the shared ring to text inputs/selects that only changed border colour (forms, settings, servers, applications, security, migration wizard, db tuner, datagrid, design-system, file manager); make the slider thumb ring visible. Clipped rings: inset rings for tabs, sk-seg, settings nav, theme cards, select/dropdown items, sk-dtable wrap, datagrid cells, resource lists. --- frontend/src/components/RequiresDocker.jsx | 2 +- .../src/components/__tests__/iconButtonNames.test.mjs | 6 ++++++ frontend/src/components/proxy/ProxyStackPanel.jsx | 2 +- frontend/src/components/security/OverviewTab.jsx | 4 ++-- .../src/components/settings/AIManagementSettings.jsx | 2 +- frontend/src/components/settings/ProfileTab.jsx | 2 +- frontend/src/components/settings/SiteSettingsTab.jsx | 2 +- frontend/src/components/settings/ThemeGallery.jsx | 2 +- frontend/src/pages/Services.jsx | 2 +- frontend/src/styles/_mixins.scss | 1 + frontend/src/styles/components/_controls.scss | 2 +- frontend/src/styles/components/_datagrid.scss | 5 ++++- frontend/src/styles/components/_design-system.scss | 9 ++++++++- frontend/src/styles/components/_forms.scss | 1 + frontend/src/styles/components/_tabs.scss | 2 +- frontend/src/styles/components/_ui.scss | 4 ++++ frontend/src/styles/pages/_applications.scss | 2 ++ frontend/src/styles/pages/_db-tuner.scss | 1 + frontend/src/styles/pages/_file-manager.scss | 1 + frontend/src/styles/pages/_migration-wizard.scss | 1 + frontend/src/styles/pages/_security.scss | 1 + frontend/src/styles/pages/_servers.scss | 3 +++ frontend/src/styles/pages/_settings.scss | 8 +++++++- 23 files changed, 51 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/RequiresDocker.jsx b/frontend/src/components/RequiresDocker.jsx index 3f0f4548..3dea46ae 100644 --- a/frontend/src/components/RequiresDocker.jsx +++ b/frontend/src/components/RequiresDocker.jsx @@ -58,7 +58,7 @@ const RequiresDocker = ({ children, what = 'This page' }) => {

{t('app.requiresDocker.checkedAutomatically', 'Re-checked automatically.')}{' '} {t('app.requiresDocker.settingsSystem', 'Settings → System')} - {' '} + {' '} {t('app.requiresDocker.serverkitReChecksForDockerAutomatically', 'ServerKit re-checks for Docker automatically. Monitoring, domains, certificates, cron and DNS keep working without it. See')}{' '} {t('app.requiresDocker.settingsSystem', 'Settings → System')} {t('app.requiresDocker.forThisInstallSProfile', 'for this install\'s profile.')} diff --git a/frontend/src/components/__tests__/iconButtonNames.test.mjs b/frontend/src/components/__tests__/iconButtonNames.test.mjs index 9b0f1bec..6762f053 100644 --- a/frontend/src/components/__tests__/iconButtonNames.test.mjs +++ b/frontend/src/components/__tests__/iconButtonNames.test.mjs @@ -20,6 +20,12 @@ test('InfoTip subject beats title beats nearby text; label overrides all; plain assert.equal(infoTipName({ title: { type: 'span' }, nearby: ' ' }, t), 'More info'); }); +test('theme gallery cards name the tip after the theme, not its description', () => { + assert.equal(infoTipName({ subject: 'Apamate', nearby: 'Warm dark palette' }, t), 'More info about Apamate'); + const gallery = readFileSync(new URL('../settings/ThemeGallery.jsx', import.meta.url), 'utf8'); + assert.match(gallery, //); +}); + test('nearbyText reads the label printed before the button, trimmed', () => { const el = { previousSibling: { textContent: ' ', previousSibling: { textContent: ' Cert expiry ' } } }; assert.equal(nearbyText(el), 'Cert expiry'); diff --git a/frontend/src/components/proxy/ProxyStackPanel.jsx b/frontend/src/components/proxy/ProxyStackPanel.jsx index 3b8bfd79..54b44843 100644 --- a/frontend/src/components/proxy/ProxyStackPanel.jsx +++ b/frontend/src/components/proxy/ProxyStackPanel.jsx @@ -203,7 +203,7 @@ const ProxyStackPanel = ({ serverId }) => {

- {t('app.proxyStackPanel.hostNginxIsTheDefaultAnd', 'Host Nginx is the default and is recommended for PHP/WordPress. You can opt into a Dockerized Traefik or Caddy proxy deployed as a Compose stack.')} + {t('app.proxyStackPanel.hostNginxIsTheDefaultAnd', 'Host Nginx is the default and is recommended for PHP/WordPress. You can opt into a Dockerized Traefik or Caddy proxy deployed as a Compose stack.')}
{audit && audit.mismatch_count > 0 && ( diff --git a/frontend/src/components/security/OverviewTab.jsx b/frontend/src/components/security/OverviewTab.jsx index b5b75d42..d48011eb 100644 --- a/frontend/src/components/security/OverviewTab.jsx +++ b/frontend/src/components/security/OverviewTab.jsx @@ -208,14 +208,14 @@ const OverviewTab = ({ status, onRefresh, onNavigateTab }) => {