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.

Resolve RC3 issue follow-up candidates

rcourtman0273ab845655
diff --git a/docs/release-control/v6/internal/records/known-rc-issue-closure-for-ga-rc3-followup-2026-05-01.md b/docs/release-control/v6/internal/records/known-rc-issue-closure-for-ga-rc3-followup-2026-05-01.md
new file mode 100644
index 0000000000..62fb625d08
--- /dev/null
+++ b/docs/release-control/v6/internal/records/known-rc-issue-closure-for-ga-rc3-followup-2026-05-01.md
@@ -0,0 +1,63 @@
+# Known RC Issue Closure For GA RC3 Follow-Up Record
+
+- Date: `2026-05-01`
+- Gate: `known-rc-issue-closure-for-ga`
+- Result: `passed`
+
+## Context
+
+The earlier `2026-05-01` RC3 maintenance audit left four follow-up candidates:
+`#1441`, `#1452`, discussion `#1448`, and `#1435`.
+
+## Disposition
+
+1. `#1441` server offline shown as online:
+ - Fixed in the v6 connection-system grouping model by preserving the most
+ severe member state when node and unified-resource snapshots describe the
+ same Proxmox system member.
+ - Regression proof:
+ - `go test ./internal/api -run 'TestMergeConnectionSystemMembersKeepsMostSevereState|TestBuildConnectionSystems_ClusterMemberAgentsAttachToOwningProxmoxSystem'`
+ - `npm --prefix frontend-modern test -- src/components/Settings/__tests__/useConnectionsLedger.test.ts`
+ - Browser proof:
+ - Settings connection rollup was exercised in the dev build with a forced
+ `/api/connections` response. The `homelab` system and the `minipc`
+ member both rendered `Unreachable`.
+
+2. `#1452` graph tooltip overlaps graph:
+ - Fixed in the shared history-chart tooltip layout by preferring side
+ placement beside the hovered point, clamping the tooltip inside the chart,
+ and only falling back to top/bottom placement on cramped charts.
+ - Regression proof:
+ - `npm --prefix frontend-modern test -- src/components/shared/__tests__/HistoryChart.test.tsx`
+ - Browser proof:
+ - The storage Capacity Trend tooltip rendered beside the hover line instead
+ of covering the hovered graph point.
+
+3. Discussion `#1448` PBS Alert Thresholds potentially broken:
+ - Screenshots show a PBS memory threshold configured as `Off` while an email
+ notification still reports `90.8% of 85%`.
+ - Fixed in alert config reevaluation: canonical metric alerts whose metadata
+ says `resourceType: PBS` now resolve against PBS thresholds even when the
+ alert `Instance` field contains the PBS server name rather than the literal
+ string `PBS`.
+ - Regression proof:
+ - `go test ./internal/alerts -run 'TestReevaluateActiveAlertsUsesPBSResourceTypeMetadata|TestCheckPBSComprehensive' -count=1`
+
+4. `#1435` release sequencing:
+ - Not a v6 RC code blocker. The stable installer/latest-release sequencing
+ issue remains a v5 publication/backfill concern for the next stable asset,
+ but it does not represent a known defect carried by the v6 candidate.
+
+## Additional Proof
+
+- `go test ./internal/api -count=1`
+- `npm --prefix frontend-modern test -- src/components/shared/__tests__/HistoryChart.test.tsx src/components/Settings/__tests__/useConnectionsLedger.test.ts`
+- `./node_modules/.bin/prettier --check src/components/shared/historyChartModel.ts src/components/shared/__tests__/HistoryChart.test.tsx src/components/Settings/__tests__/useConnectionsLedger.test.ts`
+- `git diff --check`
+
+## Outcome
+
+The RC3 follow-up candidates that affect the v6 candidate are now fixed with
+targeted regression coverage and browser proof for the customer-facing
+surfaces. The `known-rc-issue-closure-for-ga` gate is satisfied for the current
+v6 release candidate.
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.json
index 94b908d017..020292cc55 100644
--- a/docs/release-control/v6/internal/status.json
+++ b/docs/release-control/v6/internal/status.json
@@ -4340,7 +4340,7 @@
"owner": "project-owner",
"blocking_level": "release-ready",
"minimum_evidence_tier": "managed-runtime-exercise",
- "status": "blocked",
+ "status": "passed",
"verification_doc": "docs/release-control/v6/internal/HIGH_RISK_RELEASE_VERIFICATION_MATRIX.md",
"lane_ids": [
"L1",
@@ -4364,6 +4364,12 @@
"path": "docs/release-control/v6/internal/records/known-rc-issue-closure-for-ga-blocked-2026-05-01.md",
"kind": "file",
"evidence_tier": "managed-runtime-exercise"
+ },
+ {
+ "repo": "pulse",
+ "path": "docs/release-control/v6/internal/records/known-rc-issue-closure-for-ga-rc3-followup-2026-05-01.md",
+ "kind": "file",
+ "evidence_tier": "managed-runtime-exercise"
}
]
},
diff --git a/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts b/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts
index f3760d0fae..46a65e9201 100644
--- a/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/useConnectionsLedger.test.ts
@@ -195,4 +195,77 @@ describe('useConnectionsLedger', () => {
},
]);
});
+
+ it('rolls Proxmox cluster status down when a member is unreachable', async () => {
+ const connections: Connection[] = [
+ {
+ id: 'pve:delly',
+ type: 'pve',
+ name: 'delly',
+ address: 'https://delly:8006',
+ state: 'active',
+ stateReason: '',
+ enabled: true,
+ surfaces: ['vms', 'containers', 'storage', 'backups'],
+ scope: { vms: true, containers: true, storage: true, backups: true },
+ lastSeen: '2026-04-23T12:00:00Z',
+ lastError: null,
+ source: 'agent',
+ capabilities: { supportsPause: true, supportsScope: true, supportsTest: true },
+ },
+ {
+ id: 'agent:agent-minipc',
+ type: 'agent',
+ name: 'minipc',
+ address: 'minipc',
+ state: 'active',
+ stateReason: '',
+ enabled: true,
+ surfaces: ['host'],
+ scope: { host: true },
+ lastSeen: '2026-04-23T12:00:00Z',
+ lastError: null,
+ source: 'agent',
+ capabilities: { supportsPause: false, supportsScope: false, supportsTest: false },
+ },
+ ];
+ const systems: ConnectionSystem[] = [
+ {
+ id: 'pve:delly',
+ type: 'pve',
+ clusterName: 'homelab',
+ components: [
+ { connectionId: 'pve:delly', type: 'pve', role: 'primary' },
+ { connectionId: 'agent:agent-minipc', type: 'agent', role: 'attachment' },
+ ],
+ members: [
+ {
+ id: 'node-delly',
+ name: 'delly',
+ endpoint: 'https://delly:8006',
+ state: 'active',
+ lastSeen: '2026-04-23T12:00:00Z',
+ primary: true,
+ },
+ {
+ id: 'node-minipc',
+ name: 'minipc',
+ endpoint: 'https://minipc:8006',
+ state: 'unreachable',
+ lastSeen: '2026-04-23T11:55:00Z',
+ agentConnectionId: 'agent:agent-minipc',
+ },
+ ],
+ },
+ ];
+ vi.spyOn(ConnectionsAPI, 'list').mockResolvedValue({ connections, systems });
+
+ const { result } = renderHook(() => useConnectionsLedger());
+
+ await waitFor(() => expect(result.rows()).toHaveLength(1));
+ expect(result.rows()[0].statusLabel).toBe('Unreachable');
+ expect(result.rows()[0].members.find((member) => member.id === 'node-minipc')).toMatchObject({
+ statusLabel: 'Unreachable',
+ });
+ });
});
diff --git a/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx b/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx
index d13507e6e2..1a13f56513 100644
--- a/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx
@@ -7,7 +7,10 @@ import historyChartModelSource from '@/components/shared/historyChartModel.ts?ra
import historyChartStateSource from '@/components/shared/useHistoryChartState.ts?raw';
import historyChartTooltipSource from '@/components/shared/HistoryChartTooltip.tsx?raw';
import { HistoryChart } from '@/components/shared/HistoryChart';
-import { HISTORY_CHART_RANGES } from '@/components/shared/historyChartModel';
+import {
+ getHistoryChartTooltipLayout,
+ HISTORY_CHART_RANGES,
+} from '@/components/shared/historyChartModel';
if (typeof globalThis.ResizeObserver === 'undefined') {
globalThis.ResizeObserver = class ResizeObserver {
@@ -87,7 +90,9 @@ describe('HistoryChart', () => {
expect(historyChartOverlaySource).toContain(
'Historical data beyond {props.chart.lockDays()} days is not enabled on this instance.',
);
- expect(historyChartOverlaySource).not.toContain('Unlock {props.chart.lockTierLabel()} Features');
+ expect(historyChartOverlaySource).not.toContain(
+ 'Unlock {props.chart.lockTierLabel()} Features',
+ );
expect(historyChartOverlaySource).not.toContain('presentationPolicyHidesUpgradePrompts');
expect(historyChartOverlaySource).not.toContain('free 14-day trial');
expect(historyChartOverlaySource).toContain('is not enabled on this');
@@ -112,4 +117,27 @@ describe('HistoryChart', () => {
it('exposes the Relay history range as a first-class chart option', () => {
expect(HISTORY_CHART_RANGES).toEqual(['24h', '7d', '14d', '30d', '90d']);
});
+
+ it('positions the tooltip beside the hovered point when there is chart space', () => {
+ const layout = getHistoryChartTooltipLayout({
+ hoveredPoint: { x: 150, y: 70, timestamp: 0, value: 42 },
+ chartWidth: 420,
+ chartHeight: 180,
+ });
+
+ expect(layout.x).toBe(162);
+ expect(layout.x).toBeGreaterThan(150);
+ expect(layout.y).toBe(47);
+ });
+
+ it('moves the tooltip to the left edge side near the right chart boundary', () => {
+ const layout = getHistoryChartTooltipLayout({
+ hoveredPoint: { x: 380, y: 70, timestamp: 0, value: 42 },
+ chartWidth: 420,
+ chartHeight: 180,
+ });
+
+ expect(layout.x + layout.width).toBeLessThan(380);
+ expect(layout.x).toBe(212);
+ });
});
diff --git a/frontend-modern/src/components/shared/historyChartModel.ts b/frontend-modern/src/components/shared/historyChartModel.ts
index 90d4d77b5f..683021896f 100644
--- a/frontend-modern/src/components/shared/historyChartModel.ts
+++ b/frontend-modern/src/components/shared/historyChartModel.ts
@@ -1,8 +1,4 @@
-import type {
- AggregatedMetricPoint,
- HistoryTimeRange,
- ResourceType,
-} from '@/api/charts';
+import type { AggregatedMetricPoint, HistoryTimeRange, ResourceType } from '@/api/charts';
import { formatBytes } from '@/utils/format';
export interface HistoryChartProps {
@@ -193,14 +189,36 @@ export function getHistoryChartTooltipLayout({
const width = 156;
const height = 46;
const margin = 8;
+ const pointGap = 12;
const minX = margin;
const maxX = Math.max(minX, chartWidth - width - margin);
- const x = Math.min(Math.max(hoveredPoint.x - width / 2, minX), maxX);
- const showBelow = hoveredPoint.y < height + margin;
const minY = margin;
const maxY = Math.max(minY, chartHeight - height - margin);
- const y = showBelow
- ? Math.min(Math.max(hoveredPoint.y + 12, minY), maxY)
- : Math.min(Math.max(hoveredPoint.y - height - 12, minY), maxY);
+ const clampX = (value: number) => Math.min(Math.max(value, minX), maxX);
+ const clampY = (value: number) => Math.min(Math.max(value, minY), maxY);
+
+ const rightX = hoveredPoint.x + pointGap;
+ const leftX = hoveredPoint.x - width - pointGap;
+ const canPlaceRight = rightX <= maxX;
+ const canPlaceLeft = leftX >= minX;
+ const rightRoom = chartWidth - margin - hoveredPoint.x;
+ const leftRoom = hoveredPoint.x - margin;
+ const x =
+ canPlaceRight && (!canPlaceLeft || rightRoom >= leftRoom)
+ ? rightX
+ : canPlaceLeft
+ ? leftX
+ : clampX(hoveredPoint.x - width / 2);
+
+ let y = clampY(hoveredPoint.y - height / 2);
+ const overlapsHoveredPoint =
+ hoveredPoint.x >= x &&
+ hoveredPoint.x <= x + width &&
+ hoveredPoint.y >= y &&
+ hoveredPoint.y <= y + height;
+ if (overlapsHoveredPoint) {
+ const showBelow = hoveredPoint.y < height + margin;
+ y = showBelow ? clampY(hoveredPoint.y + pointGap) : clampY(hoveredPoint.y - height - pointGap);
+ }
return { x, y, width, height };
}
diff --git a/internal/alerts/alerts.go b/internal/alerts/alerts.go
index 6c32b7e161..4ad7b36168 100644
--- a/internal/alerts/alerts.go
+++ b/internal/alerts/alerts.go
@@ -2140,7 +2140,7 @@ func (m *Manager) reevaluateActiveAlertsLocked() {
continue
}
threshold = getThresholdForMetric(thresholds, metricType)
- } else if threshold == nil && alert.Instance == "PBS" {
+ } else if threshold == nil && (resourceTypeMeta == "pbs" || alert.Instance == "PBS") {
// This is a PBS alert
// Check if all PBS alerts are disabled
if m.config.DisableAllPBS {
diff --git a/internal/alerts/threshold_resolution_shared_test.go b/internal/alerts/threshold_resolution_shared_test.go
index 8d98facf75..02bd1a5dff 100644
--- a/internal/alerts/threshold_resolution_shared_test.go
+++ b/internal/alerts/threshold_resolution_shared_test.go
@@ -650,3 +650,34 @@ func TestReevaluateActiveAlertsUsesGuestContextForPoweredOffCustomRules(t *testi
t.Fatalf("expected guest powered-off alert to resolve when custom rule disables connectivity")
}
}
+
+func TestReevaluateActiveAlertsUsesPBSResourceTypeMetadata(t *testing.T) {
+ m := newTestManager(t)
+
+ m.mu.Lock()
+ m.config.Enabled = true
+ m.config.PBSDefaults = ThresholdConfig{
+ CPU: &HysteresisThreshold{Trigger: 99, Clear: 94},
+ Memory: &HysteresisThreshold{Trigger: 0, Clear: 0},
+ }
+ state, alert := testNewCanonicalAlert("pbs-1", canonicalMetricSpecID("pbs-1", "memory"), string(alertspecs.AlertSpecKindMetricThreshold), "memory")
+ alert.Value = 90.8
+ alert.Threshold = 85
+ alert.ResourceName = "pbs"
+ alert.Node = "pbs.local"
+ alert.Instance = "pbs"
+ alert.Metadata = map[string]interface{}{
+ "resourceType": "PBS",
+ }
+ m.setActiveAlertNoLock(state, alert)
+ m.reevaluateActiveAlertsLocked()
+ m.mu.Unlock()
+
+ m.mu.RLock()
+ _, exists := m.activeAlerts[state]
+ m.mu.RUnlock()
+
+ if exists {
+ t.Fatalf("expected PBS metric alert to resolve when PBS memory threshold is disabled")
+ }
+}
diff --git a/internal/api/connections_grouping.go b/internal/api/connections_grouping.go
index 062f62c708..f5655763df 100644
--- a/internal/api/connections_grouping.go
+++ b/internal/api/connections_grouping.go
@@ -295,9 +295,7 @@ func mergeConnectionSystemMembers(
if strings.TrimSpace(existing.Endpoint) == "" {
existing.Endpoint = candidate.Endpoint
}
- if existing.State == ConnectionStatePending && candidate.State != ConnectionStatePending {
- existing.State = candidate.State
- }
+ existing.State = moreSevereConnectionSystemMemberState(existing.State, candidate.State)
if existing.LastSeen == nil ||
(candidate.LastSeen != nil && candidate.LastSeen.After(*existing.LastSeen)) {
existing.LastSeen = candidate.LastSeen
@@ -312,6 +310,35 @@ func mergeConnectionSystemMembers(
return existing
}
+func moreSevereConnectionSystemMemberState(
+ left ConnectionState,
+ right ConnectionState,
+) ConnectionState {
+ if connectionSystemMemberStateSeverity(right) > connectionSystemMemberStateSeverity(left) {
+ return right
+ }
+ return left
+}
+
+func connectionSystemMemberStateSeverity(state ConnectionState) int {
+ switch state {
+ case ConnectionStateActive:
+ return 0
+ case ConnectionStatePaused:
+ return 1
+ case ConnectionStatePending:
+ return 2
+ case ConnectionStateStale:
+ return 3
+ case ConnectionStateUnauthorized:
+ return 4
+ case ConnectionStateUnreachable:
+ return 5
+ default:
+ return 2
+ }
+}
+
func connectionSystemMemberHostAliasesFromNode(node models.Node) []string {
return appendNormalizedHosts(
nil,
diff --git a/internal/api/connections_grouping_test.go b/internal/api/connections_grouping_test.go
index ee86a860c0..ed4959df21 100644
--- a/internal/api/connections_grouping_test.go
+++ b/internal/api/connections_grouping_test.go
@@ -308,6 +308,35 @@ func TestBuildConnectionSystems_ClusterMemberAgentsAttachToOwningProxmoxSystem(t
}
}
+func TestMergeConnectionSystemMembersKeepsMostSevereState(t *testing.T) {
+ activeMember := ConnectionSystemMember{
+ ID: "node-minipc",
+ Name: "minipc",
+ State: ConnectionStateActive,
+ Primary: true,
+ }
+ offlineMember := ConnectionSystemMember{
+ ID: "resource-node-minipc",
+ Name: "minipc",
+ State: ConnectionStateUnreachable,
+ }
+
+ merged := mergeConnectionSystemMembers(activeMember, offlineMember)
+ if merged.State != ConnectionStateUnreachable {
+ t.Fatalf("merged state = %q, want %q", merged.State, ConnectionStateUnreachable)
+ }
+ if !merged.Primary {
+ t.Fatalf("expected primary marker to survive merge: %+v", merged)
+ }
+
+ staleMember := ConnectionSystemMember{Name: "minipc", State: ConnectionStateStale}
+ freshMember := ConnectionSystemMember{Name: "minipc", State: ConnectionStateActive}
+ merged = mergeConnectionSystemMembers(staleMember, freshMember)
+ if merged.State != ConnectionStateStale {
+ t.Fatalf("merged state = %q, want %q", merged.State, ConnectionStateStale)
+ }
+}
+
func TestBuildConnectionSystems_GuestAgentStaysStandaloneWhenOnlyClusterInstanceMatches(t *testing.T) {
cfg := &config.Config{DataPath: t.TempDir()}
monitor, err := monitoring.New(cfg)
diff --git a/internal/api/contract_test.go b/internal/api/contract_test.go
index 6957940577..f2a8430e99 100644
--- a/internal/api/contract_test.go
+++ b/internal/api/contract_test.go
@@ -5407,7 +5407,7 @@ func TestContract_SelfHostedCommunityEntitlementsJSONSnapshot(t *testing.T) {
"limits":[],
"subscription_state":"active",
"upgrade_reasons":[
- {"key":"mobile_app","reason":"Get Relay so the mobile app can pair with this instance for secure handoff and notifications.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=mobile_app"},
+ {"key":"mobile_app","reason":"Get Relay so Pulse Mobile can pair with this instance for secure handoff and notifications.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=mobile_app"},
{"key":"push_notifications","reason":"Get Relay so important alerts reach you immediately on mobile instead of waiting for you to reopen Pulse.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=push_notifications"},
{"key":"relay","reason":"Get Relay so Pulse stays reachable securely from anywhere instead of only on the local dashboard.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=relay"},
{"key":"long_term_metrics","reason":"Get Relay for 14 days of history, or Pro for 90 days, so you can see what changed before and after an incident.","action_url":"https://pulserelay.pro/pricing?utm_source=pulse\u0026utm_medium=app\u0026utm_campaign=upgrade\u0026feature=long_term_metrics"},