mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site): fix health tooltip on deployment bar (#10502)
Fix https://github.com/coder/coder/issues/10489
This commit is contained in:
@@ -179,20 +179,20 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
|
||||
We have detected problems with your Coder deployment.
|
||||
</HelpTooltipTitle>
|
||||
<Stack spacing={1}>
|
||||
{health.access_url && (
|
||||
{!health.access_url.healthy && (
|
||||
<HealthIssue>
|
||||
Your access URL may be configured incorrectly.
|
||||
</HealthIssue>
|
||||
)}
|
||||
{health.database && (
|
||||
{!health.database.healthy && (
|
||||
<HealthIssue>Your database is unhealthy.</HealthIssue>
|
||||
)}
|
||||
{health.derp && (
|
||||
{!health.derp.healthy && (
|
||||
<HealthIssue>
|
||||
We're noticing DERP proxy issues.
|
||||
</HealthIssue>
|
||||
)}
|
||||
{health.websocket && (
|
||||
{!health.websocket.healthy && (
|
||||
<HealthIssue>
|
||||
We're noticing websocket issues.
|
||||
</HealthIssue>
|
||||
@@ -406,8 +406,8 @@ const WorkspaceBuildValue: FC<{
|
||||
|
||||
const HealthIssue: FC<PropsWithChildren> = ({ children }) => {
|
||||
return (
|
||||
<Stack direction="row" spacing={1}>
|
||||
<ErrorIcon fontSize="small" htmlColor={colors.red[10]} />
|
||||
<Stack direction="row" spacing={1} alignItems="center">
|
||||
<ErrorIcon css={{ width: 16, height: 16 }} htmlColor={colors.red[10]} />
|
||||
{children}
|
||||
</Stack>
|
||||
);
|
||||
|
||||
@@ -2817,7 +2817,7 @@ export const DeploymentHealthUnhealthy: Health = {
|
||||
healthy: false,
|
||||
time: "2023-10-12T23:15:00.000000000Z",
|
||||
coder_version: "v2.3.0-devel+8cca4915a",
|
||||
access_url: { healthy: false },
|
||||
access_url: { healthy: true },
|
||||
database: { healthy: false },
|
||||
derp: { healthy: false },
|
||||
websocket: { healthy: false },
|
||||
|
||||
Reference in New Issue
Block a user