Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Flatten summary support rows

rcourtman8c300293fa02
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 1f08ad53e8..f31319fd4b 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -269,8 +269,9 @@ badges only, while workload/service drill-down links and Kubernetes platform
signals live with the summary shell, so the top strip does not compete with
the resource name, status, or primary identity line.
Inside that summary shell, the operational and supporting context rows stay
-inline instead of sitting in nested bordered cards, so the first read stays
-like one linear sheet rather than a stack of cards inside the summary.
+inline instead of sitting in a collapsed `Details` disclosure or nested
+bordered cards, so the first read stays like one linear sheet rather than a
+stack of cards inside the summary.
Discovery support now also lives inside overview-only `Discovery context`
instead of a peer drawer tab, so supplemental discovery detail stays available
without claiming the same navigation weight as runtime, identity, or
@@ -292,12 +293,12 @@ Host and node system or hardware cards now also live behind a collapsed
cards, so runtime status, identity, and next investigation steps stay first
while deeper machine detail remains available on demand.
Within that summary shell, current-state facts now stay in the primary summary
-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.
+while platform IDs, quick links, platform-signal badges, aliases, IPs, and
+tags render inline as supporting rows, so first read remains status-first and
+identity-first instead of mixing state with hidden supporting action surfaces.
+Those rows stay label-first and only expand when a specific value, like alias
+overflow, needs its own reveal, so the summary answers the main resource
+question before deeper metadata appears.
When the identity side has no owned rows or supporting labels yet, the sparse
fallback now stays terse (`No identity metadata yet.`) so empty state chrome
does 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.tsx
index df992ed84b..6d97abd7ea 100644
--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
@@ -214,7 +214,6 @@ 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);
@@ -980,98 +979,110 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {
</div>
</Show>
<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 class="mt-2 rounded border border-dashed border-border bg-surface-hover p-3">
+ <div class="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>
- </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>
+ </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>
- </div>
- </Show>
- </div>
- </Show>
- <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>
+ </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>
- </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>
+ </div>
+ </Show>
+ <Show when={hasIdentitySupportContext()}>
+ <div class="space-y-1.5">
<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()}>
+ 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]"
@@ -1082,32 +1093,13 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {
)}
</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>
+ </details>
+ </Show>
</Show>
- </Show>
- </div>
- </Show>
- </SupportDisclosure>
+ </div>
+ </Show>
+ </div>
+ </div>
</Show>
</div>
</div>
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
index 918927c123..22d5933e22 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
@@ -218,9 +218,9 @@ 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.getByText('Details')).toBeInTheDocument();
- expect(screen.getByRole('button', { name: 'Show details' })).toBeInTheDocument();
- fireEvent.click(screen.getByRole('button', { name: 'Show details' }));
+ expect(screen.queryByText('Details')).toBeNull();
+ expect(screen.queryByRole('button', { name: 'Show details' })).toBeNull();
+ expect(screen.getByText('Platform ID')).toBeInTheDocument();
expect(screen.getByText('Tags')).toBeInTheDocument();
expect(
within(changeHistorySection).queryByText('Filterable event history for this resource.'),
@@ -287,8 +287,6 @@ describe('ResourceDetailDrawer change history section', () => {
render(() => <ResourceDetailDrawer resource={resource} />);
- 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.tsx
index f1140336f7..a6849c753a 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
@@ -117,7 +117,9 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
},
});
- const { getByRole, getByText } = render(() => <ResourceDetailDrawer resource={resource} />);
+ const { getByRole, getByText, queryByRole } = render(() => (
+ <ResourceDetailDrawer resource={resource} />
+ ));
expect(getByText('Summary')).toBeInTheDocument();
expect(getByText('Current state')).toBeInTheDocument();
@@ -125,11 +127,9 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
expect(getByText('2/2 healthy')).toBeInTheDocument();
expect(getByText('Mode')).toBeInTheDocument();
expect(getByText('Hybrid')).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(queryByRole('button', { name: 'Show details' })).toBeNull();
expect(() => getByText('Runtime')).toThrow();
expect(getByRole('link', { name: 'Open related workloads for host-1' })).toHaveTextContent(
'Workloads',
@@ -240,8 +240,9 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
expect(getAllByText('PMG').length).toBeGreaterThan(0);
expect(getByText('Mode')).toBeInTheDocument();
expect(getByText('API')).toBeInTheDocument();
- expect(getByText('Details')).toBeInTheDocument();
- expect(queryByText('Operational context')).toBeNull();
+ expect(getByText('Platform ID')).toBeInTheDocument();
+ expect(queryByText('Details')).toBeNull();
+ expect(queryByText('Show details')).toBeNull();
});
it('shows identity aliases and fallback message when identity metadata is sparse', () => {
@@ -264,13 +265,11 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
},
});
- const { getByRole, getByText, getAllByText, queryByText } = render(() => (
+ const { getByText, getAllByText, queryByText } = render(() => (
<ResourceDetailDrawer resource={resource} />
));
expect(getByText('Identity')).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();
@@ -318,14 +317,12 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
},
});
- const { container, getByRole, getByText, getAllByText } = render(() => (
+ const { container, 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(
@@ -351,8 +348,6 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
});
const inlineRender = render(() => <ResourceDetailDrawer resource={inlineResource} />);
- 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();
@@ -382,8 +377,6 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
});
const overflowRender = render(() => <ResourceDetailDrawer resource={overflowResource} />);
- 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.tsx
index fb092c5119..e71f7dec41 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
@@ -92,8 +92,8 @@ describe('ResourceDetailDrawer service cards', () => {
expect(getByText('Service details')).toBeInTheDocument();
expect(getByText('2 datastores · 3 jobs')).toBeInTheDocument();
+ expect(getByText('Platform ID')).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();
@@ -145,6 +145,7 @@ describe('ResourceDetailDrawer service cards', () => {
expect(getByText('Service details')).toBeInTheDocument();
expect(getByText('519 queue total · 16 backlog')).toBeInTheDocument();
+ expect(getByText('Platform ID')).toBeInTheDocument();
expect(queryByText('Mail Gateway')).toBeNull();
fireEvent.click(getByRole('button', { name: 'Show service details' }));
const serviceDetails = within(getByTestId('resource-service-details-section'));
@@ -152,7 +153,6 @@ 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();