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.

Supply the offline canonical drawer context in memory proof

pulse-triage[bot]da0484d54444
diff --git a/frontend-modern/browser-tests/guest-memory-agent-stale.tsx b/frontend-modern/browser-tests/guest-memory-agent-stale.tsx
index df77b18f61..0cb4bb9e26 100644
--- a/frontend-modern/browser-tests/guest-memory-agent-stale.tsx
+++ b/frontend-modern/browser-tests/guest-memory-agent-stale.tsx
@@ -3,7 +3,7 @@
import { createSignal, Show } from 'solid-js';
import { render } from 'solid-js/web';
import { Router, Route } from '@solidjs/router';
-import { DarkModeContext } from '../src/contexts/appRuntime';
+import { DarkModeContext, WebSocketContext, type WebSocketStore } from '../src/contexts/appRuntime';
import { useWorkloads } from '../src/hooks/useWorkloads';
import { mergeCanonicalResourceDeltaSnapshot } from '../src/utils/resourceStateAdapters';
import { GuestRow } from '../src/components/Workloads/GuestRow';
@@ -51,6 +51,7 @@ const initial: Resource = {
// Only the transport is synthetic; the canonical merger, mapper and mounted
// presentation use production code. No websocket connection is attempted.
window.__pulseWsStore = {
+ activeAlerts: {},
state: { resources: [], activeAlerts: [], recentlyResolved: [] },
connected: () => false,
initialDataReceived: () => true,
@@ -197,7 +198,9 @@ render(
<DarkModeContext.Provider
value={() => document.documentElement.classList.contains('dark')}
>
- <Fixture />
+ <WebSocketContext.Provider value={window.__pulseWsStore as unknown as WebSocketStore}>
+ <Fixture />
+ </WebSocketContext.Provider>
</DarkModeContext.Provider>
)}
/>