1
1
import type { Interpolation , Theme } from "@emotion/react" ;
2
- import WarningRounded from "@mui/icons-material/WarningRounded" ;
3
2
import Link from "@mui/material/Link" ;
4
3
import Tooltip from "@mui/material/Tooltip" ;
5
4
import type { WorkspaceAgent } from "api/typesGenerated" ;
@@ -11,9 +10,10 @@ import {
11
10
HelpTooltipTitle ,
12
11
} from "components/HelpTooltip/HelpTooltip" ;
13
12
import { PopoverTrigger } from "components/deprecated/Popover/Popover" ;
13
+ import { TriangleAlertIcon } from "lucide-react" ;
14
14
import type { FC } from "react" ;
15
15
16
- // If we think in the agent status and lifecycle into a single enum/state I’ d
16
+ // If we think in the agent status and lifecycle into a single enum/state I' d
17
17
// say we would have: connecting, timeout, disconnected, connected:created,
18
18
// connected:starting, connected:start_timeout, connected:start_error,
19
19
// connected:ready, connected:shutting_down, connected:shutdown_timeout,
@@ -50,7 +50,7 @@ const StartTimeoutLifecycle: FC<AgentStatusProps> = ({ agent }) => {
50
50
return (
51
51
< HelpTooltip >
52
52
< PopoverTrigger role = "status" aria-label = "Agent timeout" >
53
- < WarningRounded css = { styles . timeoutWarning } />
53
+ < TriangleAlertIcon css = { styles . timeoutWarning } />
54
54
</ PopoverTrigger >
55
55
56
56
< HelpTooltipContent >
@@ -75,7 +75,7 @@ const StartErrorLifecycle: FC<AgentStatusProps> = ({ agent }) => {
75
75
return (
76
76
< HelpTooltip >
77
77
< PopoverTrigger role = "status" aria-label = "Start error" >
78
- < WarningRounded css = { styles . errorWarning } />
78
+ < TriangleAlertIcon css = { styles . errorWarning } />
79
79
</ PopoverTrigger >
80
80
< HelpTooltipContent >
81
81
< HelpTooltipTitle > Error starting the agent</ HelpTooltipTitle >
@@ -111,7 +111,7 @@ const ShutdownTimeoutLifecycle: FC<AgentStatusProps> = ({ agent }) => {
111
111
return (
112
112
< HelpTooltip >
113
113
< PopoverTrigger role = "status" aria-label = "Stop timeout" >
114
- < WarningRounded css = { styles . timeoutWarning } />
114
+ < TriangleAlertIcon css = { styles . timeoutWarning } />
115
115
</ PopoverTrigger >
116
116
< HelpTooltipContent >
117
117
< HelpTooltipTitle > Agent is taking too long to stop</ HelpTooltipTitle >
@@ -135,7 +135,7 @@ const ShutdownErrorLifecycle: FC<AgentStatusProps> = ({ agent }) => {
135
135
return (
136
136
< HelpTooltip >
137
137
< PopoverTrigger role = "status" aria-label = "Stop error" >
138
- < WarningRounded css = { styles . errorWarning } />
138
+ < TriangleAlertIcon css = { styles . errorWarning } />
139
139
</ PopoverTrigger >
140
140
< HelpTooltipContent >
141
141
< HelpTooltipTitle > Error stopping the agent</ HelpTooltipTitle >
@@ -231,7 +231,7 @@ const TimeoutStatus: FC<AgentStatusProps> = ({ agent }) => {
231
231
return (
232
232
< HelpTooltip >
233
233
< PopoverTrigger role = "status" aria-label = "Timeout" >
234
- < WarningRounded css = { styles . timeoutWarning } />
234
+ < TriangleAlertIcon css = { styles . timeoutWarning } />
235
235
</ PopoverTrigger >
236
236
< HelpTooltipContent >
237
237
< HelpTooltipTitle > Agent is taking too long to connect</ HelpTooltipTitle >
0 commit comments