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 discovery metadata panel

rcourtmane93de3325a87
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index df810e3b8c..bc0198e098 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -290,6 +290,9 @@ That discovery surface is now a compact support row with a one-line summary and
an on-demand metadata panel, so the actionable web-interface path stays primary
while deeper discovery inspection remains available without reading like a
second peer overview surface.
+The discovery metadata panel now expands directly under the outer support
+disclosure instead of nesting a second bordered card, so the support surface
+reads as one flattened reveal instead of a card inside a card.
The overview keeps host, service, investigation, and discovery detail as
collapsed sibling disclosures under the primary summary, so the drawer keeps
the top-level shape to `Summary` plus `Change history` before any secondary
diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
index 655c1d0fe6..f53983d85c 100644
--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
@@ -1968,7 +1968,7 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {
showLabel="Show metadata"
hideLabel="Hide metadata"
class="rounded border border-dashed border-border bg-surface-hover p-3"
- contentClass="mt-3 rounded border border-border bg-surface p-2.5"
+ dataTestId="resource-discovery-context"
>
<Suspense
fallback={
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 7171e9af10..3376d92b68 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
@@ -224,6 +224,11 @@ 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.getByTestId('resource-discovery-context').querySelector(
+ '.mt-3.rounded.border.border-border.bg-surface.p-2\\.5',
+ ),
+ ).toBeNull();
expect(screen.queryByText('Details')).toBeNull();
expect(screen.queryByRole('button', { name: 'Show details' })).toBeNull();
expect(screen.getByText('Platform ID')).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 57f0ecc516..d518cbdcd0 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
@@ -137,9 +137,9 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
});
it('keeps discovery as secondary overview context instead of a peer tab', async () => {
- const { getByRole, getByText, queryByRole, queryByTestId, queryByText } = render(() => (
- <ResourceDetailDrawer resource={baseResource({})} />
- ));
+ const { getByRole, getByText, getByTestId, queryByRole, queryByTestId, queryByText } = render(
+ () => <ResourceDetailDrawer resource={baseResource({})} />,
+ );
expect(queryByRole('button', { name: 'Discovery' })).toBeNull();
expect(getByText('Discovery context')).toBeInTheDocument();
@@ -148,6 +148,11 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
queryByText('Supporting metadata only. The web interface path above stays primary.'),
).toBeNull();
expect(queryByTestId('discovery-tab')).toBeNull();
+ expect(
+ getByTestId('resource-discovery-context').querySelector(
+ '.mt-3.rounded.border.border-border.bg-surface.p-2\\.5',
+ ),
+ ).toBeNull();
expect(getByRole('button', { name: 'Show metadata' })).toBeInTheDocument();