From 6505ff5edfc84fb65e4744ee7dfd885e2299c89f Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 2 Dec 2025 20:31:59 +0000 Subject: [PATCH] fix: Add connection lost indicator to Docker page Docker/Containers page now shows a clear error state when WebSocket connection is lost, with a manual "Reconnect now" button. This matches the pattern established across all other major pages. Connection lost UX is now consistent across: Dashboard, Storage, Backups, Replication, Hosts, and Docker. --- .../src/components/Docker/DockerHosts.tsx | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/frontend-modern/src/components/Docker/DockerHosts.tsx b/frontend-modern/src/components/Docker/DockerHosts.tsx index 9f6020a..d3c8ce5 100644 --- a/frontend-modern/src/components/Docker/DockerHosts.tsx +++ b/frontend-modern/src/components/Docker/DockerHosts.tsx @@ -25,7 +25,7 @@ interface DockerHostsProps { export const DockerHosts: Component = (props) => { const navigate = useNavigate(); - const { initialDataReceived, reconnecting, connected } = useWebSocket(); + const { initialDataReceived, reconnecting, connected, reconnect } = useWebSocket(); // Load docker metadata from localStorage or API const loadInitialDockerMetadata = (): DockerMetadataRecord => { @@ -325,6 +325,46 @@ export const DockerHosts: Component = (props) => { + {/* Disconnected State */} + + + + + + } + title="Connection lost" + description={ + reconnecting() + ? 'Attempting to reconnect…' + : 'Unable to connect to the backend server' + } + tone="danger" + actions={ + !reconnecting() ? ( + + ) : undefined + } + /> + + + 0}