diff --git a/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx b/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx index 5cc959d0..263673bd 100644 --- a/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx +++ b/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx @@ -1,19 +1,19 @@ +import { getClient } from "@/api/AxiosClient"; import { Action, ActionTypes, ReadableActionTypes } from "@/api/types"; +import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; +import { Separator } from "@/components/ui/separator"; +import { useCredentialGetter } from "@/hooks/useCredentialGetter"; +import { cn } from "@/util/utils"; import { ArrowLeftIcon, ArrowRightIcon, - CheckIcon, - Cross1Icon, + CheckCircledIcon, + CrossCircledIcon, } from "@radix-ui/react-icons"; import { useQueryClient } from "@tanstack/react-query"; -import { useParams } from "react-router-dom"; -import { useCredentialGetter } from "@/hooks/useCredentialGetter"; -import { getClient } from "@/api/AxiosClient"; import { useEffect, useRef } from "react"; -import { cn } from "@/util/utils"; -import { Badge } from "@/components/ui/badge"; -import { Separator } from "@/components/ui/separator"; +import { useParams } from "react-router-dom"; type Props = { data: Array; @@ -75,9 +75,9 @@ function ScrollableActionList({ refs.current[index] = element; }} className={cn( - "flex p-4 rounded-lg shadow-md border hover:bg-muted cursor-pointer", + "flex p-4 rounded-lg shadow-md border border-transparent hover:border-slate-500 cursor-pointer", { - "bg-muted": selected, + "border-slate-500": selected, }, )} onClick={() => onActiveIndexChange(index)} @@ -101,11 +101,21 @@ function ScrollableActionList({ }} >
-
- #{index + 1} - {ReadableActionTypes[action.type]} -
{action.confidence}
+
+
+ #{index + 1} + {ReadableActionTypes[action.type]} +
{action.confidence}
+
+
+ {action.success ? ( + + ) : ( + + )} +
+
{action.reasoning}
{action.type === ActionTypes.InputText && ( <> @@ -114,13 +124,6 @@ function ScrollableActionList({ )}
-
- {action.success ? ( - - ) : ( - - )} -
); })}