Skip to content

Commit 01ceb84

Browse files
fix(site): fix health tooltip on deployment bar (#10502)
Fix #10489
1 parent 716b86b commit 01ceb84

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

site/src/components/Dashboard/DeploymentBanner/DeploymentBannerView.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -179,20 +179,20 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
179179
We have detected problems with your Coder deployment.
180180
</HelpTooltipTitle>
181181
<Stack spacing={1}>
182-
{health.access_url && (
182+
{!health.access_url.healthy && (
183183
<HealthIssue>
184184
Your access URL may be configured incorrectly.
185185
</HealthIssue>
186186
)}
187-
{health.database && (
187+
{!health.database.healthy && (
188188
<HealthIssue>Your database is unhealthy.</HealthIssue>
189189
)}
190-
{health.derp && (
190+
{!health.derp.healthy && (
191191
<HealthIssue>
192192
We&apos;re noticing DERP proxy issues.
193193
</HealthIssue>
194194
)}
195-
{health.websocket && (
195+
{!health.websocket.healthy && (
196196
<HealthIssue>
197197
We&apos;re noticing websocket issues.
198198
</HealthIssue>
@@ -406,8 +406,8 @@ const WorkspaceBuildValue: FC<{
406406

407407
const HealthIssue: FC<PropsWithChildren> = ({ children }) => {
408408
return (
409-
<Stack direction="row" spacing={1}>
410-
<ErrorIcon fontSize="small" htmlColor={colors.red[10]} />
409+
<Stack direction="row" spacing={1} alignItems="center">
410+
<ErrorIcon css={{ width: 16, height: 16 }} htmlColor={colors.red[10]} />
411411
{children}
412412
</Stack>
413413
);

site/src/testHelpers/entities.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2817,7 +2817,7 @@ export const DeploymentHealthUnhealthy: Health = {
28172817
healthy: false,
28182818
time: "2023-10-12T23:15:00.000000000Z",
28192819
coder_version: "v2.3.0-devel+8cca4915a",
2820-
access_url: { healthy: false },
2820+
access_url: { healthy: true },
28212821
database: { healthy: false },
28222822
derp: { healthy: false },
28232823
websocket: { healthy: false },

0 commit comments

Comments
 (0)