Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix(SKY-10567): solid status pills + ghost data-table row buttons (#6343)
Suchintan33e750ce01a4
diff --git a/skyvern-frontend/src/components/StatusBadge.tsx b/skyvern-frontend/src/components/StatusBadge.tsxindex 0a5d7c92f..808996b40 100644--- a/skyvern-frontend/src/components/StatusBadge.tsx+++ b/skyvern-frontend/src/components/StatusBadge.tsx@@ -11,56 +11,30 @@ type PillTone =| "queued"| "neutral";-const toneStyles: Record<PillTone, { pill: string; dot: string }> = {- success: {- pill: "bg-emerald-500/10 text-emerald-700 ring-emerald-600/20 dark:text-emerald-400 dark:ring-emerald-500/25",- dot: "bg-emerald-500",- },- danger: {- pill: "bg-rose-500/10 text-rose-700 ring-rose-600/20 dark:text-rose-400 dark:ring-rose-500/25",- dot: "bg-rose-500",- },- terminated: {- pill: "bg-orange-500/10 text-orange-700 ring-orange-600/20 dark:text-orange-400 dark:ring-orange-500/25",- dot: "bg-orange-500",- },- running: {- pill: "bg-blue-500/10 text-blue-700 ring-blue-600/20 dark:text-blue-400 dark:ring-blue-500/25",- dot: "bg-blue-500",- },- queued: {- pill: "bg-amber-500/10 text-amber-700 ring-amber-600/20 dark:text-amber-500 dark:ring-amber-500/25",- dot: "bg-amber-500",- },- neutral: {- pill: "bg-slate-500/10 text-slate-600 ring-slate-500/20 dark:text-slate-300 dark:ring-slate-400/20",- dot: "bg-slate-400",- },+const toneStyles: Record<PillTone, string> = {+ success: "bg-emerald-600 text-white",+ danger: "bg-rose-600 text-white",+ terminated: "bg-orange-600 text-white",+ running: "bg-blue-600 text-white",+ queued: "bg-amber-500 text-amber-950",+ neutral: "bg-slate-600 text-white",};type PillProps = {tone: PillTone;- pulse?: boolean;className?: string;children: ReactNode;};-function Pill({ tone, pulse = false, className, children }: PillProps) {+function Pill({ tone, className, children }: PillProps) {return (<spanclassName={cn(- "inline-flex items-center gap-1.5 whitespace-nowrap rounded-md px-2 py-0.5 text-xs font-medium ring-1 ring-inset",- toneStyles[tone].pill,+ "inline-flex items-center whitespace-nowrap rounded-md px-2 py-0.5 text-xs font-medium",+ toneStyles[tone],className,)}>- <span- className={cn(- "size-1.5 shrink-0 rounded-full",- toneStyles[tone].dot,- pulse && "animate-pulse",- )}- />{children}</span>);@@ -97,11 +71,7 @@ function StatusBadge({ className, status }: Props) {const tone = toneForStatus(status);return (- <Pill- tone={tone}- pulse={tone === "running" || tone === "queued"}- className={cn("capitalize", className)}- >+ <Pill tone={tone} className={cn("capitalize", className)}>{statusText}</Pill>);diff --git a/skyvern-frontend/src/routes/browserProfiles/BrowserProfileItem.tsx b/skyvern-frontend/src/routes/browserProfiles/BrowserProfileItem.tsxindex 2193c883e..a34734b72 100644--- a/skyvern-frontend/src/routes/browserProfiles/BrowserProfileItem.tsx+++ b/skyvern-frontend/src/routes/browserProfiles/BrowserProfileItem.tsx@@ -68,9 +68,10 @@ function BrowserProfileItem({ profile }: Props) {<TooltipTrigger asChild><Buttonsize="icon"- variant="outline"+ variant="ghost"onClick={() => setRenameOpen(true)}aria-label="Rename browser profile"+ className="text-muted-foreground hover:text-foreground"><Pencil1Icon className="h-4 w-4" /></Button>diff --git a/skyvern-frontend/src/routes/browserProfiles/DeleteBrowserProfileButton.tsx b/skyvern-frontend/src/routes/browserProfiles/DeleteBrowserProfileButton.tsxindex 8a6e1780e..2c7f93a34 100644--- a/skyvern-frontend/src/routes/browserProfiles/DeleteBrowserProfileButton.tsx+++ b/skyvern-frontend/src/routes/browserProfiles/DeleteBrowserProfileButton.tsx@@ -36,8 +36,9 @@ function DeleteBrowserProfileButton({ profile, onDeleted }: Props) {<DialogTrigger asChild><Buttonsize="icon"- variant="outline"+ variant="ghost"aria-label="Delete browser profile"+ className="text-muted-foreground hover:text-destructive"><TrashIcon className="h-4 w-4" /></Button>diff --git a/skyvern-frontend/src/routes/history/RunHistory.tsx b/skyvern-frontend/src/routes/history/RunHistory.tsxindex 2ce2ba6c6..cc62caa96 100644--- a/skyvern-frontend/src/routes/history/RunHistory.tsx+++ b/skyvern-frontend/src/routes/history/RunHistory.tsx@@ -322,12 +322,15 @@ function RunHistory() {<TooltipTrigger asChild><Buttonsize="icon"- variant="outline"+ variant="ghost"onClick={(event) => {event.stopPropagation();toggleParametersExpanded(run.run_id);}}- className={cn(isExpanded && "text-blue-400")}+ className={cn(+ "text-muted-foreground hover:text-foreground",+ isExpanded && "text-blue-400",+ )}><MixerHorizontalIcon className="h-4 w-4" /></Button>diff --git a/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx b/skyvern-frontend/src/routes/schedules/SchedulesPage.tsxindex 78a84a5db..b82e032cb 100644--- a/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx+++ b/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx@@ -52,6 +52,7 @@ import { useQueryClient } from "@tanstack/react-query";import { Button } from "@/components/ui/button";import { Checkbox } from "@/components/ui/checkbox";import { TableSearchInput } from "@/components/TableSearchInput";+import { Pill } from "@/components/StatusBadge";import { getClient } from "@/api/AxiosClient";import { useCredentialGetter } from "@/hooks/useCredentialGetter";import { toast } from "@/components/ui/use-toast";@@ -101,31 +102,10 @@ const STATUS_OPTIONS: Array<{ label: string; value: ScheduleStatus }> = [];function StatusDisplay({ enabled }: Readonly<{ enabled: boolean }>) {- if (enabled) {- return (- <div className="flex items-center gap-1.5">- <span className="size-4 text-green-400">- <svg- viewBox="0 0 16 16"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <circle cx="8" cy="8" r="4" fill="currentColor" />- </svg>- </span>- <span className="text-sm capitalize text-slate-300">active</span>- </div>- );- }return (- <div className="flex items-center gap-1.5">- <span className="size-4 text-amber-400">- <svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">- <circle cx="8" cy="8" r="4" fill="currentColor" />- </svg>- </span>- <span className="text-sm capitalize text-slate-300">paused</span>- </div>+ <Pill tone={enabled ? "success" : "queued"} className="capitalize">+ {enabled ? "active" : "paused"}+ </Pill>);}@@ -544,9 +524,9 @@ function SchedulesPage() {<DropdownMenu modal={false}><DropdownMenuTrigger asChild><Button- variant="outline"+ variant="ghost"size="icon"- className="size-8"+ className="size-8 text-muted-foreground hover:text-foreground"><DotsHorizontalIcon className="size-4" /></Button>