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
Converge investigation drawer detail layout
rcourtman329e701de96a
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex be26d32986..acb9ffcc37 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1249,8 +1249,11 @@ not a replacement status card, CTA band, or page-local nested card.A compact detail row may carry optional bounded rich value content forlinks, tags, aliases, and address badges while retaining a canonical textvalue for titles, tests, and operator-readable fallback. It may also carry- optional bounded progress metadata, but the- shared `DetailSectionTable` must render that metadata through the CSP-safe+ optional bounded progress metadata. A detail section may carry bounded+ full-width footer content for supporting evidence such as a compact change+ summary; that content remains inside the section card and must not be+ squeezed into the value column or detached into a feature-local card. The+ shared `DetailSectionTable` must render progress metadata through the CSP-safe`ProgressBar` while preserving the row's textual value as the primaryoperator-readable fact. Feature surfaces must omit the metadata when themeasurement is unavailable rather than presenting an empty bar as 0%.diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 9bff03a719..5ea6f7f994 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,60 +1,30 @@{"version": 1,- "base_sha": "3d4c43162a2e05e86b486fc7ff24a677bf73036d",- "verified_at": "2026-08-27T17:51:27Z",+ "base_sha": "8df9db7ab1159c9384b233d6f1e45a78720d231e",+ "verified_at": "2026-08-27T18:21:17Z","result": "passed","changed_paths": [- "frontend-modern/src/api/notifications.ts",- "frontend-modern/src/api/relay.ts",- "frontend-modern/src/components/Alerts/DestinationSeveritySelect.tsx",- "frontend-modern/src/components/Alerts/EmailProviderSelect.tsx",- "frontend-modern/src/components/Alerts/WebhookConfigForm.tsx",- "frontend-modern/src/components/Alerts/WebhookConfigList.tsx",- "frontend-modern/src/components/Alerts/useWebhookConfigState.ts",- "frontend-modern/src/features/alerts/AlertAppriseDestinationsSection.tsx",- "frontend-modern/src/features/alerts/AlertPushDestinationsSection.tsx",- "frontend-modern/src/features/alerts/AlertsConfigurationSurface.tsx",- "frontend-modern/src/features/alerts/alertDestinationsModel.ts",- "frontend-modern/src/features/alerts/helpers.ts",- "frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx",- "frontend-modern/src/features/alerts/types.ts",- "frontend-modern/src/features/alerts/useAlertDestinationsState.ts",- "frontend-modern/src/features/alerts/useAlertsConfigurationState.ts",- "frontend-modern/src/utils/alertDestinationsPresentation.ts"+ "frontend-modern/src/components/Infrastructure/ResourceInvestigationContextTables.tsx",+ "frontend-modern/src/components/shared/DetailSectionTable.tsx",+ "frontend-modern/src/components/shared/detailSectionModel.ts"],"content_sha256": {- "frontend-modern/src/api/notifications.ts": "faf71397a60ad8cbabf70f9dfc891ad969efb34a455f9787c7d219400e822743",- "frontend-modern/src/api/relay.ts": "13b9b2cf5d7455b0e1a685db85ce50aff73a10071c8029348535acb3560f394f",- "frontend-modern/src/components/Alerts/DestinationSeveritySelect.tsx": "c7eb4c2b93c3090deccf7a7add952d37f762b802ed69e6c0d1021976af03b4d5",- "frontend-modern/src/components/Alerts/EmailProviderSelect.tsx": "6df0e0966111f68cf353cc7385b3eaac152480613ad51e587d1c574bd218cbc1",- "frontend-modern/src/components/Alerts/WebhookConfigForm.tsx": "c2e07aae1a8fb6080cf07ff12ee373f67809dbf966f21c2713135570cd142f2a",- "frontend-modern/src/components/Alerts/WebhookConfigList.tsx": "ee5df9481e03cf77388f45e7b6c2f4d97b2c4de4a50c2717a2e9dd215c12381c",- "frontend-modern/src/components/Alerts/useWebhookConfigState.ts": "29f9d17c646b059454d3a7f71578c63317a341970b6302911e9d964595d94a28",- "frontend-modern/src/features/alerts/AlertAppriseDestinationsSection.tsx": "26f04c0eb96ac7632b01ab7a6fd2fd676309ce28ea37a90df3f1350b405e3e62",- "frontend-modern/src/features/alerts/AlertPushDestinationsSection.tsx": "079e71faeef74b1d56ded4a345a28447629fd1742942f355ce4d9c9a4941f52c",- "frontend-modern/src/features/alerts/AlertsConfigurationSurface.tsx": "7f4f91966cd0638a6867e983875ab5170984d3e245ecc6ea7a28018f1fc7ecda",- "frontend-modern/src/features/alerts/alertDestinationsModel.ts": "cb289cc948d1f4f86e8e4a93618c32d545e8d7a7bbfdf45ab1c9f14325609f38",- "frontend-modern/src/features/alerts/helpers.ts": "6421ea5377ee3dc11226dd917e6dddc98f285ab1c324cc5e583fd49c3e56cc73",- "frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx": "991f1076a75ff64e62fd02dd0f8cbfcd4e46bb865eb115ce6efbdf477201be27",- "frontend-modern/src/features/alerts/types.ts": "d25caaaf62e354247fac70c9278b27b6db82380f8914949ddf5fb7cd296e501d",- "frontend-modern/src/features/alerts/useAlertDestinationsState.ts": "36a89bd5cbde02cf9e263734911468b15591927c170cb5287cb0f1354f325e20",- "frontend-modern/src/features/alerts/useAlertsConfigurationState.ts": "48870de79c4e803bbcff3456d3da1d8af06f4eb3d6d7cbb68c714aca64d1f443",- "frontend-modern/src/utils/alertDestinationsPresentation.ts": "4e3fd6d4799bb86df65a2fde5b73e62b9cc65bcebc66d3d3d142d678fa0bac7a"+ "frontend-modern/src/components/Infrastructure/ResourceInvestigationContextTables.tsx": "86708854264fb59d14aa23766ccceb406301b9606e3af5ec5964ae524170f2d4",+ "frontend-modern/src/components/shared/DetailSectionTable.tsx": "135153e1a29dc85afe8867643a31cbb66a6a13468f0f3af8efdd4be049f4d223",+ "frontend-modern/src/components/shared/detailSectionModel.ts": "c98b6befd1348282abd990c47886fb5af60e362fdbb6c453d60f36e2fd3ebe1c"},- "routes": ["/alerts/notifications"],+ "routes": ["/proxmox/overview"],"viewports": [- { "width": 1280, "height": 800 },+ { "width": 1920, "height": 800 },{ "width": 390, "height": 844 }],"states": [- "notifications-paused install with email, Apprise, webhook, watchdog, mobile push, and delivery-evidence sections",- "unlicensed Relay install with the mobile push upgrade gate",- "email and Apprise destinations using backwards-compatible all-alert routing"+ "expanded backup-vault drawer after extending the shared responsive section primitive",+ "Analysis and Governance responsive section state covered by focused rendered drawer tests"],"interactions": [- "opened Alerts Notifications from the alert navigation and confirmed two accessible minimum-severity selectors render",- "verified All alerts and Critical alerts only options plus occurrence-aware recovery guidance for email and Apprise",- "verified the unlicensed mobile push gate remains coherent and no Relay control is presented without entitlement",- "verified the route at 1280x800 and 390x844 with no browser console errors"+ "confirmed shared desktop sections remain aligned equal-width cards with adjacent labels and values",+ "confirmed compact mobile table rows remain intact at 390x844 with zero horizontal overflow",+ "reloaded the final implementation and confirmed no new browser console errors"]}diff --git a/frontend-modern/src/components/Infrastructure/ResourceInvestigationContextTables.tsx b/frontend-modern/src/components/Infrastructure/ResourceInvestigationContextTables.tsxindex d5e9ef7e75..9628819d34 100644--- a/frontend-modern/src/components/Infrastructure/ResourceInvestigationContextTables.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceInvestigationContextTables.tsx@@ -1,6 +1,13 @@-import { For, Show } from 'solid-js';-import type { Component } from 'solid-js';+import { For, type Component } from 'solid-js';import type { Resource } from '@/types/resource';+import { DetailSectionTable } from '@/components/shared/DetailSectionTable';+import {+ compactDetailRows,+ compactDetailSections,+ makeDetailRow,+ type DetailRow,+ type DetailSection,+} from '@/components/shared/detailSectionModel';import {getResourceRoutingScopeLabel,getResourceSensitivityLabel,@@ -17,119 +24,84 @@ interface ResourceInvestigationContextTablesProps {drawer: UseResourceDetailDrawerStateResult;}+const redactionLabelsRow = (labels: string[]): DetailRow | null => {+ if (labels.length === 0) return null;+ return {+ label: 'Redaction labels',+ value: labels.join(', '),+ valueContent: (+ <div class="flex flex-wrap gap-1">+ <For each={labels}>+ {(label) => (+ <span class="inline-flex items-center rounded bg-surface-alt px-1.5 py-0.5 text-[10px]">+ {label}+ </span>+ )}+ </For>+ </div>+ ),+ };+};+export const ResourceInvestigationContextTables: Component<ResourceInvestigationContextTablesProps-> = (props) => (- <div class="overflow-hidden rounded border border-border bg-surface">- <table class="w-full table-fixed text-[11px]">- <Show when={props.drawer.resourceIntelligence()}>- {(intel) => (- <tbody class="divide-y divide-border">- <tr class="bg-surface-alt">- <th- colspan="2"- class="px-2 py-1 text-left text-[10px] font-semibold uppercase tracking-wide text-muted"- >- {RESOURCE_ANALYSIS_LABEL}- </th>- </tr>- <tr>- <td class="w-[38%] px-2 py-1 text-muted">Health</td>- <td class="px-2 py-1 text-right font-semibold text-base-content">- {intel().health.grade} · {Math.round(intel().health.score)}/100- </td>- </tr>- <tr>- <td class="px-2 py-1 text-muted">Trend</td>- <td class="px-2 py-1 text-right font-semibold capitalize text-base-content">- {intel().health.trend}- </td>- </tr>- <tr>- <td class="px-2 py-1 text-muted">Notes</td>- <td class="px-2 py-1 text-right font-semibold text-base-content">- {intel().note_count}- </td>- </tr>- <tr>- <td colspan="2" class="px-2 py-2">- <ResourceChangeSummary- class="space-y-0"- title="Latest canonical change"- changes={intel().recent_changes}- resolveResourceLabel={props.drawer.resolveResourceLabel}- maxChanges={1}- compact- />- </td>- </tr>- </tbody>- )}- </Show>+> = (props) => {+ const sections = (): DetailSection[] => {+ const intelligence = props.drawer.resourceIntelligence();+ const redactions = props.drawer.policyRedactions();++ return compactDetailSections([+ intelligence+ ? {+ label: RESOURCE_ANALYSIS_LABEL,+ rows: compactDetailRows([+ makeDetailRow(+ 'Health',+ `${intelligence.health.grade} · ${Math.round(intelligence.health.score)}/100`,+ ),+ makeDetailRow('Trend', intelligence.health.trend, { valueClass: 'capitalize' }),+ makeDetailRow('Notes', String(intelligence.note_count)),+ ]),+ footerContent: (+ <ResourceChangeSummary+ class="space-y-0"+ title="Latest canonical change"+ changes={intelligence.recent_changes}+ resolveResourceLabel={props.drawer.resolveResourceLabel}+ maxChanges={1}+ compact+ />+ ),+ }+ : null,+ props.drawer.hasGovernanceData()+ ? {+ label: 'Governance',+ rows: compactDetailRows([+ props.resource.policy+ ? makeDetailRow(+ 'Sensitivity',+ getResourceSensitivityLabel(props.resource.policy.sensitivity),+ )+ : null,+ props.resource.policy+ ? makeDetailRow(+ 'Routing',+ getResourceRoutingScopeLabel(props.resource.policy.routing.scope),+ )+ : null,+ redactions.length > 0 || props.drawer.governanceSummary()+ ? makeDetailRow('Redactions', String(redactions.length))+ : null,+ redactionLabelsRow(redactions),+ makeDetailRow(RESOURCE_SAFE_SUMMARY_LABEL, props.drawer.governanceSummary(), {+ wrap: true,+ }),+ ]),+ }+ : null,+ ]);+ };- <Show when={props.drawer.hasGovernanceData()}>- <tbody class="divide-y divide-border border-t border-border">- <tr class="bg-surface-alt">- <th- colspan="2"- class="px-2 py-1 text-left text-[10px] font-semibold uppercase tracking-wide text-muted"- >- Governance- </th>- </tr>- <Show when={props.resource.policy}>- <tr>- <td class="w-[38%] px-2 py-1 text-muted">Sensitivity</td>- <td class="px-2 py-1 text-right font-semibold text-base-content">- {getResourceSensitivityLabel(props.resource.policy?.sensitivity)}- </td>- </tr>- <tr>- <td class="px-2 py-1 text-muted">Routing</td>- <td class="px-2 py-1 text-right font-semibold text-base-content">- {getResourceRoutingScopeLabel(props.resource.policy?.routing.scope)}- </td>- </tr>- </Show>- <Show- when={props.drawer.policyRedactions().length > 0 || props.drawer.governanceSummary()}- >- <tr>- <td class="px-2 py-1 text-muted">Redactions</td>- <td class="px-2 py-1 text-right font-semibold text-base-content">- {props.drawer.policyRedactions().length}- </td>- </tr>- </Show>- <Show when={props.drawer.policyRedactions().length > 0}>- <tr>- <td class="px-2 py-1 align-top text-muted">Redaction labels</td>- <td class="px-2 py-1">- <div class="flex flex-wrap justify-end gap-1">- <For each={props.drawer.policyRedactions()}>- {(label) => (- <span class="inline-flex items-center rounded bg-surface-alt px-1.5 py-0.5 text-[10px]">- {label}- </span>- )}- </For>- </div>- </td>- </tr>- </Show>- <Show when={props.drawer.governanceSummary()}>- <tr>- <td class="px-2 py-1 align-top text-muted">{RESOURCE_SAFE_SUMMARY_LABEL}</td>- <td- class="px-2 py-1 text-left font-medium text-base-content"- title={props.drawer.governanceSummary() ?? undefined}- >- <span class="block truncate">{props.drawer.governanceSummary()}</span>- </td>- </tr>- </Show>- </tbody>- </Show>- </table>- </div>-);+ return <DetailSectionTable sections={sections()} />;+};diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsxindex 93d32e26bf..7ee1fd8cae 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx@@ -184,7 +184,10 @@ describe('ResourceDetailDrawer change history section', () => {expect(resourceDetailSummarySource).toContain("from '@/components/shared/TagBadges'");expect(resourceDetailSummarySource).toContain("from '@/components/shared/DetailSectionTable'");expect(resourceDetailSummarySource).not.toContain('<table');- expect(resourceInvestigationContextSource).toContain('<table');+ expect(resourceInvestigationContextSource).toContain(+ "from '@/components/shared/DetailSectionTable'",+ );+ expect(resourceInvestigationContextSource).not.toContain('<table');expect(resourceInvestigationContextSource).toContain('RESOURCE_SAFE_SUMMARY_LABEL');expect(resourceDetailDrawerOverviewSource).toContain('getAllFilterOptionLabel');expect(resourceDetailDrawerOverviewSource).not.toContain("'All kinds'");@@ -602,9 +605,7 @@ describe('ResourceDetailDrawer change history section', () => {await within(contextSection).findByText('Analysis');expect(contextSection.querySelector('table')).toBeTruthy();expect(contextSection.querySelector('tbody')).toBeTruthy();- expect(- contextSection.querySelectorAll('.rounded.border.border-border.bg-surface.p-3').length,- ).toBe(0);+ expect(contextSection.querySelectorAll('tbody[class*="shadow-sm"]')).toHaveLength(1);expect(screen.getByText('Health')).toBeInTheDocument();expect(screen.getByText('A · 92/100')).toBeInTheDocument();expect(screen.getByText('Trend')).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 16b22f746f..85c0494341 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@@ -977,6 +977,7 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {const contextSection = getByTestId('resource-investigation-context');expect(contextSection.querySelector('table')).toBeTruthy();expect(contextSection.querySelector('tbody')).toBeTruthy();+ expect(contextSection.querySelectorAll('tbody[class*="shadow-sm"]')).toHaveLength(1);expect(getByText('Health')).toBeInTheDocument();expect(getByText('A · 92/100')).toBeInTheDocument();expect(getByText('Trend')).toBeInTheDocument();diff --git a/frontend-modern/src/components/shared/DetailSectionTable.tsx b/frontend-modern/src/components/shared/DetailSectionTable.tsxindex 3384d0fefe..92b37529dc 100644--- a/frontend-modern/src/components/shared/DetailSectionTable.tsx+++ b/frontend-modern/src/components/shared/DetailSectionTable.tsx@@ -94,6 +94,13 @@ export const DetailSectionTable: Component<{</TableRow>)}</For>+ {section.footerContent ? (+ <TableRow class="lg:mt-2 lg:block lg:min-w-0 lg:border-t lg:border-border lg:pt-2 lg:hover:bg-transparent">+ <TableCell colspan={2} class="px-2 py-2 lg:block lg:px-0 lg:py-0">+ {section.footerContent}+ </TableCell>+ </TableRow>+ ) : null}</TableBody>)}</For>diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex f7766f7e72..118f01e34c 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -7931,6 +7931,8 @@ describe('shared primitive guardrails', () => {expect(detailSectionTableSource).toContain('lg:grid-cols-[7rem_minmax(0,1fr)]');expect(detailSectionTableSource).toContain('lg:text-left');expect(detailSectionTableSource).toContain('lg:divide-y-0');+ expect(detailSectionModelSource).toContain('footerContent?: JSX.Element');+ expect(detailSectionTableSource).toContain('section.footerContent');expect(resourceDetailSummarySource).toContain("from '@/components/shared/DetailSectionTable'");expect(resourceDetailSummarySource).not.toContain('<table');diff --git a/frontend-modern/src/components/shared/__tests__/DetailSectionTable.test.tsx b/frontend-modern/src/components/shared/__tests__/DetailSectionTable.test.tsxindex fa7f02fdd6..bfb21d2fb7 100644--- a/frontend-modern/src/components/shared/__tests__/DetailSectionTable.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/DetailSectionTable.test.tsx@@ -133,6 +133,25 @@ describe('DetailSectionTable', () => {);});+ it('keeps full-width supporting content inside its responsive section card', () => {+ render(() => (+ <DetailSectionTable+ sections={[+ {+ label: 'Analysis',+ rows: [{ label: 'Health', value: 'A · 92/100' }],+ footerContent: <div data-testid="analysis-footer">Latest canonical change</div>,+ },+ ]}+ />+ ));++ const footer = screen.getByTestId('analysis-footer');+ expect(footer).toBeInTheDocument();+ expect(footer.closest('td')).toHaveAttribute('colspan', '2');+ expect(footer.closest('tr')).toHaveClass('lg:border-t', 'lg:pt-2');+ });+it('renders optional row progress without replacing its compact text value', () => {const { container } = render(() => (<DetailSectionTablediff --git a/frontend-modern/src/components/shared/detailSectionModel.ts b/frontend-modern/src/components/shared/detailSectionModel.tsindex cd45016f5c..dc75036a7f 100644--- a/frontend-modern/src/components/shared/detailSectionModel.ts+++ b/frontend-modern/src/components/shared/detailSectionModel.ts@@ -24,6 +24,7 @@ export type DetailSection = {label: string;rows: DetailRow[];testId?: string;+ footerContent?: JSX.Element;};export const makeDetailRow = (@@ -44,7 +45,7 @@ export const compactDetailRows = (rows: Array<DetailRow | null>): DetailRow[] =>export const compactDetailSections = (sections: Array<DetailSection | null>): DetailSection[] =>sections.filter((section): section is DetailSection =>- Boolean(section && section.rows.length > 0),+ Boolean(section && (section.rows.length > 0 || section.footerContent)),);export type DetailBytesFormatOptions = {