fix(web): degrade server status when the /health probe fails
`resolveServerStatus` only degraded on `healthOk === false`, so a /health request that errored outright (network error, 5xx) left the console claiming "online" off a cached /info. Add `healthError` as its own step, ahead of the subsystem check, and feed `health.isError` from the shell, the status page and the workspaces page so all three derive a single verdict.
This commit is contained in:
1 parent
5139adf915
commit
f549045ed2
5 files changed
+50
-10
No files matched your search
@@ -132,10 +132,11 @@ export function AppShell() {
|
||||
paired,
|
||||
info: info.data,
|
||||
infoError: info.isError,
|
||||
healthError: health.isError,
|
||||
healthOk,
|
||||
}),
|
||||
);
|
||||
}, [healthOk, info.data, info.isError, paired, setServerStatus]);
|
||||
}, [health.isError, healthOk, info.data, info.isError, paired, setServerStatus]);
|
||||
|
||||
useEffect(() => {
|
||||
document.body.dataset.page = page;
|
||||
|
||||
Reference in new issue
Block a user