@@ -13,6 +13,8 @@ import { WorkspaceBuildLogs } from "modules/workspaces/WorkspaceBuildLogs/Worksp
13
13
import { type FC , useLayoutEffect , useRef } from "react" ;
14
14
import { navHeight } from "theme/constants" ;
15
15
import { provisionersUnhealthy , useCompatibleProvisioners } from "modules/provisioners/useCompatibleProvisioners" ;
16
+ import { Alert , AlertTitle } from "@mui/material" ;
17
+ import { AlertDetail } from "components/Alert/Alert" ;
16
18
17
19
type BuildLogsDrawerProps = {
18
20
error : unknown ;
@@ -74,11 +76,33 @@ export const BuildLogsDrawer: FC<BuildLogsDrawerProps> = ({
74
76
75
77
{ ! compatibleProvisioners && ! logs ? (
76
78
// If there are no compatible provisioners, warn that this job may be stuck
77
- < > No compatible provisioners</ >
79
+ < Alert
80
+ severity = "warning"
81
+ css = { {
82
+ borderRadius : 0 ,
83
+ border : 0 ,
84
+ // borderBottom: `1px solid ${theme.palette.divider}`,
85
+ // borderLeft: `2px solid ${theme.palette.error.main}`,
86
+ } }
87
+ >
88
+ < AlertTitle > Build stuck</ AlertTitle >
89
+ < AlertDetail > No Compatible Provisioner Daemons have been configured</ AlertDetail >
90
+ </ Alert >
78
91
) : compatibleProvisionersUnhealthy && ! logs && (
79
92
// If there are compatible provisioners in the db, but they have not reported recent health checks,
80
93
// warn that the job might be stuck
81
- < > Compatible provisioners are potentially unhealthy. Your job might be delayed</ >
94
+ < Alert
95
+ severity = "warning"
96
+ css = { {
97
+ borderRadius : 0 ,
98
+ border : 0 ,
99
+ // borderBottom: `1px solid ${theme.palette.divider}`,
100
+ // borderLeft: `2px solid ${theme.palette.error.main}`,
101
+ } }
102
+ >
103
+ < AlertTitle > Build may be delayed</ AlertTitle >
104
+ < AlertDetail > Compatible Provisioner Daemons have been silent for a while. This may result in a delayed build</ AlertDetail >
105
+ </ Alert >
82
106
) }
83
107
84
108
{ isMissingVariables ? (
0 commit comments