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.

Simplify host and service disclosure stacks

rcourtman67a044651347
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 0a9a118bc8..62c523d8d4 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -296,6 +296,9 @@ Host and node system or hardware cards now also live behind a collapsed
`Host details` support block instead of rendering before the primary overview
cards, so runtime status, identity, and next investigation steps stay first
while deeper machine detail remains available on demand.
+That host-details section now reads as a simple vertical stack of detail cards
+instead of a wrapped card grid, so the opened state stays linear instead of
+feeling like a second dashboard.
Within that summary shell, current-state facts now stay in the primary summary
while platform IDs, quick links, platform-signal badges, aliases, IPs, and
tags render inline as supporting rows, so first read remains status-first and
@@ -310,6 +313,9 @@ Type-specific Docker, PBS, and PMG operational panels now also live inside a
collapsed `Service details` support block, so lane-specific controls and
breakdowns stay available without displacing the common runtime and identity
hierarchy on first read.
+That service-details section now also stacks vertically instead of using a
+multi-column card grid, so the opened service state stays scan-first instead
+of turning into a mini board.
When `Service details` is expanded, each service card remains summary-first and
pushes heavier breakdowns or update controls behind one more service-local
reveal, so the opened state still scans as current state before deeper
diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
index 59fc29ea7b..28e5cde4b6 100644
--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
@@ -1365,12 +1365,12 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {
<SupportDisclosure
title="Service details"
summary={serviceDetailsSummary()}
- expanded={showServiceDetails()}
- onToggle={() => setShowServiceDetails((value) => !value)}
- showLabel="Show service details"
- hideLabel="Hide service details"
- contentClass="mt-3 grid gap-3 md:grid-cols-2 lg:grid-cols-3"
- dataTestId="resource-service-details-section"
+ expanded={showServiceDetails()}
+ onToggle={() => setShowServiceDetails((value) => !value)}
+ showLabel="Show service details"
+ hideLabel="Hide service details"
+ contentClass="mt-3 space-y-3"
+ dataTestId="resource-service-details-section"
>
<Show when={props.resource.type === 'docker-host'}>
<div class="rounded border border-sky-200 bg-sky-50 p-3 dark:border-sky-700 dark:bg-sky-900">
@@ -1792,7 +1792,8 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {
showLabel="Show host details"
hideLabel="Hide host details"
class="mt-3 rounded border border-dashed border-border bg-surface-hover p-3"
- contentClass="mt-3 flex flex-wrap gap-3 [&>*]:flex-1 [&>*]:basis-[calc(25%-0.75rem)] [&>*]:min-w-[200px] [&>*]:max-w-full [&>*]:overflow-hidden"
+ contentClass="mt-3 space-y-3"
+ dataTestId="resource-host-details-section"
>
<Show when={proxmoxNode()}>
{(node) => (
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 8e9db9f4e4..09ea1c0647 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
@@ -436,6 +436,10 @@ describe('ResourceDetailDrawer change history section', () => {
expect(screen.getByText('Service details')).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: 'Show service details' }));
const serviceDetails = within(screen.getByTestId('resource-service-details-section'));
+ expect(
+ screen.getByTestId('resource-service-details-section').querySelector('.mt-3.space-y-3'),
+ ).toBeTruthy();
+ expect(screen.getByTestId('resource-service-details-section').querySelector('.mt-3.grid')).toBeNull();
expect(serviceDetails.getByText('PBS')).toBeInTheDocument();
expect(serviceDetails.queryByText('PBS Service')).toBeNull();
expect(serviceDetails.queryByText('Connection')).toBeNull();
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 a6849c753a..57f0ecc516 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
@@ -203,7 +203,7 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
},
});
- const { getByRole, getByText, queryByText } = render(() => (
+ const { getByRole, getByText, getByTestId, queryByText } = render(() => (
<ResourceDetailDrawer resource={resource} />
));
@@ -219,6 +219,8 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
await waitFor(() => {
expect(getByText('Hardware')).toBeInTheDocument();
});
+ expect(getByTestId('resource-host-details-section').querySelector('.mt-3.space-y-3')).toBeTruthy();
+ expect(getByTestId('resource-host-details-section').querySelector('.mt-3.flex.flex-wrap')).toBeNull();
expect(getByText('Network')).toBeInTheDocument();
expect(getByText('Disks')).toBeInTheDocument();
expect(getByText('eth0')).toBeInTheDocument();
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 e71f7dec41..9c278cbe0a 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
@@ -95,6 +95,7 @@ describe('ResourceDetailDrawer service cards', () => {
expect(getByText('Platform ID')).toBeInTheDocument();
expect(queryByText('PBS Service')).toBeNull();
fireEvent.click(getByRole('button', { name: 'Show service details' }));
+ expect(getByTestId('resource-service-details-section').querySelector('.mt-3.grid')).toBeNull();
const serviceDetails = within(getByTestId('resource-service-details-section'));
expect(serviceDetails.getByText('PBS')).toBeInTheDocument();
expect(serviceDetails.queryByText('Connection')).toBeNull();
@@ -148,6 +149,7 @@ describe('ResourceDetailDrawer service cards', () => {
expect(getByText('Platform ID')).toBeInTheDocument();
expect(queryByText('Mail Gateway')).toBeNull();
fireEvent.click(getByRole('button', { name: 'Show service details' }));
+ expect(getByTestId('resource-service-details-section').querySelector('.mt-3.grid')).toBeNull();
const serviceDetails = within(getByTestId('resource-service-details-section'));
expect(serviceDetails.getByText('PMG')).toBeInTheDocument();
expect(serviceDetails.queryByText('Connection')).toBeNull();