From c43f9c3c1f6c83a69c4f1263b49160b881e2ea66 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Tue, 10 Nov 2026 12:16:52 -0500 Subject: [PATCH 1/4] fix(ui): use shaped skeletons for loading in settings, security and docker tabs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace plain "Loading…" text and tiny .loading-sm / .docker-loading lines with the shared EmptyState loading skeletons, and only show them on first load so refreshes keep the loaded content. - settings: Users, Invitations, Activity, MigrationHistory, ApiSettings (in-card skeletons, now with an error + Retry instead of an empty list), SecuritySettings, Notifications, System, Storage, AI settings/usage/management - security: Firewall, Events, IPLists, Integrity, SSHKeys, SecurityConfig, Audit - docker: Containers, Compose, Networks, Images, Volumes Removes the now-unused .docker-loading, .loading-sm and .audit-tab .loading-state rules and documents the loading rule in EmptyState. --- frontend/src/components/EmptyState.jsx | 6 +++ frontend/src/components/docker/ComposeTab.jsx | 7 +++- .../src/components/docker/ContainersTab.jsx | 7 +++- frontend/src/components/docker/ImagesTab.jsx | 7 +++- .../src/components/docker/NetworksTab.jsx | 7 +++- frontend/src/components/docker/VolumesTab.jsx | 7 +++- frontend/src/components/security/AuditTab.jsx | 9 ++-- .../src/components/security/EventsTab.jsx | 3 +- .../src/components/security/FirewallTab.jsx | 4 +- .../src/components/security/IPListsTab.jsx | 5 ++- .../src/components/security/IntegrityTab.jsx | 3 +- .../src/components/security/SSHKeysTab.jsx | 6 +-- .../components/security/SecurityConfigTab.jsx | 5 ++- .../settings/AIManagementSettings.jsx | 2 +- .../src/components/settings/AISettingsTab.jsx | 2 +- .../components/settings/AIUsageSettings.jsx | 4 +- .../src/components/settings/ActivityTab.jsx | 11 ++--- .../components/settings/ApiSettingsTab.jsx | 41 +++++++++++++++---- .../components/settings/InvitationsTab.jsx | 4 +- .../settings/MigrationHistoryTab.jsx | 7 +--- .../components/settings/NotificationsTab.jsx | 2 +- .../settings/SecuritySettingsTab.jsx | 3 +- .../src/components/settings/StorageTab.jsx | 2 +- .../src/components/settings/SystemTab.jsx | 4 +- frontend/src/components/settings/UsersTab.jsx | 5 ++- frontend/src/styles/components/_spinner.scss | 6 --- frontend/src/styles/pages/_docker.scss | 6 --- frontend/src/styles/pages/_security.scss | 13 ------ frontend/src/styles/pages/_settings.scss | 8 ++-- 29 files changed, 105 insertions(+), 91 deletions(-) diff --git a/frontend/src/components/EmptyState.jsx b/frontend/src/components/EmptyState.jsx index 48e423f0..1bb35034 100644 --- a/frontend/src/components/EmptyState.jsx +++ b/frontend/src/components/EmptyState.jsx @@ -3,6 +3,12 @@ import { PageSkeleton } from './PageSkeleton'; import { t } from '../i18n/t'; /** + * Loading rule: first load = EmptyState `loading` with a shaped + * `loadingVariant` (or Skeleton pieces in-card); refresh = keep the loaded + * content (SkeletonBoundary, or only skeleton while there is no data yet); + * failure = an error with retry (ErrorState), never an empty state or an + * endless skeleton. + * * `loadingVariant` names the shape of the page that is loading — see * PageSkeleton for the archetypes (table, feed, cards, detail, console, form, * chart, tree, split). It defaults to the generic `panel`, which is a safe diff --git a/frontend/src/components/docker/ComposeTab.jsx b/frontend/src/components/docker/ComposeTab.jsx index 47cb94af..cff6349a 100644 --- a/frontend/src/components/docker/ComposeTab.jsx +++ b/frontend/src/components/docker/ComposeTab.jsx @@ -111,6 +111,9 @@ const ComposeTab = ({ onStatsChange }) => { const loadSeq = useRef(0); const [loadError, setLoadError] = useState(null); + // A different server's rows must not linger as the "already loaded" list. + useEffect(() => { setProjects([]); }, [serverId]); + useEffect(() => { loadProjects(); }, [serverId]); // eslint-disable-line react-hooks/exhaustive-deps @@ -370,10 +373,10 @@ const ComposeTab = ({ onStatsChange }) => { applyPage: applyViewPageState, }); - if (loading) { + if (loading && projects.length === 0) { return (
-
{t('app.composeTab.loadingComposeProjects', 'Loading compose projects…')}
+
); } diff --git a/frontend/src/components/docker/ContainersTab.jsx b/frontend/src/components/docker/ContainersTab.jsx index ed14fd9f..2c36f0d5 100644 --- a/frontend/src/components/docker/ContainersTab.jsx +++ b/frontend/src/components/docker/ContainersTab.jsx @@ -231,6 +231,9 @@ const ContainersTab = ({ onStatsChange }) => { const loadSeq = useRef(0); const [loadError, setLoadError] = useState(null); + // A different server's rows must not linger as the "already loaded" list. + useEffect(() => { setContainers([]); }, [serverId]); + useEffect(() => { loadContainers(); }, [showAll, serverId]); // eslint-disable-line react-hooks/exhaustive-deps @@ -767,10 +770,10 @@ const ContainersTab = ({ onStatsChange }) => { applyPage: applyViewPageState, }); - if (loading) { + if (loading && containers.length === 0) { return (
-
{t('app.containersTab.loadingContainers', 'Loading containers…')}
+
); } diff --git a/frontend/src/components/docker/ImagesTab.jsx b/frontend/src/components/docker/ImagesTab.jsx index 754c746e..5fab4fb1 100644 --- a/frontend/src/components/docker/ImagesTab.jsx +++ b/frontend/src/components/docker/ImagesTab.jsx @@ -125,6 +125,9 @@ const ImagesTab = ({ onStatsChange }) => { const loadSeq = useRef(0); const [loadError, setLoadError] = useState(null); + // A different server's rows must not linger as the "already loaded" list. + useEffect(() => { setImages([]); }, [serverId]); + useEffect(() => { loadImages(); }, [serverId]); // eslint-disable-line react-hooks/exhaustive-deps @@ -308,10 +311,10 @@ const ImagesTab = ({ onStatsChange }) => { applyPage: applyViewPageState, }); - if (loading) { + if (loading && images.length === 0) { return (
-
{t('app.imagesTab.loadingImages', 'Loading images…')}
+
); } diff --git a/frontend/src/components/docker/NetworksTab.jsx b/frontend/src/components/docker/NetworksTab.jsx index 9bc83594..7b44c384 100644 --- a/frontend/src/components/docker/NetworksTab.jsx +++ b/frontend/src/components/docker/NetworksTab.jsx @@ -119,6 +119,9 @@ const NetworksTab = ({ onStatsChange }) => { const loadSeq = useRef(0); const [loadError, setLoadError] = useState(null); + // A different server's rows must not linger as the "already loaded" list. + useEffect(() => { setNetworks([]); }, [serverId]); + useEffect(() => { loadNetworks(); }, [serverId]); // eslint-disable-line react-hooks/exhaustive-deps @@ -292,10 +295,10 @@ const NetworksTab = ({ onStatsChange }) => { applyPage: applyViewPageState, }); - if (loading) { + if (loading && networks.length === 0) { return (
-
{t('app.networksTab.loadingNetworks', 'Loading networks…')}
+
); } diff --git a/frontend/src/components/docker/VolumesTab.jsx b/frontend/src/components/docker/VolumesTab.jsx index 60dad561..f013fec6 100644 --- a/frontend/src/components/docker/VolumesTab.jsx +++ b/frontend/src/components/docker/VolumesTab.jsx @@ -123,6 +123,9 @@ const VolumesTab = ({ onStatsChange }) => { const loadSeq = useRef(0); const [loadError, setLoadError] = useState(null); + // A different server's rows must not linger as the "already loaded" list. + useEffect(() => { setVolumes([]); }, [serverId]); + useEffect(() => { loadVolumes(); }, [serverId]); // eslint-disable-line react-hooks/exhaustive-deps @@ -288,10 +291,10 @@ const VolumesTab = ({ onStatsChange }) => { applyPage: applyViewPageState, }); - if (loading) { + if (loading && volumes.length === 0) { return (
-
{t('app.volumesTab.loadingVolumes', 'Loading volumes…')}
+
); } diff --git a/frontend/src/components/security/AuditTab.jsx b/frontend/src/components/security/AuditTab.jsx index bdbc4849..b0a65ce8 100644 --- a/frontend/src/components/security/AuditTab.jsx +++ b/frontend/src/components/security/AuditTab.jsx @@ -70,14 +70,11 @@ const AuditTab = () => { /> )} - {loading && ( -
-
-

{t('app.auditTab.runningSecurityAudit', 'Running security audit…')}

-
+ {loading && !audit && ( + )} - {audit && !loading && ( + {audit && (
{ {loading ? ( -
{t('common.loading', 'Loading…')}
+ ) : eventsError && events.length === 0 ? ( { [rules, chrome.cfg.filters, chrome.columns], ); - if (loading) { - return
{t('app.firewallTab.loadingFirewallStatus', 'Loading firewall status…')}
; + if (loading && !status) { + return ; } if (loadErrors.status && !status) { diff --git a/frontend/src/components/security/IPListsTab.jsx b/frontend/src/components/security/IPListsTab.jsx index a4b90d88..c2bf8554 100644 --- a/frontend/src/components/security/IPListsTab.jsx +++ b/frontend/src/components/security/IPListsTab.jsx @@ -3,6 +3,7 @@ import api from '../../services/api'; import { useToast } from '../../contexts/useToast.js'; import { useConfirm } from '@/hooks/useConfirm'; import Modal from '../Modal'; +import EmptyState from '@/components/EmptyState'; import ErrorState from '@/components/ErrorState'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; @@ -311,8 +312,8 @@ const IPListsTab = () => { ); }; - if (loading) { - return
{t('app.iPListsTab.loadingIpLists', 'Loading IP lists…')}
; + if (loading && !loaded) { + return ; } if (loadError && !loaded) { diff --git a/frontend/src/components/security/IntegrityTab.jsx b/frontend/src/components/security/IntegrityTab.jsx index a087c8e5..76c1f1e7 100644 --- a/frontend/src/components/security/IntegrityTab.jsx +++ b/frontend/src/components/security/IntegrityTab.jsx @@ -2,6 +2,7 @@ import { useCallback, useEffect, useMemo, useState } from 'react'; import api from '../../services/api'; import { Button } from '@/components/ui/button'; import { Switch } from '@/components/ui/switch'; +import EmptyState from '@/components/EmptyState'; import ErrorState from '@/components/ErrorState'; import { DataTable, DataTableFooter, ListToolbar } from '@/components/ds'; import { @@ -426,7 +427,7 @@ const IntegrityTab = () => { onRetry={load} /> ) : ( -
{t('common.loading', 'Loading…')}
+ ); } diff --git a/frontend/src/components/security/SSHKeysTab.jsx b/frontend/src/components/security/SSHKeysTab.jsx index 2d1e0b75..4b87d208 100644 --- a/frontend/src/components/security/SSHKeysTab.jsx +++ b/frontend/src/components/security/SSHKeysTab.jsx @@ -237,10 +237,8 @@ const SSHKeysTab = () => { )} - {loading ? ( - -
{t('common.loading', 'Loading…')}
-
+ {loading && keys.length === 0 ? ( + ) : loadError && keys.length === 0 ? ( { })); } - if (loading) { - return
{t('app.securityConfigTab.loadingSettings', 'Loading settings…')}
; + if (loading && !config) { + return ; } // Never render the form on a failed load: saving it would write the diff --git a/frontend/src/components/settings/AIManagementSettings.jsx b/frontend/src/components/settings/AIManagementSettings.jsx index de83619f..5cfe5c94 100644 --- a/frontend/src/components/settings/AIManagementSettings.jsx +++ b/frontend/src/components/settings/AIManagementSettings.jsx @@ -40,7 +40,7 @@ export default function AIManagementSettings({ connections, defaultId }) { catch (e) { setError(e.message); } finally { setBusy(false); } }; - if (!config) return
{error ? <>

{error}

: }
; + if (!config) return
{error ? <>

{error}

: }
; const profiles = [ ['utility', t('ai.management.utility', 'Utility'), t('ai.management.utilityHint', 'Economical model for summaries and structured extraction.')], ['standard', t('ai.management.standard', 'Standard'), t('ai.management.standardHint', 'Everyday questions and tool-assisted troubleshooting.')], diff --git a/frontend/src/components/settings/AISettingsTab.jsx b/frontend/src/components/settings/AISettingsTab.jsx index 281f5298..24353bfc 100644 --- a/frontend/src/components/settings/AISettingsTab.jsx +++ b/frontend/src/components/settings/AISettingsTab.jsx @@ -103,7 +103,7 @@ const AISettingsTab = () => { return

{t('app.aISettingsTab.adminAccessRequired', 'Admin access required.')}

; } if (loading) { - return ; + return ; } diff --git a/frontend/src/components/settings/AIUsageSettings.jsx b/frontend/src/components/settings/AIUsageSettings.jsx index 96ca8d34..bacfba59 100644 --- a/frontend/src/components/settings/AIUsageSettings.jsx +++ b/frontend/src/components/settings/AIUsageSettings.jsx @@ -79,8 +79,8 @@ export default function AIUsageSettings({ connections }) {
{error &&

{error}

} - {busy && } - {!busy && data?.totals && <> + {busy && !data && } + {data?.totals && <>
{t('ai.usage.cost', 'Known cost')}{money(data.totals.cost)}
{t('ai.usage.tokens', 'Tokens')}{formatNumber(data.totals.tokens)}
diff --git a/frontend/src/components/settings/ActivityTab.jsx b/frontend/src/components/settings/ActivityTab.jsx index 3f6160c1..b78bf317 100644 --- a/frontend/src/components/settings/ActivityTab.jsx +++ b/frontend/src/components/settings/ActivityTab.jsx @@ -126,7 +126,7 @@ const ActivityTab = () => { } if (loading) { - return
{t('app.activityTab.loadingActivity', 'Loading activity…')}
; + return
; } const maxCount = summary?.top_users?.length @@ -260,11 +260,8 @@ const ActivityTab = () => { )}
- {feedLoading ? ( -
-
- {t('app.activityTab.loadingLogs', 'Loading logs…')} -
+ {feedLoading && logs.length === 0 ? ( + ) : logsError && logs.length === 0 ? ( { table, so it keeps its own markup; only the pager is standardized onto the shared DataTableFooter (paged mode). Fetch logic and pagination state are unchanged. */} - {!feedLoading && logs.length > 0 && ( + {logs.length > 0 && ( ( +
+ {Array.from({ length: rows }, (_, i) => ( + + ))} +
+); + const ApiKeysSection = () => { const { t } = useTranslation(); const { confirm } = useConfirm(); const register = useSettingFocus(); const [keys, setKeys] = useState([]); const [loading, setLoading] = useState(true); + const [loadError, setLoadError] = useState(null); const [showModal, setShowModal] = useState(false); const [createdKey, setCreatedKey] = useState(null); @@ -114,9 +126,10 @@ const ApiKeysSection = () => { const loadKeys = () => { setLoading(true); + setLoadError(null); api.getApiKeys().then(data => { setKeys(data.api_keys || []); - }).catch(() => {}).finally(() => setLoading(false)); + }).catch(err => setLoadError(err)).finally(() => setLoading(false)); }; useEffect(() => { loadKeys(); }, []); @@ -319,8 +332,10 @@ const ApiKeysSection = () => { /> - {loading ? ( -
{t('common.loading', 'Loading…')}
+ {loading && keys.length === 0 ? ( + + ) : loadError && keys.length === 0 ? ( + ) : keys.length === 0 ? ( { const register = useSettingFocus(); const [subscriptions, setSubscriptions] = useState([]); const [loading, setLoading] = useState(true); + const [loadError, setLoadError] = useState(null); const [showModal, setShowModal] = useState(false); const [editingSub, setEditingSub] = useState(null); const [expandedId, setExpandedId] = useState(null); @@ -503,9 +519,10 @@ const WebhookSection = () => { const loadSubscriptions = () => { setLoading(true); + setLoadError(null); api.getEventSubscriptions().then(data => { setSubscriptions(data.subscriptions || []); - }).catch(() => {}).finally(() => setLoading(false)); + }).catch(err => setLoadError(err)).finally(() => setLoading(false)); }; useEffect(() => { loadSubscriptions(); }, []); @@ -570,8 +587,10 @@ const WebhookSection = () => {
- {loading ? ( -
{t('common.loading', 'Loading…')}
+ {loading && subscriptions.length === 0 ? ( + + ) : loadError && subscriptions.length === 0 ? ( + ) : subscriptions.length === 0 ? ( { const [timeseries, setTimeseries] = useState([]); const [period, setPeriod] = useState('24h'); const [loading, setLoading] = useState(true); + const [loadError, setLoadError] = useState(null); const loadData = useCallback(() => { setLoading(true); + setLoadError(null); Promise.all([ api.getApiAnalyticsOverview(period), api.getApiAnalyticsEndpoints(period), @@ -725,7 +746,7 @@ const AnalyticsSection = () => { setOverview(ov); setEndpoints(ep.endpoints || []); setTimeseries(ts.data || []); - }).catch(() => {}).finally(() => setLoading(false)); + }).catch(err => setLoadError(err)).finally(() => setLoading(false)); }, [period]); useEffect(() => { loadData(); }, [loadData]); @@ -756,8 +777,10 @@ const AnalyticsSection = () => {
- {loading ? ( -
{t('common.loading', 'Loading…')}
+ {loading && !overview ? ( + + ) : loadError && !overview ? ( + ) : ( <> {overview && ( diff --git a/frontend/src/components/settings/InvitationsTab.jsx b/frontend/src/components/settings/InvitationsTab.jsx index 79b03ec3..ab02e95f 100644 --- a/frontend/src/components/settings/InvitationsTab.jsx +++ b/frontend/src/components/settings/InvitationsTab.jsx @@ -328,8 +328,8 @@ const InvitationsTab = () => { {error &&
{error}
} - {loading ? ( -
{t('app.invitationsTab.loadingInvitations', 'Loading invitations…')}
+ {loading && invitations.length === 0 ? ( + ) : invitations.length === 0 && !error ? ( ) : ( diff --git a/frontend/src/components/settings/MigrationHistoryTab.jsx b/frontend/src/components/settings/MigrationHistoryTab.jsx index 963fc974..745f1cce 100644 --- a/frontend/src/components/settings/MigrationHistoryTab.jsx +++ b/frontend/src/components/settings/MigrationHistoryTab.jsx @@ -218,13 +218,10 @@ const MigrationHistoryTab = () => { } } - if (loading) { + if (loading && revisions.length === 0) { return (
-
- - {t('app.migrationHistoryTab.loadingMigrationHistory', 'Loading migration history…')} -
+
); } diff --git a/frontend/src/components/settings/NotificationsTab.jsx b/frontend/src/components/settings/NotificationsTab.jsx index 775b0ec7..69f40e17 100644 --- a/frontend/src/components/settings/NotificationsTab.jsx +++ b/frontend/src/components/settings/NotificationsTab.jsx @@ -135,7 +135,7 @@ const NotificationsTab = () => { } if (loading) { - return ; + return ; } if (loadError) return {twoFALoading && !twoFAStatus ? ( -
{t('common.loading', 'Loading…')}
+ ) : twoFALoadError && !twoFAStatus ? ( - + ); } diff --git a/frontend/src/components/settings/SystemTab.jsx b/frontend/src/components/settings/SystemTab.jsx index ec3ef2d4..eee545d5 100644 --- a/frontend/src/components/settings/SystemTab.jsx +++ b/frontend/src/components/settings/SystemTab.jsx @@ -174,7 +174,7 @@ const SystemTab = () => { } if (loading) { - return ; + return ; } return ( @@ -307,7 +307,7 @@ const SystemTab = () => { )} {domainLoading ? ( - + ) : domainError ? ( { setGroupBy, }); - if (loading) { + if (loading && users.length === 0) { return (
-
{t('app.usersTab.loadingUsers', 'Loading users…')}
+
); } diff --git a/frontend/src/styles/components/_spinner.scss b/frontend/src/styles/components/_spinner.scss index 15f43e4f..aa42bbfb 100644 --- a/frontend/src/styles/components/_spinner.scss +++ b/frontend/src/styles/components/_spinner.scss @@ -134,12 +134,6 @@ font-size: $text-xs; } -.loading-sm { - color: $text-tertiary; - font-size: $text-xs; - padding: $space-4; -} - .spinner-inline { display: inline-block; width: 14px; diff --git a/frontend/src/styles/pages/_docker.scss b/frontend/src/styles/pages/_docker.scss index f4e81642..dc061e1f 100644 --- a/frontend/src/styles/pages/_docker.scss +++ b/frontend/src/styles/pages/_docker.scss @@ -25,12 +25,6 @@ } } -.docker-loading { - text-align: center; - padding: $space-12; - color: $text-secondary; -} - // Container Exec Modal .exec-modal-body { display: flex; diff --git a/frontend/src/styles/pages/_security.scss b/frontend/src/styles/pages/_security.scss index 4acc27fc..c60c724f 100644 --- a/frontend/src/styles/pages/_security.scss +++ b/frontend/src/styles/pages/_security.scss @@ -820,19 +820,6 @@ // ── Audit tab ──────────────────────────────────────────────── .audit-tab { - .loading-state { - display: flex; - flex-direction: column; - align-items: center; - padding: $space-8; - gap: $space-4; - - .spinner { - width: 40px; - height: 40px; // geometry: spinner icon - } - } - .audit-results { display: flex; flex-direction: column; diff --git a/frontend/src/styles/pages/_settings.scss b/frontend/src/styles/pages/_settings.scss index 6b694485..88ae6f27 100644 --- a/frontend/src/styles/pages/_settings.scss +++ b/frontend/src/styles/pages/_settings.scss @@ -395,10 +395,10 @@ } .settings-card__loading { - padding: $space-6; - text-align: center; - color: $text-tertiary; - font-size: $text-xs; + display: flex; + flex-direction: column; + gap: $space-3; + padding: $space-4 0; } .settings-card__footer { From b3d543b583260119fb34f6460edaf284df32568c Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Tue, 10 Nov 2026 12:27:42 -0500 Subject: [PATCH 2/4] fix(ui): keep page headers in place while pages load Docker and QueueOperations returned a bare skeleton outside the PageLayout the loaded page renders, so the topbar popped in later and shifted content. Both now render the same PageLayout shell (Docker with its tabs) with the skeleton as the body. --- frontend/src/pages/Docker.jsx | 22 +++++++++++++--------- frontend/src/pages/QueueOperations.jsx | 9 +++------ 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/frontend/src/pages/Docker.jsx b/frontend/src/pages/Docker.jsx index 3c154d10..121d17de 100644 --- a/frontend/src/pages/Docker.jsx +++ b/frontend/src/pages/Docker.jsx @@ -172,8 +172,20 @@ const Docker = () => { return `${total} B`; } + const tabs = [ + { id: 'containers', label: t('app.docker.containers', 'Containers'), icon: Box }, + { id: 'compose', label: t('app.docker.compose', 'Compose'), icon: Package }, + { id: 'images', label: t('app.docker.images', 'Images'), icon: Layers }, + { id: 'volumes', label: t('app.docker.volumes', 'Volumes'), icon: HardDrive }, + { id: 'networks', label: t('app.docker.networks', 'Networks'), icon: NetworkIcon }, + ].map(({ id, label, icon: Icon }) => ({ to: `/docker/${id}`, label, icon: })); + if (loading) { - return ; + return ( + } title={t('common.labels.docker', 'Docker')} tabs={tabs}> + + + ); } if (!dockerStatus?.installed) { @@ -222,14 +234,6 @@ const Docker = () => { ); } - const tabs = [ - { id: 'containers', label: t('app.docker.containers', 'Containers'), icon: Box }, - { id: 'compose', label: t('app.docker.compose', 'Compose'), icon: Package }, - { id: 'images', label: t('app.docker.images', 'Images'), icon: Layers }, - { id: 'volumes', label: t('app.docker.volumes', 'Volumes'), icon: HardDrive }, - { id: 'networks', label: t('app.docker.networks', 'Networks'), icon: NetworkIcon }, - ].map(({ id, label, icon: Icon }) => ({ to: `/docker/${id}`, label, icon: })); - const hasMultipleTargets = availableServers.length > 1; const serverContextValue = { diff --git a/frontend/src/pages/QueueOperations.jsx b/frontend/src/pages/QueueOperations.jsx index 9e824a67..e3db6002 100644 --- a/frontend/src/pages/QueueOperations.jsx +++ b/frontend/src/pages/QueueOperations.jsx @@ -462,12 +462,9 @@ const QueueOperations = () => { if (loading) { return ( -
-
- - {t('app.queueOperations.loadingQueueBus', 'Loading queue bus…')} -
-
+ } title={t('app.queueOperations.queueBus', 'Queue bus')}> + + ); } From 8702213609e7f37a6bae1348e7bd8b1e57f44a84 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Tue, 10 Nov 2026 12:38:27 -0500 Subject: [PATCH 3/4] fix(ui): size the 2FA loading placeholder to its content --- frontend/src/components/settings/SecuritySettingsTab.jsx | 6 ++++-- frontend/src/styles/components/_skeleton.scss | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/settings/SecuritySettingsTab.jsx b/frontend/src/components/settings/SecuritySettingsTab.jsx index b1d7d2a9..dc6c7874 100644 --- a/frontend/src/components/settings/SecuritySettingsTab.jsx +++ b/frontend/src/components/settings/SecuritySettingsTab.jsx @@ -13,7 +13,7 @@ import { Badge } from '@/components/ui/badge'; import InfoTip from '../InfoTip'; import LockShieldIllustration from '../illustrations/LockShieldIllustration'; import CopyField from '../CopyField'; -import EmptyState from '../EmptyState'; +import { Skeleton } from '../Skeleton'; import { downloadBlob } from '@/utils/downloadBlob'; import { useTranslation } from 'react-i18next'; import { formatDate, formatDateTime } from '@/utils/intl'; @@ -324,7 +324,9 @@ Keep these codes in a safe place.`; {twoFALoading && !twoFAStatus ? ( - +
+ +
) : twoFALoadError && !twoFAStatus ? ( 100% ragged widths; never let a bar exceed its container. + .skeleton { max-width: 100%; } + // Pushes a trailing control to the right edge of a toolbar row. &__push { margin-left: auto; } From 962971d2a8209ff7bb2102348a6ed3ed90022040 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Tue, 10 Nov 2026 12:46:43 -0500 Subject: [PATCH 4/4] test(ui): assert the users loading skeleton by role --- frontend/scripts/settings-browser.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/scripts/settings-browser.mjs b/frontend/scripts/settings-browser.mjs index 24545103..dccf805b 100644 --- a/frontend/scripts/settings-browser.mjs +++ b/frontend/scripts/settings-browser.mjs @@ -79,7 +79,7 @@ try { await route.fulfill({ json: payload }); }); await page.goto(`${base}tests/browser/settings.html`); - await page.getByText('Loading users…', { exact: true }).waitFor(); + await page.getByRole('status', { name: 'Loading users…' }).waitFor(); resolveUsers(); await page.locator('.users-table').first().getByText('needs-mfa', { exact: true }).waitFor(); await page.getByText('invite@example.test', { exact: true }).waitFor();