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
Make drawer headers full-width collapse targets
rcourtman7e363e40e7aa
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 39c78c6b48..820a0bef58 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1058,6 +1058,14 @@ not a replacement status card, CTA band, or page-local nested card.and future drawer-header action chrome must compose`DrawerHeaderActionGroup`, `DrawerHeaderActionButton`, or`DrawerHeaderIconButton` instead of copying drawer-local button classes.+ The object-drawer subject row and its collapse interaction belong to+ `ObjectDrawerHeader`: the complete visible header is one semantic button+ with phone-safe target height, focus treatment, and a collapse chevron,+ while lifecycle or other object-specific action controls remain independent+ siblings above that button. Workload, infrastructure, shared inline, Ceph+ cluster, and Proxmox Mail Gateway detail consumers must compose this owner instead of leaving collapse on a+ small icon-only target or adding a local clickable wrapper around nested+ buttons.Copy-value affordances belong to the same shared button family. Featuresurfaces may own the copied value, success/error notification, and adjacentproduct copy, but icon/chip copy controls must use `CopyValueButton`, and@@ -3618,9 +3626,13 @@ enabled, drawers render no Discovery tab, readiness state, explanatory copy,analysis reveal, or identified-service suggestion and issue no passivediscovery-record read. Provider-specific drawer shells must not reinterpret atechnical discovery target as operator consent to enable the feature.-Drawer headers reserve their limited space for the subject and a close control,-plus a direct object-specific lifecycle action only where the object contract-requires one. Generic `Ask Assistant` and `Copy context` actions do not belong+Drawer headers reserve their limited space for the subject and the canonical+full-row collapse control, plus a direct object-specific lifecycle action only+where the object contract requires one. `ObjectDrawerHeader` owns that+interaction across guest, node, Docker/unified-resource, Ceph cluster,+Proxmox Mail Gateway, and shared inline detail panels: pressing anywhere in the subject row collapses the detail,+Enter/Space work through the native button, and lifecycle actions do not bubble+into collapse. Generic `Ask Assistant` and `Copy context` actions do not belongin object drawer headers: Assistant remains available through the global shell,and raw context export must not compete with the operational reading path.The shared interactive sparkline now follows that same split.@@ -4208,10 +4220,12 @@ long operator-state copy cannot escape the shared row border.Inline detail section content is registry-backed separately from the row shell.`DetailSectionTable`, `InlineDetailPanel`, and `detailSectionModel.ts` owndetail row compaction, section-table rendering, value-tone classes, and the-inline close action for platform alert/activity/protection/service detail-panels; consumers may own the platform-specific section data, but they must not-recreate local `DetailField` grids or route platform-neutral detail tables-through a provider-named primitive.+inline collapse action for platform alert/activity/protection/service detail+panels. `InlineDetailPanel` composes `ObjectDrawerHeader`, so its entire heading+row closes the panel instead of presenting a separate text button; consumers+may own the platform-specific section data, but they must not recreate local+`DetailField` grids or route platform-neutral detail tables through a+provider-named primitive.Platform row-detail disclosure controls are also registry-backed templates.`frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx`owns `PlatformResourceDetailToggleButton`, which composesdiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex a91dc93938..9b459a6f0c 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -1937,12 +1937,15 @@ compaction, table rendering, and tone classes must composeinstead of workload-local card frames or detail loops. Non-technical secondarycards still compose `InfoCardFrame` where a framed interactive surface isgenuinely required.-The guest drawer header follows the same dependency boundary for its Assistant,-copy-context, and close actions: Workloads owns availability and click-handlers, while `frontend-modern/src/components/shared/Button.tsx` owns the-drawer-header action group and button chrome through-`DrawerHeaderActionGroup`, `DrawerHeaderActionButton`, and-`DrawerHeaderIconButton`.+Guest, node, and Docker-host drawer headers follow the same frontend-primitives dependency+boundary for collapse: Workloads owns which inline row is selected and the+close handler, while+`frontend-modern/src/components/shared/ObjectDrawerHeader.tsx` owns the+full-width semantic header button, phone target height, focus treatment, and+collapse chevron. `WorkloadPanel` must pass the grouped node close handler into+`NodeDrawer`, the Docker hosts table must pass its close handler into+`DockerHostDrawer`, and those shells must not fall back to a small icon-only+collapse target or wrap interactive header actions inside a local button.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/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 123bc50670..653dd042e0 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -3105,11 +3105,14 @@ and it no longer repeats that same provenance as a separate `Mode` row becausethe drawer header badges already own canonical source display,and the drawer header no longer carries the technical primary identity line;that canonical identifier now lives in the `Identity` card as `Primary ID`,-and the drawer header action chrome is a frontend-primitives dependency:-ResourceDetailDrawer may own which actions are available and how they call the-resource state, but Assistant, copy-context, close, and future drawer-header-actions must compose the shared Button drawer-header action primitives instead-of restoring resource-drawer-local button classes,+and the drawer header interaction is a frontend-primitives dependency:+`ResourceDetailDrawer` may own which lifecycle actions are available and how+they call resource state, but it must compose `ObjectDrawerHeader` so the+complete subject/badge row is the semantic collapse target and lifecycle+buttons remain independent siblings. Assistant, copy-context, close, and+future drawer-header action chrome must continue through shared primitives+instead of restoring resource-drawer-local button classes or a small+icon-only collapse target,and platform alert tables use the same dependency rule for severitypresentation: Docker, Kubernetes, TrueNAS, and vSphere incident rows may ownwhich incidents exist and which native detail rows are shown, but visiblediff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 78a2854ad3..4f808f0993 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,25 +1,35 @@{"version": 1,- "base_sha": "f1aee5ccd1befb40ff2bc78940ad6a12558c4475",- "verified_at": "2026-08-24T13:54:53Z",+ "base_sha": "6991208ad62c550328109f50ea53b7b4202da62b",+ "verified_at": "2026-08-24T14:36:00Z","result": "passed","changed_paths": [- "frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx",- "frontend-modern/src/components/Infrastructure/ResourceDetailSummary.tsx",- "frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx",- "frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx",+ "frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx",+ "frontend-modern/src/components/Workloads/GuestDrawer.tsx",+ "frontend-modern/src/components/Workloads/NodeDrawer.tsx",+ "frontend-modern/src/components/Workloads/WorkloadPanel.tsx","frontend-modern/src/components/shared/DetailSectionTable.tsx",- "frontend-modern/src/components/shared/TechnicalDetailsDisclosure.tsx",- "frontend-modern/src/features/docker/DockerHostDrawerOverview.tsx"+ "frontend-modern/src/components/shared/ObjectDrawerHeader.tsx",+ "frontend-modern/src/features/docker/DockerHostDrawer.tsx",+ "frontend-modern/src/features/docker/DockerHostDrawerOverview.tsx",+ "frontend-modern/src/features/docker/DockerHostsTable.tsx",+ "frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx",+ "frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsx",+ "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx"],"content_sha256": {- "frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx": "5423e151cf559054d5c17292c48b8d82bc17e2b235aae7191bfd2950171f2df5",- "frontend-modern/src/components/Infrastructure/ResourceDetailSummary.tsx": "5a2b06ce9abafa674dc9821b31a10f946cdd4b7f06d7a847af13ea32b1983547",- "frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx": "99d6324d0b4be99d677ebd9a76cd4d5d4f86b786f6d9ff141d02d690f6d253bb",- "frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx": "04178af05ed8753d705f2c503e866973d9b3f35ad96d8e46cc2d57bf1a1d129c",- "frontend-modern/src/components/shared/DetailSectionTable.tsx": "18a24812a1b02af72c47edee5327c1d5e2c397cdffb57be9542ffdc89cb41595",- "frontend-modern/src/components/shared/TechnicalDetailsDisclosure.tsx": "5f6e0a9d206171d2497e345c9cc3438c164126974e69323bbf16a9f21643a5ae",- "frontend-modern/src/features/docker/DockerHostDrawerOverview.tsx": "22d8fc6f6b395aadb15dc208016edd078b5adb7151e67ab10c03b7f5657b629b"+ "frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx": "65b714d5e11f32aad5baf27dab6529a1759478e86be377ae4e208fd3730a0815",+ "frontend-modern/src/components/Workloads/GuestDrawer.tsx": "d13a9e66746541b7c28311d2e07ba961df4620c2178ab8fc5ebc1a079a858263",+ "frontend-modern/src/components/Workloads/NodeDrawer.tsx": "14926ce4b200435a7675028d5467aed89b5c9cb894e788822ff9fd70ae7f1f6f",+ "frontend-modern/src/components/Workloads/WorkloadPanel.tsx": "b933c323e93f56022f57d8083e5e2b4d715e8de906d7d3d38c7802ef1680b0c4",+ "frontend-modern/src/components/shared/DetailSectionTable.tsx": "9ea698e10d5ef197a5e0bea3cc5a97a23173116b093cb4377a0bcbd29119fb20",+ "frontend-modern/src/components/shared/ObjectDrawerHeader.tsx": "39702f2a07f9f3c9b64a82820ce21f6e42ba1b88b33e7900ebb353fab09cce83",+ "frontend-modern/src/features/docker/DockerHostDrawer.tsx": "e05dcca8cd2c9a170bc6a405d869982a6e6607d760083f62b95520cc131358ab",+ "frontend-modern/src/features/docker/DockerHostDrawerOverview.tsx": "6ad83f0faf4c02fb29f027104ff91cc6fbafd8fc0db8da1693f1546e00bdca9b",+ "frontend-modern/src/features/docker/DockerHostsTable.tsx": "c6af64cb0a2fbdf2d1973463b1a7d992685e39bda8456a138ed1ff81e2c71718",+ "frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx": "4da690f8ac74e95d77f728f7be910e140e25119f796e0874b2bbd6193e4cf5fc",+ "frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsx": "e0eba7b1fa5233379bb7f0eda3e49920976a5b9b82fa4749f8e150f186f3a687",+ "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx": "a192b907ce195f9c72257d25f0cf1e015a070e30cea794872dbeda2f4d2b1826"},"routes": ["/proxmox/overview", "/docker/overview"],"viewports": [@@ -33,14 +43,16 @@}],"states": [- "Proxmox node drawer with curated operator context, platform, hardware, memory, storage, and telemetry rows visible",- "Proxmox guest drawer with only the operator and inventory sections supported by the selected workload visible",- "Docker host drawer with operator context, runtime, capacity, and telemetry rows visible"+ "Proxmox node drawer with the complete subject header row presented as one visible collapse target at desktop and phone widths",+ "Proxmox guest drawer with the same canonical full-width collapse affordance at phone width",+ "Proxmox Ceph cluster and Mail Gateway drawers with the same canonical full-width collapse affordance at phone width",+ "Docker host drawer with the canonical full-width collapse affordance and condensed technical rows at phone width"],"interactions": [- "opened a Proxmox node row at desktop and phone widths and confirmed compact detail rows render immediately with no nested details disclosure",- "opened a Proxmox guest row at phone width and confirmed row-level uptime and placement are not repeated in the drawer",- "opened a Docker host row at desktop and phone widths and confirmed compact detail rows render immediately with no nested details disclosure",- "confirmed long values truncate within the value column and the drawer remains inside the phone viewport"+ "expanded and collapsed a Proxmox node by pressing the full subject header row at desktop and phone widths",+ "expanded and collapsed a Proxmox guest by pressing the full subject header row at phone width",+ "expanded and collapsed Ceph cluster and Mail Gateway objects by pressing their full subject header rows at phone width",+ "expanded and collapsed a Docker host by pressing the full subject header row at phone width",+ "confirmed the visible subject content and chevron communicate the full-row collapse affordance without adding a separate Close control"]}diff --git a/frontend-modern/scripts/shared-template-registry.json b/frontend-modern/scripts/shared-template-registry.jsonindex 7e129e93b3..a7c9e7a69e 100644--- a/frontend-modern/scripts/shared-template-registry.json+++ b/frontend-modern/scripts/shared-template-registry.json@@ -338,6 +338,30 @@"scripts/shared-template-audit.mjs"]},+ {+ "id": "object-drawer-full-header-collapse",+ "category": "row-detail",+ "summary": "Object drawer headers must compose ObjectDrawerHeader so the complete subject row is a keyboard-accessible collapse target while object-specific actions remain independent.",+ "canonical": {+ "path": "src/components/shared/ObjectDrawerHeader.tsx",+ "export": "ObjectDrawerHeader"+ },+ "requiredConsumers": [+ { "path": "src/components/Infrastructure/ResourceDetailDrawer.tsx" },+ { "path": "src/components/Workloads/GuestDrawer.tsx" },+ { "path": "src/components/Workloads/NodeDrawer.tsx" },+ { "path": "src/components/shared/DetailSectionTable.tsx" },+ { "path": "src/features/docker/DockerHostDrawer.tsx" },+ { "path": "src/features/proxmox/ProxmoxCephClusterDrawer.tsx" },+ { "path": "src/features/proxmox/ProxmoxMailGatewayDrawer.tsx" }+ ],+ "forbiddenPatterns": [],+ "proof": [+ "src/components/shared/SharedPrimitives.guardrails.test.ts",+ "src/components/shared/__tests__/ObjectDrawerHeader.test.tsx",+ "scripts/shared-template-audit.mjs"+ ]+ },{"id": "resource-detail-numeric-value-formatting","category": "row-detail",@@ -1053,7 +1077,6 @@{ "path": "src/components/patrol/ApprovalBanner.tsx" },{ "path": "src/components/patrol/ApprovalSection.tsx" },{ "path": "src/components/ErrorBoundary.tsx" },- { "path": "src/components/Infrastructure/ResourceDetailDrawer.tsx" },{ "path": "src/components/Infrastructure/ResourceDetailDrawerDebugTab.tsx" },{ "path": "src/components/Settings/AgentProfilesPanel.tsx" },{ "path": "src/components/Settings/APIAccessPanel.tsx" },@@ -1097,7 +1120,6 @@{ "path": "src/components/Settings/UserAssignmentsPanel.tsx" },{ "path": "src/components/UpdateConfirmationModal.tsx" },{ "path": "src/components/UpdateProgressModal.tsx" },- { "path": "src/components/Workloads/GuestDrawer.tsx" },{ "path": "src/features/patrol/PatrolIntelligenceWorkspace.tsx" },{ "path": "src/features/standalone/StandalonePageSurface.tsx" }],diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsxindex 0d44b9b0aa..63356cab97 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx@@ -1,9 +1,8 @@import { Show, For, Suspense } from 'solid-js';import type { Component } from 'solid-js';-import XIcon from 'lucide-solid/icons/x';import type { Resource } from '@/types/resource';-import { DrawerHeaderActionGroup, DrawerHeaderIconButton } from '@/components/shared/Button';import { DiscoveryLoadingFallback } from '@/components/shared/DiscoveryLoadingFallback';+import { ObjectDrawerHeader } from '@/components/shared/ObjectDrawerHeader';import { StatusDot } from '@/components/shared/StatusDot';import { Subtabs } from '@/components/shared/Subtabs';import { ReportMergeModal } from './ReportMergeModal';@@ -74,65 +73,80 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {initialShowTrueNASDetails: props.initialShowTrueNASDetails,});const headingId = () => `resource-detail-drawer-heading-${props.resource.id}`;+ const HeaderIdentity = () => (+ <div class="space-y-1 min-w-0">+ <div class="flex items-center gap-2">+ <StatusDot+ variant={drawer.statusIndicator().variant}+ title={drawer.statusIndicator().label}+ ariaLabel={drawer.statusIndicator().label}+ size="sm"+ />+ <h2+ id={headingId()}+ class="text-sm font-semibold text-base-content truncate m-0"+ title={drawer.displayName()}+ >+ {drawer.displayName()}+ </h2>+ </div>+ <div class="flex flex-wrap gap-1.5" data-testid="resource-header-badges">+ <For each={drawer.headerBadges()}>+ {(badge) => (+ <span class={badge.classes} title={badge.title}>+ {badge.label}+ </span>+ )}+ </For>+ <Show when={drawer.healthIssue()}>+ {(issue) => (+ <span+ class="inline-flex max-w-full items-center rounded bg-amber-100 px-1.5 py-0.5 text-[10px] font-medium text-amber-700 dark:bg-amber-900 dark:text-amber-300"+ title={issue().title}+ >+ {issue().compactLabel}+ </span>+ )}+ </Show>+ </div>+ </div>+ );return (<section class="space-y-3" aria-labelledby={headingId()}>- <div class="flex items-start justify-between gap-4">- <div class="space-y-1 min-w-0">- <div class="flex items-center gap-2">- <StatusDot- variant={drawer.statusIndicator().variant}- title={drawer.statusIndicator().label}- ariaLabel={drawer.statusIndicator().label}- size="sm"- />- <h2- id={headingId()}- class="text-sm font-semibold text-base-content truncate m-0"- title={drawer.displayName()}- >- {drawer.displayName()}- </h2>- </div>- <div class="flex flex-wrap gap-1.5" data-testid="resource-header-badges">- <For each={drawer.headerBadges()}>- {(badge) => (- <span class={badge.classes} title={badge.title}>- {badge.label}- </span>- )}- </For>- <Show when={drawer.healthIssue()}>- {(issue) => (- <span- class="inline-flex max-w-full items-center rounded bg-amber-100 px-1.5 py-0.5 text-[10px] font-medium text-amber-700 dark:bg-amber-900 dark:text-amber-300"- title={issue().title}- >- {issue().compactLabel}- </span>- )}+ <Show+ when={props.onClose}+ fallback={+ <div class="flex items-start justify-between gap-4">+ <HeaderIdentity />+ <Show when={isDockerContainerLifecycleResource(props.resource)}>+ <DockerContainerLifecycleControls+ resource={props.resource}+ surface="resource-detail"+ onActionSettled={props.onResourceActionSettled}+ /></Show></div>- </div>-- <DrawerHeaderActionGroup>- <Show when={isDockerContainerLifecycleResource(props.resource)}>- <DockerContainerLifecycleControls- resource={props.resource}- surface="resource-detail"- onActionSettled={props.onResourceActionSettled}- />- </Show>- <Show when={props.onClose}>- <DrawerHeaderIconButton- onClick={() => props.onClose?.()}- aria-label="Close resource drawer"- >- <XIcon class="h-4 w-4" />- </DrawerHeaderIconButton>- </Show>- </DrawerHeaderActionGroup>- </div>+ }+ >+ {(onClose) => (+ <ObjectDrawerHeader+ collapseLabel={`Collapse ${drawer.displayName()} details`}+ onCollapse={onClose()}+ actions={+ <Show when={isDockerContainerLifecycleResource(props.resource)}>+ <DockerContainerLifecycleControls+ resource={props.resource}+ surface="resource-detail"+ onActionSettled={props.onResourceActionSettled}+ />+ </Show>+ }+ >+ <HeaderIdentity />+ </ObjectDrawerHeader>+ )}+ </Show><Subtabsclass="mb-1"diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsxindex 59c5568e87..8c02264168 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx@@ -193,9 +193,7 @@ describe('ResourceDetailDrawer change history section', () => {expect(resourceDetailDrawerShellSource).toContain("from './ResourceDetailDrawerDebugTab'");expect(resourceDetailDrawerShellSource).toContain('data-testid="resource-header-badges"');expect(resourceDetailDrawerShellSource).toContain('drawer.headerBadges()');- expect(resourceDetailDrawerShellSource).toContain('DrawerHeaderActionGroup');- expect(resourceDetailDrawerShellSource).toContain('DrawerHeaderActionButton');- expect(resourceDetailDrawerShellSource).toContain('DrawerHeaderIconButton');+ expect(resourceDetailDrawerShellSource).toContain('ObjectDrawerHeader');expect(resourceDetailDrawerShellSource).not.toContain('drawer.headerIdentity()');expect(resourceDetailDrawerShellSource).not.toContain('drawer.unifiedSourceBadges()');expect(resourceDetailDrawerShellSource).not.toContain('Change history');@@ -619,8 +617,9 @@ describe('ResourceDetailDrawer change history section', () => {expect(screen.getByRole('button', { name: 'Show access' })).toBeInTheDocument();fireEvent.click(screen.getByRole('button', { name: 'Show access' }));const accessSection = within(screen.getByTestId('resource-access-section'));- expect(accessSection.getByText('Analysis')).toBeInTheDocument();- expect(accessSection.getByRole('button', { name: 'Open analysis' })).toBeInTheDocument();+ expect(accessSection.getAllByText('Web interface')).toHaveLength(2);+ expect(accessSection.queryByText('Analysis')).toBeNull();+ expect(accessSection.queryByRole('button', { name: 'Open analysis' })).toBeNull();});it('keeps default internal cloud-summary posture out of the investigation context drawer block', async () => {diff --git a/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx b/frontend-modern/src/components/Workloads/GuestDrawer.test.tsxindex 11da9f8cde..acc35dab51 100644--- a/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx+++ b/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx@@ -260,6 +260,15 @@ describe('GuestDrawer', () => {).toBeNull();});+ it('collapses from the full shared drawer header surface', async () => {+ const onClose = vi.fn();+ render(() => <GuestDrawer guest={makeGuest({ name: 'homeassistant' })} onClose={onClose} />);++ await fireEvent.click(screen.getByRole('button', { name: 'Collapse homeassistant details' }));++ expect(onClose).toHaveBeenCalledTimes(1);+ });+// ── Tabs ──describe('tab switching', () => {diff --git a/frontend-modern/src/components/Workloads/GuestDrawer.tsx b/frontend-modern/src/components/Workloads/GuestDrawer.tsxindex e22f434f03..cb0ca9bf1c 100644--- a/frontend-modern/src/components/Workloads/GuestDrawer.tsx+++ b/frontend-modern/src/components/Workloads/GuestDrawer.tsx@@ -1,10 +1,9 @@import { Component, Show, Suspense, createMemo } from 'solid-js';-import XIcon from 'lucide-solid/icons/x';import { DiscoveryTab } from '../Discovery/DiscoveryTab';-import { DrawerHeaderActionGroup, DrawerHeaderIconButton } from '@/components/shared/Button';import { DiscoveryLoadingFallback } from '@/components/shared/DiscoveryLoadingFallback';import { DrawerSubjectHeading } from '@/components/shared/DrawerSubjectHeading';import { DiscoveryReadinessBadge } from '@/components/shared/DiscoveryReadinessBadge';+import { ObjectDrawerHeader } from '@/components/shared/ObjectDrawerHeader';import { Subtabs, type SubtabOption } from '@/components/shared/Subtabs';import { getSimpleStatusIndicator } from '@/utils/status';import { getGuestDrawerCurrentMetrics, type GuestDrawerProps } from './guestDrawerModel';@@ -55,19 +54,17 @@ export const GuestDrawer: Component<GuestDrawerProps> = (props) => {return (<section class="space-y-3" aria-labelledby={headingId()}>- <div class="flex items-start justify-between gap-3">+ <ObjectDrawerHeader+ collapseLabel={`Collapse ${props.guest.name} details`}+ onCollapse={props.onClose}+ ><DrawerSubjectHeadingheadingId={headingId()}title={props.guest.name}statusVariant={headerIndicator().variant}statusLabel={headerIndicator().label}/>- <DrawerHeaderActionGroup>- <DrawerHeaderIconButton onClick={() => props.onClose()} aria-label="Close guest drawer">- <XIcon class="h-4 w-4" aria-hidden="true" />- </DrawerHeaderIconButton>- </DrawerHeaderActionGroup>- </div>+ </ObjectDrawerHeader><Show when={discoveryReadinessPresentation()}>{(presentation) => (<div class="flex items-center gap-2 text-xs text-muted">diff --git a/frontend-modern/src/components/Workloads/NodeDrawer.test.tsx b/frontend-modern/src/components/Workloads/NodeDrawer.test.tsxindex 545414c91e..987f7fb98c 100644--- a/frontend-modern/src/components/Workloads/NodeDrawer.test.tsx+++ b/frontend-modern/src/components/Workloads/NodeDrawer.test.tsx@@ -104,6 +104,15 @@ afterEach(() => {});describe('NodeDrawer', () => {+ it('collapses from the full shared drawer header surface', async () => {+ const onClose = vi.fn();+ render(() => <NodeDrawer node={makeNode()} onClose={onClose} />);++ await fireEvent.click(screen.getByRole('button', { name: 'Collapse pve-node-1 details' }));++ expect(onClose).toHaveBeenCalledTimes(1);+ });+it('does not expose Discovery when the feature is disabled', () => {syncAIRuntimeSettings({ discovery_enabled: false } as Parameters<typeof syncAIRuntimeSettingsdiff --git a/frontend-modern/src/components/Workloads/NodeDrawer.tsx b/frontend-modern/src/components/Workloads/NodeDrawer.tsxindex 4a45cb4cbb..5d1237e5d5 100644--- a/frontend-modern/src/components/Workloads/NodeDrawer.tsx+++ b/frontend-modern/src/components/Workloads/NodeDrawer.tsx@@ -6,6 +6,7 @@ import { useDiscoveryFeatureAvailability } from '@/components/Discovery/useDiscoimport { DiscoveryLoadingFallback } from '@/components/shared/DiscoveryLoadingFallback';import { ResourceOperatorStateSection } from '@/components/Infrastructure/ResourceOperatorStateSection';import { DrawerSubjectHeading } from '@/components/shared/DrawerSubjectHeading';+import { ObjectDrawerHeader } from '@/components/shared/ObjectDrawerHeader';import { Subtabs, type SubtabOption } from '@/components/shared/Subtabs';import { nodeOverrideIdCandidates } from '@/features/alerts/alertOverridesModel';import { useAlertsActivation } from '@/stores/alertsActivation';@@ -34,6 +35,7 @@ interface NodeDrawerProps {discoveryTarget?: NodeDrawerDiscoveryTarget;temperatureThresholds?: MetricDisplayThresholds | null;alerts?: Alert[];+ onClose?: () => void;}type NodeDrawerTab = 'overview' | 'history' | 'manage' | 'discovery';@@ -73,12 +75,31 @@ export const NodeDrawer: Component<NodeDrawerProps> = (props) => {return (<section class="space-y-3" aria-labelledby={headingId()} data-testid="node-drawer">- <DrawerSubjectHeading- headingId={headingId()}- title={displayName()}- statusVariant={headerIndicator().variant}- statusLabel={headerIndicator().label}- />+ <Show+ when={props.onClose}+ fallback={+ <DrawerSubjectHeading+ headingId={headingId()}+ title={displayName()}+ statusVariant={headerIndicator().variant}+ statusLabel={headerIndicator().label}+ />+ }+ >+ {(onClose) => (+ <ObjectDrawerHeader+ collapseLabel={`Collapse ${displayName()} details`}+ onCollapse={onClose()}+ >+ <DrawerSubjectHeading+ headingId={headingId()}+ title={displayName()}+ statusVariant={headerIndicator().variant}+ statusLabel={headerIndicator().label}+ />+ </ObjectDrawerHeader>+ )}+ </Show><Subtabsclass="mb-1"diff --git a/frontend-modern/src/components/Workloads/WorkloadPanel.tsx b/frontend-modern/src/components/Workloads/WorkloadPanel.tsxindex 78806a4cc8..7f5c7324a3 100644--- a/frontend-modern/src/components/Workloads/WorkloadPanel.tsx+++ b/frontend-modern/src/components/Workloads/WorkloadPanel.tsx@@ -522,6 +522,7 @@ export function WorkloadPanel(props: WorkloadPanelProps) {><NodeDrawernode={node()!}+ onClose={() => props.setFocusedWorkloadGroupScope(null)}temperatureThresholds={props.getNodeTemperatureThresholds(node()!)}alerts={getAlertsForResource([node()!.id],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 092eababb4..df9dcbad40 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@@ -1569,9 +1569,7 @@ describe('Workloads performance contract', () => {expect(guestDrawerSource).toContain('useGuestDrawerState');expect(guestDrawerSource).toContain('GuestDrawerOverview');expect(guestDrawerSource).toContain('GuestDrawerHistoryRangeSelect');- expect(guestDrawerSource).toContain('DrawerHeaderActionGroup');- expect(guestDrawerSource).not.toContain('DrawerHeaderActionButton');- expect(guestDrawerSource).toContain('DrawerHeaderIconButton');+ expect(guestDrawerSource).toContain('ObjectDrawerHeader');expect(guestDrawerSource).not.toContain('Open related infrastructure');expect(guestDrawerHistorySource).toContain('data-testid="guest-history-hover-time"');expect(guestDrawerHistorySource).toContain('data-testid="guest-history-range-control"');@@ -1589,7 +1587,6 @@ describe('Workloads performance contract', () => {expect(nodeDrawerOverviewSource).toContain('Hardware');expect(nodeDrawerOverviewSource).toContain('Telemetry');expect(nodeDrawerOverviewSource).toContain('Thermals');- expect(nodeDrawerOverviewSource).toContain('InfoCardFrame');expect(nodeDrawerModelSource).toContain('HOST_METRICS_HISTORY_GROUPS');expect(nodeDrawerModelSource).not.toContain("id: 'thermals'");expect(workloadPanelSource).toContain('NodeDrawer');@@ -1620,9 +1617,10 @@ describe('Workloads performance contract', () => {expect(guestDrawerOverviewSource).not.toContain('WebInterfaceUrlField');expect(guestDrawerManageSource).toContain('WebInterfaceUrlField');expect(guestDrawerManageSource).toContain('ResourceOperatorStateSection');- expect(guestDrawerOverviewSource).toContain('DiskList');+ expect(guestDrawerOverviewSource).toContain('buildWorkloadsDiskPresentation');expect(guestDrawerOverviewSource).toContain('Filesystems');- expect(guestDrawerOverviewSource).toContain('InfoCardFrame');+ expect(guestDrawerOverviewSource).toContain('TechnicalDetailsSection');+ expect(nodeDrawerOverviewSource).toContain('TechnicalDetailsSection');const retiredInfoCardFrameClass = ['rounded border border-border','bg-surface p-3 shadow-sm',diff --git a/frontend-modern/src/components/shared/DetailSectionTable.tsx b/frontend-modern/src/components/shared/DetailSectionTable.tsxindex f2b179cc33..71384a991c 100644--- a/frontend-modern/src/components/shared/DetailSectionTable.tsx+++ b/frontend-modern/src/components/shared/DetailSectionTable.tsx@@ -1,5 +1,5 @@import { For, type Component, type JSX } from 'solid-js';-import { Button } from './Button';+import { ObjectDrawerHeader } from './ObjectDrawerHeader';import { Table, TableBody, TableCell, TableHead, TableRow } from './Table';import type { DetailSection, DetailValueTone } from './detailSectionModel';@@ -93,23 +93,17 @@ export const InlineDetailPanel: Component<{data-testid={props.testId}data-inline-detail-for={props.detailFor}>- <div class="flex flex-wrap items-start justify-between gap-3">+ <ObjectDrawerHeader+ collapseLabel={`Collapse ${props.detailFor} details`}+ onCollapse={props.onClose}+ ><div><div class="text-[11px] font-medium uppercase tracking-wide text-base-content">{props.title}</div>{props.summary ? <div class="mt-1 text-[10px] text-muted">{props.summary}</div> : null}</div>- <Button- type="button"- variant="outline"- size="xs"- class="bg-surface text-[10px] hover:bg-base"- onClick={props.onClose}- >- Close- </Button>- </div>+ </ObjectDrawerHeader><DetailSectionTable sections={props.sections} class={props.tableClass} /></div>);diff --git a/frontend-modern/src/components/shared/ObjectDrawerHeader.tsx b/frontend-modern/src/components/shared/ObjectDrawerHeader.tsxnew file mode 100644index 0000000000..68d12d2ad9--- /dev/null+++ b/frontend-modern/src/components/shared/ObjectDrawerHeader.tsx@@ -0,0 +1,44 @@+import ChevronUpIcon from 'lucide-solid/icons/chevron-up';+import { Show, splitProps, type JSX } from 'solid-js';++export interface ObjectDrawerHeaderProps extends JSX.HTMLAttributes<HTMLDivElement> {+ actions?: JSX.Element;+ children: JSX.Element;+ collapseLabel: string;+ onCollapse: () => void;+}++export function ObjectDrawerHeader(props: ObjectDrawerHeaderProps) {+ const [local, rest] = splitProps(props, [+ 'actions',+ 'children',+ 'class',+ 'collapseLabel',+ 'onCollapse',+ ]);++ return (+ <div+ {...rest}+ class={`relative -m-1 flex min-h-11 min-w-0 items-start justify-between gap-3 rounded-md p-1 sm:min-h-8 ${local.class ?? ''}`.trim()}+ >+ <button+ type="button"+ class="absolute inset-0 z-0 cursor-pointer rounded-md transition-colors hover:bg-surface-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500"+ onClick={local.onCollapse}+ aria-label={local.collapseLabel}+ title={local.collapseLabel}+ />+ <div class="pointer-events-none relative z-10 min-w-0 flex-1">{local.children}</div>+ <Show when={local.actions}>+ <div class="pointer-events-none relative z-10 flex shrink-0 items-center gap-1.5 [&>*]:pointer-events-auto">+ {local.actions}+ </div>+ </Show>+ <ChevronUpIcon+ class="pointer-events-none relative z-10 mt-1 h-4 w-4 shrink-0 text-muted sm:mt-0.5"+ aria-hidden="true"+ />+ </div>+ );+}diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 6f8f7d5754..56bed19d37 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -124,6 +124,7 @@ import webInterfaceUrlFieldModelSource from '@/components/shared/webInterfaceUrlimport webInterfaceUrlFieldStateSource from '@/components/shared/useWebInterfaceUrlFieldState.ts?raw';import webInterfaceLinkSource from '@/components/shared/WebInterfaceLink.tsx?raw';import inlineDetailTableRowSource from '@/components/shared/InlineDetailTableRow.tsx?raw';+import objectDrawerHeaderSource from '@/components/shared/ObjectDrawerHeader.tsx?raw';import toastSource from '@/components/Toast/Toast.tsx?raw';import sharedTemplateRegistrySource from '../../../scripts/shared-template-registry.json?raw';import discoveryTabSource from '@/components/Discovery/DiscoveryTab.tsx?raw';@@ -3163,7 +3164,6 @@ describe('shared primitive guardrails', () => {'src/components/patrol/ApprovalBanner.tsx','src/components/patrol/ApprovalSection.tsx','src/components/ErrorBoundary.tsx',- 'src/components/Infrastructure/ResourceDetailDrawer.tsx','src/components/Infrastructure/ResourceDetailDrawerDebugTab.tsx','src/components/Settings/AgentProfilesPanel.tsx','src/components/Settings/APIAccessPanel.tsx',@@ -3201,7 +3201,6 @@ describe('shared primitive guardrails', () => {'src/components/Settings/UserAssignmentsPanel.tsx','src/components/UpdateConfirmationModal.tsx','src/components/UpdateProgressModal.tsx',- 'src/components/Workloads/GuestDrawer.tsx','src/features/patrol/PatrolIntelligenceWorkspace.tsx','src/features/standalone/StandalonePageSurface.tsx',]);@@ -4179,11 +4178,17 @@ describe('shared primitive guardrails', () => {expect(source).toContain('ActionIconButton');expect(source).not.toContain(['<', 'svg'].join(''));}- for (const drawerSource of [guestDrawerSource, resourceDetailDrawerSource]) {- expect(drawerSource).toContain('@/components/shared/Button');- expect(drawerSource).toContain('DrawerHeaderActionGroup');- expect(drawerSource).not.toContain('DrawerHeaderActionButton');- expect(drawerSource).toContain('DrawerHeaderIconButton');+ for (const drawerSource of [+ guestDrawerSource,+ nodeDrawerSource,+ resourceDetailDrawerSource,+ dockerHostDrawerSource,+ proxmoxCephClusterDrawerSource,+ proxmoxMailGatewayDrawerSource,+ ]) {+ expect(drawerSource).toContain('@/components/shared/ObjectDrawerHeader');+ expect(drawerSource).toContain('ObjectDrawerHeader');+ expect(drawerSource).not.toContain('@/components/shared/Button');expect(drawerSource).not.toContain('inline-flex h-8 min-h-11 min-w-11 items-center gap-1.5 rounded border border-border bg-surface px-2 text-xs font-medium text-base-content transition-colors hover:bg-surface-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500',);@@ -4191,6 +4196,10 @@ describe('shared primitive guardrails', () => {'inline-flex h-8 w-8 min-h-11 min-w-11 items-center justify-center rounded-md hover:bg-surface-hover hover:text-base-content focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500',);}+ expect(objectDrawerHeaderSource).toContain('absolute inset-0');+ expect(objectDrawerHeaderSource).toContain('pointer-events-none');+ expect(objectDrawerHeaderSource).toContain('ChevronUpIcon');+ expect(objectDrawerHeaderSource).toContain('aria-label={local.collapseLabel}');expect(chatMessagesSource).toContain('@/components/shared/Button');expect(chatMessagesSource).not.toContain('rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-base-content',@@ -7758,7 +7767,7 @@ describe('shared primitive guardrails', () => {expect(detailSectionModelSource).toContain('formatDetailIntegerValue');expect(detailSectionTableSource).toContain('DetailSectionTable');expect(detailSectionTableSource).toContain('InlineDetailPanel');- expect(detailSectionTableSource).toContain('variant="outline"');+ expect(detailSectionTableSource).toContain('ObjectDrawerHeader');for (const source of [resourceDetailDrawerKubernetesModelSource,diff --git a/frontend-modern/src/components/shared/__tests__/DetailSectionTable.test.tsx b/frontend-modern/src/components/shared/__tests__/DetailSectionTable.test.tsxindex 2aaa19f498..a0f5247b8f 100644--- a/frontend-modern/src/components/shared/__tests__/DetailSectionTable.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/DetailSectionTable.test.tsx@@ -146,7 +146,7 @@ describe('DetailSectionTable', () => {expect(within(panel).getByText('Alert detail')).toBeInTheDocument();expect(within(panel).getAllByText('Warning')).toHaveLength(2);- within(panel).getByRole('button', { name: 'Close' }).click();+ within(panel).getByRole('button', { name: 'Collapse resource-1 details' }).click();expect(onClose).toHaveBeenCalledTimes(1);});});diff --git a/frontend-modern/src/components/shared/__tests__/ObjectDrawerHeader.test.tsx b/frontend-modern/src/components/shared/__tests__/ObjectDrawerHeader.test.tsxnew file mode 100644index 0000000000..8c5dbbbed9--- /dev/null+++ b/frontend-modern/src/components/shared/__tests__/ObjectDrawerHeader.test.tsx@@ -0,0 +1,47 @@+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';+import { afterEach, describe, expect, it, vi } from 'vitest';++import { ObjectDrawerHeader } from '../ObjectDrawerHeader';++describe('ObjectDrawerHeader', () => {+ afterEach(() => cleanup());++ it('makes the full header surface a keyboard-accessible collapse control', async () => {+ const onCollapse = vi.fn();++ render(() => (+ <ObjectDrawerHeader collapseLabel="Collapse alpha details" onCollapse={onCollapse}>+ <h2>alpha</h2>+ </ObjectDrawerHeader>+ ));++ const collapse = screen.getByRole('button', { name: 'Collapse alpha details' });+ expect(collapse).toHaveClass('absolute', 'inset-0');++ await fireEvent.click(collapse);+ expect(onCollapse).toHaveBeenCalledTimes(1);++ collapse.focus();+ expect(collapse).toHaveFocus();+ expect(collapse.tagName).toBe('BUTTON');+ });++ it('keeps object-specific header actions independent from collapse', async () => {+ const onCollapse = vi.fn();+ const onAction = vi.fn();++ render(() => (+ <ObjectDrawerHeader+ collapseLabel="Collapse container details"+ onCollapse={onCollapse}+ actions={<button onClick={onAction}>Restart</button>}+ >+ <h2>container</h2>+ </ObjectDrawerHeader>+ ));++ await fireEvent.click(screen.getByRole('button', { name: 'Restart' }));+ expect(onAction).toHaveBeenCalledTimes(1);+ expect(onCollapse).not.toHaveBeenCalled();+ });+});diff --git a/frontend-modern/src/features/docker/DockerHostDrawer.test.tsx b/frontend-modern/src/features/docker/DockerHostDrawer.test.tsxindex fe4521a325..dbe559a7bd 100644--- a/frontend-modern/src/features/docker/DockerHostDrawer.test.tsx+++ b/frontend-modern/src/features/docker/DockerHostDrawer.test.tsx@@ -1,4 +1,4 @@-import { cleanup, render, screen } from '@solidjs/testing-library';+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import { resetAIRuntimeState, syncAIRuntimeSettings } from '@/stores/aiRuntimeState';@@ -47,6 +47,15 @@ afterEach(() => {});describe('DockerHostDrawer Discovery availability', () => {+ it('collapses from the full shared drawer header surface', async () => {+ const onClose = vi.fn();+ render(() => <DockerHostDrawer host={host()} onClose={onClose} />);++ await fireEvent.click(screen.getByRole('button', { name: 'Collapse docker-1 details' }));++ expect(onClose).toHaveBeenCalledTimes(1);+ });+it('does not expose Discovery when the feature is disabled', () => {syncAIRuntimeSettings({ discovery_enabled: false } as Parameters<typeof syncAIRuntimeSettingsdiff --git a/frontend-modern/src/features/docker/DockerHostDrawer.tsx b/frontend-modern/src/features/docker/DockerHostDrawer.tsxindex f9f28c43f4..096e25d0d7 100644--- a/frontend-modern/src/features/docker/DockerHostDrawer.tsx+++ b/frontend-modern/src/features/docker/DockerHostDrawer.tsx@@ -5,6 +5,7 @@ import { DiscoveryTab } from '@/components/Discovery/DiscoveryTab';import { useDiscoveryFeatureAvailability } from '@/components/Discovery/useDiscoveryFeatureAvailability';import { DiscoveryLoadingFallback } from '@/components/shared/DiscoveryLoadingFallback';import { DrawerSubjectHeading } from '@/components/shared/DrawerSubjectHeading';+import { ObjectDrawerHeader } from '@/components/shared/ObjectDrawerHeader';import { Subtabs, type SubtabOption } from '@/components/shared/Subtabs';import { getSimpleStatusIndicator } from '@/utils/status';import {@@ -29,6 +30,7 @@ interface DockerHostDrawerProps {host: Resource;customUrl?: string;onCustomUrlChange?: (url: string) => void;+ onClose?: () => void;}type DockerHostDrawerTab = 'overview' | 'history' | 'manage' | 'discovery';@@ -61,12 +63,31 @@ export const DockerHostDrawer: Component<DockerHostDrawerProps> = (props) => {return (<section class="space-y-3" aria-labelledby={headingId()} data-testid="docker-host-drawer">- <DrawerSubjectHeading- headingId={headingId()}- title={displayName()}- statusVariant={headerIndicator().variant}- statusLabel={headerIndicator().label}- />+ <Show+ when={props.onClose}+ fallback={+ <DrawerSubjectHeading+ headingId={headingId()}+ title={displayName()}+ statusVariant={headerIndicator().variant}+ statusLabel={headerIndicator().label}+ />+ }+ >+ {(onClose) => (+ <ObjectDrawerHeader+ collapseLabel={`Collapse ${displayName()} details`}+ onCollapse={onClose()}+ >+ <DrawerSubjectHeading+ headingId={headingId()}+ title={displayName()}+ statusVariant={headerIndicator().variant}+ statusLabel={headerIndicator().label}+ />+ </ObjectDrawerHeader>+ )}+ </Show><Subtabsclass="mb-1"diff --git a/frontend-modern/src/features/docker/DockerHostDrawerOverview.tsx b/frontend-modern/src/features/docker/DockerHostDrawerOverview.tsxindex 502e48a346..9458063fb0 100644--- a/frontend-modern/src/features/docker/DockerHostDrawerOverview.tsx+++ b/frontend-modern/src/features/docker/DockerHostDrawerOverview.tsx@@ -237,6 +237,7 @@ export function DockerHostDrawerOverview(props: DockerHostDrawerOverviewProps) {if (!memory) return [];const rows: DockerOverviewRow[] = [];if ('usageUnavailable' in memory && memory.usageUnavailable === true) {+ rows.push({ label: 'Usage', value: 'Unavailable', valueClass: 'text-muted' });if (typeof memory.total === 'number' && memory.total > 0) {rows.push({ label: 'Total', value: formatBytes(memory.total) });}diff --git a/frontend-modern/src/features/docker/DockerHostsTable.tsx b/frontend-modern/src/features/docker/DockerHostsTable.tsxindex 2d97c213b5..c61137dde2 100644--- a/frontend-modern/src/features/docker/DockerHostsTable.tsx+++ b/frontend-modern/src/features/docker/DockerHostsTable.tsx@@ -515,6 +515,7 @@ export const DockerHostsTable: Component<{><DockerHostDrawerhost={host}+ onClose={() => setSelectedHostId(null)}customUrl={customUrl()}onCustomUrlChange={setCustomUrl}/>diff --git a/frontend-modern/src/features/docker/__tests__/DockerHostsTable.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerHostsTable.test.tsxindex a24266a2a8..7e473bcc41 100644--- a/frontend-modern/src/features/docker/__tests__/DockerHostsTable.test.tsx+++ b/frontend-modern/src/features/docker/__tests__/DockerHostsTable.test.tsx@@ -10,15 +10,6 @@ import dockerHostsTableSource from '../DockerHostsTable.tsx?raw';const formatThresholds = (thresholds?: MetricDisplayThresholds | null): string =>thresholds ? `${thresholds.warning}/${thresholds.critical}` : '';-const expandTechnicalDetails = (drawer: HTMLElement): void => {- const details = within(drawer).getByText('Technical details').closest('details');- if (!(details instanceof HTMLDetailsElement)) {- throw new Error('Expected Docker technical details disclosure');- }- details.open = true;- fireEvent(details, new Event('toggle'));-};-// Row bars must color from the alert-configured thresholds, not the// hardcoded METRIC_THRESHOLDS display defaults (memory 75/85), so a host// with a raised memory override stops showing red below its alert point.@@ -356,8 +347,10 @@ describe('DockerHostsTable', () => {fireEvent.click(screen.getByText('docker-01').closest('tr')!);const drawer = screen.getByTestId('docker-host-drawer');- expandTechnicalDetails(drawer);- expect(within(drawer).getByText('76°C')).toHaveClass('text-green-600');+ expect(within(drawer).getByText('76°C').closest('td')).toHaveClass(+ 'text-emerald-700',+ 'dark:text-emerald-300',+ );});it('surfaces container update actions in the host drawer', () => {@@ -533,7 +526,6 @@ describe('DockerHostsTable', () => {fireEvent.click(screen.getByText('docker-01').closest('tr')!);const drawer = screen.getByTestId('docker-host-drawer');- expandTechnicalDetails(drawer);expect(within(drawer).getByText('Unavailable')).toBeInTheDocument();expect(within(drawer).getByText('7.81 KB')).toBeInTheDocument();});diff --git a/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx b/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsxindex c8eda4b874..b306a34924 100644--- a/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx@@ -1,8 +1,8 @@import { For, Show, createSignal, type Component } from 'solid-js';-import XIcon from 'lucide-solid/icons/x';import { Card } from '@/components/shared/Card';import { DrawerSubjectHeading } from '@/components/shared/DrawerSubjectHeading';import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';+import { ObjectDrawerHeader } from '@/components/shared/ObjectDrawerHeader';import { ProgressBar } from '@/components/shared/ProgressBar';import { StatusDot } from '@/components/shared/StatusDot';import {@@ -119,7 +119,10 @@ export const ProxmoxCephClusterDrawer: Component<{return (<section class="space-y-3" aria-labelledby={headingId()}>- <header class="flex items-start justify-between gap-3">+ <ObjectDrawerHeader+ collapseLabel={`Collapse ${asTrimmedString(props.cluster.name) || props.cluster.id} details`}+ onCollapse={props.onClose}+ ><div class="min-w-0 space-y-1"><DrawerSubjectHeadingheadingId={headingId()}@@ -139,15 +142,7 @@ export const ProxmoxCephClusterDrawer: Component<{<p class="text-xs text-amber-700 dark:text-amber-300">{meta()?.healthMessage}</p></Show></div>- <button- type="button"- onClick={props.onClose}- class="shrink-0 inline-flex h-7 w-7 items-center justify-center rounded-sm text-muted hover:bg-surface-hover hover:text-base-content"- aria-label="Close ceph cluster drawer"- >- <XIcon class="h-4 w-4" />- </button>- </header>+ </ObjectDrawerHeader><CapacityBar used={usedCapacity()} total={totalCapacity()} percent={usagePercent()} />diff --git a/frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsx b/frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsxindex 4855e47353..5ea46b518d 100644--- a/frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsx@@ -1,7 +1,7 @@import { For, Show, createMemo, createResource, type Component } from 'solid-js';-import XIcon from 'lucide-solid/icons/x';import { Card } from '@/components/shared/Card';import { DrawerSubjectHeading } from '@/components/shared/DrawerSubjectHeading';+import { ObjectDrawerHeader } from '@/components/shared/ObjectDrawerHeader';import { StatusDot } from '@/components/shared/StatusDot';import {Table,@@ -298,30 +298,42 @@ export const ProxmoxMailGatewayDrawer: Component<{return (<section class="space-y-3" aria-labelledby={headingId()}>- <header class="flex items-start justify-between gap-3">- <div class="min-w-0 space-y-1">- <DrawerSubjectHeading- headingId={headingId()}- title={name()}- statusVariant={health().variant}- statusLabel={health().label}- trailing={<span class="shrink-0 text-[10px] font-mono text-muted">{version()}</span>}- />- <Show when={hostname()}>- <div class="font-mono text-[10px] text-muted break-all">{hostname()}</div>- </Show>- </div>- <Show when={props.onClose}>- <button- type="button"- onClick={() => props.onClose?.()}- class="shrink-0 inline-flex h-7 w-7 items-center justify-center rounded-sm text-muted hover:bg-surface-hover hover:text-base-content"- aria-label="Close mail gateway drawer"- >- <XIcon class="h-4 w-4" />- </button>- </Show>- </header>+ <Show+ when={props.onClose}+ fallback={+ <div class="min-w-0 space-y-1">+ <DrawerSubjectHeading+ headingId={headingId()}+ title={name()}+ statusVariant={health().variant}+ statusLabel={health().label}+ trailing={<span class="shrink-0 text-[10px] font-mono text-muted">{version()}</span>}+ />+ <Show when={hostname()}>+ <div class="font-mono text-[10px] text-muted break-all">{hostname()}</div>+ </Show>+ </div>+ }+ >+ {(onClose) => (+ <ObjectDrawerHeader collapseLabel={`Collapse ${name()} details`} onCollapse={onClose()}>+ <div class="min-w-0 space-y-1">+ <DrawerSubjectHeading+ headingId={headingId()}+ title={name()}+ statusVariant={health().variant}+ statusLabel={health().label}+ trailing={+ <span class="shrink-0 text-[10px] font-mono text-muted">{version()}</span>+ }+ />+ <Show when={hostname()}>+ <div class="font-mono text-[10px] text-muted break-all">{hostname()}</div>+ </Show>+ </div>+ </ObjectDrawerHeader>+ )}+ </Show><Showwhen={!instance.error}diff --git a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsxindex 70c508668e..ec560e9f19 100644--- a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx@@ -741,6 +741,7 @@ export const ProxmoxNodesTable: Component<{><NodeDrawernode={selectedNode()}+ onClose={() => setSelectedNodeId(null)}alerts={getAlertsForResource(alertResourceIds(),activeAlerts,diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxCephTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxCephTable.test.tsxindex 0156ed4eae..82662c9259 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxCephTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxCephTable.test.tsx@@ -82,7 +82,7 @@ describe('ProxmoxCephTable', () => {));const disclosure = screen.getByRole('button', { name: 'Collapse details for ceph-main' });- const close = screen.getByRole('button', { name: 'Close ceph cluster drawer' });+ const close = screen.getByRole('button', { name: 'Collapse ceph-main details' });close.focus();await fireEvent.click(close);@@ -123,7 +123,7 @@ describe('ProxmoxCephTable', () => {const disclosure = screen.getByRole('button', { name: 'Expand details for ceph-lab' });await fireEvent.click(disclosure);- const close = screen.getByRole('button', { name: 'Close ceph cluster drawer' });+ const close = screen.getByRole('button', { name: 'Collapse ceph-lab details' });close.focus();await fireEvent.click(close);