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 compact card frames on shared primitive
rcourtmanf3090194c7dd
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex fd9cd32b21..dc4293a49a 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -520,6 +520,13 @@ not a replacement status card, CTA band, or page-local nested card.copyable command/path/value rows must use `CopyableCodeRow` instead ofrecreating local copy icons, copied-state checks, disabled empty-valuehandling, or `font-mono` code-row shells.+ Compact information-card frames in drawer overviews, discovery summaries,+ resource detail sections, web-interface URL editors, shared overview cards,+ and storage backup empty states belong to `InfoCardFrame`. Feature surfaces+ own the title, rows, actions, and sizing context, but the bordered+ `bg-surface p-3 shadow-sm` frame must be composed through+ `InfoCardFrame`, `getInfoCardFrameClass`, or `INFO_CARD_FRAME_CLASS` rather+ than copied as a page-local class string.Read-only metadata chips belong to `MetadataBadge` and domain wrappers overit. Organization role and share-status chips must use`OrganizationRoleBadge` and `OrganizationShareStatusBadge`, so role/statusdiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 09527e320b..c74bf816e2 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -1214,6 +1214,11 @@ and workload-derived navigation state live in`frontend-modern/src/components/Workloads/useGuestDrawerState.ts`. Futuredrawer runtime and overview-surface changes must extend through those ownersinstead of adding more mixed state and helper drift back into the shell.+Compact drawer card frames in `GuestDrawerOverview.tsx`,+`NodeDrawerOverview.tsx`, and shared drawer helpers are a frontend-primitives+dependency: the Workloads hot path owns which cards render and what data they+show, but the repeated bordered `bg-surface p-3 shadow-sm` frame must compose+`InfoCardFrame` instead of carrying workload-local frame constants.That drawer state now also consumes the same shared`frontend-modern/src/routing/resourceLinks.ts` workload-to-infrastructurehelper, so row and drawer navigation stay aligned without a seconddiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex b6b7a17ab6..a08fc0677c 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -2211,8 +2211,11 @@ runtime entry points. Platform page route shells own the path, whilestorage surface owner, and `frontend-modern/src/components/Storage/` plus`frontend-modern/src/features/storageBackups/` define the storage health modeland presentation. The retired standalone storage page shell must not be-recreated, while-the storage page's readiness now stays route-owned as well:+recreated. Storage/recovery empty and detail cards that use the compact+bordered surface frame must compose the frontend-primitives `InfoCardFrame`+contract, including `INFO_CARD_FRAME_CLASS` from storage presentation+constants, rather than recreating the frame string in storage-local helpers.+The storage page's readiness now stays route-owned as well:`frontend-modern/src/components/Storage/useStoragePageModel.ts` and`frontend-modern/src/features/storageBackups/storagePageStatus.ts` must deriveloading, reconnect, and disconnect presentation from the storage unified-resourcediff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 5ebf61f683..06e5d508da 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -703,6 +703,13 @@ AI-only summary payloads, or page-local heuristics.the actual protection boundary behind a broader count phrase.6. Add canonical governed name-resolution or policy-aware resource lookup behavior through `internal/unifiedresources/resolve.go` and `internal/unifiedresources/resolve_context.go`8. Add or change discovery-support runtime under the resource drawer through `frontend-modern/src/components/Discovery/DiscoveryTab.tsx` for shell/presentation ownership and `frontend-modern/src/components/Discovery/useDiscoveryTabState.ts` for fetch, websocket-progress, manual-run triggering, and notes-mutation ownership. Embedded drawers may expose the top-level run action through this shared Discovery tab, but they must still call the canonical discovery trigger state path instead of introducing drawer-local API mutations.+ Resource drawer secondary sections, action history, discovery run summaries,+ and other compact resource-detail cards may own their resource-specific+ labels, rows, filters, and actions, but the repeated bordered compact frame+ is a frontend-primitives boundary. `ResourceDetailDrawerOverviewTab.tsx`,+ `ResourceActionHistory.tsx`, and `DiscoveryTab.tsx` must compose+ `InfoCardFrame` for that shell instead of restoring local card-frame+ classes.9. Keep dashboard and infrastructure freshness on the canonical unified-resourceownership path. `frontend-modern/src/stores/websocket.ts`,`frontend-modern/src/utils/resourceStateAdapters.ts`, anddiff --git a/frontend-modern/scripts/shared-template-registry.json b/frontend-modern/scripts/shared-template-registry.jsonindex 233b07d749..6527a7d36a 100644--- a/frontend-modern/scripts/shared-template-registry.json+++ b/frontend-modern/scripts/shared-template-registry.json@@ -203,6 +203,38 @@"scripts/shared-template-audit.mjs"]},+ {+ "id": "compact-info-card-frame-shell",+ "category": "info-card",+ "summary": "Compact drawer, discovery, resource-detail, and shared overview cards must compose InfoCardFrame for the common bordered surface frame instead of recreating local card-shell classes.",+ "canonical": {+ "path": "src/components/shared/InfoCardFrame.tsx",+ "export": "InfoCardFrame"+ },+ "requiredConsumers": [+ { "path": "src/components/Discovery/DiscoveryTab.tsx" },+ { "path": "src/components/Infrastructure/ResourceActionHistory.tsx" },+ { "path": "src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx" },+ { "path": "src/components/shared/WebInterfaceUrlField.tsx" },+ { "path": "src/components/shared/cards/DisksCard.tsx" },+ { "path": "src/components/shared/cards/HardwareCard.tsx" },+ { "path": "src/components/shared/cards/NetworkInterfacesCard.tsx" },+ { "path": "src/components/shared/cards/RaidCard.tsx" },+ { "path": "src/components/shared/cards/RootDiskCard.tsx" },+ { "path": "src/components/shared/cards/SystemInfoCard.tsx" },+ { "path": "src/components/shared/cards/TemperaturesCard.tsx" },+ { "path": "src/components/Workloads/DrawerDiskListCard.tsx" },+ { "path": "src/components/Workloads/GuestDrawerOverview.tsx" },+ { "path": "src/components/Workloads/NodeDrawerOverview.tsx" },+ { "path": "src/features/docker/DockerHostDrawerOverview.tsx" },+ { "path": "src/features/storageBackups/detailPresentation.ts" }+ ],+ "proof": [+ "src/components/shared/SharedPrimitives.guardrails.test.ts",+ "src/components/shared/InfoCardFrame.test.tsx",+ "scripts/shared-template-audit.mjs"+ ]+ },{"id": "settings-callout-card-shell","category": "callout",@@ -213,7 +245,9 @@},"requiredConsumers": [{ "path": "src/components/Settings/AIProviderConfigurationSection.tsx" },- { "path": "src/components/Settings/ConnectionEditor/CredentialSlots/VMwareCredentialSlot.tsx" },+ {+ "path": "src/components/Settings/ConnectionEditor/CredentialSlots/VMwareCredentialSlot.tsx"+ },{ "path": "src/components/Settings/DiagnosticsResultsPanel.tsx" },{ "path": "src/components/Settings/DiscoverySettingsForm.tsx" },{ "path": "src/components/Settings/MonitoredSystemImpactPreview.tsx" },@@ -224,10 +258,7 @@"forbiddenPatterns": [{"path": "src/components/Settings/AIProviderConfigurationSection.tsx",- "patterns": [- "rounded border border-red-200",- "bg-red-50 dark:bg-red-900 px-2 py-1.5"- ]+ "patterns": ["rounded border border-red-200", "bg-red-50 dark:bg-red-900 px-2 py-1.5"]},{"path": "src/components/Settings/DiagnosticsResultsPanel.tsx",@@ -302,27 +333,39 @@},{"path": "src/components/patrol/ApprovalBanner.tsx",- "patterns": ["h-3 w-3 border-2 border-white border-t-transparent rounded-full animate-spin"]+ "patterns": [+ "h-3 w-3 border-2 border-white border-t-transparent rounded-full animate-spin"+ ]},{"path": "src/components/patrol/ApprovalSection.tsx",- "patterns": ["h-3 w-3 border-2 border-white border-t-transparent rounded-full animate-spin"]+ "patterns": [+ "h-3 w-3 border-2 border-white border-t-transparent rounded-full animate-spin"+ ]},{"path": "src/components/patrol/InvestigationMessages.tsx",- "patterns": ["h-3 w-3 border-2 border-current border-t-transparent rounded-full animate-spin"]+ "patterns": [+ "h-3 w-3 border-2 border-current border-t-transparent rounded-full animate-spin"+ ]},{"path": "src/components/patrol/InvestigationSection.tsx",- "patterns": ["h-3 w-3 border-2 border-current border-t-transparent rounded-full animate-spin"]+ "patterns": [+ "h-3 w-3 border-2 border-current border-t-transparent rounded-full animate-spin"+ ]},{"path": "src/components/patrol/RunToolCallTrace.tsx",- "patterns": ["h-3 w-3 border-2 border-current border-t-transparent rounded-full animate-spin"]+ "patterns": [+ "h-3 w-3 border-2 border-current border-t-transparent rounded-full animate-spin"+ ]},{"path": "src/features/patrol/PatrolIntelligenceHeader.tsx",- "patterns": ["animate-spin w-4 h-4 border-2 border-current border-t-transparent rounded-full"]+ "patterns": [+ "animate-spin w-4 h-4 border-2 border-current border-t-transparent rounded-full"+ ]}],"proof": [@@ -1237,6 +1280,26 @@"scripts/shared-template-audit.mjs"]},+ {+ "id": "compact-info-card-frame-local-shell",+ "category": "info-card",+ "summary": "Compact drawer, discovery, resource-detail, and shared overview cards must not copy the bordered bg-surface p-3 shadow shell owned by InfoCardFrame.",+ "canonical": {+ "path": "src/components/shared/InfoCardFrame.tsx",+ "export": "InfoCardFrame"+ },+ "scopes": ["src/components", "src/features", "src/pages"],+ "extensions": [".ts", ".tsx"],+ "allPatterns": ["rounded border border-border bg-surface p-3 shadow-sm"],+ "legacyReason": "Retired migration debt. Repeated compact information card frames must use InfoCardFrame; local card-shell copies are not allowed.",+ "allowedPaths": [],+ "ignoredPaths": ["src/components/shared/SharedPrimitives.guardrails.test.ts"],+ "proof": [+ "src/components/shared/SharedPrimitives.guardrails.test.ts",+ "src/components/shared/InfoCardFrame.test.tsx",+ "scripts/shared-template-audit.mjs"+ ]+ },{"id": "platform-table-loading-state-local-status-row","category": "platform-table-loading-state",diff --git a/frontend-modern/src/components/Discovery/DiscoveryTab.tsx b/frontend-modern/src/components/Discovery/DiscoveryTab.tsxindex e7f9d78705..7c6e2be4dd 100644--- a/frontend-modern/src/components/Discovery/DiscoveryTab.tsx+++ b/frontend-modern/src/components/Discovery/DiscoveryTab.tsx@@ -31,6 +31,7 @@ import {} from '@/utils/resourceAnalysisPresentation';import { CopyValueButton } from '@/components/shared/Button';import { CopyableCodeRow } from '@/components/shared/CopyableCodeRow';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import { useDiscoveryTabState } from './useDiscoveryTabState';import { orderFactsByActionability } from './factOrdering';import { deriveCliCommand } from './cliCommand';@@ -211,7 +212,7 @@ export const DiscoveryTab: Component<DiscoveryTabProps> = (props) => {</Show><Show when={showManualRunAction()}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"><div><div class="text-xs font-medium text-base-content">Discovery run</div>@@ -249,7 +250,7 @@ export const DiscoveryTab: Component<DiscoveryTabProps> = (props) => {</Show></button></div>- </div>+ </InfoCardFrame></Show>{/* "What Discovery Does" explanation - shown when no discovery exists yet */}@@ -724,7 +725,7 @@ export const DiscoveryTab: Component<DiscoveryTabProps> = (props) => {</div></Show>{/* Service Header */}- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="flex items-start justify-between"><div><div class="flex flex-wrap items-center gap-1.5">@@ -774,7 +775,7 @@ export const DiscoveryTab: Component<DiscoveryTabProps> = (props) => {Available to Pulse Assistant</span></div>- </div>+ </InfoCardFrame><Show when={d().suggested_url || d().suggested_url_diagnostic}><div class={getDiscoverySuggestedURLCardClass()}>@@ -1133,7 +1134,7 @@ export const DiscoveryTab: Component<DiscoveryTabProps> = (props) => {{/* Commands Run (for non-admin users who can't see full output) */}<Show when={!d().raw_command_output && d().scan_duration && d().scan_duration > 0}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-1">Scan Info</div>@@ -1141,7 +1142,7 @@ export const DiscoveryTab: Component<DiscoveryTabProps> = (props) => {Scan completed in {(d().scan_duration! / 1000).toFixed(1)}s. Full scan detailsare available to administrators.</p>- </div>+ </InfoCardFrame></Show>{/* Footer with Update button */}diff --git a/frontend-modern/src/components/Infrastructure/ResourceActionHistory.tsx b/frontend-modern/src/components/Infrastructure/ResourceActionHistory.tsxindex ddaf3fff85..4b31f48dd6 100644--- a/frontend-modern/src/components/Infrastructure/ResourceActionHistory.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceActionHistory.tsx@@ -1,5 +1,6 @@import { For, Show } from 'solid-js';import type { Component } from 'solid-js';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import type { ActionAuditRecord } from '@/types/actionAudit';import { formatRelativeTime } from '@/utils/format';import {@@ -153,10 +154,7 @@ const ActionHistoryRow: Component<{ audit: ActionAuditRecord }> = (props) => {};export const ResourceActionHistory: Component<ResourceActionHistoryProps> = (props) => (- <div- data-testid="resource-action-history-section"- class="w-full rounded border border-border bg-surface p-3 shadow-sm"- >+ <InfoCardFrame data-testid="resource-action-history-section" class="w-full"><div class="flex items-center justify-between gap-3"><div><div class="text-[11px] font-medium uppercase tracking-wide text-base-content">@@ -196,5 +194,5 @@ export const ResourceActionHistory: Component<ResourceActionHistoryProps> = (pro<For each={props.audits}>{(audit) => <ActionHistoryRow audit={audit} />}</For></div></Show>- </div>+ </InfoCardFrame>);diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsxindex c2c9668e3d..8a888a40a2 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx@@ -16,6 +16,7 @@ import { TemperaturesCard } from '@/components/shared/cards/TemperaturesCard';import { RaidCard } from '@/components/shared/cards/RaidCard';import { DiscoveryTab } from '@/components/Discovery/DiscoveryTab';import { FormSelect } from '@/components/shared/FormSelect';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import { WebInterfaceUrlField } from '@/components/shared/WebInterfaceUrlField';import { getAllFilterOptionLabel } from '@/components/shared/filterOptionPresentation';import { getServiceHealthPresentation } from '@/utils/serviceHealthPresentation';@@ -373,10 +374,7 @@ export const ResourceDetailDrawerOverviewTab: Component<ResourceDetailDrawerOver<div data-testid="resource-secondary-sections" class="space-y-3"><Show when={shouldRenderChangeHistorySection()}>- <div- data-testid="resource-change-history-section"- class="w-full rounded border border-border bg-surface p-3 shadow-sm"- >+ <InfoCardFrame data-testid="resource-change-history-section" class="w-full"><div class="flex items-center justify-between gap-3"><div><div class="text-[11px] font-medium uppercase tracking-wide text-base-content">@@ -607,7 +605,7 @@ export const ResourceDetailDrawerOverviewTab: Component<ResourceDetailDrawerOver</For></div></Show>- </div>+ </InfoCardFrame></Show><Show when={drawer.hasCorrelationContext()}>diff --git a/frontend-modern/src/components/Workloads/DrawerDiskListCard.tsx b/frontend-modern/src/components/Workloads/DrawerDiskListCard.tsxindex da69839ed2..ca985facd3 100644--- a/frontend-modern/src/components/Workloads/DrawerDiskListCard.tsx+++ b/frontend-modern/src/components/Workloads/DrawerDiskListCard.tsx@@ -1,5 +1,6 @@import { For, Show } from 'solid-js';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import type { Disk } from '@/types/api';import { formatBytes } from '@/utils/format';import { getMetricColorRgba, getMetricTextColorClass } from '@/utils/metricThresholds';@@ -43,8 +44,6 @@ export const buildDrawerDiskListItems = (disks: Disk[]): DrawerDiskListItem[] =>};});-const DRAWER_CARD_CLASS = 'rounded border border-border bg-surface p-3 shadow-sm';-interface DrawerDiskListCardProps {title?: string;disks: DrawerDiskListItem[];@@ -53,10 +52,7 @@ interface DrawerDiskListCardProps {export function DrawerDiskListCard(props: DrawerDiskListCardProps) {return (- <div- class={`${DRAWER_CARD_CLASS} basis-[calc(50%-0.75rem)] grow-[2]`}- data-testid={props.testId}- >+ <InfoCardFrame class="basis-[calc(50%-0.75rem)] grow-[2]" data-testid={props.testId}><h3 class="mb-2 text-[11px] font-medium uppercase tracking-wide text-base-content">{props.title ?? 'Storage'}</h3>@@ -92,6 +88,6 @@ export function DrawerDiskListCard(props: DrawerDiskListCardProps) {)}</For></div>- </div>+ </InfoCardFrame>);}diff --git a/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx b/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsxindex 83bf9b6fb6..d769439616 100644--- a/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx+++ b/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx@@ -6,6 +6,7 @@ import { formatDiscoveryAge } from '@/api/discovery';import { buildInfrastructureOnboardingPath } from '@/components/Settings/infrastructureWorkspaceModel';import { DiscoveryProvenanceMarker } from '@/components/shared/DiscoveryProvenanceMarker';import { DiscoveryReadinessBadge } from '@/components/shared/DiscoveryReadinessBadge';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import { WebInterfaceUrlField } from '@/components/shared/WebInterfaceUrlField';import type { DiscoveryIdentifiedSummary } from '@/utils/discoveryPresentation';import type { DiscoveryReadinessPresentation } from '@/utils/resourceDiscoveryReadiness';@@ -59,7 +60,7 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {<div class="flex flex-wrap gap-3 [&>*]:flex-1 [&>*]:basis-[calc(25%-0.75rem)] [&>*]:min-w-[200px] [&>*]:max-w-full [&>*]:overflow-hidden"><Show when={props.discoveryIdentifiedSummary}>{(summary) => (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="flex items-center justify-between gap-2 mb-2"><div class="flex min-w-0 items-center gap-1.5"><h3 class="truncate text-[11px] font-medium uppercase tracking-wide text-base-content">@@ -132,12 +133,12 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {</Show></div></div>- </div>+ </InfoCardFrame>)}</Show><Show when={props.discoveryReadinessPresentation}>{(presentation) => (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="flex items-center justify-between gap-2 mb-2"><h3 class="truncate text-[11px] font-medium uppercase tracking-wide text-base-content">AI Context@@ -155,10 +156,10 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {<p class="text-[10px] leading-4 text-muted">{presentation().detail}</p></Show></div>- </div>+ </InfoCardFrame>)}</Show>- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><h3 class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">System</h3>@@ -216,17 +217,14 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {</div></Show></div>- </div>+ </InfoCardFrame><Show when={props.nestedWorkloadContext}>{(context) => {const visibleItems = () => context().items.slice(0, 4);const hiddenCount = () => Math.max(0, context().count - visibleItems().length);return (- <div- class="rounded border border-border bg-surface p-3 shadow-sm"- data-testid="nested-workload-context-card"- >+ <InfoCardFrame data-testid="nested-workload-context-card"><div class="mb-2 flex items-center justify-between gap-2"><h3 class="truncate text-[11px] font-medium uppercase tracking-wide text-base-content">{context().title}@@ -261,7 +259,7 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {<div class="text-[10px] font-medium text-muted">+{hiddenCount()} more</div></Show></div>- </div>+ </InfoCardFrame>);}}</Show>@@ -279,7 +277,7 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {props.guest.vmware?.clusterName)}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><h3 class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">vSphere</h3>@@ -320,11 +318,11 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {</div></Show></div>- </div>+ </InfoCardFrame></Show><Show when={props.hasOsInfo || props.ipAddresses.length > 0}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><h3 class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Guest Info</h3>@@ -362,11 +360,11 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {</div></Show></div>- </div>+ </InfoCardFrame></Show><Show when={getGuestDrawerMemoryRows(props.guest).length > 0}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><h3 class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Memory</h3>@@ -385,11 +383,11 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {)}</For></div>- </div>+ </InfoCardFrame></Show><Show when={props.guest.lastBackup}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><h3 class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Backup</h3>@@ -408,11 +406,11 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {)}</Show></div>- </div>+ </InfoCardFrame></Show><Show when={props.normalizedTags.length > 0}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><h3 class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Tags</h3>@@ -425,13 +423,13 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {)}</For></div>- </div>+ </InfoCardFrame></Show><Showwhen={props.hasFilesystemDetails && props.guest.disks && props.guest.disks.length > 0}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><h3 class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Filesystems</h3>@@ -444,11 +442,11 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {thresholds={props.diskThresholds}/></div>- </div>+ </InfoCardFrame></Show><Show when={props.hasNetworkInterfaces}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><h3 class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Network</h3>@@ -495,7 +493,7 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {}}</For></div>- </div>+ </InfoCardFrame></Show></div>diff --git a/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx b/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsxindex 1390d0d6cb..8208946f78 100644--- a/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx+++ b/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx@@ -1,7 +1,14 @@import { For, Show } from 'solid-js';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import type { Disk, Node, Temperature } from '@/types/api';-import { formatBytes, formatRelativeTime, formatSpeed, formatUptime, normalizeDiskArray } from '@/utils/format';+import {+ formatBytes,+ formatRelativeTime,+ formatSpeed,+ formatUptime,+ normalizeDiskArray,+} from '@/utils/format';import { getNodeDisplayName } from '@/utils/nodes';import { formatTemperature, getCpuTemperature, getTemperatureTextClass } from '@/utils/temperature';@@ -19,8 +26,6 @@ interface NodeOverviewRow {title?: string;}-const NODE_OVERVIEW_CARD_CLASS = 'rounded border border-border bg-surface p-3 shadow-sm';-const cleanText = (value: string | null | undefined): string => {const trimmed = (value || '').trim();return trimmed && trimmed.toLowerCase() !== 'unknown' ? trimmed : '';@@ -142,7 +147,7 @@ const getThermalRows = (temperature: Temperature | undefined): NodeOverviewRow[]const DetailCard = (props: { title: string; rows: NodeOverviewRow[] }) => (<Show when={props.rows.length > 0}>- <div class={NODE_OVERVIEW_CARD_CLASS}>+ <InfoCardFrame><h3 class="mb-2 text-[11px] font-medium uppercase tracking-wide text-base-content">{props.title}</h3>@@ -161,7 +166,7 @@ const DetailCard = (props: { title: string; rows: NodeOverviewRow[] }) => ()}</For></div>- </div>+ </InfoCardFrame></Show>);@@ -230,9 +235,7 @@ export function NodeDrawerOverview(props: NodeDrawerOverviewProps) {...(hasPositiveNumber(props.node.cpuInfo?.sockets)? [{ label: 'Sockets', value: `${props.node.cpuInfo.sockets}` } satisfies NodeOverviewRow]: []),- ...(clockLabel()- ? [{ label: 'Clock', value: clockLabel() } satisfies NodeOverviewRow]- : []),+ ...(clockLabel() ? [{ label: 'Clock', value: clockLabel() } satisfies NodeOverviewRow] : []),...(loadAverageLabel() !== '-'? [{ label: 'Load avg', value: loadAverageLabel() } satisfies NodeOverviewRow]: []),diff --git a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsxindex c9edb2a54c..05715645ee 100644--- a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx+++ b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx@@ -1318,6 +1318,7 @@ describe('Workloads performance contract', () => {expect(nodeDrawerOverviewSource).toContain('Hardware');expect(nodeDrawerOverviewSource).toContain('Telemetry');expect(nodeDrawerOverviewSource).toContain('Thermals');+ expect(nodeDrawerOverviewSource).toContain('InfoCardFrame');expect(nodeDrawerModelSource).toContain("id: 'thermals'");expect(nodeDrawerModelSource).toContain("metric: 'temperature'");expect(workloadPanelSource).toContain('NodeDrawer');@@ -1348,6 +1349,13 @@ describe('Workloads performance contract', () => {expect(guestDrawerOverviewSource).toContain('WebInterfaceUrlField');expect(guestDrawerOverviewSource).toContain('DiskList');expect(guestDrawerOverviewSource).toContain('Filesystems');+ expect(guestDrawerOverviewSource).toContain('InfoCardFrame');+ expect(guestDrawerOverviewSource).not.toContain(+ 'rounded border border-border bg-surface p-3 shadow-sm',+ );+ expect(nodeDrawerOverviewSource).not.toContain(+ 'rounded border border-border bg-surface p-3 shadow-sm',+ );expect(workloadTopologySource).toContain('export const workloadNodeScopeId');expect(workloadTopologySource).toContain('export const getKubernetesContextKey');expect(workloadTopologySource).toContain('export const getWorkloadDockerHostId');diff --git a/frontend-modern/src/components/shared/InfoCardFrame.test.tsx b/frontend-modern/src/components/shared/InfoCardFrame.test.tsxnew file mode 100644index 0000000000..fc743a8479--- /dev/null+++ b/frontend-modern/src/components/shared/InfoCardFrame.test.tsx@@ -0,0 +1,46 @@+import { cleanup, render, screen } from '@solidjs/testing-library';+import { afterEach, describe, expect, it } from 'vitest';+import { InfoCardFrame, getInfoCardFrameClass } from './InfoCardFrame';++describe('InfoCardFrame', () => {+ afterEach(() => {+ cleanup();+ });++ it('renders the canonical compact information card frame', () => {+ render(() => (+ <InfoCardFrame data-testid="card">+ <span>Storage</span>+ </InfoCardFrame>+ ));++ const card = screen.getByTestId('card');++ expect(card).toHaveClass('rounded');+ expect(card).toHaveClass('border');+ expect(card).toHaveClass('border-border');+ expect(card).toHaveClass('bg-surface');+ expect(card).toHaveClass('p-3');+ expect(card).toHaveClass('shadow-sm');+ expect(screen.getByText('Storage')).toBeInTheDocument();+ });++ it('composes contextual classes without leaking local props', () => {+ render(() => (+ <InfoCardFrame data-testid="card" class="w-full grow">+ Context+ </InfoCardFrame>+ ));++ const card = screen.getByTestId('card');++ expect(card).toHaveClass('w-full');+ expect(card).toHaveClass('grow');+ expect(card).not.toHaveAttribute('className');+ });++ it('exposes the shared class model for presentation constants', () => {+ expect(getInfoCardFrameClass({ class: 'text-center' })).toContain('text-center');+ expect(getInfoCardFrameClass()).toContain('bg-surface');+ });+});diff --git a/frontend-modern/src/components/shared/InfoCardFrame.tsx b/frontend-modern/src/components/shared/InfoCardFrame.tsxnew file mode 100644index 0000000000..d7eee868c7--- /dev/null+++ b/frontend-modern/src/components/shared/InfoCardFrame.tsx@@ -0,0 +1,19 @@+import { splitProps, type JSX } from 'solid-js';++export interface InfoCardFrameProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, 'class'> {+ class?: string;+}++export const INFO_CARD_FRAME_CLASS = 'rounded border border-border bg-surface p-3 shadow-sm';++export function getInfoCardFrameClass(props: { class?: string } = {}): string {+ return [INFO_CARD_FRAME_CLASS, props.class ?? ''].filter(Boolean).join(' ');+}++export function InfoCardFrame(props: InfoCardFrameProps): JSX.Element {+ const [local, rest] = splitProps(props, ['class']);++ return <div {...rest} class={getInfoCardFrameClass({ class: local.class })} />;+}++export default InfoCardFrame;diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex beeb26a6e8..3e90df08b8 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -248,6 +248,7 @@ const sharedSources = import.meta.glob(['./*.tsx', './cards/*.tsx', './responsivimport: 'default',}) as Record<string, string>;const frontendIndexCssSource = readFileSync(join(process.cwd(), 'src/index.css'), 'utf8');+const readFrontendSource = (path: string) => readFileSync(join(process.cwd(), path), 'utf8');describe('shared primitive guardrails', () => {it('limits raw Table composition inside shared primitives to the canonical allowlist', () => {@@ -334,7 +335,11 @@ describe('shared primitive guardrails', () => {expect(filterButtonGroupModelSource).toContain('getFilterButtonGroupButtonClass');expect(filterButtonGroupModelSource).toContain('getFilterButtonGroupCompactLabel');expect(generalSettingsPanelSource).toContain('FilterButtonGroup');- expect(generalSettingsPanelSource.match(/<FilterButtonGroup/g) ?? []).toHaveLength(3);+ expect(generalSettingsPanelSource.match(/<FilterButtonGroup/g) ?? []).toHaveLength(4);+ expect(generalSettingsPanelSource).toContain('getLocalePreferenceOptions');+ expect(generalSettingsPanelSource).toContain(+ "ariaLabel={t('settings.general.language.ariaLabel')}",+ );expect(generalSettingsPanelSource).toContain('variant="prominent"');expect(generalSettingsPanelSource).not.toContain("props.themePreference() === 'light'");expect(generalSettingsPanelSource).not.toContain("temperatureStore.unit() === 'celsius'");@@ -838,6 +843,85 @@ describe('shared primitive guardrails', () => {}});+ it('keeps compact information card frames on the shared InfoCardFrame owner', () => {+ const registry = JSON.parse(sharedTemplateRegistrySource) as {+ rules?: Array<{+ id: string;+ canonical?: { path?: string; export?: string };+ requiredConsumers?: Array<{ path?: string }>;+ }>;+ patternGuards?: Array<{+ id: string;+ canonical?: { path?: string; export?: string };+ allPatterns?: string[];+ scopes?: string[];+ extensions?: string[];+ allowedPaths?: string[];+ ignoredPaths?: string[];+ }>;+ };+ const expectedConsumers = [+ 'src/components/Discovery/DiscoveryTab.tsx',+ 'src/components/Infrastructure/ResourceActionHistory.tsx',+ 'src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx',+ 'src/components/shared/WebInterfaceUrlField.tsx',+ 'src/components/shared/cards/DisksCard.tsx',+ 'src/components/shared/cards/HardwareCard.tsx',+ 'src/components/shared/cards/NetworkInterfacesCard.tsx',+ 'src/components/shared/cards/RaidCard.tsx',+ 'src/components/shared/cards/RootDiskCard.tsx',+ 'src/components/shared/cards/SystemInfoCard.tsx',+ 'src/components/shared/cards/TemperaturesCard.tsx',+ 'src/components/Workloads/DrawerDiskListCard.tsx',+ 'src/components/Workloads/GuestDrawerOverview.tsx',+ 'src/components/Workloads/NodeDrawerOverview.tsx',+ 'src/features/docker/DockerHostDrawerOverview.tsx',+ 'src/features/storageBackups/detailPresentation.ts',+ ];+ const retiredFrameClass = 'rounded border border-border bg-surface p-3 shadow-sm';+ const registeredRule = registry.rules?.find(+ (rule) => rule.id === 'compact-info-card-frame-shell',+ );+ const registeredGuard = registry.patternGuards?.find(+ (guard) => guard.id === 'compact-info-card-frame-local-shell',+ );++ expect(registeredRule?.canonical?.path).toBe('src/components/shared/InfoCardFrame.tsx');+ expect(registeredRule?.canonical?.export).toBe('InfoCardFrame');+ expect(registeredRule?.requiredConsumers?.map((consumer) => consumer.path)).toEqual(+ expectedConsumers,+ );+ expect(registeredGuard?.canonical?.path).toBe('src/components/shared/InfoCardFrame.tsx');+ expect(registeredGuard?.canonical?.export).toBe('InfoCardFrame');+ expect(registeredGuard?.allPatterns).toEqual([retiredFrameClass]);+ expect(registeredGuard?.extensions).toEqual(['.ts', '.tsx']);+ expect(registeredGuard?.allowedPaths ?? []).toHaveLength(0);+ expect(registeredGuard?.ignoredPaths).toEqual([+ 'src/components/shared/SharedPrimitives.guardrails.test.ts',+ ]);+ expect(registeredGuard?.scopes).toEqual(+ expect.arrayContaining(['src/components', 'src/features', 'src/pages']),+ );++ const infoCardFrameSource = readFrontendSource('src/components/shared/InfoCardFrame.tsx');+ expect(infoCardFrameSource).toContain('INFO_CARD_FRAME_CLASS');+ expect(infoCardFrameSource).toContain(retiredFrameClass);+ expect(infoCardFrameSource).toContain('getInfoCardFrameClass');++ for (const consumerPath of expectedConsumers) {+ const source = readFrontendSource(consumerPath);+ expect(source).toContain('InfoCardFrame');+ expect(source).not.toContain(retiredFrameClass);+ }++ expect(readFrontendSource('src/components/shared/WebInterfaceUrlField.tsx')).toContain(+ 'getInfoCardFrameClass',+ );+ expect(readFrontendSource('src/features/storageBackups/detailPresentation.ts')).toContain(+ 'INFO_CARD_FRAME_CLASS',+ );+ });+it('keeps shared subtabs as one primitive and leaves shell styling to owning surfaces', () => {expect(subtabsSource).not.toContain("variant?: 'default' | 'control'");expect(subtabsSource).not.toContain('subtabsControlShellClass');@@ -2541,9 +2625,7 @@ describe('shared primitive guardrails', () => {}),expect.objectContaining({path: 'src/components/Settings/DiscoverySettingsForm.tsx',- patterns: expect.arrayContaining([- 'rounded-md border border-amber-200 bg-amber-50/80',- ]),+ patterns: expect.arrayContaining(['rounded-md border border-amber-200 bg-amber-50/80']),}),]),);diff --git a/frontend-modern/src/components/shared/WebInterfaceUrlField.tsx b/frontend-modern/src/components/shared/WebInterfaceUrlField.tsxindex e9410a1607..ea688ce629 100644--- a/frontend-modern/src/components/shared/WebInterfaceUrlField.tsx+++ b/frontend-modern/src/components/shared/WebInterfaceUrlField.tsx@@ -2,6 +2,7 @@ import { Component, Show } from 'solid-js';import ExternalLinkIcon from 'lucide-solid/icons/external-link';import { Button, CopyValueButton } from './Button';import { DiscoveryProvenanceMarker } from './DiscoveryProvenanceMarker';+import { getInfoCardFrameClass } from './InfoCardFrame';import { useWebInterfaceUrlFieldState } from './useWebInterfaceUrlFieldState';import type { WebInterfaceUrlFieldProps } from './webInterfaceUrlFieldModel';@@ -11,9 +12,7 @@ export const WebInterfaceUrlField: Component<WebInterfaceUrlFieldProps> = (propsconst state = useWebInterfaceUrlFieldState(props);const title = () => props.title?.trim() || 'Web Interface URL';const rootClass = () =>- props.embedded- ? (props.class ?? '')- : `rounded border border-border bg-surface p-3 shadow-sm ${props.class ?? ''}`.trim();+ props.embedded ? (props.class ?? '') : getInfoCardFrameClass({ class: props.class });return (<Show when={state.metadataId()}>diff --git a/frontend-modern/src/components/shared/cards/DisksCard.tsx b/frontend-modern/src/components/shared/cards/DisksCard.tsxindex 6821776f09..6cebe03186 100644--- a/frontend-modern/src/components/shared/cards/DisksCard.tsx+++ b/frontend-modern/src/components/shared/cards/DisksCard.tsx@@ -2,6 +2,7 @@ import { Component, For, Show } from 'solid-js';import { Disk } from '@/types/api';import { formatBytes } from '@/utils/format';import { getMetricColorRgba, getMetricTextColorClass } from '@/utils/metricThresholds';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import { StackedDiskBar } from '@/components/Workloads/StackedDiskBar';interface DisksCardProps {@@ -29,7 +30,7 @@ export const DisksCard: Component<DisksCardProps> = (props) => {};return (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Disks</div>@@ -82,6 +83,6 @@ export const DisksCard: Component<DisksCardProps> = (props) => {}}</For></div>- </div>+ </InfoCardFrame>);};diff --git a/frontend-modern/src/components/shared/cards/HardwareCard.tsx b/frontend-modern/src/components/shared/cards/HardwareCard.tsxindex 19bd86b25a..bc2de0640b 100644--- a/frontend-modern/src/components/shared/cards/HardwareCard.tsx+++ b/frontend-modern/src/components/shared/cards/HardwareCard.tsx@@ -1,5 +1,6 @@import { Component } from 'solid-js';import type { Agent, Node } from '@/types/api';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import { formatBytes } from '@/utils/format';type HardwareCardProps = { variant: 'node'; node: Node } | { variant: 'agent'; agent: Agent };@@ -8,7 +9,7 @@ export const HardwareCard: Component<HardwareCardProps> = (props) => {if (props.variant === 'node') {const node = props.node;return (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Hardware</div>@@ -33,13 +34,13 @@ export const HardwareCard: Component<HardwareCardProps> = (props) => {</span></div></div>- </div>+ </InfoCardFrame>);}const agentInfo = props.agent;return (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Hardware</div>@@ -59,6 +60,6 @@ export const HardwareCard: Component<HardwareCardProps> = (props) => {<span class="font-medium text-base-content">{agentInfo.agentVersion}</span></div></div>- </div>+ </InfoCardFrame>);};diff --git a/frontend-modern/src/components/shared/cards/NetworkInterfacesCard.tsx b/frontend-modern/src/components/shared/cards/NetworkInterfacesCard.tsxindex be05bfba9a..8c5b71dead 100644--- a/frontend-modern/src/components/shared/cards/NetworkInterfacesCard.tsx+++ b/frontend-modern/src/components/shared/cards/NetworkInterfacesCard.tsx@@ -1,4 +1,5 @@import { Component, For, Show } from 'solid-js';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import { HostNetworkInterface } from '@/types/api';interface NetworkInterfacesCardProps {@@ -9,7 +10,7 @@ export const NetworkInterfacesCard: Component<NetworkInterfacesCardProps> = (proif (!props.interfaces || props.interfaces.length === 0) return null;return (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Network</div>@@ -46,6 +47,6 @@ export const NetworkInterfacesCard: Component<NetworkInterfacesCardProps> = (pro)}</For></div>- </div>+ </InfoCardFrame>);};diff --git a/frontend-modern/src/components/shared/cards/RaidCard.tsx b/frontend-modern/src/components/shared/cards/RaidCard.tsxindex abeef4133d..d1e2a01045 100644--- a/frontend-modern/src/components/shared/cards/RaidCard.tsx+++ b/frontend-modern/src/components/shared/cards/RaidCard.tsx@@ -1,5 +1,6 @@import { Component, For, Show } from 'solid-js';import type { HostRAIDArray } from '@/types/api';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import { StatusDot } from '@/components/shared/StatusDot';import {getRaidDeviceBadgeClass,@@ -16,7 +17,7 @@ export const RaidCard: Component<RaidCardProps> = (props) => {if (!props.arrays || props.arrays.length === 0) return null;return (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">{props.title || 'RAID'}</div>@@ -93,7 +94,7 @@ export const RaidCard: Component<RaidCardProps> = (props) => {}}</For></div>- </div>+ </InfoCardFrame>);};diff --git a/frontend-modern/src/components/shared/cards/RootDiskCard.tsx b/frontend-modern/src/components/shared/cards/RootDiskCard.tsxindex efcd7146c2..4d19024c3c 100644--- a/frontend-modern/src/components/shared/cards/RootDiskCard.tsx+++ b/frontend-modern/src/components/shared/cards/RootDiskCard.tsx@@ -1,5 +1,6 @@import { Component } from 'solid-js';import { Node } from '@/types/api';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import { formatBytes } from '@/utils/format';import { StackedDiskBar } from '@/components/Workloads/StackedDiskBar';@@ -20,7 +21,7 @@ export const RootDiskCard: Component<RootDiskCardProps> = (props) => {};return (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">Root Disk</div>@@ -40,6 +41,6 @@ export const RootDiskCard: Component<RootDiskCardProps> = (props) => {}}/></div>- </div>+ </InfoCardFrame>);};diff --git a/frontend-modern/src/components/shared/cards/SystemInfoCard.tsx b/frontend-modern/src/components/shared/cards/SystemInfoCard.tsxindex da9773e497..a4e34b4408 100644--- a/frontend-modern/src/components/shared/cards/SystemInfoCard.tsx+++ b/frontend-modern/src/components/shared/cards/SystemInfoCard.tsx@@ -1,5 +1,6 @@import { Component, Show } from 'solid-js';import type { Agent, Node } from '@/types/api';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import { formatUptime } from '@/utils/format';type SystemInfoCardProps = { variant: 'node'; node: Node } | { variant: 'agent'; agent: Agent };@@ -8,7 +9,7 @@ export const SystemInfoCard: Component<SystemInfoCardProps> = (props) => {if (props.variant === 'node') {const node = props.node;return (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">System</div>@@ -38,13 +39,13 @@ export const SystemInfoCard: Component<SystemInfoCardProps> = (props) => {</div></Show></div>- </div>+ </InfoCardFrame>);}const agentInfo = props.agent;return (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">System</div>@@ -92,6 +93,6 @@ export const SystemInfoCard: Component<SystemInfoCardProps> = (props) => {</div></Show></div>- </div>+ </InfoCardFrame>);};diff --git a/frontend-modern/src/components/shared/cards/TemperaturesCard.tsx b/frontend-modern/src/components/shared/cards/TemperaturesCard.tsxindex b3eb6fdb3f..a5f3201e97 100644--- a/frontend-modern/src/components/shared/cards/TemperaturesCard.tsx+++ b/frontend-modern/src/components/shared/cards/TemperaturesCard.tsx@@ -1,4 +1,5 @@import { Component, For } from 'solid-js';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';interface TemperatureRow {label: string;@@ -15,7 +16,7 @@ export const TemperaturesCard: Component<TemperaturesCardProps> = (props) => {if (!props.rows || props.rows.length === 0) return null;return (- <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <InfoCardFrame><div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">{props.title || 'Temperatures'}</div>@@ -34,6 +35,6 @@ export const TemperaturesCard: Component<TemperaturesCardProps> = (props) => {)}</For></div>- </div>+ </InfoCardFrame>);};diff --git a/frontend-modern/src/features/docker/DockerHostDrawerOverview.tsx b/frontend-modern/src/features/docker/DockerHostDrawerOverview.tsxindex a721cf3612..da696c1027 100644--- a/frontend-modern/src/features/docker/DockerHostDrawerOverview.tsx+++ b/frontend-modern/src/features/docker/DockerHostDrawerOverview.tsx@@ -5,6 +5,7 @@ import {buildDrawerDiskListItems,type DrawerDiskListItem,} from '@/components/Workloads/DrawerDiskListCard';+import { InfoCardFrame } from '@/components/shared/InfoCardFrame';import { useResourceDetailDrawerDockerActionsState } from '@/components/Infrastructure/useResourceDetailDrawerDockerActionsState';import { areSystemSettingsLoaded, shouldHideDockerUpdateActions } from '@/stores/systemSettings';import type { Resource } from '@/types/resource';@@ -30,8 +31,6 @@ interface DockerOverviewRow {title?: string;}-const DOCKER_OVERVIEW_CARD_CLASS = 'rounded border border-border bg-surface p-3 shadow-sm';-const cleanText = (value: string | null | undefined): string => {const trimmed = (value || '').trim();return trimmed && trimmed.toLowerCase() !== 'unknown' ? trimmed : '';@@ -63,9 +62,7 @@ const getNumericField = (value: unknown, field: string): number | undefined => {return typeof fieldValue === 'number' ? fieldValue : undefined;};-const formatLastSeenRow = (- value: string | number | null | undefined,-): DockerOverviewRow | null => {+const formatLastSeenRow = (value: string | number | null | undefined): DockerOverviewRow | null => {if (value == null) return null;const parsed = typeof value === 'number' ? new Date(value) : new Date(String(value));if (Number.isNaN(parsed.getTime())) return null;@@ -82,7 +79,7 @@ const titleCase = (value: string): string =>const DetailCard = (props: { title: string; rows: DockerOverviewRow[] }) => (<Show when={props.rows.length > 0}>- <div class={DOCKER_OVERVIEW_CARD_CLASS}>+ <InfoCardFrame><h3 class="mb-2 text-[11px] font-medium uppercase tracking-wide text-base-content">{props.title}</h3>@@ -101,7 +98,7 @@ const DetailCard = (props: { title: string; rows: DockerOverviewRow[] }) => ()}</For></div>- </div>+ </InfoCardFrame></Show>);@@ -112,8 +109,7 @@ export function DockerHostDrawerOverview(props: DockerHostDrawerOverviewProps) {const runtimeLabel = (): string => {const runtime = cleanText(docker()?.runtime) || 'Docker';- const version =- cleanText(docker()?.runtimeVersion) || cleanText(docker()?.dockerVersion);+ const version = cleanText(docker()?.runtimeVersion) || cleanText(docker()?.dockerVersion);if (!version) return titleCase(runtime);return `${titleCase(runtime)} ${version}`;};@@ -237,9 +233,7 @@ export function DockerHostDrawerOverview(props: DockerHostDrawerOverviewProps) {const hostSourceId = createMemo(() => cleanText(docker()?.hostSourceId) || null);const updatesAvailable = createMemo(() => docker()?.updatesAvailableCount ?? 0);- const hostCommand = createMemo(- () => docker()?.command as DockerHostCommandMeta | undefined,- );+ const hostCommand = createMemo(() => docker()?.command as DockerHostCommandMeta | undefined);const hostCommandActive = createMemo(() =>['queued', 'dispatched', 'acknowledged', 'in_progress'].includes(cleanText(hostCommand()?.status).toLowerCase(),@@ -311,13 +305,19 @@ export function DockerHostDrawerOverview(props: DockerHostDrawerOverviewProps) {valueClass: getTemperatureTextClass(temperature),});}- if (typeof props.host.network?.rxBytes === 'number' || typeof props.host.network?.txBytes === 'number') {+ if (+ typeof props.host.network?.rxBytes === 'number' ||+ typeof props.host.network?.txBytes === 'number'+ ) {rows.push({label: 'Network I/O',value: `${formatSpeed(props.host.network?.rxBytes ?? 0)} / ${formatSpeed(props.host.network?.txBytes ?? 0)}`,});}- if (typeof props.host.diskIO?.readRate === 'number' || typeof props.host.diskIO?.writeRate === 'number') {+ if (+ typeof props.host.diskIO?.readRate === 'number' ||+ typeof props.host.diskIO?.writeRate === 'number'+ ) {rows.push({label: 'Disk I/O',value: `${formatSpeed(props.host.diskIO?.readRate ?? 0)} / ${formatSpeed(props.host.diskIO?.writeRate ?? 0)}`,@@ -336,7 +336,7 @@ export function DockerHostDrawerOverview(props: DockerHostDrawerOverviewProps) {<div class="flex flex-wrap gap-3 [&>*]:flex-1 [&>*]:basis-[calc(25%-0.75rem)] [&>*]:min-w-[200px] [&>*]:max-w-full [&>*]:overflow-hidden"><DetailCard title="System" rows={systemRows()} /><DetailCard title="Runtime" rows={runtimeRows()} />- <div class={DOCKER_OVERVIEW_CARD_CLASS} data-testid="docker-host-drawer-containers-card">+ <InfoCardFrame data-testid="docker-host-drawer-containers-card"><h3 class="mb-2 text-[11px] font-medium uppercase tracking-wide text-base-content">Containers</h3>@@ -363,9 +363,7 @@ export function DockerHostDrawerOverview(props: DockerHostDrawerOverviewProps) {</span><spanclass={`truncate text-right font-medium ${- hostCommandActive()- ? 'text-sky-700 dark:text-sky-300'- : 'text-base-content'+ hostCommandActive() ? 'text-sky-700 dark:text-sky-300' : 'text-base-content'}`}title={hostCommand()?.failureReason || hostCommand()?.message || undefined}>@@ -418,7 +416,7 @@ export function DockerHostDrawerOverview(props: DockerHostDrawerOverviewProps) {</div></Show></div>- </div>+ </InfoCardFrame><DetailCard title="Memory" rows={memoryRows()} /><Showwhen={perDiskItems().length > 0}diff --git a/frontend-modern/src/features/storageBackups/detailPresentation.ts b/frontend-modern/src/features/storageBackups/detailPresentation.tsindex 4f5d5a06d3..53274a47da 100644--- a/frontend-modern/src/features/storageBackups/detailPresentation.ts+++ b/frontend-modern/src/features/storageBackups/detailPresentation.ts@@ -1,3 +1,5 @@+import { INFO_CARD_FRAME_CLASS } from '@/components/shared/InfoCardFrame';+export const STORAGE_DETAIL_CARD_CLASS = 'rounded-md border border-border bg-surface p-3 shadow-sm';export const STORAGE_DETAIL_SECTION_TITLE_CLASS = 'text-xs font-semibold text-base-content';@@ -57,8 +59,7 @@ export const STORAGE_DETAIL_SPACED_STACK_CLASS = 'space-y-3';export const STORAGE_DETAIL_FULL_WIDTH_ROW_CLASS = 'col-span-2';export const STORAGE_DETAIL_MUTED_TEXT_CLASS = 'text-muted';-export const STORAGE_DETAIL_EMPTY_CLASS =- 'rounded border border-border bg-surface p-3 shadow-sm text-center text-[11px] text-muted';+export const STORAGE_DETAIL_EMPTY_CLASS = `${INFO_CARD_FRAME_CLASS} text-center text-[11px] text-muted`;export const STORAGE_DISK_DETAIL_ROOT_CLASS = 'space-y-3';export const STORAGE_DISK_DETAIL_HEADER_CLASS =