diff --git a/site/src/pages/HealthPage/WorkspaceProxyPage.tsx b/site/src/pages/HealthPage/WorkspaceProxyPage.tsx index eec68104e5c4c..a60175410ee40 100644 --- a/site/src/pages/HealthPage/WorkspaceProxyPage.tsx +++ b/site/src/pages/HealthPage/WorkspaceProxyPage.tsx @@ -39,6 +39,9 @@ export const WorkspaceProxyPage = () => {
+ {workspace_proxy.error && ( + {workspace_proxy.error} + )} {workspace_proxy.warnings.map((warning) => { return ( @@ -48,6 +51,7 @@ export const WorkspaceProxyPage = () => { })} {regions.map((region) => { + const errors = region.status?.report?.errors ?? []; const warnings = region.status?.report?.warnings ?? []; return ( @@ -138,14 +142,23 @@ export const WorkspaceProxyPage = () => { color: theme.palette.text.secondary, }} > - {warnings.length > 0 ? ( + {region.status?.status === "unregistered" ? ( + Has not connected yet + ) : warnings.length === 0 && errors.length === 0 ? ( + OK + ) : (
- {warnings.map((warning, i) => ( - {warning} + {[...errors, ...warnings].map((msg, i) => ( + + {msg} + ))}
- ) : ( - No warnings )} {createDayString(region.updated_at)}