Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Converge settings loading skeletons on shared primitive
rcourtmand1262c31e518
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 6632d049bc..c95daeb4cd 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -797,6 +797,10 @@ or other self-hosted uncapped continuity plans.billing records load, but `plan_limit`, `grandfathered_floor`, and relatedvolume telemetry must not become runtime status, entitlement enforcement,customer-facing support context, or self-hosted Plans presentation.+10. Keep organization billing loading placeholders on the shared+ `SettingsLoadingSkeleton` primitive. Cloud-paid owns billing and usage+ semantics; frontend-primitives owns the loading skeleton animation, fill+ tokens, and metric/progress/card placeholder shells.10. Keep Stripe webhook idempotency state bounded in the control-planeregistry: `internal/cloudcp/registry/registry.go` may retain `stripe_events`rows long enough to suppress duplicate deliveries and reclaim stalediff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 0a91b52f56..d09f135cce 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1327,6 +1327,10 @@ not a replacement status card, CTA band, or page-local nested card.2. Keep top-level settings surfaces routed through the canonical settings shelland maintain both `frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts`plus `tests/integration/tests/15-settings-shell-consistency.spec.ts`+3. Keep Settings loading placeholders on the shared+ `SettingsLoadingSkeleton` primitive and the+ `settings-loading-skeleton-shell` registry rule instead of local+ `animate-pulse` block templates.3. Update this contract when a new canonical UI pattern is adopted4. Remove local forks after the shared primitive is introduced5. Keep shared feature-level presenters on capability truth. When reusable@@ -3361,6 +3365,18 @@ The `settings-connection-editor-local-*-callout-shell` pattern guards blockfuture connection-editor files from reintroducing amber, red, or rose localnotice shells.+Settings loading placeholders must route through the shared+`SettingsLoadingSkeleton` primitive instead of local `animate-pulse` blocks.+Feature panels may choose the loading shape and row counts, but the shared+primitive owns pulse animation, skeleton fill tokens, metric-card grids,+progress-card rows, table header/body shells, and labelled status semantics.+The `settings-loading-skeleton-shell` registry rule covers the current+organization, security overview, and resource data policy loading surfaces, the+`settings-loading-state-shared-skeleton-required` guard requires future+Settings `*LoadingState` files to compose that primitive, and the+`settings-local-loading-skeleton-block-shell` guard blocks local pulse skeleton+blocks from returning inside Settings components.+Settings external documentation text links must route through`ExternalTextLink`, while button-styled external actions route through`ButtonLink`/`UpgradeButtonLink`. Shared primitives own new-tab safety, reldiff --git a/docs/release-control/v6/internal/subsystems/organization-settings.md b/docs/release-control/v6/internal/subsystems/organization-settings.mdindex 62cb489e03..0b5881d641 100644--- a/docs/release-control/v6/internal/subsystems/organization-settings.md+++ b/docs/release-control/v6/internal/subsystems/organization-settings.md@@ -115,6 +115,11 @@ create, review, and approve cross-organization shares.may describe capability availability on paid self-hosted and hosted plans,but must not use Pro-badge titles or local browser upgrade telemetry in`RBACFeatureGateSection.tsx` or `useRBACFeatureGateState.ts`.+7. Keep organization overview, access, and sharing loading placeholders on the+ shared `SettingsLoadingSkeleton` primitive. Organization settings owns the+ membership, role, and sharing meaning of those loading surfaces, while+ frontend-primitives owns the skeleton animation, fill tokens, and table/card+ placeholder shells.## Current Statediff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.mdindex 0aea2ecf90..cf6c1d733d 100644--- a/docs/release-control/v6/internal/subsystems/security-privacy.md+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md@@ -206,6 +206,10 @@ controls as normal product settings.3. Keep shared frontend settings proof routing aligned whenever security/privacy presentation changes.4. Keep the checked-in telemetry adoption report aligned with the same release-identity rules used by the runtime telemetry payload.5. Update this contract whenever a new canonical security, token, auth, or privacy surface becomes part of the governed trust boundary.+6. Keep Security Overview and Resource Privacy/Data Handling loading+ placeholders on the shared `SettingsLoadingSkeleton` primitive. This+ subsystem owns the security/privacy posture semantics; frontend-primitives+ owns skeleton animation, fill tokens, and placeholder shell consistency.6. Keep the shared storage-directory and secure storage-file hardening helper aligned with the crypto manager plus control-plane magic-link key and store handling whenever runtime data-root ownership assumptions change.7. Keep auth-env ingestion, hosted commercial base URL validation, and sharedfingerprint-verifier TLS defaults aligned whenever runtime auth loading,diff --git a/frontend-modern/scripts/shared-template-registry.json b/frontend-modern/scripts/shared-template-registry.jsonindex 5254d6d2ef..56a7159dd3 100644--- a/frontend-modern/scripts/shared-template-registry.json+++ b/frontend-modern/scripts/shared-template-registry.json@@ -505,6 +505,54 @@"scripts/shared-template-audit.mjs"]},+ {+ "id": "settings-loading-skeleton-shell",+ "category": "loading-skeleton",+ "summary": "Settings loading skeletons must compose SettingsLoadingSkeleton for shared pulse animation, skeleton color, metric-grid, progress-card, and table-row shells instead of recreating page-local skeleton blocks.",+ "canonical": {+ "path": "src/components/shared/SettingsLoadingSkeleton.tsx",+ "export": "SettingsLoadingSkeleton"+ },+ "requiredConsumers": [+ { "path": "src/components/Settings/DataHandlingPanel.tsx" },+ { "path": "src/components/Settings/OrganizationAccessLoadingState.tsx" },+ { "path": "src/components/Settings/OrganizationBillingLoadingState.tsx" },+ { "path": "src/components/Settings/OrganizationOverviewLoadingState.tsx" },+ { "path": "src/components/Settings/OrganizationSharingLoadingState.tsx" },+ { "path": "src/components/Settings/SecurityOverviewPanel.tsx" }+ ],+ "forbiddenPatterns": [+ {+ "path": "src/components/Settings/DataHandlingPanel.tsx",+ "patterns": ["animate-pulse"]+ },+ {+ "path": "src/components/Settings/OrganizationAccessLoadingState.tsx",+ "patterns": ["animate-pulse", "bg-surface-hover", "bg-surface-alt"]+ },+ {+ "path": "src/components/Settings/OrganizationBillingLoadingState.tsx",+ "patterns": ["animate-pulse", "bg-surface-hover", "bg-surface-alt"]+ },+ {+ "path": "src/components/Settings/OrganizationOverviewLoadingState.tsx",+ "patterns": ["animate-pulse", "bg-surface-hover", "bg-surface-alt"]+ },+ {+ "path": "src/components/Settings/OrganizationSharingLoadingState.tsx",+ "patterns": ["animate-pulse", "bg-surface-hover", "bg-surface-alt"]+ },+ {+ "path": "src/components/Settings/SecurityOverviewPanel.tsx",+ "patterns": ["animate-pulse", "bg-slate-300"]+ }+ ],+ "proof": [+ "src/components/shared/SettingsLoadingSkeleton.test.tsx",+ "src/components/shared/SharedPrimitives.guardrails.test.ts",+ "scripts/shared-template-audit.mjs"+ ]+ },{"id": "button-command-shell","category": "action-button",@@ -2509,6 +2557,25 @@"scripts/shared-template-audit.mjs"]},+ {+ "id": "settings-local-loading-skeleton-block-shell",+ "category": "loading-skeleton",+ "summary": "Settings components must not recreate local pulse skeleton blocks with surface-hover fills; compose SettingsLoadingSkeleton so loading placeholders stay canonical.",+ "canonical": {+ "path": "src/components/shared/SettingsLoadingSkeleton.tsx",+ "export": "SettingsLoadingSkeleton"+ },+ "scopes": ["src/components/Settings"],+ "extensions": [".tsx"],+ "allPatterns": ["animate-pulse", "bg-surface-hover"],+ "allowedPaths": [],+ "ignoredPaths": ["src/components/shared/SharedPrimitives.guardrails.test.ts"],+ "proof": [+ "src/components/shared/SettingsLoadingSkeleton.test.tsx",+ "src/components/shared/SharedPrimitives.guardrails.test.ts",+ "scripts/shared-template-audit.mjs"+ ]+ },{"id": "platform-inline-notice-local-amber-shell","category": "callout",@@ -4728,6 +4795,27 @@}],"requiredPatternGuards": [+ {+ "id": "settings-loading-state-shared-skeleton-required",+ "category": "loading-skeleton",+ "summary": "Settings LoadingState components must compose SettingsLoadingSkeleton, so new settings panels cannot introduce local loading skeleton templates.",+ "canonical": {+ "path": "src/components/shared/SettingsLoadingSkeleton.tsx",+ "export": "SettingsLoadingSkeleton"+ },+ "scopes": ["src/components/Settings"],+ "extensions": [".tsx"],+ "pathIncludes": ["LoadingState"],+ "triggerPatterns": ["LoadingState"],+ "requiredPatterns": ["SettingsLoadingSkeleton"],+ "allowedPaths": [],+ "ignoredPaths": [],+ "proof": [+ "src/components/shared/SettingsLoadingSkeleton.test.tsx",+ "src/components/shared/SharedPrimitives.guardrails.test.ts",+ "scripts/shared-template-audit.mjs"+ ]+ },{"id": "platform-row-detail-toggle-shared-state","category": "row-disclosure",diff --git a/frontend-modern/src/components/Settings/DataHandlingPanel.tsx b/frontend-modern/src/components/Settings/DataHandlingPanel.tsxindex 45ca91b031..97dff31752 100644--- a/frontend-modern/src/components/Settings/DataHandlingPanel.tsx+++ b/frontend-modern/src/components/Settings/DataHandlingPanel.tsx@@ -9,6 +9,11 @@ import ShieldCheck from 'lucide-solid/icons/shield-check';import { useUnifiedResources } from '@/hooks/useUnifiedResources';import { Button, ButtonLink } from '@/components/shared/Button';import SettingsPanel from '@/components/shared/SettingsPanel';+import {+ SettingsLoadingSkeleton,+ SettingsSkeletonBlock,+ SettingsSkeletonCard,+} from '@/components/shared/SettingsLoadingSkeleton';import { settingsTabPath } from './settingsNavigationModel';import {buildDataHandlingPanelModel,@@ -183,15 +188,19 @@ export const DataHandlingPanel: Component = () => {<Showwhen={!resources.loading() || resources.policyPosture()}fallback={- <div class="grid gap-3 md:grid-cols-3">- {[1, 2, 3].map(() => (- <div class="min-h-28 rounded-md border border-border bg-surface-alt p-4 animate-pulse">- <div class="h-4 w-24 rounded bg-surface-hover" />- <div class="mt-4 h-8 w-16 rounded bg-surface-hover" />- <div class="mt-3 h-3 w-32 rounded bg-surface-hover" />- </div>- ))}- </div>+ <SettingsLoadingSkeleton label="Loading resource data policy">+ <div class="grid gap-3 md:grid-cols-3">+ <For each={[1, 2, 3]}>+ {() => (+ <SettingsSkeletonCard class="min-h-28 bg-surface-alt p-4 space-y-0">+ <SettingsSkeletonBlock class="h-4 w-24" />+ <SettingsSkeletonBlock class="mt-4 h-8 w-16" />+ <SettingsSkeletonBlock class="mt-3 h-3 w-32" />+ </SettingsSkeletonCard>+ )}+ </For>+ </div>+ </SettingsLoadingSkeleton>}><PolicyScopeSummary />diff --git a/frontend-modern/src/components/Settings/OrganizationAccessLoadingState.tsx b/frontend-modern/src/components/Settings/OrganizationAccessLoadingState.tsxindex 6ceb3829ae..a5921da437 100644--- a/frontend-modern/src/components/Settings/OrganizationAccessLoadingState.tsx+++ b/frontend-modern/src/components/Settings/OrganizationAccessLoadingState.tsx@@ -1,30 +1,30 @@-import { Component, For } from 'solid-js';+import type { Component } from 'solid-js';+import {+ SettingsLoadingSkeleton,+ SettingsSkeletonBlock,+ SettingsSkeletonTable,+} from '@/components/shared/SettingsLoadingSkeleton';export const OrganizationAccessLoadingState: Component = () => (- <div class="space-y-5">+ <SettingsLoadingSkeleton label="Loading organization access"><div class="rounded-md border border-border p-4 space-y-3">- <div class="h-4 w-24 animate-pulse rounded bg-surface-hover" />+ <SettingsSkeletonBlock class="h-4 w-24" /><div class="grid gap-2 sm:grid-cols-[1fr_auto_auto]">- <div class="h-10 w-full animate-pulse rounded bg-surface-hover" />- <div class="h-10 w-28 animate-pulse rounded bg-surface-hover" />- <div class="h-10 w-16 animate-pulse rounded bg-surface-hover" />+ <SettingsSkeletonBlock class="h-10 w-full" />+ <SettingsSkeletonBlock class="h-10 w-28" />+ <SettingsSkeletonBlock class="h-10 w-16" /></div></div>- <div class="overflow-hidden rounded-md border border-border">- <div class="h-10 w-full animate-pulse bg-surface-alt" />- <For each={Array.from({ length: 4 })}>- {() => (- <div class="border-t border-border-subtle px-3 py-3">- <div class="grid grid-cols-[1fr_auto_auto_auto] items-center gap-3">- <div class="h-4 w-40 animate-pulse rounded bg-surface-hover" />- <div class="h-7 w-24 animate-pulse rounded bg-surface-hover" />- <div class="h-4 w-20 animate-pulse rounded bg-surface-hover" />- <div class="ml-auto h-6 w-16 animate-pulse rounded bg-surface-hover" />- </div>- </div>- )}- </For>- </div>- </div>+ <SettingsSkeletonTable+ rows={4}+ rowLayoutClass="grid grid-cols-[1fr_auto_auto_auto] items-center gap-3"+ cells={[+ { class: 'h-4 w-40' },+ { class: 'h-7 w-24' },+ { class: 'h-4 w-20' },+ { class: 'ml-auto h-6 w-16' },+ ]}+ />+ </SettingsLoadingSkeleton>);diff --git a/frontend-modern/src/components/Settings/OrganizationBillingLoadingState.tsx b/frontend-modern/src/components/Settings/OrganizationBillingLoadingState.tsxindex d70fb2925a..a2ec39fcc2 100644--- a/frontend-modern/src/components/Settings/OrganizationBillingLoadingState.tsx+++ b/frontend-modern/src/components/Settings/OrganizationBillingLoadingState.tsx@@ -1,36 +1,16 @@import type { Component } from 'solid-js';+import {+ SettingsLoadingSkeleton,+ SettingsSkeletonMetricGrid,+ SettingsSkeletonProgressCard,+} from '@/components/shared/SettingsLoadingSkeleton';export const OrganizationBillingLoadingState: Component = () => (- <div class="space-y-5">- <div class="grid gap-3 sm:grid-cols-2 lg:grid-cols-4">- {Array.from({ length: 4 }).map(() => (- <div class="rounded-md border border-border p-3 space-y-2">- <div class="h-3 w-20 animate-pulse rounded bg-surface-hover" />- <div class="h-5 w-24 animate-pulse rounded bg-surface-hover" />- </div>- ))}- </div>+ <SettingsLoadingSkeleton label="Loading organization billing">+ <SettingsSkeletonMetricGrid valueWidth="w-24" />- <div class="space-y-3 rounded-md border border-border p-4">- <div class="h-4 w-36 animate-pulse rounded bg-surface-hover" />- {Array.from({ length: 2 }).map(() => (- <div class="space-y-2">- <div class="flex items-center justify-between">- <div class="h-3 w-14 animate-pulse rounded bg-surface-hover" />- <div class="h-3 w-20 animate-pulse rounded bg-surface-hover" />- </div>- <div class="h-2 w-full animate-pulse rounded bg-surface-hover" />- </div>- ))}- </div>+ <SettingsSkeletonProgressCard rows={2} titleWidth="w-36" />- <div class="grid gap-3 sm:grid-cols-2">- {Array.from({ length: 2 }).map(() => (- <div class="rounded-md border border-border p-3 space-y-2">- <div class="h-3 w-24 animate-pulse rounded bg-surface-hover" />- <div class="h-5 w-40 animate-pulse rounded bg-surface-hover" />- </div>- ))}- </div>- </div>+ <SettingsSkeletonMetricGrid columns="two" count={2} labelWidth="w-24" valueWidth="w-40" />+ </SettingsLoadingSkeleton>);diff --git a/frontend-modern/src/components/Settings/OrganizationOverviewLoadingState.tsx b/frontend-modern/src/components/Settings/OrganizationOverviewLoadingState.tsxindex 4531fae041..7aa4889c63 100644--- a/frontend-modern/src/components/Settings/OrganizationOverviewLoadingState.tsx+++ b/frontend-modern/src/components/Settings/OrganizationOverviewLoadingState.tsx@@ -1,42 +1,31 @@-import { Component, For } from 'solid-js';+import type { Component } from 'solid-js';+import {+ SettingsLoadingSkeleton,+ SettingsSkeletonBlock,+ SettingsSkeletonMetricGrid,+ SettingsSkeletonTable,+} from '@/components/shared/SettingsLoadingSkeleton';export const OrganizationOverviewLoadingState: Component = () => (- <div class="space-y-5 p-4 sm:p-6">- <div class="grid gap-3 sm:grid-cols-2 lg:grid-cols-4">- <For each={Array.from({ length: 4 })}>- {() => (- <div class="rounded-md border border-border p-3 space-y-2">- <div class="h-3 w-20 animate-pulse rounded bg-surface-hover" />- <div class="h-5 w-28 animate-pulse rounded bg-surface-hover" />- </div>- )}- </For>- </div>+ <SettingsLoadingSkeleton padding="panel" label="Loading organization overview">+ <SettingsSkeletonMetricGrid valueWidth="w-28" /><div class="space-y-2">- <div class="h-4 w-24 animate-pulse rounded bg-surface-hover" />+ <SettingsSkeletonBlock class="h-4 w-24" /><div class="flex flex-col gap-2 sm:flex-row sm:items-center">- <div class="h-10 w-full animate-pulse rounded bg-surface-hover" />- <div class="h-10 w-20 animate-pulse rounded bg-surface-hover" />+ <SettingsSkeletonBlock class="h-10 w-full" />+ <SettingsSkeletonBlock class="h-10 w-20" /></div></div>- <div class="space-y-2">- <div class="h-4 w-24 animate-pulse rounded bg-surface-hover" />- <div class="overflow-hidden rounded-md border border-border">- <div class="h-10 w-full animate-pulse bg-surface-alt" />- <For each={Array.from({ length: 3 })}>- {() => (- <div class="border-t border-border-subtle px-3 py-3">- <div class="flex items-center gap-3">- <div class="h-4 w-40 animate-pulse rounded bg-surface-hover" />- <div class="h-4 w-14 animate-pulse rounded-full bg-surface-hover" />- <div class="h-4 w-24 animate-pulse rounded bg-surface-hover" />- </div>- </div>- )}- </For>- </div>- </div>- </div>+ <SettingsSkeletonTable+ titleWidth="w-24"+ rows={3}+ cells={[+ { class: 'h-4 w-40' },+ { class: 'h-4 w-14', radius: 'full' },+ { class: 'h-4 w-24' },+ ]}+ />+ </SettingsLoadingSkeleton>);diff --git a/frontend-modern/src/components/Settings/OrganizationSharingLoadingState.tsx b/frontend-modern/src/components/Settings/OrganizationSharingLoadingState.tsxindex c86b30a16d..c8448748f0 100644--- a/frontend-modern/src/components/Settings/OrganizationSharingLoadingState.tsx+++ b/frontend-modern/src/components/Settings/OrganizationSharingLoadingState.tsx@@ -1,78 +1,67 @@-import { Component, For } from 'solid-js';+import { For, type Component } from 'solid-js';+import {+ SettingsLoadingSkeleton,+ SettingsSkeletonBlock,+ SettingsSkeletonTable,+} from '@/components/shared/SettingsLoadingSkeleton';export const OrganizationSharingLoadingState: Component = () => (- <div class="space-y-5 p-4 sm:p-6">+ <SettingsLoadingSkeleton padding="panel" label="Loading organization sharing"><div class="rounded-md border border-border p-4 space-y-3">- <div class="h-4 w-24 animate-pulse rounded bg-surface-hover" />+ <SettingsSkeletonBlock class="h-4 w-24" /><div class="grid gap-3 lg:grid-cols-2"><div class="space-y-2">- <div class="h-3 w-28 animate-pulse rounded bg-surface-hover" />- <div class="h-10 w-full animate-pulse rounded bg-surface-hover" />+ <SettingsSkeletonBlock class="h-3 w-28" />+ <SettingsSkeletonBlock class="h-10 w-full" /></div><div class="space-y-2">- <div class="h-3 w-20 animate-pulse rounded bg-surface-hover" />- <div class="h-10 w-full animate-pulse rounded bg-surface-hover" />+ <SettingsSkeletonBlock class="h-3 w-20" />+ <SettingsSkeletonBlock class="h-10 w-full" /></div></div><div class="rounded-md border border-border p-3 space-y-2">- <div class="h-3 w-32 animate-pulse rounded bg-surface-hover" />- <div class="h-10 w-full animate-pulse rounded bg-surface-hover" />+ <SettingsSkeletonBlock class="h-3 w-32" />+ <SettingsSkeletonBlock class="h-10 w-full" /></div><div class="grid gap-3 lg:grid-cols-3"><For each={Array.from({ length: 3 })}>{() => (<div class="space-y-2">- <div class="h-3 w-24 animate-pulse rounded bg-surface-hover" />- <div class="h-10 w-full animate-pulse rounded bg-surface-hover" />+ <SettingsSkeletonBlock class="h-3 w-24" />+ <SettingsSkeletonBlock class="h-10 w-full" /></div>)}</For></div><div class="flex justify-end">- <div class="h-10 w-28 animate-pulse rounded bg-surface-hover" />+ <SettingsSkeletonBlock class="h-10 w-28" /></div></div>- <div class="space-y-2">- <div class="h-4 w-28 animate-pulse rounded bg-surface-hover" />- <div class="overflow-hidden rounded-md border border-border">- <div class="h-10 w-full animate-pulse bg-surface-alt" />- <For each={Array.from({ length: 3 })}>- {() => (- <div class="border-t border-border-subtle px-3 py-3">- <div class="flex items-center gap-3">- <div class="h-4 w-40 animate-pulse rounded bg-surface-hover" />- <div class="h-4 w-24 animate-pulse rounded bg-surface-hover" />- <div class="h-4 w-14 animate-pulse rounded-full bg-surface-hover" />- <div class="h-4 w-24 animate-pulse rounded bg-surface-hover" />- </div>- </div>- )}- </For>- </div>- </div>+ <SettingsSkeletonTable+ titleWidth="w-28"+ rows={3}+ cells={[+ { class: 'h-4 w-40' },+ { class: 'h-4 w-24' },+ { class: 'h-4 w-14', radius: 'full' },+ { class: 'h-4 w-24' },+ ]}+ />- <div class="space-y-2">- <div class="h-4 w-28 animate-pulse rounded bg-surface-hover" />- <div class="overflow-hidden rounded-md border border-border">- <div class="h-10 w-full animate-pulse bg-surface-alt" />- <For each={Array.from({ length: 3 })}>- {() => (- <div class="border-t border-border-subtle px-3 py-3">- <div class="flex items-center gap-3">- <div class="h-4 w-24 animate-pulse rounded bg-surface-hover" />- <div class="h-4 w-40 animate-pulse rounded bg-surface-hover" />- <div class="h-4 w-14 animate-pulse rounded-full bg-surface-hover" />- <div class="h-4 w-24 animate-pulse rounded bg-surface-hover" />- </div>- </div>- )}- </For>- </div>- </div>- </div>+ <SettingsSkeletonTable+ titleWidth="w-28"+ rows={3}+ cells={[+ { class: 'h-4 w-24' },+ { class: 'h-4 w-40' },+ { class: 'h-4 w-14', radius: 'full' },+ { class: 'h-4 w-24' },+ ]}+ />+ </SettingsLoadingSkeleton>);diff --git a/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx b/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsxindex 1d9ec2ccdc..b038b05f3d 100644--- a/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx+++ b/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx@@ -2,6 +2,11 @@ import { Component, Show, Accessor, For, createMemo } from 'solid-js';import { CalloutCard } from '@/components/shared/CalloutCard';import { ExternalTextLink } from '@/components/shared/ExternalTextLink';import SettingsPanel from '@/components/shared/SettingsPanel';+import {+ SettingsLoadingSkeleton,+ SettingsSkeletonBlock,+ SettingsSkeletonCard,+} from '@/components/shared/SettingsLoadingSkeleton';import { PROXY_AUTH_DOC_URL, SECURITY_DOC_URL } from '@/utils/docsLinks';import { SecurityPostureSummary } from './SecurityPostureSummary';import { settingsTabPath } from './settingsNavigationModel';@@ -84,31 +89,35 @@ export const SecurityOverviewPanel: Component<SecurityOverviewPanelProps> = (proreturn (<SettingsPanel title="Security Overview" bodyClass="space-y-6"><Show when={props.securityStatusLoading()}>- <div class="rounded-md border border-border overflow-hidden">- <div class="bg-surface-alt px-6 py-5 animate-pulse">- <div class="flex items-center gap-4">- <div class="w-12 h-12 bg-slate-300 rounded-md"></div>- <div class="flex-1 space-y-2">- <div class="h-5 bg-slate-300 rounded w-1/3"></div>- <div class="h-4 bg-slate-300 rounded w-1/2"></div>- </div>- <div class="text-right space-y-2">- <div class="h-8 bg-slate-300 rounded w-16 ml-auto"></div>- <div class="h-4 bg-slate-300 rounded w-12 ml-auto"></div>+ <SettingsLoadingSkeleton label="Loading security overview" gap="sm">+ <div class="rounded-md border border-border overflow-hidden">+ <div class="bg-surface-alt px-6 py-5">+ <div class="flex items-center gap-4">+ <SettingsSkeletonBlock class="h-12 w-12" />+ <div class="flex-1 space-y-2">+ <SettingsSkeletonBlock class="h-5 w-1/3" />+ <SettingsSkeletonBlock class="h-4 w-1/2" />+ </div>+ <div class="text-right space-y-2">+ <SettingsSkeletonBlock class="ml-auto h-8 w-16" />+ <SettingsSkeletonBlock class="ml-auto h-4 w-12" />+ </div></div></div>- </div>- <div class="p-6">- <div class="grid gap-3 md:grid-cols-2 xl:grid-cols-4">- {[1, 2, 3, 4].map(() => (- <div class="rounded-md border border-border p-4 animate-pulse">- <div class="h-4 bg-surface-hover rounded w-2/3 mb-2"></div>- <div class="h-3 bg-surface-hover rounded w-1/2"></div>- </div>- ))}+ <div class="p-6">+ <div class="grid gap-3 md:grid-cols-2 xl:grid-cols-4">+ <For each={[1, 2, 3, 4]}>+ {() => (+ <SettingsSkeletonCard class="p-4 space-y-0">+ <SettingsSkeletonBlock class="mb-2 h-4 w-2/3" />+ <SettingsSkeletonBlock class="h-3 w-1/2" />+ </SettingsSkeletonCard>+ )}+ </For>+ </div></div></div>- </div>+ </SettingsLoadingSkeleton></Show><Show when={!props.securityStatusLoading() && props.securityStatus()}>diff --git a/frontend-modern/src/components/Settings/__tests__/OrganizationBillingPanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/OrganizationBillingPanel.test.tsxindex 32dd8b124f..6e5a1743f0 100644--- a/frontend-modern/src/components/Settings/__tests__/OrganizationBillingPanel.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/OrganizationBillingPanel.test.tsx@@ -131,7 +131,8 @@ describe('OrganizationBillingPanel', () => {expect(organizationBillingStateSource).toContain('normalizeOrgScope(getOrgID())');expect(organizationBillingStateSource).toContain("eventBus.on('org_switched'");expect(organizationBillingStateSource).not.toContain("getOrgID() || 'default'");- expect(organizationBillingLoadingStateSource).toContain('animate-pulse');+ expect(organizationBillingLoadingStateSource).toContain('SettingsLoadingSkeleton');+ expect(organizationBillingLoadingStateSource).not.toContain('animate-pulse');});it('stays unavailable in demo mode without loading organization billing data', () => {diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 28e270956c..048e30e132 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -370,6 +370,14 @@ describe('settings architecture guardrails', () => {);});+ it('keeps settings loading skeletons on the shared skeleton primitive', () => {+ for (const source of [dataHandlingPanelSource, securityOverviewPanelSource]) {+ expect(source).toContain('@/components/shared/SettingsLoadingSkeleton');+ expect(source).toContain('SettingsLoadingSkeleton');+ expect(source).not.toContain('animate-pulse');+ }+ });+it('keeps telemetry disclosure aligned with the security privacy contract', () => {expect(generalSettingsPanelSource).toContain('aggregate self-hosted adoption');expect(generalSettingsPanelSource).toContain('counts, and coarse feature flags');diff --git a/frontend-modern/src/components/shared/SettingsLoadingSkeleton.test.tsx b/frontend-modern/src/components/shared/SettingsLoadingSkeleton.test.tsxnew file mode 100644index 0000000000..4cd017997d--- /dev/null+++ b/frontend-modern/src/components/shared/SettingsLoadingSkeleton.test.tsx@@ -0,0 +1,49 @@+import { cleanup, render, screen } from '@solidjs/testing-library';+import { afterEach, describe, expect, it } from 'vitest';+import {+ SettingsLoadingSkeleton,+ SettingsSkeletonBlock,+ SettingsSkeletonMetricGrid,+ SettingsSkeletonProgressCard,+ SettingsSkeletonTable,+} from '@/components/shared/SettingsLoadingSkeleton';++afterEach(cleanup);++describe('SettingsLoadingSkeleton', () => {+ it('renders a labelled settings loading status shell', () => {+ render(() => (+ <SettingsLoadingSkeleton label="Loading organization access" padding="panel">+ <SettingsSkeletonBlock class="h-4 w-24" />+ </SettingsLoadingSkeleton>+ ));++ const shell = screen.getByRole('status', { name: 'Loading organization access' });+ const block = shell.querySelector('.animate-pulse');++ expect(shell).toHaveClass('space-y-5');+ expect(shell).toHaveClass('p-4');+ expect(shell).toHaveClass('sm:p-6');+ expect(block).toHaveClass('bg-surface-hover');+ expect(block).toHaveAttribute('aria-hidden', 'true');+ });++ it('renders canonical metric, progress, and table skeleton sections', () => {+ render(() => (+ <SettingsLoadingSkeleton>+ <SettingsSkeletonMetricGrid count={2} columns="two" valueWidth="w-40" />+ <SettingsSkeletonProgressCard rows={1} />+ <SettingsSkeletonTable+ rows={2}+ titleWidth="w-28"+ cells={[{ class: 'h-4 w-40' }, { class: 'h-4 w-14', radius: 'full' }]}+ />+ </SettingsLoadingSkeleton>+ ));++ expect(document.querySelectorAll('.rounded-md.border.border-border')).toHaveLength(4);+ expect(document.querySelectorAll('.border-t.border-border-subtle')).toHaveLength(2);+ expect(document.querySelector('.rounded-full')).toBeTruthy();+ expect(document.querySelector('.bg-surface-alt')).toBeTruthy();+ });+});diff --git a/frontend-modern/src/components/shared/SettingsLoadingSkeleton.tsx b/frontend-modern/src/components/shared/SettingsLoadingSkeleton.tsxnew file mode 100644index 0000000000..99f2f2204d--- /dev/null+++ b/frontend-modern/src/components/shared/SettingsLoadingSkeleton.tsx@@ -0,0 +1,223 @@+import { For, mergeProps, splitProps, type JSX } from 'solid-js';++type SettingsSkeletonPadding = 'none' | 'panel';+type SettingsSkeletonGap = 'sm' | 'md';+type SettingsSkeletonRadius = 'none' | 'md' | 'full';+type SettingsSkeletonSurface = 'default' | 'muted';+type SettingsSkeletonColumns = 'two' | 'four';++type SettingsSkeletonBlockProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, 'class'> & {+ class?: string;+ radius?: SettingsSkeletonRadius;+ surface?: SettingsSkeletonSurface;+};++type SettingsLoadingSkeletonProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, 'class'> & {+ children: JSX.Element;+ class?: string;+ gap?: SettingsSkeletonGap;+ label?: string;+ padding?: SettingsSkeletonPadding;+};++type SettingsSkeletonMetricGridProps = {+ columns?: SettingsSkeletonColumns;+ count?: number;+ labelWidth?: string;+ valueWidth?: string;+};++type SettingsSkeletonCardProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, 'class'> & {+ children: JSX.Element;+ class?: string;+};++type SettingsSkeletonProgressCardProps = {+ rows?: number;+ titleWidth?: string;+};++type SettingsSkeletonTableCell = {+ class: string;+ radius?: SettingsSkeletonRadius;+};++type SettingsSkeletonTableProps = {+ cells: SettingsSkeletonTableCell[];+ headerClass?: string;+ rowLayoutClass?: string;+ rows?: number;+ titleWidth?: string;+};++const paddingClassByPadding: Record<SettingsSkeletonPadding, string> = {+ none: '',+ panel: 'p-4 sm:p-6',+};++const gapClassByGap: Record<SettingsSkeletonGap, string> = {+ sm: 'space-y-3',+ md: 'space-y-5',+};++const radiusClassByRadius: Record<SettingsSkeletonRadius, string> = {+ none: '',+ md: 'rounded',+ full: 'rounded-full',+};++const surfaceClassBySurface: Record<SettingsSkeletonSurface, string> = {+ default: 'bg-surface-hover',+ muted: 'bg-surface-alt',+};++const metricGridClassByColumns: Record<SettingsSkeletonColumns, string> = {+ two: 'grid gap-3 sm:grid-cols-2',+ four: 'grid gap-3 sm:grid-cols-2 lg:grid-cols-4',+};++const range = (count: number) => Array.from({ length: count }, (_, index) => index);++export function SettingsLoadingSkeleton(props: SettingsLoadingSkeletonProps) {+ const merged = mergeProps(+ { gap: 'md' as SettingsSkeletonGap, label: 'Loading settings', padding: 'none' as const },+ props,+ );+ const [local, rest] = splitProps(merged, [+ 'children',+ 'class',+ 'gap',+ 'label',+ 'padding',+ ]);++ return (+ <div+ {...rest}+ class={`${gapClassByGap[local.gap]} ${paddingClassByPadding[local.padding]} ${+ local.class ?? ''+ }`.trim()}+ role="status"+ aria-label={local.label}+ >+ {local.children}+ </div>+ );+}++export function SettingsSkeletonBlock(props: SettingsSkeletonBlockProps) {+ const merged = mergeProps(+ { radius: 'md' as SettingsSkeletonRadius, surface: 'default' as SettingsSkeletonSurface },+ props,+ );+ const [local, rest] = splitProps(merged, ['class', 'radius', 'surface']);++ return (+ <div+ {...rest}+ class={`animate-pulse ${radiusClassByRadius[local.radius]} ${+ surfaceClassBySurface[local.surface]+ } ${local.class ?? ''}`.trim()}+ aria-hidden="true"+ />+ );+}++export function SettingsSkeletonCard(props: SettingsSkeletonCardProps) {+ const [local, rest] = splitProps(props, ['children', 'class']);++ return (+ <div+ {...rest}+ class={`rounded-md border border-border p-3 space-y-2 ${local.class ?? ''}`.trim()}+ >+ {local.children}+ </div>+ );+}++export function SettingsSkeletonMetricGrid(props: SettingsSkeletonMetricGridProps) {+ const merged = mergeProps(+ { columns: 'four' as SettingsSkeletonColumns, count: 4, labelWidth: 'w-20', valueWidth: 'w-28' },+ props,+ );++ return (+ <div class={metricGridClassByColumns[merged.columns]}>+ <For each={range(merged.count)}>+ {() => (+ <SettingsSkeletonCard>+ <SettingsSkeletonBlock class={`h-3 ${merged.labelWidth}`} />+ <SettingsSkeletonBlock class={`h-5 ${merged.valueWidth}`} />+ </SettingsSkeletonCard>+ )}+ </For>+ </div>+ );+}++export function SettingsSkeletonProgressCard(props: SettingsSkeletonProgressCardProps) {+ const merged = mergeProps({ rows: 2, titleWidth: 'w-36' }, props);++ return (+ <div class="space-y-3 rounded-md border border-border p-4">+ <SettingsSkeletonBlock class={`h-4 ${merged.titleWidth}`} />+ <For each={range(merged.rows)}>+ {() => (+ <div class="space-y-2">+ <div class="flex items-center justify-between">+ <SettingsSkeletonBlock class="h-3 w-14" />+ <SettingsSkeletonBlock class="h-3 w-20" />+ </div>+ <SettingsSkeletonBlock class="h-2 w-full" />+ </div>+ )}+ </For>+ </div>+ );+}++export function SettingsSkeletonTable(props: SettingsSkeletonTableProps) {+ const merged = mergeProps(+ {+ headerClass: 'h-10 w-full',+ rowLayoutClass: 'flex items-center gap-3',+ rows: 3,+ },+ props,+ );++ const table = (+ <div class="overflow-hidden rounded-md border border-border">+ <SettingsSkeletonBlock+ class={merged.headerClass}+ radius="none"+ surface="muted"+ />+ <For each={range(merged.rows)}>+ {() => (+ <div class="border-t border-border-subtle px-3 py-3">+ <div class={merged.rowLayoutClass}>+ <For each={merged.cells}>+ {(cell) => (+ <SettingsSkeletonBlock class={cell.class} radius={cell.radius ?? 'md'} />+ )}+ </For>+ </div>+ </div>+ )}+ </For>+ </div>+ );++ if (!merged.titleWidth) {+ return table;+ }++ return (+ <div class="space-y-2">+ <SettingsSkeletonBlock class={`h-4 ${merged.titleWidth}`} />+ {table}+ </div>+ );+}diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex ad644db6bd..65bc091502 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -50,6 +50,7 @@ import searchInputEnhancementsModelSource from '@/components/shared/searchInputEimport searchInputModelSource from '@/components/shared/searchInputModel.ts?raw';import statusDotSource from '@/components/shared/StatusDot.tsx?raw';import loadingSpinnerSource from '@/components/shared/LoadingSpinner.tsx?raw';+import settingsLoadingSkeletonSource from '@/components/shared/SettingsLoadingSkeleton.tsx?raw';import statusBadgeSource from '@/components/shared/StatusBadge.tsx?raw';import statusBadgeModelSource from '@/components/shared/statusBadgeModel.ts?raw';import statusIndicatorBadgeSource from '@/components/shared/StatusIndicatorBadge.tsx?raw';@@ -233,6 +234,10 @@ import generalSettingsPanelSource from '@/components/Settings/GeneralSettingsPanimport infrastructureInstallerSectionSource from '@/components/Settings/InfrastructureInstallerSection.tsx?raw';import infrastructureWorkspaceSource from '@/components/Settings/InfrastructureWorkspace.tsx?raw';import monitoredSystemImpactPreviewSource from '@/components/Settings/MonitoredSystemImpactPreview.tsx?raw';+import organizationAccessLoadingStateSource from '@/components/Settings/OrganizationAccessLoadingState.tsx?raw';+import organizationBillingLoadingStateSource from '@/components/Settings/OrganizationBillingLoadingState.tsx?raw';+import organizationOverviewLoadingStateSource from '@/components/Settings/OrganizationOverviewLoadingState.tsx?raw';+import organizationSharingLoadingStateSource from '@/components/Settings/OrganizationSharingLoadingState.tsx?raw';import organizationAccessInvitationsSectionSource from '@/components/Settings/OrganizationAccessInvitationsSection.tsx?raw';import organizationAccessMembersSectionSource from '@/components/Settings/OrganizationAccessMembersSection.tsx?raw';import organizationIncomingSharesSectionSource from '@/components/Settings/OrganizationIncomingSharesSection.tsx?raw';@@ -2513,6 +2518,108 @@ describe('shared primitive guardrails', () => {}});+ it('keeps organization Settings loading skeletons on the shared skeleton primitive', () => {+ const registry = JSON.parse(sharedTemplateRegistrySource) as {+ rules?: Array<{+ id: string;+ canonical?: { path?: string; export?: string };+ requiredConsumers?: Array<{ path?: string }>;+ forbiddenPatterns?: Array<{ path?: string; patterns?: string[] }>;+ }>;+ patternGuards?: Array<{+ id: string;+ canonical?: { path?: string; export?: string };+ allPatterns?: string[];+ scopes?: string[];+ allowedPaths?: string[];+ ignoredPaths?: string[];+ }>;+ requiredPatternGuards?: Array<{+ id: string;+ canonical?: { path?: string; export?: string };+ pathIncludes?: string[];+ requiredPatterns?: string[];+ scopes?: string[];+ triggerPatterns?: string[];+ }>;+ };+ const registeredRule = registry.rules?.find(+ (rule) => rule.id === 'settings-loading-skeleton-shell',+ );+ const localSkeletonGuard = registry.patternGuards?.find(+ (guard) => guard.id === 'settings-local-loading-skeleton-block-shell',+ );+ const requiredSkeletonGuard = registry.requiredPatternGuards?.find(+ (guard) => guard.id === 'settings-loading-state-shared-skeleton-required',+ );+ const organizationLoadingStateConsumers: Array<[string, string]> = [+ [+ 'src/components/Settings/OrganizationAccessLoadingState.tsx',+ organizationAccessLoadingStateSource,+ ],+ [+ 'src/components/Settings/OrganizationBillingLoadingState.tsx',+ organizationBillingLoadingStateSource,+ ],+ [+ 'src/components/Settings/OrganizationOverviewLoadingState.tsx',+ organizationOverviewLoadingStateSource,+ ],+ [+ 'src/components/Settings/OrganizationSharingLoadingState.tsx',+ organizationSharingLoadingStateSource,+ ],+ ];+ const settingsLoadingSkeletonConsumers: Array<[string, string]> = [+ ['src/components/Settings/DataHandlingPanel.tsx', dataHandlingPanelSource],+ ...organizationLoadingStateConsumers,+ ['src/components/Settings/SecurityOverviewPanel.tsx', securityOverviewPanelSource],+ ];++ expect(registeredRule?.canonical?.path).toBe(+ 'src/components/shared/SettingsLoadingSkeleton.tsx',+ );+ expect(registeredRule?.canonical?.export).toBe('SettingsLoadingSkeleton');+ expect(registeredRule?.requiredConsumers?.map((consumer) => consumer.path)).toEqual(+ settingsLoadingSkeletonConsumers.map(([path]) => path),+ );+ expect(localSkeletonGuard?.canonical?.path).toBe(+ 'src/components/shared/SettingsLoadingSkeleton.tsx',+ );+ expect(localSkeletonGuard?.canonical?.export).toBe('SettingsLoadingSkeleton');+ expect(localSkeletonGuard?.allPatterns).toEqual(['animate-pulse', 'bg-surface-hover']);+ expect(localSkeletonGuard?.scopes).toEqual(['src/components/Settings']);+ expect(localSkeletonGuard?.allowedPaths ?? []).toHaveLength(0);+ expect(requiredSkeletonGuard?.canonical?.path).toBe(+ 'src/components/shared/SettingsLoadingSkeleton.tsx',+ );+ expect(requiredSkeletonGuard?.pathIncludes).toEqual(['LoadingState']);+ expect(requiredSkeletonGuard?.triggerPatterns).toEqual(['LoadingState']);+ expect(requiredSkeletonGuard?.requiredPatterns).toEqual(['SettingsLoadingSkeleton']);++ expect(settingsLoadingSkeletonSource).toContain('export function SettingsLoadingSkeleton');+ expect(settingsLoadingSkeletonSource).toContain('export function SettingsSkeletonMetricGrid');+ expect(settingsLoadingSkeletonSource).toContain('export function SettingsSkeletonTable');+ expect(settingsLoadingSkeletonSource).toContain('animate-pulse');+ expect(settingsLoadingSkeletonSource).toContain('bg-surface-hover');+ expect(settingsLoadingSkeletonSource).toContain('bg-surface-alt');++ for (const [path, source] of settingsLoadingSkeletonConsumers) {+ expect(source).toContain('SettingsLoadingSkeleton');+ expect(source).not.toContain('animate-pulse');+ const forbiddenPatterns =+ registeredRule?.forbiddenPatterns?.find((entry) => entry.path === path)?.patterns ?? [];+ for (const pattern of forbiddenPatterns) {+ expect(source).not.toContain(pattern);+ }+ }++ for (const [, source] of organizationLoadingStateConsumers) {+ expect(source).not.toContain('bg-surface-hover');+ expect(source).not.toContain('bg-surface-alt');+ }+ });+it('keeps standard command buttons on the shared Button primitive', () => {const registry = JSON.parse(sharedTemplateRegistrySource) as {rules?: Array<{