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
Remove drawer mode row
rcourtmanf705b04e3713
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 684807510c..492677afef 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -180,6 +180,8 @@ coverage inline,and the current-state summary now leaves normal source provenance to thecanonical header badges while only surfacing a `Sources` row when sourcehealth is degraded or unhealthy,+and it no longer repeats that same provenance as a separate `Mode` row because+the drawer header badges already own canonical source display,`resourceDetailDrawerServiceModel.ts` owns the pure Docker/PBS/PMG servicesummary and breakdown derivations that feed the overview service-detailssurface,diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsxindex a13263d4b4..eb9c92688a 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx@@ -39,7 +39,7 @@ import { formatIdentifierLabel } from '@/utils/textPresentation';import { shouldShowResourcePlatformId } from '@/utils/resourceIdentity';import { buildInfrastructureResourceHref } from '@/routing/resourceLinks';import { getDiscoveryLoadingState } from '@/utils/discoveryPresentation';-import { formatInteger, formatSourceType } from './resourceDetailMappers';+import { formatInteger } from './resourceDetailMappers';import {ResourceDetailDrawerSupportDisclosure as SupportDisclosure,} from './ResourceDetailDrawerSupportDisclosure';@@ -85,7 +85,6 @@ export const ResourceDetailDrawerOverviewTab: Component<ResourceDetailDrawerOver) => {const { resource, drawer } = props;const showPlatformId = shouldShowResourcePlatformId(resource);- const modeLabel = formatSourceType(resource.sourceType);return (<div class="space-y-3">@@ -130,12 +129,6 @@ export const ResourceDetailDrawerOverviewTab: Component<ResourceDetailDrawerOver</span></div></Show>- <Show when={modeLabel}>- <div class="flex items-center justify-between gap-2">- <span class="text-muted">Mode</span>- <span class="font-medium text-base-content">{modeLabel}</span>- </div>- </Show><Show when={(resource.alerts?.length || 0) > 0}><div class="flex items-center justify-between gap-2"><span class="text-muted">Alerts</span>diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsxindex e07589ce15..26e7fe268b 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx@@ -175,10 +175,10 @@ describe('ResourceDetailDrawer change history section', () => {expect(resourceDetailDrawerOverviewSource).not.toContain('MonitoringAPI.');expect(resourceDetailDrawerOverviewSource).toContain('drawer.queueDockerUpdateCheck');expect(resourceDetailDrawerOverviewSource).toContain('drawer.queueDockerUpdateAll');- expect(resourceDetailDrawerOverviewSource).toContain(+ expect(resourceDetailDrawerOverviewSource).not.toContain('const modeLabel = formatSourceType(resource.sourceType);',);- expect(resourceDetailDrawerOverviewSource).toContain('<Show when={modeLabel}>');+ expect(resourceDetailDrawerOverviewSource).not.toContain('<span class="text-muted">Mode</span>');expect(resourceDetailDrawerDockerActionsStateSource).toContain('MonitoringAPI.checkDockerUpdates');expect(resourceDetailDrawerDockerActionsStateSource).toContain('MonitoringAPI.updateAllDockerContainers',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 1560dde002..1d9baaba05 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,8 +125,8 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {expect(getByText('Current state')).toBeInTheDocument();expect(() => getByText('Sources')).toThrow();expect(queryByRole('link', { name: 'Open related workloads for host-1' })).toBeNull();- expect(getByText('Mode')).toBeInTheDocument();- expect(getByText('Hybrid')).toBeInTheDocument();+ expect(() => getByText('Mode')).toThrow();+ expect(() => getByText('Hybrid')).toThrow();expect(() => getByText('Platform ID')).toThrow();expect(getByTestId('resource-current-state-section').querySelector('.border-dashed')).toBeNull();expect(queryByRole('button', { name: 'Show details' })).toBeNull();@@ -245,14 +245,13 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {},});- const { getByTestId, getByText, queryByText } = render(() => (+ const { getByTestId, queryByText } = render(() => (<ResourceDetailDrawer resource={resource} />));expect(queryByText('Sources')).toBeNull();expect(within(getByTestId('resource-header-badges')).getByText('PMG')).toBeInTheDocument();- expect(getByText('Mode')).toBeInTheDocument();- expect(getByText('API')).toBeInTheDocument();+ expect(queryByText('Mode')).toBeNull();expect(queryByText('Platform ID')).toBeNull();expect(queryByText('Details')).toBeNull();expect(queryByText('Show details')).toBeNull();@@ -275,7 +274,7 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {expect(getByText('1/2 degraded')).toBeInTheDocument();});- it('hides the mode row when a resource has no canonical source mode', () => {+ it('keeps current state free of source mode rows', () => {const resource = baseResource({sourceType: null as unknown as Resource['sourceType'],platformType: null as unknown as Resource['platformType'],