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
Collapse summary support details
rcourtman0e5a494d4fbd
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 0f0fdff34c..270701266c 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -289,12 +289,12 @@ Host and node system or hardware cards now also live behind a collapsedcards, so runtime status, identity, and next investigation steps stay firstwhile deeper machine detail remains available on demand.Within that summary shell, current-state facts now stay in the primary summary-while platform IDs, quick links, and platform-signal badges live in a smaller-`Operational context` block, so first read remains status-first instead of-mixing state and supporting action surfaces together.-That same summary shell also keeps canonical identity rows primary, while-aliases, IPs, and tags live in a smaller `Supporting context` block that stays-label-first instead of adding another summary sentence before the data.+while a single collapsed `Details` disclosure owns platform IDs, quick links,+platform-signal badges, aliases, IPs, and tags, so first read remains+status-first and identity-first instead of mixing state with supporting action+surfaces.+That disclosure stays label-first and only opens when asked, so the summary+answers the main resource question before the supporting metadata appears.When the identity side has no owned rows or supporting labels yet, the sparsefallback now stays terse (`No identity metadata yet.`) so empty state chromedoes not read heavier than the data it is standing in for.diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsxindex 0d96d6180e..b277b64bdb 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx@@ -214,6 +214,7 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {const [showInvestigationContext, setShowInvestigationContext] = createSignal(false);const [showCorrelationContext, setShowCorrelationContext] = createSignal(false);const [showDiscoveryContext, setShowDiscoveryContext] = createSignal(false);+ const [showSummaryDetails, setShowSummaryDetails] = createSignal(false);const [showHostDetails, setShowHostDetails] = createSignal(false);const [showServiceDetails, setShowServiceDetails] = createSignal(false);const [showDockerUpdateControls, setShowDockerUpdateControls] = createSignal(false);@@ -978,55 +979,135 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {</span></div></Show>- <Show when={hasRuntimeOperationalContext()}>- <div class="mt-2 space-y-1.5">- <div class="text-[10px] font-medium uppercase tracking-wide text-base-content">- Operational context- </div>- <Show when={props.resource.platformId}>- <div class="flex items-center justify-between gap-2">- <span class="text-muted">Platform ID</span>- <span- class="font-medium text-base-content truncate"- title={props.resource.platformId}- >- {props.resource.platformId}- </span>- </div>- </Show>- <Show when={kubernetesCapabilityBadges().length > 0}>- <div class="flex flex-col gap-1">- <span class="text-muted">Platform signals</span>- <div class="flex flex-wrap gap-1">- <For each={kubernetesCapabilityBadges()}>- {(badge) => (- <span class={badge.classes} title={badge.title}>- {badge.label}- </span>- )}- </For>- </div>+ <Show when={hasRuntimeOperationalContext() || hasIdentitySupportContext()}>+ <SupportDisclosure+ title="Details"+ summary="Operational and identity support details."+ expanded={showSummaryDetails()}+ onToggle={() => setShowSummaryDetails((value) => !value)}+ showLabel="Show details"+ hideLabel="Hide details"+ class="mt-2 rounded border border-dashed border-border bg-surface-hover p-3"+ contentClass="mt-3 space-y-2.5"+ >+ <Show when={hasRuntimeOperationalContext()}>+ <div class="space-y-1.5">+ <Show when={props.resource.platformId}>+ <div class="flex items-center justify-between gap-2">+ <span class="text-muted">Platform ID</span>+ <span+ class="font-medium text-base-content truncate"+ title={props.resource.platformId}+ >+ {props.resource.platformId}+ </span>+ </div>+ </Show>+ <Show when={kubernetesCapabilityBadges().length > 0}>+ <div class="flex flex-col gap-1">+ <span class="text-muted">Platform signals</span>+ <div class="flex flex-wrap gap-1">+ <For each={kubernetesCapabilityBadges()}>+ {(badge) => (+ <span class={badge.classes} title={badge.title}>+ {badge.label}+ </span>+ )}+ </For>+ </div>+ </div>+ </Show>+ <Show when={relatedLinks().length > 0}>+ <div class="flex flex-col gap-1">+ <span class="text-muted">Quick links</span>+ <div class="flex flex-wrap gap-2">+ <For each={relatedLinks()}>+ {(link) => (+ <a+ href={link.href}+ aria-label={link.ariaLabel}+ class="inline-flex items-center rounded border border-blue-200 bg-blue-50 px-2.5 py-1 text-[11px] font-medium text-blue-700 transition-colors hover:bg-blue-100 dark:border-blue-700 dark:bg-blue-900 dark:text-blue-200 dark:hover:bg-blue-900"+ >+ {link.compactLabel}+ </a>+ )}+ </For>+ </div>+ </div>+ </Show></div></Show>- <Show when={relatedLinks().length > 0}>- <div class="flex flex-col gap-1">- <span class="text-muted">Quick links</span>- <div class="flex flex-wrap gap-2">- <For each={relatedLinks()}>- {(link) => (- <a- href={link.href}- aria-label={link.ariaLabel}- class="inline-flex items-center rounded border border-blue-200 bg-blue-50 px-2.5 py-1 text-[11px] font-medium text-blue-700 transition-colors hover:bg-blue-100 dark:border-blue-700 dark:bg-blue-900 dark:text-blue-200 dark:hover:bg-blue-900"- >- {link.compactLabel}- </a>- )}- </For>- </div>+ <Show when={hasIdentitySupportContext()}>+ <div class="space-y-1.5">+ <Show+ when={props.resource.identity?.ips && props.resource.identity.ips.length > 0}+ >+ <div class="flex flex-col gap-1">+ <span class="text-muted">IP Addresses</span>+ <div class="flex flex-wrap gap-1">+ <For each={props.resource.identity?.ips ?? []}>+ {(ip) => (+ <span+ class="inline-flex items-center rounded bg-blue-100 px-1.5 py-0.5 text-[10px] text-blue-700 dark:bg-blue-900 dark:text-blue-200"+ title={ip}+ >+ {ip}+ </span>+ )}+ </For>+ </div>+ </div>+ </Show>+ <Show when={props.resource.tags && props.resource.tags.length > 0}>+ <div class="flex items-center justify-between gap-2">+ <span class="text-muted">Tags</span>+ <TagBadges tags={props.resource.tags} maxVisible={6} />+ </div>+ </Show>+ <Show when={identityAliasValues().length > 0}>+ <Show+ when={hasAliasOverflow()}+ fallback={+ <div class="flex flex-col gap-1">+ <span class="text-muted">Aliases</span>+ <div class="flex flex-wrap gap-1">+ <For each={aliasPreviewValues()}>+ {(value) => (+ <span+ class="inline-flex items-center rounded bg-surface-alt px-1.5 py-0.5 text-[10px]"+ title={value}+ >+ {value}+ </span>+ )}+ </For>+ </div>+ </div>+ }+ >+ <details class="rounded border border-border bg-surface px-2 py-1.5">+ <summary class="flex cursor-pointer list-none items-center justify-between text-[10px] font-medium text-muted">+ <span>Aliases</span>+ <span class="text-muted">{identityAliasValues().length}</span>+ </summary>+ <div class="mt-2 flex flex-wrap gap-1 border-t border-border pt-2">+ <For each={identityAliasValues()}>+ {(value) => (+ <span+ class="inline-flex items-center rounded bg-surface-alt px-1.5 py-0.5 text-[10px]"+ title={value}+ >+ {value}+ </span>+ )}+ </For>+ </div>+ </details>+ </Show>+ </Show></div></Show>- </div>+ </SupportDisclosure></Show></div></div>@@ -1046,79 +1127,6 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {</div>)}</For>- <Show when={hasIdentitySupportContext()}>- <div class="mt-2 space-y-1.5">- <div class="text-[10px] font-medium uppercase tracking-wide text-base-content">- Supporting context- </div>- <Show- when={props.resource.identity?.ips && props.resource.identity.ips.length > 0}- >- <div class="flex flex-col gap-1">- <span class="text-muted">IP Addresses</span>- <div class="flex flex-wrap gap-1">- <For each={props.resource.identity?.ips ?? []}>- {(ip) => (- <span- class="inline-flex items-center rounded bg-blue-100 px-1.5 py-0.5 text-[10px] text-blue-700 dark:bg-blue-900 dark:text-blue-200"- title={ip}- >- {ip}- </span>- )}- </For>- </div>- </div>- </Show>- <Show when={props.resource.tags && props.resource.tags.length > 0}>- <div class="flex items-center justify-between gap-2">- <span class="text-muted">Tags</span>- <TagBadges tags={props.resource.tags} maxVisible={6} />- </div>- </Show>- <Show when={identityAliasValues().length > 0}>- <Show- when={hasAliasOverflow()}- fallback={- <div class="flex flex-col gap-1">- <span class="text-muted">Aliases</span>- <div class="flex flex-wrap gap-1">- <For each={aliasPreviewValues()}>- {(value) => (- <span- class="inline-flex items-center rounded bg-surface-alt px-1.5 py-0.5 text-[10px]"- title={value}- >- {value}- </span>- )}- </For>- </div>- </div>- }- >- <details class="rounded border border-border bg-surface px-2 py-1.5">- <summary class="flex cursor-pointer list-none items-center justify-between text-[10px] font-medium text-muted">- <span>Aliases</span>- <span class="text-muted">{identityAliasValues().length}</span>- </summary>- <div class="mt-2 flex flex-wrap gap-1 border-t border-border pt-2">- <For each={identityAliasValues()}>- {(value) => (- <span- class="inline-flex items-center rounded bg-surface-alt px-1.5 py-0.5 text-[10px]"- title={value}- >- {value}- </span>- )}- </For>- </div>- </details>- </Show>- </Show>- </div>- </Show><Show when={!identityCardHasRichData()}><div class="rounded border border-dashed bg-surface-hover px-2 py-1.5 text-[10px] ">No identity metadata yet.diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsxindex c6edf7988f..85d676d6f7 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx@@ -165,6 +165,7 @@ describe('ResourceDetailDrawer change history section', () => {displayName: 'VM 42',platformId: 'vm-42',platformType: 'proxmox-pve',+ tags: ['timeline-tag'],platformData: { sources: ['proxmox'] },});@@ -217,7 +218,10 @@ describe('ResourceDetailDrawer change history section', () => {screen.queryByText('Supporting metadata only. The web interface path above stays primary.'),).toBeNull();expect(screen.getByRole('button', { name: 'Show metadata' })).toBeInTheDocument();- expect(screen.queryByText('Operational context')).toBeNull();+ expect(screen.getByText('Details')).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Show details' })).toBeInTheDocument();+ fireEvent.click(screen.getByRole('button', { name: 'Show details' }));+ expect(screen.getByText('Tags')).toBeInTheDocument();expect(within(changeHistorySection).queryByText('Filterable event history for this resource.'),).toBeNull();@@ -248,7 +252,7 @@ describe('ResourceDetailDrawer change history section', () => {).toBeNull();});- it('keeps supporting context label-first without a summary sentence', () => {+ it('keeps details label-first without a summary sentence', () => {facetBundleMock.getFacetBundle.mockResolvedValueOnce({capabilities: [],relationships: [],@@ -276,11 +280,8 @@ describe('ResourceDetailDrawer change history section', () => {render(() => <ResourceDetailDrawer resource={resource} />);- const supportingContext = screen.getByText('Supporting context');- expect(supportingContext).toBeInTheDocument();- expect(- supportingContext.parentElement?.querySelector('.mt-1.text-\\[10px\\].text-muted'),- ).toBeNull();+ expect(screen.getByText('Details')).toBeInTheDocument();+ fireEvent.click(screen.getByRole('button', { name: 'Show details' }));expect(screen.getByText('Aliases')).toBeInTheDocument();});diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsxindex 495a324409..c6f1a75073 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx@@ -125,7 +125,10 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {expect(getByText('2/2 healthy')).toBeInTheDocument();expect(getByText('Mode')).toBeInTheDocument();expect(getByText('Hybrid')).toBeInTheDocument();- expect(getByText('Operational context')).toBeInTheDocument();+ expect(getByText('Details')).toBeInTheDocument();+ expect(getByRole('button', { name: 'Show details' })).toBeInTheDocument();+ fireEvent.click(getByRole('button', { name: 'Show details' }));+ expect(getByText('Platform ID')).toBeInTheDocument();expect(getByText('Quick links')).toBeInTheDocument();expect(() => getByText('Runtime')).toThrow();expect(getByRole('link', { name: 'Open related workloads for host-1' })).toHaveTextContent(@@ -235,7 +238,8 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {expect(getAllByText('PMG').length).toBeGreaterThan(0);expect(getByText('Mode')).toBeInTheDocument();expect(getByText('API')).toBeInTheDocument();- expect(queryByText('Operational context')).toBeInTheDocument();+ expect(getByText('Details')).toBeInTheDocument();+ expect(queryByText('Operational context')).toBeNull();});it('shows identity aliases and fallback message when identity metadata is sparse', () => {@@ -258,12 +262,13 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {},});- const { getByText, getAllByText, queryByText } = render(() => (+ const { getByRole, getByText, getAllByText, queryByText } = render(() => (<ResourceDetailDrawer resource={resource} />));expect(getByText('Identity')).toBeInTheDocument();- expect(getByText('Supporting context')).toBeInTheDocument();+ expect(getByText('Details')).toBeInTheDocument();+ fireEvent.click(getByRole('button', { name: 'Show details' }));expect(getByText('Aliases')).toBeInTheDocument();expect(getAllByText('pmg-main').length).toBeGreaterThan(0);expect(queryByText('No identity metadata yet.')).toBeNull();@@ -311,12 +316,14 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {},});- const { container, getByText, getAllByText } = render(() => (+ const { container, getByRole, getByText, getAllByText } = render(() => (<ResourceDetailDrawer resource={resource} />));expect(getByText('Metrics Target')).toBeInTheDocument();expect(getAllByText('docker-host:docker-host-1').length).toBeGreaterThan(1);+ expect(getByText('Details')).toBeInTheDocument();+ fireEvent.click(getByRole('button', { name: 'Show details' }));expect(getByText('Aliases')).toBeInTheDocument();expect(getAllByText('docker-host-1').length).toBeGreaterThan(0);expect(container.querySelector('.text-\\[11px\\].text-muted.truncate')?.textContent).toBe(@@ -342,12 +349,8 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {});const inlineRender = render(() => <ResourceDetailDrawer resource={inlineResource} />);- expect(inlineRender.getByText('Supporting context')).toBeInTheDocument();- expect(- inlineRender- .getByText('Supporting context')- .parentElement?.querySelector('.mt-1.text-\\[10px\\].text-muted'),- ).toBeNull();+ expect(inlineRender.getByText('Details')).toBeInTheDocument();+ fireEvent.click(inlineRender.getByRole('button', { name: 'Show details' }));expect(inlineRender.getByText('Aliases')).toBeInTheDocument();expect(inlineRender.container.querySelector('details')).toBeNull();expect(inlineRender.getByText('agent-inline-1')).toBeInTheDocument();@@ -377,12 +380,8 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {});const overflowRender = render(() => <ResourceDetailDrawer resource={overflowResource} />);- expect(overflowRender.getByText('Supporting context')).toBeInTheDocument();- expect(- overflowRender- .getByText('Supporting context')- .parentElement?.querySelector('.mt-1.text-\\[10px\\].text-muted'),- ).toBeNull();+ expect(overflowRender.getByText('Details')).toBeInTheDocument();+ fireEvent.click(overflowRender.getByRole('button', { name: 'Show details' }));expect(overflowRender.getByText('Aliases')).toBeInTheDocument();expect(overflowRender.container.querySelector('details')).toBeTruthy();});diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsxindex 68409448be..fb092c5119 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsx@@ -93,6 +93,7 @@ describe('ResourceDetailDrawer service cards', () => {expect(getByText('Service details')).toBeInTheDocument();expect(getByText('2 datastores · 3 jobs')).toBeInTheDocument();expect(queryByText('PBS Service')).toBeNull();+ fireEvent.click(getByRole('button', { name: 'Show details' }));fireEvent.click(getByRole('button', { name: 'Show service details' }));const serviceDetails = within(getByTestId('resource-service-details-section'));expect(serviceDetails.getByText('PBS')).toBeInTheDocument();@@ -151,6 +152,7 @@ describe('ResourceDetailDrawer service cards', () => {expect(serviceDetails.queryByText('Connection')).toBeNull();expect(serviceDetails.getAllByText('State').length).toBeGreaterThan(0);expect(serviceDetails.getAllByText('pmg-main.local').length).toBeGreaterThan(0);+ fireEvent.click(getByRole('button', { name: 'Show details' }));expect(queryByText('Mail flow summary')).toBeNull();expect(queryByText('Queue breakdown')).toBeNull();expect(queryByText('Mail processing')).toBeNull();