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.

Fold PBS and PMG into the Proxmox alert thresholds tab

rcourtman0f3843fba571
diff --git a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx
index 5bf596e771..1c2b88d017 100644
--- a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx
+++ b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx
@@ -6,8 +6,6 @@ import { BulkEditDialog } from './BulkEditDialog';
import { ThresholdsTableAgentsTab } from './ThresholdsTableAgentsTab';
import { ThresholdsTableDockerTab } from './ThresholdsTableDockerTab';
import { ThresholdsTableKubernetesTab } from './ThresholdsTableKubernetesTab';
-import { ThresholdsTablePBSTab } from './ThresholdsTablePBSTab';
-import { ThresholdsTablePMGTab } from './ThresholdsTablePMGTab';
import { ThresholdsTableProxmoxTab } from './ThresholdsTableProxmoxTab';
import { ThresholdsTableTrueNASTab } from './ThresholdsTableTrueNASTab';
import { ThresholdsTableVMwareTab } from './ThresholdsTableVMwareTab';
@@ -34,8 +32,6 @@ export function ThresholdsTable(props: ThresholdsTableProps) {
{ value: 'kubernetes', label: 'Kubernetes', icon: getPlatformIcon('kubernetes') },
{ value: 'truenas', label: 'TrueNAS', icon: getPlatformIcon('truenas') },
{ value: 'vmware', label: 'vSphere', icon: getPlatformIcon('vmware') },
- { value: 'pbs', label: 'PBS', icon: getPlatformIcon('pbs') },
- { value: 'pmg', label: 'PMG', icon: getPlatformIcon('pmg') },
{ value: 'systems', label: 'Systems', icon: getPlatformIcon('systems') },
],
},
@@ -174,14 +170,6 @@ export function ThresholdsTable(props: ThresholdsTableProps) {
<ThresholdsTableVMwareTab state={state} tableProps={props} />
</Show>
- <Show when={state.activeTab() === 'pbs'}>
- <ThresholdsTablePBSTab state={state} tableProps={props} />
- </Show>
-
- <Show when={state.activeTab() === 'pmg'}>
- <ThresholdsTablePMGTab state={state} tableProps={props} />
- </Show>
-
<Show when={state.activeTab() === 'systems'}>
<ThresholdsTableAgentsTab state={state} tableProps={props} />
</Show>
diff --git a/frontend-modern/src/components/Alerts/ThresholdsTablePBSTab.tsx b/frontend-modern/src/components/Alerts/ThresholdsTablePBSTab.tsx
deleted file mode 100644
index 7a4011f457..0000000000
--- a/frontend-modern/src/components/Alerts/ThresholdsTablePBSTab.tsx
+++ /dev/null
@@ -1,6 +0,0 @@
-import { ThresholdsTableProxmoxPBSSection } from './ThresholdsTableProxmoxPBSSection';
-import type { ThresholdsTableSectionProps } from '@/features/alerts/thresholds/thresholdsTableSectionProps';
-
-export function ThresholdsTablePBSTab(props: ThresholdsTableSectionProps) {
- return <ThresholdsTableProxmoxPBSSection {...props} />;
-}
diff --git a/frontend-modern/src/components/Alerts/ThresholdsTablePMGTab.tsx b/frontend-modern/src/components/Alerts/ThresholdsTablePMGTab.tsx
deleted file mode 100644
index 038c327f17..0000000000
--- a/frontend-modern/src/components/Alerts/ThresholdsTablePMGTab.tsx
+++ /dev/null
@@ -1,77 +0,0 @@
-import { Show } from 'solid-js';
-
-import { ResourceTable } from './ResourceTable';
-import type { ThresholdsTableProps } from '@/features/alerts/thresholds/types';
-import type { ThresholdsTableState } from '@/features/alerts/thresholds/hooks/useThresholdsTableState';
-import { formatMetricValue } from '@/features/alerts/thresholds/helpers';
-
-interface ThresholdsTableTabProps {
- state: ThresholdsTableState;
- tableProps: ThresholdsTableProps;
-}
-
-export function ThresholdsTablePMGTab(props: ThresholdsTableTabProps) {
- const { state, tableProps } = props;
-
- return (
- <Show
- when={state.pmgServersWithOverrides().length > 0}
- fallback={
- <div class="rounded-md border border-border bg-surface p-6 text-sm text-muted">
- {state.PMG_THRESHOLDS_EMPTY_STATE}
- </div>
- }
- >
- <div ref={state.registerSection('pmg')} class="scroll-mt-24">
- <ResourceTable
- title={state.sectionTitles.pmg}
- resources={state.pmgServersWithOverrides()}
- columns={[
- 'Queue Warn',
- 'Queue Crit',
- 'Deferred Warn',
- 'Deferred Crit',
- 'Hold Warn',
- 'Hold Crit',
- 'Oldest Warn (min)',
- 'Oldest Crit (min)',
- 'Spam Warn',
- 'Spam Crit',
- 'Virus Warn',
- 'Virus Crit',
- 'Growth Warn %',
- 'Growth Warn Min',
- 'Growth Crit %',
- 'Growth Crit Min',
- ]}
- activeAlerts={tableProps.activeAlerts}
- emptyMessage={state.PMG_THRESHOLDS_FILTER_EMPTY_STATE}
- onEdit={state.startEditing}
- onSaveEdit={state.saveEdit}
- onCancelEdit={state.cancelEdit}
- onRemoveOverride={state.removeOverride}
- onToggleDisabled={state.toggleDisabled}
- onToggleNodeConnectivity={state.toggleNodeConnectivity}
- showOfflineAlertsColumn={true}
- editingId={state.editingId}
- editingThresholds={state.editingThresholds}
- setEditingThresholds={state.setEditingThresholds}
- editingNote={state.editingNote}
- setEditingNote={state.setEditingNote}
- onBulkEdit={(ids) => state.handleBulkEdit(ids, ['CPU %', 'Memory %', 'Disk %'])}
- formatMetricValue={formatMetricValue}
- hasActiveAlert={state.hasActiveAlert}
- globalDefaults={state.pmgGlobalDefaults()}
- setGlobalDefaults={state.setPMGGlobalDefaults}
- setHasUnsavedChanges={tableProps.setHasUnsavedChanges}
- globalDisableFlag={tableProps.disableAllPMG}
- onToggleGlobalDisable={() => tableProps.setDisableAllPMG(!tableProps.disableAllPMG())}
- globalDisableOfflineFlag={tableProps.disableAllPMGOffline}
- onToggleGlobalDisableOffline={() =>
- tableProps.setDisableAllPMGOffline(!tableProps.disableAllPMGOffline())
- }
- />
- </div>
- </Show>
- );
-}
diff --git a/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxPBSSection.tsx b/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxPBSSection.tsx
index ae8daed389..f1a0e59563 100644
--- a/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxPBSSection.tsx
+++ b/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxPBSSection.tsx
@@ -21,7 +21,7 @@ export function ThresholdsTableProxmoxPBSSection(props: ThresholdsTableSectionPr
isGloballyDisabled={tableProps.disableAllPBS()}
emptyMessage={state.PBS_THRESHOLDS_EMPTY_STATE}
>
- <div ref={state.registerSection('pbs')} class="scroll-mt-24">
+ <div id="threshold-section-pbs" ref={state.registerSection('pbs')} class="scroll-mt-24">
<ResourceTable
title=""
resources={state.pbsServersWithOverrides()}
diff --git a/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxPMGSection.tsx b/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxPMGSection.tsx
new file mode 100644
index 0000000000..bdb0d5abbe
--- /dev/null
+++ b/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxPMGSection.tsx
@@ -0,0 +1,77 @@
+import { Show } from 'solid-js';
+import Mail from 'lucide-solid/icons/mail';
+
+import { ResourceTable } from './ResourceTable';
+import { CollapsibleSection } from './Thresholds/sections/CollapsibleSection';
+import { formatMetricValue } from '@/features/alerts/thresholds/helpers';
+import type { ThresholdsTableSectionProps } from '@/features/alerts/thresholds/thresholdsTableSectionProps';
+
+export function ThresholdsTableProxmoxPMGSection(props: ThresholdsTableSectionProps) {
+ const { state, tableProps } = props;
+
+ return (
+ <Show when={state.hasSection('pmg')}>
+ <CollapsibleSection
+ id="pmg"
+ title={state.sectionTitles.pmg}
+ resourceCount={state.pmgServersWithOverrides().length}
+ collapsed={state.isCollapsed('pmg')}
+ onToggle={() => state.toggleSection('pmg')}
+ icon={<Mail class="w-5 h-5" />}
+ isGloballyDisabled={tableProps.disableAllPMG()}
+ emptyMessage={state.PMG_THRESHOLDS_EMPTY_STATE}
+ >
+ <div id="threshold-section-pmg" ref={state.registerSection('pmg')} class="scroll-mt-24">
+ <ResourceTable
+ title=""
+ resources={state.pmgServersWithOverrides()}
+ columns={[
+ 'Queue Warn',
+ 'Queue Crit',
+ 'Deferred Warn',
+ 'Deferred Crit',
+ 'Hold Warn',
+ 'Hold Crit',
+ 'Oldest Warn (min)',
+ 'Oldest Crit (min)',
+ 'Spam Warn',
+ 'Spam Crit',
+ 'Virus Warn',
+ 'Virus Crit',
+ 'Growth Warn %',
+ 'Growth Warn Min',
+ 'Growth Crit %',
+ 'Growth Crit Min',
+ ]}
+ activeAlerts={tableProps.activeAlerts}
+ emptyMessage={state.PMG_THRESHOLDS_FILTER_EMPTY_STATE}
+ onEdit={state.startEditing}
+ onSaveEdit={state.saveEdit}
+ onCancelEdit={state.cancelEdit}
+ onRemoveOverride={state.removeOverride}
+ onToggleDisabled={state.toggleDisabled}
+ onToggleNodeConnectivity={state.toggleNodeConnectivity}
+ showOfflineAlertsColumn={true}
+ editingId={state.editingId}
+ editingThresholds={state.editingThresholds}
+ setEditingThresholds={state.setEditingThresholds}
+ editingNote={state.editingNote}
+ setEditingNote={state.setEditingNote}
+ onBulkEdit={(ids) => state.handleBulkEdit(ids, ['CPU %', 'Memory %', 'Disk %'])}
+ formatMetricValue={formatMetricValue}
+ hasActiveAlert={state.hasActiveAlert}
+ globalDefaults={state.pmgGlobalDefaults()}
+ setGlobalDefaults={state.setPMGGlobalDefaults}
+ setHasUnsavedChanges={tableProps.setHasUnsavedChanges}
+ globalDisableFlag={tableProps.disableAllPMG}
+ onToggleGlobalDisable={() => tableProps.setDisableAllPMG(!tableProps.disableAllPMG())}
+ globalDisableOfflineFlag={tableProps.disableAllPMGOffline}
+ onToggleGlobalDisableOffline={() =>
+ tableProps.setDisableAllPMGOffline(!tableProps.disableAllPMGOffline())
+ }
+ />
+ </div>
+ </CollapsibleSection>
+ </Show>
+ );
+}
diff --git a/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxTab.tsx b/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxTab.tsx
index e005f477ce..48019a1498 100644
--- a/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxTab.tsx
+++ b/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxTab.tsx
@@ -2,6 +2,8 @@ import { ThresholdsTableProxmoxBackupsSection } from './ThresholdsTableProxmoxBa
import { ThresholdsTableProxmoxGuestFilteringSection } from './ThresholdsTableProxmoxGuestFilteringSection';
import { ThresholdsTableProxmoxGuestsSection } from './ThresholdsTableProxmoxGuestsSection';
import { ThresholdsTableProxmoxNodesSection } from './ThresholdsTableProxmoxNodesSection';
+import { ThresholdsTableProxmoxPBSSection } from './ThresholdsTableProxmoxPBSSection';
+import { ThresholdsTableProxmoxPMGSection } from './ThresholdsTableProxmoxPMGSection';
import { ThresholdsTableProxmoxSnapshotsSection } from './ThresholdsTableProxmoxSnapshotsSection';
import { ThresholdsTableProxmoxStorageSection } from './ThresholdsTableProxmoxStorageSection';
import type { ThresholdsTableSectionProps } from '@/features/alerts/thresholds/thresholdsTableSectionProps';
@@ -15,6 +17,8 @@ export function ThresholdsTableProxmoxTab(props: ThresholdsTableSectionProps) {
<ThresholdsTableProxmoxBackupsSection {...props} />
<ThresholdsTableProxmoxSnapshotsSection {...props} />
<ThresholdsTableProxmoxStorageSection {...props} />
+ <ThresholdsTableProxmoxPBSSection {...props} />
+ <ThresholdsTableProxmoxPMGSection {...props} />
</>
);
}
diff --git a/frontend-modern/src/components/Alerts/__tests__/ThresholdsTable.test.tsx b/frontend-modern/src/components/Alerts/__tests__/ThresholdsTable.test.tsx
index 60245d8c6d..e0b1062067 100644
--- a/frontend-modern/src/components/Alerts/__tests__/ThresholdsTable.test.tsx
+++ b/frontend-modern/src/components/Alerts/__tests__/ThresholdsTable.test.tsx
@@ -415,10 +415,6 @@ describe('ThresholdsTable navigation and redirection', () => {
if (systemsTab) fireEvent.click(systemsTab);
expect(mockNavigate).toHaveBeenCalledWith('/alerts/thresholds/systems');
- const mailTab = screen.getAllByRole('button').find((el) => el.textContent?.includes('PMG'));
- if (mailTab) fireEvent.click(mailTab);
- expect(mockNavigate).toHaveBeenCalledWith('/alerts/thresholds/pmg');
-
const vmwareTab = screen
.getAllByRole('button')
.find((el) => el.textContent?.includes('vSphere'));
diff --git a/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsTableState.ts b/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsTableState.ts
index 3bef8c5afd..52971b13d5 100644
--- a/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsTableState.ts
+++ b/frontend-modern/src/features/alerts/thresholds/hooks/useThresholdsTableState.ts
@@ -89,7 +89,8 @@ export function useThresholdsTableState(props: ThresholdsTableProps) {
const dockerServicePresentation = getAlertThresholdsDockerServicePresentation();
const dockerIgnoredPrefixesPresentation = getAlertThresholdsDockerIgnoredPrefixesPresentation();
- const { isCollapsed, toggleSection, expandAll, collapseAll } = useCollapsedSections();
+ const { isCollapsed, toggleSection, setCollapsed, expandAll, collapseAll } =
+ useCollapsedSections();
const [helpBannerDismissed, setHelpBannerDismissed] = createSignal(
typeof window !== 'undefined' && localStorage.getItem(HELP_BANNER_KEY) === 'true',
@@ -152,10 +153,11 @@ export function useThresholdsTableState(props: ThresholdsTableProps) {
if (path.includes('/thresholds/truenas')) return 'truenas';
if (path.includes('/thresholds/vmware') || path.includes('/thresholds/vsphere'))
return 'vmware';
- if (path.includes('/thresholds/pbs')) return 'pbs';
if (path.includes('/thresholds/systems') || path.includes('/thresholds/agents'))
return 'systems';
- if (path.includes('/thresholds/mail-gateway') || path.includes('/thresholds/pmg')) return 'pmg';
+ // PBS and PMG are Proxmox sections, not peer tabs. Legacy section
+ // deep-links resolve to the Proxmox tab (the redirect effect rewrites
+ // them to `/proxmox#pbs` / `/proxmox#pmg` so the section scrolls into view).
return 'proxmox';
};
@@ -182,8 +184,16 @@ export function useThresholdsTableState(props: ThresholdsTableProps) {
return;
}
- if (location.pathname === '/alerts/thresholds/mail-gateway') {
- navigate('/alerts/thresholds/pmg', { replace: true });
+ if (
+ location.pathname === '/alerts/thresholds/mail-gateway' ||
+ location.pathname === '/alerts/thresholds/pmg'
+ ) {
+ navigate('/alerts/thresholds/proxmox#pmg', { replace: true });
+ return;
+ }
+
+ if (location.pathname === '/alerts/thresholds/pbs') {
+ navigate('/alerts/thresholds/proxmox#pbs', { replace: true });
return;
}
@@ -199,8 +209,6 @@ export function useThresholdsTableState(props: ThresholdsTableProps) {
kubernetes: '/alerts/thresholds/kubernetes',
truenas: '/alerts/thresholds/truenas',
vmware: '/alerts/thresholds/vmware',
- pbs: '/alerts/thresholds/pbs',
- pmg: '/alerts/thresholds/pmg',
systems: '/alerts/thresholds/systems',
};
navigate(tabRoutes[tab]);
@@ -344,6 +352,44 @@ export function useThresholdsTableState(props: ThresholdsTableProps) {
);
const vmwareVMsWithOverrides = createMemo(() => filterResources(rawVmwareVMsWithOverrides()));
+ // Deep-links to a Proxmox sub-section (PBS / PMG) arrive as `#pbs` / `#pmg`.
+ // Expand the target section and scroll it into view. The section's anchor only
+ // mounts once its table rows resolve, so the effect keys off the registered
+ // section element (set by the section's `ref`): it re-runs the moment the
+ // anchor mounts, whether the data was warm at navigation or arrived later. We
+ // scroll the element directly rather than via requestAnimationFrame, which is
+ // suspended while the tab is hidden.
+ const [sectionElements, setSectionElements] = createSignal<Record<string, HTMLElement | null>>(
+ {},
+ );
+ const SECTION_HASH_IDS = new Set(['pbs', 'pmg']);
+ const [lastSectionHashScrolled, setLastSectionHashScrolled] = createSignal<string | null>(null);
+
+ createEffect(() => {
+ const hash = location.hash ?? '';
+ const sectionId = hash.startsWith('#') ? hash.slice(1) : '';
+ const target = sectionElements()[sectionId];
+
+ if (activeTab() !== 'proxmox' || !SECTION_HASH_IDS.has(sectionId)) {
+ if (!SECTION_HASH_IDS.has(sectionId)) {
+ setLastSectionHashScrolled(null);
+ }
+ return;
+ }
+
+ if (hash === lastSectionHashScrolled()) {
+ return;
+ }
+
+ setCollapsed(sectionId, false);
+
+ if (!target) {
+ return;
+ }
+ target.scrollIntoView({ block: 'start' });
+ setLastSectionHashScrolled(hash);
+ });
+
const {
backupDefaultsRecord,
backupFactoryConfig,
@@ -362,8 +408,13 @@ export function useThresholdsTableState(props: ThresholdsTableProps) {
(resource) => resource.hasOverride || resource.disabled || resource.disableConnectivity,
).length ?? 0;
- const registerSection = (_key: string) => (_element: HTMLDivElement | null) => {
- /* no-op placeholder for future scroll restoration */
+ const registerSection = (key: string) => (element: HTMLDivElement | null) => {
+ setSectionElements((prev) => {
+ if (prev[key] === element) {
+ return prev;
+ }
+ return { ...prev, [key]: element };
+ });
};
const updateSnapshotDefaults = (
@@ -478,14 +529,14 @@ export function useThresholdsTableState(props: ThresholdsTableProps) {
key: 'pbs',
label: 'PBS Servers',
overrides: countOverrides(pbsServersWithOverrides()),
- tab: 'pbs',
+ tab: 'proxmox',
total: props.pbsInstances?.length ?? 0,
},
{
key: 'pmg',
label: 'Mail Gateways',
overrides: countOverrides(pmgServersWithOverrides()),
- tab: 'pmg',
+ tab: 'proxmox',
total: props.pmgInstances?.length ?? 0,
},
{
diff --git a/frontend-modern/src/features/alerts/thresholds/tableTypes.ts b/frontend-modern/src/features/alerts/thresholds/tableTypes.ts
index 6999507881..b4f966893e 100644
--- a/frontend-modern/src/features/alerts/thresholds/tableTypes.ts
+++ b/frontend-modern/src/features/alerts/thresholds/tableTypes.ts
@@ -8,8 +8,6 @@ export type ThresholdsActiveTab =
| 'kubernetes'
| 'truenas'
| 'vmware'
- | 'pbs'
- | 'pmg'
| 'systems';
export interface Resource {
diff --git a/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts b/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts
index 292a20008d..4a58ae448a 100644
--- a/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts
+++ b/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts
@@ -48,7 +48,7 @@ import thresholdsTableDockerHostsSectionSource from '@/components/Alerts/Thresho
import thresholdsTableDockerIgnoredPrefixesSectionSource from '@/components/Alerts/ThresholdsTableDockerIgnoredPrefixesSection.tsx?raw';
import thresholdsTableDockerServiceGapSectionSource from '@/components/Alerts/ThresholdsTableDockerServiceGapSection.tsx?raw';
import thresholdsTableDockerTabSource from '@/components/Alerts/ThresholdsTableDockerTab.tsx?raw';
-import thresholdsTablePMGTabSource from '@/components/Alerts/ThresholdsTablePMGTab.tsx?raw';
+import thresholdsTableProxmoxPMGSectionSource from '@/components/Alerts/ThresholdsTableProxmoxPMGSection.tsx?raw';
import thresholdsTableProxmoxBackupsSectionSource from '@/components/Alerts/ThresholdsTableProxmoxBackupsSection.tsx?raw';
import thresholdsTableProxmoxGuestFilteringSectionSource from '@/components/Alerts/ThresholdsTableProxmoxGuestFilteringSection.tsx?raw';
import thresholdsTableProxmoxGuestsSectionSource from '@/components/Alerts/ThresholdsTableProxmoxGuestsSection.tsx?raw';
@@ -615,9 +615,8 @@ describe('tab path helpers', () => {
expect(thresholdsTableSource).toContain(
"import { ThresholdsTableProxmoxTab } from './ThresholdsTableProxmoxTab';",
);
- expect(thresholdsTableSource).toContain(
- "import { ThresholdsTablePMGTab } from './ThresholdsTablePMGTab';",
- );
+ expect(thresholdsTableSource).not.toContain('ThresholdsTablePMGTab');
+ expect(thresholdsTableSource).not.toContain('ThresholdsTablePBSTab');
expect(thresholdsTableSource).toContain(
"import { ThresholdsTableAgentsTab } from './ThresholdsTableAgentsTab';",
);
@@ -638,6 +637,7 @@ describe('tab path helpers', () => {
expect(thresholdsTableProxmoxTabSource).toContain('ThresholdsTableProxmoxBackupsSection');
expect(thresholdsTableProxmoxTabSource).toContain('ThresholdsTableProxmoxSnapshotsSection');
expect(thresholdsTableProxmoxTabSource).toContain('ThresholdsTableProxmoxStorageSection');
+ expect(thresholdsTableProxmoxTabSource).toContain('ThresholdsTableProxmoxPMGSection');
expect(thresholdsTableProxmoxTabSource).not.toContain('backupOrphanedPresentation');
expect(thresholdsTableProxmoxTabSource).not.toContain('sectionTitles.guestFiltering');
expect(thresholdsTableSectionPropsSource).toContain(
@@ -665,8 +665,10 @@ describe('tab path helpers', () => {
expect(thresholdsTableProxmoxStorageSectionSource).toContain(
'export function ThresholdsTableProxmoxStorageSection',
);
- expect(thresholdsTablePMGTabSource).toContain('export function ThresholdsTablePMGTab');
- expect(thresholdsTablePMGTabSource).toContain('pmgGlobalDefaults()');
+ expect(thresholdsTableProxmoxPMGSectionSource).toContain(
+ 'export function ThresholdsTableProxmoxPMGSection',
+ );
+ expect(thresholdsTableProxmoxPMGSectionSource).toContain('pmgGlobalDefaults()');
expect(thresholdsTableAgentsTabSource).toContain('export function ThresholdsTableAgentsTab');
expect(thresholdsTableAgentsTabSource).toContain('ThresholdsTableAgentsResourcesSection');
expect(thresholdsTableAgentsTabSource).toContain('ThresholdsTableAgentDisksSection');
diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index 0672ab8700..5634e71710 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -357,7 +357,7 @@ import thresholdsTableDockerHostsSectionSource from '@/components/Alerts/Thresho
import thresholdsTableDockerIgnoredPrefixesSectionSource from '@/components/Alerts/ThresholdsTableDockerIgnoredPrefixesSection.tsx?raw';
import thresholdsTableDockerServiceGapSectionSource from '@/components/Alerts/ThresholdsTableDockerServiceGapSection.tsx?raw';
import thresholdsTableDockerTabSource from '@/components/Alerts/ThresholdsTableDockerTab.tsx?raw';
-import thresholdsTablePMGTabSource from '@/components/Alerts/ThresholdsTablePMGTab.tsx?raw';
+import thresholdsTableProxmoxPMGSectionSource from '@/components/Alerts/ThresholdsTableProxmoxPMGSection.tsx?raw';
import thresholdsTableProxmoxBackupsSectionSource from '@/components/Alerts/ThresholdsTableProxmoxBackupsSection.tsx?raw';
import thresholdsTableProxmoxGuestFilteringSectionSource from '@/components/Alerts/ThresholdsTableProxmoxGuestFilteringSection.tsx?raw';
import thresholdsTableProxmoxGuestsSectionSource from '@/components/Alerts/ThresholdsTableProxmoxGuestsSection.tsx?raw';
@@ -2877,9 +2877,8 @@ describe('frontend resource type boundaries', () => {
expect(thresholdsTableSource).toContain(
"import { ThresholdsTableProxmoxTab } from './ThresholdsTableProxmoxTab';",
);
- expect(thresholdsTableSource).toContain(
- "import { ThresholdsTablePMGTab } from './ThresholdsTablePMGTab';",
- );
+ expect(thresholdsTableSource).not.toContain('ThresholdsTablePMGTab');
+ expect(thresholdsTableSource).not.toContain('ThresholdsTablePBSTab');
expect(thresholdsTableSource).toContain(
"import { ThresholdsTableAgentsTab } from './ThresholdsTableAgentsTab';",
);
@@ -2900,9 +2899,12 @@ describe('frontend resource type boundaries', () => {
expect(thresholdsTableProxmoxTabSource).toContain('ThresholdsTableProxmoxBackupsSection');
expect(thresholdsTableProxmoxTabSource).toContain('ThresholdsTableProxmoxSnapshotsSection');
expect(thresholdsTableProxmoxTabSource).toContain('ThresholdsTableProxmoxStorageSection');
+ expect(thresholdsTableProxmoxTabSource).toContain('ThresholdsTableProxmoxPMGSection');
expect(thresholdsTableProxmoxTabSource).not.toContain('backupOrphanedPresentation');
- expect(thresholdsTablePMGTabSource).toContain('export function ThresholdsTablePMGTab');
- expect(thresholdsTablePMGTabSource).toContain('pmgGlobalDefaults()');
+ expect(thresholdsTableProxmoxPMGSectionSource).toContain(
+ 'export function ThresholdsTableProxmoxPMGSection',
+ );
+ expect(thresholdsTableProxmoxPMGSectionSource).toContain('pmgGlobalDefaults()');
expect(thresholdsTableAgentsTabSource).toContain('export function ThresholdsTableAgentsTab');
expect(thresholdsTableAgentsTabSource).toContain('ThresholdsTableAgentsResourcesSection');
expect(thresholdsTableAgentsTabSource).toContain('ThresholdsTableAgentDisksSection');