@@ -6,13 +6,13 @@ import type {
6
6
WorkspaceAgentDevcontainer ,
7
7
} from "api/typesGenerated" ;
8
8
import { ChooseOne , Cond } from "components/Conditionals/ChooseOne" ;
9
- import { PopoverTrigger } from "components/deprecated/Popover/Popover" ;
10
9
import {
11
10
HelpTooltip ,
12
11
HelpTooltipContent ,
13
12
HelpTooltipText ,
14
13
HelpTooltipTitle ,
15
14
} from "components/HelpTooltip/HelpTooltip" ;
15
+ import { TooltipProvider , TooltipTrigger } from "components/Tooltip/Tooltip" ;
16
16
import { TriangleAlertIcon } from "lucide-react" ;
17
17
import type { FC } from "react" ;
18
18
@@ -62,9 +62,9 @@ interface DevcontainerStatusProps {
62
62
const StartTimeoutLifecycle : FC < AgentStatusProps > = ( { agent } ) => {
63
63
return (
64
64
< HelpTooltip >
65
- < PopoverTrigger role = "status" aria-label = "Agent timeout" >
65
+ < TooltipTrigger asChild role = "status" aria-label = "Agent timeout" >
66
66
< TriangleAlertIcon css = { styles . timeoutWarning } />
67
- </ PopoverTrigger >
67
+ </ TooltipTrigger >
68
68
69
69
< HelpTooltipContent >
70
70
< HelpTooltipTitle > Agent is taking too long to start</ HelpTooltipTitle >
@@ -87,9 +87,9 @@ const StartTimeoutLifecycle: FC<AgentStatusProps> = ({ agent }) => {
87
87
const StartErrorLifecycle : FC < AgentStatusProps > = ( { agent } ) => {
88
88
return (
89
89
< HelpTooltip >
90
- < PopoverTrigger role = "status" aria-label = "Start error" >
90
+ < TooltipTrigger asChild role = "status" aria-label = "Start error" >
91
91
< TriangleAlertIcon css = { styles . errorWarning } />
92
- </ PopoverTrigger >
92
+ </ TooltipTrigger >
93
93
< HelpTooltipContent >
94
94
< HelpTooltipTitle > Error starting the agent</ HelpTooltipTitle >
95
95
< HelpTooltipText >
@@ -123,9 +123,9 @@ const ShuttingDownLifecycle: FC = () => {
123
123
const ShutdownTimeoutLifecycle : FC < AgentStatusProps > = ( { agent } ) => {
124
124
return (
125
125
< HelpTooltip >
126
- < PopoverTrigger role = "status" aria-label = "Stop timeout" >
126
+ < TooltipTrigger asChild role = "status" aria-label = "Stop timeout" >
127
127
< TriangleAlertIcon css = { styles . timeoutWarning } />
128
- </ PopoverTrigger >
128
+ </ TooltipTrigger >
129
129
< HelpTooltipContent >
130
130
< HelpTooltipTitle > Agent is taking too long to stop</ HelpTooltipTitle >
131
131
< HelpTooltipText >
@@ -147,9 +147,9 @@ const ShutdownTimeoutLifecycle: FC<AgentStatusProps> = ({ agent }) => {
147
147
const ShutdownErrorLifecycle : FC < AgentStatusProps > = ( { agent } ) => {
148
148
return (
149
149
< HelpTooltip >
150
- < PopoverTrigger role = "status" aria-label = "Stop error" >
150
+ < TooltipTrigger asChild role = "status" aria-label = "Stop error" >
151
151
< TriangleAlertIcon css = { styles . errorWarning } />
152
- </ PopoverTrigger >
152
+ </ TooltipTrigger >
153
153
< HelpTooltipContent >
154
154
< HelpTooltipTitle > Error stopping the agent</ HelpTooltipTitle >
155
155
< HelpTooltipText >
@@ -243,9 +243,9 @@ const ConnectingStatus: FC = () => {
243
243
const TimeoutStatus : FC < AgentStatusProps > = ( { agent } ) => {
244
244
return (
245
245
< HelpTooltip >
246
- < PopoverTrigger role = "status" aria-label = "Timeout" >
246
+ < TooltipTrigger asChild role = "status" aria-label = "Timeout" >
247
247
< TriangleAlertIcon css = { styles . timeoutWarning } />
248
- </ PopoverTrigger >
248
+ </ TooltipTrigger >
249
249
< HelpTooltipContent >
250
250
< HelpTooltipTitle > Agent is taking too long to connect</ HelpTooltipTitle >
251
251
< HelpTooltipText >
@@ -266,20 +266,22 @@ const TimeoutStatus: FC<AgentStatusProps> = ({ agent }) => {
266
266
267
267
export const AgentStatus : FC < AgentStatusProps > = ( { agent } ) => {
268
268
return (
269
- < ChooseOne >
270
- < Cond condition = { agent . status === "connected" } >
271
- < ConnectedStatus agent = { agent } />
272
- </ Cond >
273
- < Cond condition = { agent . status === "disconnected" } >
274
- < DisconnectedStatus />
275
- </ Cond >
276
- < Cond condition = { agent . status === "timeout" } >
277
- < TimeoutStatus agent = { agent } />
278
- </ Cond >
279
- < Cond >
280
- < ConnectingStatus />
281
- </ Cond >
282
- </ ChooseOne >
269
+ < TooltipProvider >
270
+ < ChooseOne >
271
+ < Cond condition = { agent . status === "connected" } >
272
+ < ConnectedStatus agent = { agent } />
273
+ </ Cond >
274
+ < Cond condition = { agent . status === "disconnected" } >
275
+ < DisconnectedStatus />
276
+ </ Cond >
277
+ < Cond condition = { agent . status === "timeout" } >
278
+ < TimeoutStatus agent = { agent } />
279
+ </ Cond >
280
+ < Cond >
281
+ < ConnectingStatus />
282
+ </ Cond >
283
+ </ ChooseOne >
284
+ </ TooltipProvider >
283
285
) ;
284
286
} ;
285
287
@@ -308,9 +310,9 @@ const SubAgentStatus: FC<SubAgentStatusProps> = ({ agent }) => {
308
310
const DevcontainerStartError : FC < AgentStatusProps > = ( { agent } ) => {
309
311
return (
310
312
< HelpTooltip >
311
- < PopoverTrigger role = "status" aria-label = "Start error" >
313
+ < TooltipTrigger asChild role = "status" aria-label = "Start error" >
312
314
< TriangleAlertIcon css = { styles . errorWarning } />
313
- </ PopoverTrigger >
315
+ </ TooltipTrigger >
314
316
< HelpTooltipContent >
315
317
< HelpTooltipTitle >
316
318
Error starting the devcontainer agent
0 commit comments