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.

Govern operations panel settings wrapper

rcourtman733ce62bef5e
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 14d1f78030..5c0618313d 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -42,7 +42,8 @@ work extends shared components instead of creating new local variants.
20. `frontend-modern/src/components/Settings/diagnosticsModel.ts`
21. `frontend-modern/src/components/Settings/DiagnosticsPanel.tsx`
22. `frontend-modern/src/components/Settings/DiagnosticsResultsPanel.tsx`
-23. `frontend-modern/src/utils/diagnosticsPresentation.ts`
+23. `frontend-modern/src/components/Settings/OperationsPanel.tsx`
+24. `frontend-modern/src/utils/diagnosticsPresentation.ts`
24. `frontend-modern/src/utils/discoveryPresentation.ts`
24. `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx`
25. `frontend-modern/src/components/Settings/NetworkSettingsPanel.tsx`
@@ -170,6 +171,11 @@ canonical tag-badge primitive. Dashboard workload rows and the unified-resource
detail drawer must import that shared owner instead of keeping a dashboard-local
tag badge variant or importing a feature-local path into infrastructure
surfaces.
+`frontend-modern/src/components/Settings/OperationsPanel.tsx` is now also the
+canonical shared settings wrapper for operations-style panels such as
+diagnostics, reporting, and system logs. Those surfaces must extend that owner
+instead of rebuilding a local `SettingsPanel` wrapper, panel-header action
+slot, or divided content-body framing inline.
The system logs operations surface now follows the same shell/runtime split as
the other modernized settings panels: `frontend-modern/src/components/Settings/SystemLogsPanel.tsx`
owns the operations framing and consumes the canonical stream-copy/status
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index dd3776e05e..0522569d11 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -2141,6 +2141,7 @@
"frontend-modern/src/components/Settings/NetworkDiscoverySection.tsx",
"frontend-modern/src/components/Settings/networkSettingsModel.ts",
"frontend-modern/src/components/Settings/NetworkSettingsPanel.tsx",
+ "frontend-modern/src/components/Settings/OperationsPanel.tsx",
"frontend-modern/src/components/Settings/RecoverySettingsPanel.tsx",
"frontend-modern/src/components/Settings/ReportingPanel.tsx",
"frontend-modern/src/components/Settings/reportingPanelModel.ts",
@@ -2259,6 +2260,7 @@
"frontend-modern/src/components/Settings/NetworkDiscoverySection.tsx",
"frontend-modern/src/components/Settings/networkSettingsModel.ts",
"frontend-modern/src/components/Settings/NetworkSettingsPanel.tsx",
+ "frontend-modern/src/components/Settings/OperationsPanel.tsx",
"frontend-modern/src/components/Settings/RecoverySettingsPanel.tsx",
"frontend-modern/src/components/Settings/SecurityAuthPanel.tsx",
"frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx",
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 5e5eac01a8..1358468dc0 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -66,6 +66,7 @@ import aiSettingsStateSource from '../useAISettingsState.ts?raw';
import diagnosticsModelSource from '../diagnosticsModel.ts?raw';
import diagnosticsPanelSource from '../DiagnosticsPanel.tsx?raw';
import diagnosticsResultsPanelSource from '../DiagnosticsResultsPanel.tsx?raw';
+import operationsPanelSource from '../OperationsPanel.tsx?raw';
import networkBoundarySettingsSectionSource from '../NetworkBoundarySettingsSection.tsx?raw';
import networkDiscoverySectionSource from '../NetworkDiscoverySection.tsx?raw';
import networkSettingsPanelSource from '../NetworkSettingsPanel.tsx?raw';
@@ -196,6 +197,7 @@ const extractedModules = [
'../diagnosticsModel.ts',
'../DiagnosticsPanel.tsx',
'../DiagnosticsResultsPanel.tsx',
+ '../OperationsPanel.tsx',
'../NetworkBoundarySettingsSection.tsx',
'../NetworkDiscoverySection.tsx',
'../networkSettingsModel.ts',
@@ -583,6 +585,7 @@ describe('Settings architecture guardrails', () => {
});
it('keeps system logs split into shell and runtime owners', () => {
+ expect(systemLogsPanelSource).toContain('@/components/Settings/OperationsPanel');
expect(systemLogsPanelSource).toContain('./useSystemLogsPanelState');
expect(systemLogsPanelSource).not.toContain('createSignal(');
expect(systemLogsPanelSource).not.toContain('new EventSource(');
@@ -995,6 +998,7 @@ describe('Settings architecture guardrails', () => {
});
it('keeps the diagnostics shell behind extracted runtime and results owners', () => {
+ expect(diagnosticsPanelSource).toContain('@/components/Settings/OperationsPanel');
expect(diagnosticsPanelSource).toContain('@/components/Settings/DiagnosticsResultsPanel');
expect(diagnosticsPanelSource).toContain('@/components/Settings/useDiagnosticsPanelState');
expect(diagnosticsPanelSource).toContain('DIAGNOSTICS_PANEL_COPY');
@@ -1015,6 +1019,7 @@ describe('Settings architecture guardrails', () => {
});
it('keeps the reporting shell behind extracted runtime and model owners', () => {
+ expect(reportingPanelSource).toContain('@/components/Settings/OperationsPanel');
expect(reportingPanelSource).toContain('@/components/Settings/useReportingPanelState');
expect(reportingPanelSource).toContain('@/components/Settings/reportingPanelModel');
expect(reportingPanelSource).not.toContain('loadLicenseStatus()');
@@ -1031,6 +1036,14 @@ describe('Settings architecture guardrails', () => {
expect(reportingPanelModelSource).toContain('export function buildReportingFilename');
});
+ it('keeps the shared operations wrapper rooted at SettingsPanel', () => {
+ expect(operationsPanelSource).toContain('@/components/shared/SettingsPanel');
+ expect(operationsPanelSource).toContain('noPadding');
+ expect(operationsPanelSource).toContain('bodyClass="divide-y divide-border"');
+ expect(operationsPanelSource).not.toContain('createSignal(');
+ expect(operationsPanelSource).not.toContain('apiFetch');
+ });
+
it('keeps the audit log shell behind an extracted runtime owner', () => {
expect(auditLogPanelSource).toContain('@/components/Settings/useAuditLogPanelState');
expect(auditLogPanelSource).not.toContain('createLocalStorageStringSignal');