Skip to content

Automate browser based workflows with AI

fix(test): mock useSelectedCredentialTotpIdentifier in NavigationEditor test (#6175)

Trevor Cheungee422f6c79a3
diff --git a/pyproject.toml b/pyproject.toml
index 88e9ce80c..f9d01a90e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -13,7 +13,8 @@ dependencies = [
"cachetools>=5.3.2,<6",
"orjson>=3.9.10,<4",
"structlog>=23.2.0,<24",
- "typer>=0.16.0",
+ "typer>=0.16.0,<0.26",
+ "click>=8,<9",
"httpx[socks]>=0.27.0",
"rich>=13.7.0,<14",
]
diff --git a/skyvern-frontend/src/components/BrowserStream.tsx b/skyvern-frontend/src/components/BrowserStream.tsx
index 65f8fec35..615623270 100644
--- a/skyvern-frontend/src/components/BrowserStream.tsx
+++ b/skyvern-frontend/src/components/BrowserStream.tsx
@@ -945,7 +945,7 @@ function BrowserStream({
</div>
)}
{!isReady && (
- <div className="absolute left-0 top-1/2 flex aspect-video max-h-full w-full -translate-y-1/2 flex-col items-center justify-center gap-2 rounded-md border border-border text-sm text-muted-foreground">
+ <div className="absolute left-0 top-1/2 flex aspect-video max-h-full w-full -translate-y-1/2 flex-col items-center justify-center gap-2 rounded-md border border-slate-800 text-sm text-slate-400">
<StreamStatusPanel diagnostic={streamDiagnostic}>
{isBrowserSessionBackendReady && (
<>
diff --git a/skyvern-frontend/src/components/DataSchemaInputGroup/WorkflowDataSchemaInputGroup.tsx b/skyvern-frontend/src/components/DataSchemaInputGroup/WorkflowDataSchemaInputGroup.tsx
index 8afef6f8f..9a5612be4 100644
--- a/skyvern-frontend/src/components/DataSchemaInputGroup/WorkflowDataSchemaInputGroup.tsx
+++ b/skyvern-frontend/src/components/DataSchemaInputGroup/WorkflowDataSchemaInputGroup.tsx
@@ -92,7 +92,7 @@ function WorkflowDataSchemaInputGroup({
<div className="flex h-7 items-center justify-between">
<div className="flex gap-4">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">Data Schema</Label>
+ <Label className="text-xs text-slate-300">Data Schema</Label>
<HelpTooltip
content={helpTooltip ?? helpTooltips["task"]["dataSchema"]}
/>
@@ -206,9 +206,7 @@ function WorkflowDataSchemaInputGroup({
</DialogHeader>
<div className="grid grid-cols-2 gap-4">
<div className="space-y-2">
- <Label className="text-sm text-muted-foreground">
- Current Schema
- </Label>
+ <Label className="text-sm text-slate-400">Current Schema</Label>
<CodeEditor
language="json"
value={value}
@@ -220,7 +218,7 @@ function WorkflowDataSchemaInputGroup({
/>
</div>
<div className="space-y-2">
- <Label className="text-sm text-muted-foreground">
+ <Label className="text-sm text-slate-400">
Proposed Schema
</Label>
<CodeEditor
diff --git a/skyvern-frontend/src/components/DeleteConfirmationDialog.tsx b/skyvern-frontend/src/components/DeleteConfirmationDialog.tsx
index 7bd58bef4..ebc7e7ec6 100644
--- a/skyvern-frontend/src/components/DeleteConfirmationDialog.tsx
+++ b/skyvern-frontend/src/components/DeleteConfirmationDialog.tsx
@@ -47,11 +47,11 @@ function DeleteConfirmationDialog({
The following blocks reference this item and will be
updated:
</p>
- <ul className="list-inside list-disc space-y-1 text-sm text-muted-foreground">
+ <ul className="list-inside list-disc space-y-1 text-sm text-slate-300">
{affectedBlocks.map((block) => (
<li key={block.nodeId}>
<span className="font-medium">{block.label}</span>
- <span className="text-muted-foreground">
+ <span className="text-slate-400">
{" "}
(
{[
diff --git a/skyvern-frontend/src/components/EngineSelector.tsx b/skyvern-frontend/src/components/EngineSelector.tsx
index 97963d2e4..180e2352b 100644
--- a/skyvern-frontend/src/components/EngineSelector.tsx
+++ b/skyvern-frontend/src/components/EngineSelector.tsx
@@ -66,7 +66,7 @@ function BadgeLabel({ option }: { option: EngineOption }) {
className={cn("rounded px-1.5 py-0.5 text-[10px] font-medium", {
"bg-green-500/20 text-green-400": option.badgeVariant === "success",
"bg-amber-500/20 text-amber-400": option.badgeVariant === "warning",
- "bg-slate-elevation5/20 text-muted-foreground":
+ "bg-slate-500/20 text-slate-400":
option.badgeVariant === "default" || !option.badgeVariant,
})}
>
diff --git a/skyvern-frontend/src/components/FileUpload.tsx b/skyvern-frontend/src/components/FileUpload.tsx
index 0c8cc1e24..93d9fbf58 100644
--- a/skyvern-frontend/src/components/FileUpload.tsx
+++ b/skyvern-frontend/src/components/FileUpload.tsx
@@ -130,7 +130,7 @@ function FileUpload({ value, onChange, required }: Props) {
<Label
htmlFor={inputId}
className={cn(
- "flex w-full cursor-pointer items-center justify-center border border-dashed py-8 hover:border-input",
+ "flex w-full cursor-pointer items-center justify-center border border-dashed py-8 hover:border-slate-500",
)}
onDragOver={(event) => {
event.preventDefault();
diff --git a/skyvern-frontend/src/components/FloatingWindow.tsx b/skyvern-frontend/src/components/FloatingWindow.tsx
index 5eb7179d8..accad32ed 100644
--- a/skyvern-frontend/src/components/FloatingWindow.tsx
+++ b/skyvern-frontend/src/components/FloatingWindow.tsx
@@ -578,8 +578,8 @@ function FloatingWindow({
pointerEvents: "auto",
overflow: "hidden",
}}
- className={cn("rounded-xl border border-border", {
- "hover:border-foreground": !isMaximized,
+ className={cn("rounded-xl border border-slate-700", {
+ "hover:border-slate-600": !isMaximized,
})}
handleStyles={{
bottomLeft: {
diff --git a/skyvern-frontend/src/components/ImprovePrompt.tsx b/skyvern-frontend/src/components/ImprovePrompt.tsx
index ac3d23cff..dc99cd6f5 100644
--- a/skyvern-frontend/src/components/ImprovePrompt.tsx
+++ b/skyvern-frontend/src/components/ImprovePrompt.tsx
@@ -142,7 +142,7 @@ function ImprovePrompt(props: Props) {
setSelectedPromptVersion(value as "improved" | "original")
}
/>
- <div className="max-h-96 overflow-y-auto rounded-md border border-border bg-slate-elevation5 p-4">
+ <div className="max-h-96 overflow-y-auto rounded-md border border-slate-700 bg-slate-800 p-4">
<p className="whitespace-pre-wrap text-sm">
{selectedPromptVersion === "improved"
? improvedPrompt
diff --git a/skyvern-frontend/src/components/Logo.tsx b/skyvern-frontend/src/components/Logo.tsx
index dc47f6528..f07323ae5 100644
--- a/skyvern-frontend/src/components/Logo.tsx
+++ b/skyvern-frontend/src/components/Logo.tsx
@@ -1,12 +1,6 @@
function Logo() {
const src = "/logo.png";
- return (
- <img
- src={src}
- alt="Logo"
- className="hue-rotate-180 invert dark:hue-rotate-0 dark:invert-0"
- />
- );
+ return <img src={src} alt="Logo" />;
}
export { Logo };
diff --git a/skyvern-frontend/src/components/LogoMinimized.tsx b/skyvern-frontend/src/components/LogoMinimized.tsx
index 7574ef464..fa92bac59 100644
--- a/skyvern-frontend/src/components/LogoMinimized.tsx
+++ b/skyvern-frontend/src/components/LogoMinimized.tsx
@@ -1,12 +1,6 @@
function LogoMinimized() {
const src = "/logo-small.png";
- return (
- <img
- src={src}
- alt="Minimized Logo"
- className="hue-rotate-180 invert dark:hue-rotate-0 dark:invert-0"
- />
- );
+ return <img src={src} alt="Minimized Logo" />;
}
export { LogoMinimized };
diff --git a/skyvern-frontend/src/components/ModelSelector.tsx b/skyvern-frontend/src/components/ModelSelector.tsx
index a51da512c..8ee48f73a 100644
--- a/skyvern-frontend/src/components/ModelSelector.tsx
+++ b/skyvern-frontend/src/components/ModelSelector.tsx
@@ -79,9 +79,7 @@ function ModelSelector({
return (
<div className="flex items-center justify-between">
<div className="flex gap-2">
- <Label className="text-xs font-normal text-muted-foreground">
- Model
- </Label>
+ <Label className="text-xs font-normal text-slate-300">Model</Label>
<HelpTooltip content="The LLM model to use for this block" />
</div>
<div className="relative flex items-center">
@@ -114,13 +112,13 @@ function ModelSelector({
{value && clearable && (
<>
<div
- className="pointer-events-none absolute right-8 top-1/2 h-5 w-px -translate-y-1/2 bg-slate-elevation3 opacity-70 dark:bg-slate-elevation4"
+ className="pointer-events-none absolute right-8 top-1/2 h-5 w-px -translate-y-1/2 bg-slate-200 opacity-70 dark:bg-slate-700"
aria-hidden="true"
/>
<button
type="button"
aria-label="Clear selection"
- className="absolute right-0 z-10 flex h-9 w-8 items-center justify-center text-muted-foreground hover:text-red-500 focus:outline-none"
+ className="absolute right-0 z-10 flex h-9 w-8 items-center justify-center text-slate-400 hover:text-red-500 focus:outline-none"
onClick={() => onChange(null)}
tabIndex={0}
>
diff --git a/skyvern-frontend/src/components/NavLinkGroup.tsx b/skyvern-frontend/src/components/NavLinkGroup.tsx
index be215a29e..06cf77e1f 100644
--- a/skyvern-frontend/src/components/NavLinkGroup.tsx
+++ b/skyvern-frontend/src/components/NavLinkGroup.tsx
@@ -47,14 +47,13 @@ function NavLinkItem({
onClick={onItemClick ? () => onItemClick(link) : undefined}
className={({ isActive }) => {
return cn(
- "block rounded-lg py-2 pl-3 text-muted-foreground hover:bg-muted hover:text-primary",
+ "block rounded-lg py-2 pl-3 text-slate-400 hover:bg-muted hover:text-primary",
{ "py-1 pl-0 text-[0.8rem]": isMobile },
{
- "border border-brand/30 bg-brand-soft text-foreground hover:bg-brand-soft hover:text-foreground dark:border-brand/40 dark:bg-brand/10 dark:text-brand-foreground":
- isActive,
+ "bg-muted": isActive,
},
{
- "text-primary": groupIsActive && !isActive,
+ "text-primary": groupIsActive,
"px-3": sidebarCollapsed,
},
);
@@ -79,12 +78,11 @@ function NavLinkItem({
</div>
{!sidebarCollapsed && (link.beta || link.training) && (
<Badge
- className={cn(
- "rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide",
- link.beta
- ? "bg-destructive text-destructive-foreground hover:bg-destructive/90"
- : "bg-brand text-brand-foreground hover:bg-brand/90",
- )}
+ className="rounded-[40px] px-2 py-1"
+ style={{
+ backgroundColor: groupIsActive ? "#301615" : "#1E1016",
+ color: groupIsActive ? "#EA580C" : "#8D3710",
+ }}
>
{link.beta ? "Beta" : "Training"}
</Badge>
@@ -128,7 +126,7 @@ function NavLinkGroup({
})}
>
<div
- className={cn("py-2 text-muted-foreground", {
+ className={cn("py-2 text-slate-400", {
"text-primary": groupIsActive,
"mt-2 py-1 text-[0.8rem] font-medium uppercase": isMobile,
})}
@@ -211,7 +209,7 @@ function NavLinkGroup({
: undefined
}
className={cn(
- "flex w-full items-center gap-2 rounded-lg py-2 pl-3 text-muted-foreground hover:bg-muted hover:text-primary",
+ "flex w-full items-center gap-2 rounded-lg py-2 pl-3 text-slate-400 hover:bg-muted hover:text-primary",
{ "py-1 pl-0 text-[0.8rem]": isMobile },
{
"justify-center px-3": sidebarCollapsed,
diff --git a/skyvern-frontend/src/components/PushTotpCodeForm.tsx b/skyvern-frontend/src/components/PushTotpCodeForm.tsx
index f45c92a31..346cf61a1 100644
--- a/skyvern-frontend/src/components/PushTotpCodeForm.tsx
+++ b/skyvern-frontend/src/components/PushTotpCodeForm.tsx
@@ -174,7 +174,7 @@ function PushTotpCodeForm({
readOnly={mutation.isPending}
className="min-h-[4.5rem]"
/>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-400">
We only store this to help the current login. Avoid pasting unrelated
sensitive data.
</p>
diff --git a/skyvern-frontend/src/components/RadialMenu.tsx b/skyvern-frontend/src/components/RadialMenu.tsx
index 163012983..b5c00cf03 100644
--- a/skyvern-frontend/src/components/RadialMenu.tsx
+++ b/skyvern-frontend/src/components/RadialMenu.tsx
@@ -179,17 +179,17 @@ export function RadialMenu({
>
<button
disabled={!isEnabled}
- className="flex items-center justify-center rounded-full bg-popover shadow-popover hover:bg-muted disabled:cursor-not-allowed"
+ className="flex items-center justify-center rounded-full bg-white shadow-lg hover:bg-gray-50 disabled:cursor-not-allowed"
style={{
width: btnSize,
height: btnSize,
}}
>
- <div className="text-popover-foreground">{item.icon}</div>
+ <div className="text-gray-700">{item.icon}</div>
</button>
{item.text && (
<span
- className="whitespace-nowrap rounded bg-popover px-2 py-1 text-xs text-popover-foreground shadow-popover"
+ className="whitespace-nowrap rounded bg-white px-2 py-1 text-xs text-gray-700 shadow-md"
style={{
opacity: isEnabled ? 1 : 0.5,
cursor: isEnabled ? "pointer" : "not-allowed",
@@ -233,7 +233,7 @@ export function RadialMenu({
setIsOpen(false);
}}
disabled={!isEnabled}
- className="absolute left-1/2 top-1/2 z-30 flex items-center justify-center rounded-full bg-popover shadow-popover transition-all duration-300 ease-out hover:bg-muted disabled:cursor-not-allowed"
+ className="absolute left-1/2 top-1/2 z-30 flex items-center justify-center rounded-full bg-white shadow-lg transition-all duration-300 ease-out hover:bg-gray-50 disabled:cursor-not-allowed"
style={{
width: btnSize,
height: btnSize,
@@ -245,7 +245,7 @@ export function RadialMenu({
transitionDelay: isOpen ? `${index * 50}ms` : "0ms",
}}
>
- <div className="text-foreground">{item.icon}</div>
+ <div className="text-gray-700">{item.icon}</div>
</button>
{item.text && (
<div
@@ -254,7 +254,7 @@ export function RadialMenu({
item.onClick();
setIsOpen(false);
}}
- className="absolute left-1/2 top-1/2 z-30 cursor-pointer whitespace-nowrap rounded bg-popover px-2 py-1 text-xs text-popover-foreground shadow-popover transition-all duration-300 ease-out"
+ className="absolute left-1/2 top-1/2 z-30 cursor-pointer whitespace-nowrap rounded bg-white px-2 py-1 text-xs text-gray-700 shadow-md transition-all duration-300 ease-out"
style={{
transform: isOpen
? rotateText
diff --git a/skyvern-frontend/src/components/SelfHealApiKeyBanner.tsx b/skyvern-frontend/src/components/SelfHealApiKeyBanner.tsx
index d6b13745e..f59bb4461 100644
--- a/skyvern-frontend/src/components/SelfHealApiKeyBanner.tsx
+++ b/skyvern-frontend/src/components/SelfHealApiKeyBanner.tsx
@@ -168,7 +168,7 @@ function SelfHealApiKeyBanner() {
return (
<div className="px-4 pt-4">
- <Alert className="flex flex-col items-center gap-2 border-border bg-slate-elevation1 text-foreground">
+ <Alert className="flex flex-col items-center gap-2 border-slate-700 bg-slate-900 text-slate-50">
<AlertTitle className="text-center text-base font-semibold tracking-wide">
{copy.title}
</AlertTitle>
@@ -182,15 +182,13 @@ function SelfHealApiKeyBanner() {
to regenerate it automatically.
</p>
{data?.detail ? (
- <p className="text-xs text-muted-foreground">{data.detail}</p>
+ <p className="text-xs text-slate-300">{data.detail}</p>
) : null}
{data?.next_step ? (
- <p className="text-xs text-muted-foreground">
- {data.next_step}
- </p>
+ <p className="text-xs text-slate-300">{data.next_step}</p>
) : null}
{authIssue ? (
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-300">
Last failed request: HTTP {authIssue.statusCode}
{authIssue.path ? ` at ${authIssue.path}` : ""}
{authIssue.detail ? ` (${authIssue.detail})` : ""}
diff --git a/skyvern-frontend/src/components/Splitter.tsx b/skyvern-frontend/src/components/Splitter.tsx
index 0d1f776f9..b7c3155a6 100644
--- a/skyvern-frontend/src/components/Splitter.tsx
+++ b/skyvern-frontend/src/components/Splitter.tsx
@@ -15,11 +15,11 @@ function Handle({
return (
<div
className={cn(
- "absolute flex h-[1.25rem] w-[10px] flex-wrap items-center justify-center gap-[2px] bg-slate-elevation5 pb-1 pt-1",
+ "absolute flex h-[1.25rem] w-[10px] flex-wrap items-center justify-center gap-[2px] bg-slate-800 pb-1 pt-1",
{
"cursor-col-resize": direction === "vertical",
"cursor-row-resize": direction === "horizontal",
- "bg-slate-elevation4": isDragging,
+ "bg-slate-700": isDragging,
},
)}
onDoubleClick={() => onDoubleClick?.()}
@@ -430,8 +430,8 @@ function Splitter({
onDoubleClick={snap}
>
<div
- className={cn("h-full w-[2px] bg-slate-elevation5", {
- "bg-slate-elevation4": isDragging,
+ className={cn("h-full w-[2px] bg-slate-800", {
+ "bg-slate-700": isDragging,
})}
/>
<Handle
diff --git a/skyvern-frontend/src/components/Status404.tsx b/skyvern-frontend/src/components/Status404.tsx
index 622823ff4..3c6c4b91c 100644
--- a/skyvern-frontend/src/components/Status404.tsx
+++ b/skyvern-frontend/src/components/Status404.tsx
@@ -8,11 +8,11 @@ function Status404() {
style={{ height: "calc(100vh - 7.5rem)" }}
>
<div className="absolute flex h-full w-full items-center justify-center">
- <div className="animate-roll-right-404 relative flex h-[13rem] w-[13rem] flex-col items-center justify-center rounded-full bg-foreground/5 text-xl font-bold text-foreground">
+ <div className="animate-roll-right-404 relative flex h-[13rem] w-[13rem] flex-col items-center justify-center rounded-full bg-white/5 text-xl font-bold text-white">
<div className="animate-fade-in-404">404</div>
<div className="opacity-50">Not Found</div>
<div className="animate-orbit-404 absolute h-full w-full">
- <div className="animate-fade-in-slow-404 relative h-[2rem] w-[2rem] translate-x-[5.5rem] translate-y-[5.5rem] rounded-full bg-foreground/10" />
+ <div className="animate-fade-in-slow-404 relative h-[2rem] w-[2rem] translate-x-[5.5rem] translate-y-[5.5rem] rounded-full bg-white/10" />
</div>
</div>
</div>
diff --git a/skyvern-frontend/src/components/StatusBadge.tsx b/skyvern-frontend/src/components/StatusBadge.tsx
index 8e1150de1..6f95fca0e 100644
--- a/skyvern-frontend/src/components/StatusBadge.tsx
+++ b/skyvern-frontend/src/components/StatusBadge.tsx
@@ -12,26 +12,22 @@ function StatusBadge({ className, status }: Props) {
return (
<Badge
- className={cn(
- "flex h-7 w-24 justify-center rounded-full",
- {
- "bg-green-900 text-green-50 hover:bg-green-900/80":
- status === Status.Completed,
- "bg-orange-900 text-orange-50 hover:bg-orange-900/80":
- status === Status.Terminated,
- "bg-gray-900 text-gray-50 hover:bg-gray-900/80":
- status === Status.Created,
- "bg-red-900 text-red-50 hover:bg-red-900/80":
- status === Status.Failed ||
- status === Status.Canceled ||
- status === Status.TimedOut,
- "bg-yellow-900 text-yellow-50 hover:bg-yellow-900/80":
- status === Status.Running ||
- status === Status.Queued ||
- status === "pending",
- },
- className,
- )}
+ className={cn("flex h-7 w-24 justify-center", className, {
+ "bg-green-900 text-green-50 hover:bg-green-900/80":
+ status === Status.Completed,
+ "bg-orange-900 text-orange-50 hover:bg-orange-900/80":
+ status === Status.Terminated,
+ "bg-gray-900 text-gray-50 hover:bg-gray-900/80":
+ status === Status.Created,
+ "bg-red-900 text-red-50 hover:bg-red-900/80":
+ status === Status.Failed ||
+ status === Status.Canceled ||
+ status === Status.TimedOut,
+ "bg-yellow-900 text-yellow-50 hover:bg-yellow-900/80":
+ status === Status.Running ||
+ status === Status.Queued ||
+ status === "pending",
+ })}
>
{statusText}
</Badge>
diff --git a/skyvern-frontend/src/components/SwitchBar.tsx b/skyvern-frontend/src/components/SwitchBar.tsx
index 48f5f05a9..6eb11a13d 100644
--- a/skyvern-frontend/src/components/SwitchBar.tsx
+++ b/skyvern-frontend/src/components/SwitchBar.tsx
@@ -24,7 +24,7 @@ function SwitchBar({ className, highlight, options, value, onChange }: Props) {
return (
<div
className={cn(
- "flex w-fit gap-1 rounded-sm border border-border p-2",
+ "flex w-fit gap-1 rounded-sm border border-slate-700 p-2",
className,
)}
>
@@ -34,10 +34,10 @@ function SwitchBar({ className, highlight, options, value, onChange }: Props) {
<div
key={option.value}
className={cn(
- "flex cursor-pointer items-center whitespace-nowrap rounded-sm px-3 py-2 text-xs hover:bg-slate-elevation4",
+ "flex cursor-pointer items-center whitespace-nowrap rounded-sm px-3 py-2 text-xs hover:bg-slate-700",
{
- "bg-slate-elevation4/40": highlight && !selected,
- "bg-slate-elevation4": selected,
+ "bg-slate-700/40": highlight && !selected,
+ "bg-slate-700": selected,
},
)}
onClick={() => {
diff --git a/skyvern-frontend/src/components/SwitchBarNavigation.tsx b/skyvern-frontend/src/components/SwitchBarNavigation.tsx
index 58c5a72ee..265870720 100644
--- a/skyvern-frontend/src/components/SwitchBarNavigation.tsx
+++ b/skyvern-frontend/src/components/SwitchBarNavigation.tsx
@@ -15,7 +15,7 @@ function SwitchBarNavigation({ options }: Props) {
const [searchParams] = useSearchParams();
return (
- <div className="flex w-fit gap-2 rounded-sm border border-border p-2">
+ <div className="flex w-fit gap-2 rounded-sm border border-slate-700 p-2">
{options.map((option) => {
return (
<NavLink
@@ -24,9 +24,9 @@ function SwitchBarNavigation({ options }: Props) {
key={option.to}
className={({ isActive }) => {
return cn(
- "flex cursor-pointer items-center justify-center rounded-sm px-3 py-2 text-center hover:bg-slate-elevation4",
+ "flex cursor-pointer items-center justify-center rounded-sm px-3 py-2 text-center hover:bg-slate-700",
{
- "bg-slate-elevation4": isActive,
+ "bg-slate-700": isActive,
},
);
}}
diff --git a/skyvern-frontend/src/components/TableSearchInput.tsx b/skyvern-frontend/src/components/TableSearchInput.tsx
index 42586dd68..ec5ca89e4 100644
--- a/skyvern-frontend/src/components/TableSearchInput.tsx
+++ b/skyvern-frontend/src/components/TableSearchInput.tsx
@@ -27,7 +27,7 @@ function TableSearchInput({
return (
<div className={cn("relative", className)}>
<div className="pointer-events-none absolute left-0 top-0 flex h-9 w-9 items-center justify-center">
- <MagnifyingGlassIcon className="size-5 text-muted-foreground" />
+ <MagnifyingGlassIcon className="size-5 text-slate-400" />
</div>
<Input
value={value}
diff --git a/skyvern-frontend/src/components/TestWebhookDialog.tsx b/skyvern-frontend/src/components/TestWebhookDialog.tsx
index 59c936386..51dc0bf00 100644
--- a/skyvern-frontend/src/components/TestWebhookDialog.tsx
+++ b/skyvern-frontend/src/components/TestWebhookDialog.tsx
@@ -300,11 +300,11 @@ function TestWebhookDialog({
<CollapsibleContent className="mt-4 space-y-4">
<div className="space-y-2">
<Label>Headers Sent</Label>
- <div className="space-y-1 rounded-md border bg-slate-elevation1 p-3 font-mono text-sm dark:bg-background">
+ <div className="space-y-1 rounded-md border bg-slate-50 p-3 font-mono text-sm dark:bg-slate-950">
{Object.entries(result.headers_sent).map(
([key, value]) => (
<div key={key}>
- <span className="text-muted-foreground dark:text-muted-foreground">
+ <span className="text-slate-600 dark:text-slate-400">
{key}:
</span>{" "}
{value}
diff --git a/skyvern-frontend/src/components/TriggerTypeBadge.tsx b/skyvern-frontend/src/components/TriggerTypeBadge.tsx
index e93df5f6b..bdd8c4eda 100644
--- a/skyvern-frontend/src/components/TriggerTypeBadge.tsx
+++ b/skyvern-frontend/src/components/TriggerTypeBadge.tsx
@@ -15,7 +15,7 @@ const triggerConfig: Record<
{ icon: React.ReactNode; label: string }
> = {
[TriggerType.Manual]: {
- icon: <CursorArrowIcon className="size-3.5 text-muted-foreground" />,
+ icon: <CursorArrowIcon className="size-3.5 text-slate-400" />,
label: "Manual",
},
[TriggerType.Api]: {
diff --git a/skyvern-frontend/src/components/VerificationCodeBanner.tsx b/skyvern-frontend/src/components/VerificationCodeBanner.tsx
index 98b945475..bfdcf9077 100644
--- a/skyvern-frontend/src/components/VerificationCodeBanner.tsx
+++ b/skyvern-frontend/src/components/VerificationCodeBanner.tsx
@@ -59,13 +59,13 @@ function VerificationCodeBanner({
<div className="flex items-center justify-between border-b border-amber-500/30 bg-amber-500/10 px-4 py-2.5">
<div className="flex min-w-0 flex-1 items-center gap-2">
<LockClosedIcon className="h-3.5 w-3.5 flex-shrink-0 text-amber-400" />
- <p className="truncate text-xs text-foreground">
- <span className="text-foreground">{label}</span> needs 2FA
+ <p className="truncate text-xs text-slate-200">
+ <span className="text-slate-100">{label}</span> needs 2FA
</p>
{timeRemaining !== null && (
<span
className={`ml-2 flex items-center gap-1 text-xs font-medium ${
- isTimeCritical ? "text-red-300" : "text-muted-foreground"
+ isTimeCritical ? "text-red-300" : "text-slate-400"
}`}
>
<ClockIcon className="h-3 w-3" />
diff --git a/skyvern-frontend/src/components/WebhookReplayDialog.tsx b/skyvern-frontend/src/components/WebhookReplayDialog.tsx
index 572fcff72..2c65737d3 100644
--- a/skyvern-frontend/src/components/WebhookReplayDialog.tsx
+++ b/skyvern-frontend/src/components/WebhookReplayDialog.tsx
@@ -269,7 +269,7 @@ export function WebhookReplayDialog({
</div>
{replayResult && (
- <div className="max-h-[320px] space-y-3 overflow-y-auto rounded-md border border-border p-4">
+ <div className="max-h-[320px] space-y-3 overflow-y-auto rounded-md border border-slate-200 p-4">
<div className="flex flex-wrap gap-4 text-sm">
<span>
<span className="font-medium">Status:</span>{" "}
@@ -288,7 +288,7 @@ export function WebhookReplayDialog({
</div>
)}
{replayResult.response_body && (
- <div className="space-y-2 rounded-md border border-border/80 p-2">
+ <div className="space-y-2 rounded-md border border-slate-200/80 p-2">
<Label>Response Body</Label>
<CodeEditor
language="json"
diff --git a/skyvern-frontend/src/components/WorkflowBlockInputSet.tsx b/skyvern-frontend/src/components/WorkflowBlockInputSet.tsx
index d751f50d9..5396cce17 100644
--- a/skyvern-frontend/src/components/WorkflowBlockInputSet.tsx
+++ b/skyvern-frontend/src/components/WorkflowBlockInputSet.tsx
@@ -66,9 +66,7 @@ function WorkflowBlockInputSet(props: Props) {
);
})
) : (
- <span className="flex items-center gap-2 text-muted-foreground">
- &nbsp;
- </span>
+ <span className="flex items-center gap-2 text-slate-400">&nbsp;</span>
)}
</div>
<div className="absolute right-0 top-0 flex size-9 cursor-pointer items-center justify-center">
diff --git a/skyvern-frontend/src/components/ZoomableImage.tsx b/skyvern-frontend/src/components/ZoomableImage.tsx
index 6b28d2886..d205d757f 100644
--- a/skyvern-frontend/src/components/ZoomableImage.tsx
+++ b/skyvern-frontend/src/components/ZoomableImage.tsx
@@ -38,7 +38,7 @@ function ZoomableImage(props: HTMLImageElementProps) {
{modalOpen && (
<div
className={clsx(
- "fixed inset-0 z-50 flex justify-center overflow-auto bg-black/75 p-16",
+ "fixed inset-0 z-50 flex justify-center overflow-auto bg-black bg-opacity-75 p-16",
{
"items-center": !zoom,
"items-baseline": zoom,
diff --git a/skyvern-frontend/src/components/ui/badge-variants.ts b/skyvern-frontend/src/components/ui/badge-variants.ts
index 3a1b48899..79bbaeb46 100644
--- a/skyvern-frontend/src/components/ui/badge-variants.ts
+++ b/skyvern-frontend/src/components/ui/badge-variants.ts
@@ -10,11 +10,11 @@ const badgeVariants = cva(
secondary:
"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
success:
- "border-transparent bg-green-900 text-green-50 hover:bg-green-900/80",
+ "border-transparent bg-success/40 text-success-foreground shadow hover:bg-success/30",
warning:
- "border-transparent bg-yellow-900 text-yellow-50 hover:bg-yellow-900/80",
+ "border-transparent bg-warning/40 text-warning-foreground shadow hover:bg-warning/30",
destructive:
- "border-transparent bg-red-900 text-red-50 hover:bg-red-900/80",
+ "border-transparent bg-destructive/40 text-destructive-foreground shadow hover:bg-destructive/30",
outline: "text-foreground",
},
},
diff --git a/skyvern-frontend/src/components/ui/button-variants.test.ts b/skyvern-frontend/src/components/ui/button-variants.test.ts
deleted file mode 100644
index cd2e80cef..000000000
--- a/skyvern-frontend/src/components/ui/button-variants.test.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { describe, expect, it } from "vitest";
-import { buttonVariants } from "./button-variants";
-
-describe("buttonVariants v2 tokenization", () => {
- it("destructive uses --destructive token, not bg-red-900 literal", () => {
- const result = buttonVariants({ variant: "destructive" });
- expect(result).toContain("bg-destructive");
- expect(result).not.toMatch(/bg-red-\d/);
- });
-
- it("tertiary border is tokenized, not border-slate-NNN", () => {
- const result = buttonVariants({ variant: "tertiary" });
- expect(result).not.toMatch(/border-slate-\d/);
- });
-
- it("default still uses bg-primary text-primary-foreground", () => {
- const result = buttonVariants({ variant: "default" });
- expect(result).toContain("bg-primary");
- expect(result).toContain("text-primary-foreground");
- });
-});
-
-describe("buttonVariants brand variant", () => {
- it("brand variant uses brand-cta tokens and shadow", () => {
- const result = buttonVariants({ variant: "brand" });
- expect(result).toContain("bg-brand-cta");
- expect(result).toContain("text-brand-cta-foreground");
- expect(result).toContain("shadow-sm");
- });
-});
diff --git a/skyvern-frontend/src/components/ui/button-variants.ts b/skyvern-frontend/src/components/ui/button-variants.ts
index 0a4a908e0..55fbe60b0 100644
--- a/skyvern-frontend/src/components/ui/button-variants.ts
+++ b/skyvern-frontend/src/components/ui/button-variants.ts
@@ -7,10 +7,8 @@ const buttonVariants = cva(
variant: {
default:
"bg-primary text-primary-foreground shadow hover:bg-primary/90 font-bold",
- brand:
- "bg-brand-cta text-brand-cta-foreground shadow-sm hover:bg-brand-cta/90 font-semibold",
destructive:
- "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
+ "bg-red-900 text-destructive-foreground shadow-sm hover:bg-destructive/90",
disabled:
"hover:bg-accent hover:text-accent-foreground opacity-50 pointer-events-none",
outline:
@@ -18,7 +16,7 @@ const buttonVariants = cva(
secondary:
"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
tertiary:
- "bg-tertiary/20 text-foreground border border-input hover:bg-tertiary/10 rounded-lg",
+ "bg-tertiary/20 text-tertiary-foreground border border-slate-500 hover:bg-tertiary/10 rounded-lg",
ghost: "hover:bg-accent hover:text-accent-foreground",
link: "text-primary underline-offset-4 hover:underline",
},
diff --git a/skyvern-frontend/src/components/ui/card-variants.test.ts b/skyvern-frontend/src/components/ui/card-variants.test.ts
index 6df8f19bf..ecfe047cf 100644
--- a/skyvern-frontend/src/components/ui/card-variants.test.ts
+++ b/skyvern-frontend/src/components/ui/card-variants.test.ts
@@ -8,7 +8,7 @@ describe("cardVariants", () => {
expect(result).toContain("border");
expect(result).toContain("bg-card");
expect(result).toContain("text-card-foreground");
- expect(result).toContain("shadow-card");
+ expect(result).toContain("shadow");
});
it("defaults to tone=default when no tone is passed", () => {
@@ -39,7 +39,7 @@ describe("cardVariants", () => {
] as const) {
const result = cardVariants({ tone });
expect(result).toContain("rounded-xl");
- expect(result).toContain("shadow-card");
+ expect(result).toContain("shadow");
expect(result).toContain("bg-card");
}
});
diff --git a/skyvern-frontend/src/components/ui/card-variants.ts b/skyvern-frontend/src/components/ui/card-variants.ts
index 01763b4be..4bdf8404e 100644
--- a/skyvern-frontend/src/components/ui/card-variants.ts
+++ b/skyvern-frontend/src/components/ui/card-variants.ts
@@ -2,7 +2,7 @@ import { cva } from "class-variance-authority";
/** Default tone preserves pre-cva Card output. Non-default tones swap only the border color (border-tint, no background wash). */
const cardVariants = cva(
- "rounded-xl border bg-card text-card-foreground shadow-card",
+ "rounded-xl border bg-card text-card-foreground shadow",
{
variants: {
tone: {
diff --git a/skyvern-frontend/src/components/ui/css-vars.test.ts b/skyvern-frontend/src/components/ui/css-vars.test.ts
index a37b5c22f..08a57ec6d 100644
--- a/skyvern-frontend/src/components/ui/css-vars.test.ts
+++ b/skyvern-frontend/src/components/ui/css-vars.test.ts
@@ -99,34 +99,6 @@ describe.each(CSS_FILES)("%s defines DS token vars", (file) => {
it("defines --warning under .dark", () => {
expect(dark).toMatch(/--warning:\s*[^;]+;/);
});
-
- it("defines --brand under :root", () => {
- expect(root).toMatch(/--brand:\s*[^;]+;/);
- });
-
- it("defines --brand-foreground under :root", () => {
- expect(root).toMatch(/--brand-foreground:\s*[^;]+;/);
- });
-
- it("defines --brand-soft under :root", () => {
- expect(root).toMatch(/--brand-soft:\s*[^;]+;/);
- });
-
- it("defines --brand under .dark", () => {
- expect(dark).toMatch(/--brand:\s*[^;]+;/);
- });
-
- it("defines --shadow-card under :root", () => {
- expect(root).toMatch(/--shadow-card:\s*[^;]+;/);
- });
-
- it("defines --xy-controls-button-background-color under :root", () => {
- expect(root).toMatch(/--xy-controls-button-background-color:\s*[^;]+;/);
- });
-
- it("defines --xy-controls-button-background-color under .dark", () => {
- expect(dark).toMatch(/--xy-controls-button-background-color:\s*[^;]+;/);
- });
});
describe("--ring is consistent across cloud/eval/src", () => {
@@ -146,24 +118,3 @@ describe("--ring is consistent across cloud/eval/src", () => {
expect(new Set(values).size).toBe(1);
});
});
-
-describe("light-mode neutral hierarchy", () => {
- // Skyvern Figma DS intentionally collapses --secondary, --muted, and --accent
- // to a single neutral surface in dark mode (#1e293b) and the corresponding
- // light gray in light mode. Don't enforce 3-way distinct.
- function tokenValue(css: string, selector: string, name: string): string {
- const block = blockBetween(css, selector);
- const m = block.match(new RegExp(`--${name}:\\s*([^;]+);`));
- return (m?.[1] ?? "").trim();
- }
-
- it.each(CSS_FILES)(
- "--secondary, --muted, --accent are defined in :root of %s",
- (file) => {
- const css = load(file);
- expect(tokenValue(css, ":root", "secondary")).toBeTruthy();
- expect(tokenValue(css, ":root", "muted")).toBeTruthy();
- expect(tokenValue(css, ":root", "accent")).toBeTruthy();
- },
- );
-});
diff --git a/skyvern-frontend/src/components/ui/dialog.tsx b/skyvern-frontend/src/components/ui/dialog.tsx
index d65fa3a40..db16e295b 100644
--- a/skyvern-frontend/src/components/ui/dialog.tsx
+++ b/skyvern-frontend/src/components/ui/dialog.tsx
@@ -19,7 +19,7 @@ const DialogOverlay = React.forwardRef<
<DialogPrimitive.Overlay
ref={ref}
className={cn(
- "fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
className,
)}
{...props}
diff --git a/skyvern-frontend/src/components/ui/drawer.tsx b/skyvern-frontend/src/components/ui/drawer.tsx
index fb3c74960..c8c445c98 100644
--- a/skyvern-frontend/src/components/ui/drawer.tsx
+++ b/skyvern-frontend/src/components/ui/drawer.tsx
@@ -26,7 +26,7 @@ const DrawerOverlay = React.forwardRef<
>(({ className, ...props }, ref) => (
<DrawerPrimitive.Overlay
ref={ref}
- className={cn("fixed inset-0 z-50 bg-black/40", className)}
+ className={cn("fixed inset-0 z-50 bg-black/80", className)}
{...props}
/>
));
diff --git a/skyvern-frontend/src/components/ui/tailwind-extensions.test.ts b/skyvern-frontend/src/components/ui/tailwind-extensions.test.ts
deleted file mode 100644
index d4c1b5beb..000000000
--- a/skyvern-frontend/src/components/ui/tailwind-extensions.test.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { describe, expect, it } from "vitest";
-// @ts-expect-error tailwind.config.js has no type declarations
-import config from "../../../tailwind.config.js";
-
-type TailwindConfigLike = {
- theme?: { extend?: { colors?: unknown; boxShadow?: unknown } };
-};
-
-describe("tailwind v2 brand + shadow extensions", () => {
- const cfg = config as TailwindConfigLike;
- const colors = (cfg.theme?.extend?.colors ?? {}) as Record<string, unknown>;
- const boxShadow = (cfg.theme?.extend?.boxShadow ?? {}) as Record<
- string,
- string
- >;
-
- it("registers brand color with DEFAULT/foreground/soft", () => {
- expect(colors.brand).toBeDefined();
- const brand = colors.brand as Record<string, string>;
- expect(brand.DEFAULT).toBe("hsl(var(--brand))");
- expect(brand.foreground).toBe("hsl(var(--brand-foreground))");
- expect(brand.soft).toBe("hsl(var(--brand-soft))");
- });
-
- it("registers shadow.sm from --shadow-sm", () => {
- expect(boxShadow.sm).toBe("var(--shadow-sm)");
- });
-
- it("registers shadow.card from --shadow-card", () => {
- expect(boxShadow.card).toBe("var(--shadow-card)");
- });
-
- it("registers shadow.popover from --shadow-popover", () => {
- expect(boxShadow.popover).toBe("var(--shadow-popover)");
- });
-});
diff --git a/skyvern-frontend/src/index.css b/skyvern-frontend/src/index.css
index 87cb303fe..fd45c056d 100644
--- a/skyvern-frontend/src/index.css
+++ b/skyvern-frontend/src/index.css
@@ -4,68 +4,60 @@
@layer base {
:root {
- /* Light tokens — contrast-bumped to match dark-mode visual weight (OpenAI Platform / Linear references) */
- --background: 0 0% 96%;
- --foreground: 0 0% 9%;
+ --background: 0 0% 100%;
+ --foreground: 222.2 84% 4.9%;
--card: 0 0% 100%;
- --card-foreground: 0 0% 9%;
+ --card-foreground: 222.2 84% 4.9%;
--popover: 0 0% 100%;
- --popover-foreground: 0 0% 9%;
+ --popover-foreground: 222.2 84% 4.9%;
- --primary: 0 0% 9%;
- --primary-foreground: 0 0% 100%;
+ --primary: 222.2 47.4% 11.2%;
+ --primary-foreground: 210 40% 98%;
- --secondary: 0 0% 94%;
- --secondary-foreground: 0 0% 9%;
+ --secondary: 210 40% 96.1%;
+ --secondary-foreground: 222.2 47.4% 11.2%;
- --tertiary: 220 9% 36%;
- --tertiary-foreground: 0 0% 100%;
+ --tertiary: 227.6 11.6% 48.8%;
+ --tertiary-foreground: 213 27% 84%;
- --muted: 0 0% 94%;
- --muted-foreground: 0 0% 32%;
+ --muted: 210 40% 96.1%;
+ --muted-foreground: 215.4 16.3% 46.9%;
- --accent: 0 0% 92%;
- --accent-foreground: 0 0% 9%;
+ --accent: 210 40% 96.1%;
+ --accent-foreground: 222.2 47.4% 11.2%;
- --destructive: 0 72% 45%;
- --destructive-foreground: 0 86% 97%;
+ --destructive: 0 84.2% 60.2%;
+ --destructive-foreground: 210 40% 98%;
--error-bg-light: rgba(220, 38, 38, 0.1);
- --warning: 41 96% 40%;
- --warning-foreground: 55 92% 95%;
+ --warning: 32.1 94.6% 43.7%; /* amber-600 */
+ --warning-foreground: 36 100% 97.1%; /* amber-50 */
- --success: 142 71% 36%;
- --success-foreground: 138 76% 97%;
+ --success: 142.1 76.2% 36.3%; /* green-600 */
+ --success-foreground: 138.5 76.5% 96.7%; /* green-50 */
- --border: 0 0% 84%;
- --input: 0 0% 84%;
- --ring: 199 89% 48%;
+ --border: 214.3 31.8% 91.4%;
+ --input: 214.3 31.8% 91.4%;
+ --ring: 222.2 84% 5%;
--radius: 0.5rem;
- --slate-elevation-1: 0 0% 97%;
- --slate-elevation-2: 0 0% 94%;
- --slate-elevation-3: 0 0% 91%;
- --slate-elevation-4: 0 0% 87%;
- --slate-elevation-5: 0 0% 83%;
-
- --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.1);
- --shadow-card:
- 0 1px 2px 0 rgba(15, 23, 42, 0.1), 0 1px 3px 0 rgba(15, 23, 42, 0.14);
- --shadow-card-hover: 0 6px 16px -4px rgba(15, 23, 42, 0.18);
- --shadow-elevated: 0 12px 28px -8px rgba(15, 23, 42, 0.2);
- --shadow-popover: 0 12px 28px -8px rgba(15, 23, 42, 0.22);
+ --tertiary: 227.6 11.6% 48.8%;
+ --tertiary-foreground: 213 27% 84%;
- --brand: 199 89% 48%;
- --brand-foreground: 0 0% 100%;
- --brand-soft: 199 89% 92%;
+ --warning: 32.1 94.6% 43.7%; /* amber-600 */
+ --warning-foreground: 36 100% 97.1%; /* amber-50 */
- --brand-cta: 199 89% 36%;
- --brand-cta-foreground: 0 0% 100%;
+ --success: 142.1 76.2% 36.3%; /* green-600 */
+ --success-foreground: 138.5 76.5% 96.7%; /* green-50 */
- --xy-controls-button-background-color: hsl(var(--slate-elevation-2));
+ --slate-elevation-1: 222 47% 96%;
+ --slate-elevation-2: 222 40% 93%;
+ --slate-elevation-3: 222 35% 90%;
+ --slate-elevation-4: 222 30% 87%;
+ --slate-elevation-5: 222 25% 84%;
}
.dark {
@@ -90,7 +82,7 @@
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
- --destructive: 0 72.2% 45%; /* red-700 (darkened from red-600 for AA on solid bg) */
+ --destructive: 0 72.2% 50.6%; /* red-600 */
--destructive-foreground: 0 85.7% 97.3%; /* red-50 */
--error-bg-light: rgba(220, 38, 38, 0.1);
@@ -109,22 +101,6 @@
--slate-elevation-3: 227 30% 14%;
--slate-elevation-4: 231 26% 18%;
--slate-elevation-5: 230 22% 22%;
-
- --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
- --shadow-card: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 1px 3px 0 rgba(0, 0, 0, 0.4);
- --shadow-popover: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
-
- --brand: 199 89% 48%;
- --brand-foreground: 0 0% 100%;
- --brand-soft: 199 89% 25%;
-
- --shadow-card-hover: 0 6px 20px -4px rgba(0, 0, 0, 0.5);
- --shadow-elevated: 0 12px 32px -8px rgba(0, 0, 0, 0.55);
-
- --brand-cta: 199 89% 36%;
- --brand-cta-foreground: 0 0% 100%;
-
- --xy-controls-button-background-color: hsl(var(--slate-elevation-3));
}
}
diff --git a/skyvern-frontend/src/routes/browserProfiles/BrowserProfileDetailPage.tsx b/skyvern-frontend/src/routes/browserProfiles/BrowserProfileDetailPage.tsx
index 8246954f9..aecfc11e4 100644
--- a/skyvern-frontend/src/routes/browserProfiles/BrowserProfileDetailPage.tsx
+++ b/skyvern-frontend/src/routes/browserProfiles/BrowserProfileDetailPage.tsx
@@ -43,7 +43,7 @@ function BrowserProfileDetailPage() {
)}
{!isLoading && (isError || !profile) && (
- <div className="rounded-md border bg-slate-elevation1 p-6 text-sm text-muted-foreground">
+ <div className="rounded-md border border-slate-700 bg-slate-elevation1 p-6 text-sm text-slate-300">
Browser profile not found.
</div>
)}
@@ -54,12 +54,10 @@ function BrowserProfileDetailPage() {
<div className="space-y-2">
<h1 className="text-2xl">{profile.name}</h1>
{profile.description && (
- <p className="text-sm text-muted-foreground">
- {profile.description}
- </p>
+ <p className="text-sm text-slate-300">{profile.description}</p>
)}
{profile.deleted_at && (
- <p className="text-sm text-warning">
+ <p className="text-sm text-amber-400">
Deleted {basicLocalTimeFormat(profile.deleted_at)}
</p>
)}
@@ -82,9 +80,9 @@ function BrowserProfileDetailPage() {
</div>
</div>
- <div className="rounded-lg border bg-slate-elevation1 p-6">
+ <div className="rounded-lg border border-slate-700 bg-slate-elevation1 p-6">
<dl className="grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-[180px_1fr]">
- <dt className="text-sm text-muted-foreground">ID</dt>
+ <dt className="text-sm text-slate-400">ID</dt>
<dd className="flex items-center font-mono text-sm">
<span className="break-all">{profile.browser_profile_id}</span>
<CopyText
@@ -93,14 +91,14 @@ function BrowserProfileDetailPage() {
/>
</dd>
- <dt className="text-sm text-muted-foreground">Source Browser</dt>
+ <dt className="text-sm text-slate-400">Source Browser</dt>
<dd className="text-sm">
{profile.source_browser_type ?? (
<span className="opacity-50">—</span>
)}
</dd>
- <dt className="text-sm text-muted-foreground">Created</dt>
+ <dt className="text-sm text-slate-400">Created</dt>
<dd
className="text-sm"
title={basicTimeFormat(profile.created_at)}
@@ -108,7 +106,7 @@ function BrowserProfileDetailPage() {
{basicLocalTimeFormat(profile.created_at)}
</dd>
- <dt className="text-sm text-muted-foreground">Last Modified</dt>
+ <dt className="text-sm text-slate-400">Last Modified</dt>
<dd
className="text-sm"
title={basicTimeFormat(profile.modified_at)}
diff --git a/skyvern-frontend/src/routes/browserProfiles/BrowserProfileItem.tsx b/skyvern-frontend/src/routes/browserProfiles/BrowserProfileItem.tsx
index 87c5f1ace..e724e9898 100644
--- a/skyvern-frontend/src/routes/browserProfiles/BrowserProfileItem.tsx
+++ b/skyvern-frontend/src/routes/browserProfiles/BrowserProfileItem.tsx
@@ -42,24 +42,24 @@ function BrowserProfileItem({ profile }: Props) {
return (
<TableRow
- className="cursor-pointer transition-colors hover:bg-muted/40"
+ className="cursor-pointer hover:bg-slate-elevation2"
onClick={handleRowClick}
>
<TableCell className="truncate">
<span title={profile.name}>{profile.name}</span>
</TableCell>
- <TableCell className="truncate text-muted-foreground">
+ <TableCell className="truncate text-slate-400">
{profile.description ? (
<span title={profile.description}>{profile.description}</span>
) : (
<span className="opacity-50">—</span>
)}
</TableCell>
- <TableCell className="truncate text-muted-foreground">
+ <TableCell className="truncate text-slate-400">
{profile.source_browser_type ?? <span className="opacity-50">—</span>}
</TableCell>
<TableCell
- className="text-muted-foreground"
+ className="text-slate-400"
title={basicTimeFormat(profile.created_at)}
>
{basicLocalTimeFormat(profile.created_at)}
diff --git a/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesList.tsx b/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesList.tsx
index f693a12bc..ed37bccc6 100644
--- a/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesList.tsx
+++ b/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesList.tsx
@@ -85,7 +85,7 @@ function BrowserProfilesList({ searchKey }: Props = {}) {
if (isError) {
return (
- <div className="rounded-md border bg-slate-elevation1 p-6 text-sm text-muted-foreground">
+ <div className="rounded-md border border-slate-700 bg-slate-elevation1 p-6 text-sm text-slate-300">
<div className="mb-3">Failed to load browser profiles.</div>
<Button
variant="secondary"
@@ -104,17 +104,17 @@ function BrowserProfilesList({ searchKey }: Props = {}) {
if (pageItems.length === 0 && page === 1) {
return (
- <div className="rounded-md border bg-slate-elevation1 p-10 text-sm text-muted-foreground">
+ <div className="rounded-md border border-slate-700 bg-slate-elevation1 p-10 text-sm text-slate-300">
{hasSearch ? (
<>No browser profiles match &ldquo;{searchKey}&rdquo;.</>
) : (
<div className="flex flex-col items-center gap-3 text-center">
- <BrowserIcon className="size-10 text-muted-foreground" />
+ <BrowserIcon className="size-10 text-slate-400" />
<div className="space-y-1">
- <p className="text-base font-medium text-foreground">
+ <p className="text-base font-medium text-slate-100">
No browser profiles yet
</p>
- <p className="mx-auto max-w-md text-sm text-muted-foreground">
+ <p className="mx-auto max-w-md text-sm text-slate-400">
Start a session, then click Save Profile on the session page to
capture it here.
</p>
@@ -129,15 +129,21 @@ function BrowserProfilesList({ searchKey }: Props = {}) {
<div className="space-y-4">
<div className="rounded-lg border">
<Table className="w-full table-fixed">
- <TableHeader className="rounded-t-lg bg-slate-elevation2 text-muted-foreground [&_tr]:border-b-0">
+ <TableHeader className="rounded-t-lg bg-slate-elevation2">
<TableRow>
- <TableHead className="w-1/4 truncate rounded-tl-lg">
+ <TableHead className="w-1/4 truncate rounded-tl-lg text-slate-400">
Name
</TableHead>
- <TableHead className="w-1/3 truncate">Description</TableHead>
- <TableHead className="w-1/6 truncate">Source Browser</TableHead>
- <TableHead className="w-1/6 truncate">Created</TableHead>
- <TableHead className="w-32 truncate rounded-tr-lg text-right">
+ <TableHead className="w-1/3 truncate text-slate-400">
+ Description
+ </TableHead>
+ <TableHead className="w-1/6 truncate text-slate-400">
+ Source Browser
+ </TableHead>
+ <TableHead className="w-1/6 truncate text-slate-400">
+ Created
+ </TableHead>
+ <TableHead className="w-32 truncate rounded-tr-lg text-right text-slate-400">
Actions
</TableHead>
</TableRow>
@@ -153,9 +159,9 @@ function BrowserProfilesList({ searchKey }: Props = {}) {
</Table>
<div className="relative px-3 py-3">
<div className="absolute left-3 top-1/2 flex -translate-y-1/2 items-center gap-2 text-sm">
- <span className="text-muted-foreground">Items per page</span>
+ <span className="text-slate-400">Items per page</span>
<select
- className="h-9 rounded-md border bg-background px-3"
+ className="h-9 rounded-md border border-slate-300 bg-background px-3"
value={itemsPerPage}
onChange={(e) => {
const next = Number(e.target.value);
diff --git a/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesPage.tsx b/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesPage.tsx
index 8c7d0f1c2..4446c2991 100644
--- a/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesPage.tsx
+++ b/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesPage.tsx
@@ -24,7 +24,7 @@ function BrowserProfilesPage() {
return (
<div className="space-y-5">
<h1 className="text-2xl">Browser Profiles</h1>
- <div className="w-96 text-sm text-muted-foreground">{subHeaderText}</div>
+ <div className="w-96 text-sm text-slate-300">{subHeaderText}</div>
<div className="flex items-center justify-between gap-4">
<TableSearchInput
value={search}
diff --git a/skyvern-frontend/src/routes/browserProfiles/CreateBrowserProfileButton.tsx b/skyvern-frontend/src/routes/browserProfiles/CreateBrowserProfileButton.tsx
index bbc7b95f2..740076d59 100644
--- a/skyvern-frontend/src/routes/browserProfiles/CreateBrowserProfileButton.tsx
+++ b/skyvern-frontend/src/routes/browserProfiles/CreateBrowserProfileButton.tsx
@@ -23,7 +23,6 @@ function CreateBrowserProfileButton({
return (
<Button
- variant="brand"
size={size}
disabled={disabled}
title={
diff --git a/skyvern-frontend/src/routes/browserProfiles/DeleteBrowserProfileButton.tsx b/skyvern-frontend/src/routes/browserProfiles/DeleteBrowserProfileButton.tsx
index 468dc020f..39c4a119d 100644
--- a/skyvern-frontend/src/routes/browserProfiles/DeleteBrowserProfileButton.tsx
+++ b/skyvern-frontend/src/routes/browserProfiles/DeleteBrowserProfileButton.tsx
@@ -50,10 +50,10 @@ function DeleteBrowserProfileButton({ profile, onDeleted }: Props) {
<DialogHeader>
<DialogTitle>Are you sure?</DialogTitle>
</DialogHeader>
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-slate-400">
The browser profile{" "}
- <span className="font-bold text-foreground">{profile.name}</span> will
- be deleted. Workflows referencing this profile will no longer find it.
+ <span className="font-bold text-primary">{profile.name}</span> will be
+ deleted. Workflows referencing this profile will no longer find it.
</div>
<DialogFooter>
<DialogClose asChild>
diff --git a/skyvern-frontend/src/routes/browserProfiles/SaveSessionAsBrowserProfileDialog.tsx b/skyvern-frontend/src/routes/browserProfiles/SaveSessionAsBrowserProfileDialog.tsx
index c17764c6c..95f7133df 100644
--- a/skyvern-frontend/src/routes/browserProfiles/SaveSessionAsBrowserProfileDialog.tsx
+++ b/skyvern-frontend/src/routes/browserProfiles/SaveSessionAsBrowserProfileDialog.tsx
@@ -72,17 +72,15 @@ function SaveSessionAsBrowserProfileDialog({
</DialogHeader>
<form onSubmit={handleSubmit}>
<div className="grid gap-4 pb-4">
- <div className="rounded-md border bg-slate-elevation2 px-3 py-2">
- <div className="text-xs text-muted-foreground">
- Source session
- </div>
- <div className="truncate font-mono text-xs text-foreground">
+ <div className="rounded-md border border-slate-700 bg-slate-elevation2 px-3 py-2">
+ <div className="text-xs text-slate-400">Source session</div>
+ <div className="truncate font-mono text-xs text-slate-200">
{browserSessionId}
</div>
</div>
<div className="grid gap-2">
<Label htmlFor="save-browser-profile-name">
- Name <span className="text-destructive">*</span>
+ Name <span className="text-red-400">*</span>
</Label>
<Input
id="save-browser-profile-name"
@@ -94,8 +92,7 @@ function SaveSessionAsBrowserProfileDialog({
</div>
<div className="grid gap-2">
<Label htmlFor="save-browser-profile-description">
- Description{" "}
- <span className="text-muted-foreground">(optional)</span>
+ Description <span className="text-slate-400">(optional)</span>
</Label>
<Textarea
id="save-browser-profile-description"
@@ -114,7 +111,7 @@ function SaveSessionAsBrowserProfileDialog({
>
Cancel
</Button>
- <Button type="submit" variant="brand" disabled={!canSubmit}>
+ <Button type="submit" disabled={!canSubmit}>
Save Profile
</Button>
</DialogFooter>
diff --git a/skyvern-frontend/src/routes/browserSessions/BrowserSession.tsx b/skyvern-frontend/src/routes/browserSessions/BrowserSession.tsx
index e11d0339c..33d55f2fa 100644
--- a/skyvern-frontend/src/routes/browserSessions/BrowserSession.tsx
+++ b/skyvern-frontend/src/routes/browserSessions/BrowserSession.tsx
@@ -132,7 +132,7 @@ function BrowserSession() {
? "bg-blue-500/20 text-blue-500"
: browserSession.status === "failed"
? "bg-red-500/20 text-red-500"
- : "bg-muted-foreground/20 text-muted-foreground"
+ : "bg-gray-500/20 text-gray-500"
}`}
>
{browserSession.status}
@@ -175,7 +175,7 @@ function BrowserSession() {
{browserSessionId && browserSession?.status === "running" && (
<div className="ml-auto flex items-center gap-2">
<Button
- variant="brand"
+ variant="default"
onClick={() => setIsSaveProfileDialogOpen(true)}
>
<BrowserIcon className="mr-2 h-4 w-4" />
diff --git a/skyvern-frontend/src/routes/browserSessions/BrowserSessionDownloads.tsx b/skyvern-frontend/src/routes/browserSessions/BrowserSessionDownloads.tsx
index e4213f23b..82e1bee9d 100644
--- a/skyvern-frontend/src/routes/browserSessions/BrowserSessionDownloads.tsx
+++ b/skyvern-frontend/src/routes/browserSessions/BrowserSessionDownloads.tsx
@@ -94,10 +94,8 @@ function BrowserSessionDownloads() {
return (
<div className="flex h-full w-full items-center justify-center">
<div className="text-center">
- <div className="mb-2 text-lg text-muted-foreground">
- No downloaded files
- </div>
- <div className="text-sm text-muted-foreground">
+ <div className="mb-2 text-lg text-gray-500">No downloaded files</div>
+ <div className="text-sm text-gray-400">
Files downloaded during this browser session will appear here
</div>
</div>
@@ -109,7 +107,7 @@ function BrowserSessionDownloads() {
<div className="h-full w-full overflow-auto p-4">
<div className="mb-4">
<h2 className="text-xl font-semibold">Downloaded Files</h2>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-500">
Files downloaded during this browser session
</p>
</div>
@@ -132,7 +130,7 @@ function BrowserSessionDownloads() {
{filename}
</span>
{file.modified_at && (
- <div className="mt-0.5 text-xs text-muted-foreground">
+ <div className="mt-0.5 text-xs text-gray-500">
{new Date(file.modified_at).toLocaleString()}
</div>
)}
diff --git a/skyvern-frontend/src/routes/browserSessions/BrowserSessionVideo.tsx b/skyvern-frontend/src/routes/browserSessions/BrowserSessionVideo.tsx
index a325fc128..8b88e2f1d 100644
--- a/skyvern-frontend/src/routes/browserSessions/BrowserSessionVideo.tsx
+++ b/skyvern-frontend/src/routes/browserSessions/BrowserSessionVideo.tsx
@@ -62,10 +62,10 @@ function BrowserSessionVideo() {
return (
<div className="flex h-full w-full items-center justify-center">
<div className="text-center">
- <div className="mb-2 text-lg text-muted-foreground">
+ <div className="mb-2 text-lg text-gray-500">
No recordings available
</div>
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-gray-400">
{isSessionRunning
? "Recordings will be available after the session completes"
: "No recordings were created for this session"}
@@ -79,7 +79,7 @@ function BrowserSessionVideo() {
<div className="h-full w-full p-4">
<div className="mb-4">
<h2 className="text-xl font-semibold">Browser Session Videos</h2>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-gray-500">
Recorded videos from this browser session
</p>
</div>
@@ -94,7 +94,7 @@ function BrowserSessionVideo() {
<h3 className="font-medium">
{recording.filename || `Recording ${index + 1}`}
{recording.modified_at && (
- <span className="ml-2 text-sm text-muted-foreground">
+ <span className="ml-2 text-sm text-gray-500">
({new Date(recording.modified_at).toLocaleString()})
</span>
)}
@@ -111,7 +111,7 @@ function BrowserSessionVideo() {
>
Your browser does not support the video tag.
</video>
- <div className="mt-2 text-xs text-muted-foreground">
+ <div className="mt-2 text-xs text-gray-500">
<a
href={getRecordingUrl(recording.url)!}
target="_blank"
@@ -123,13 +123,13 @@ function BrowserSessionVideo() {
</div>
</div>
) : (
- <div className="text-muted-foreground">
+ <div className="text-gray-500">
Video URL not available - video may still be processing
</div>
)}
{recording.checksum && (
- <div className="mt-2 text-sm text-muted-foreground">
+ <div className="mt-2 text-sm text-gray-600">
Checksum: {recording.checksum}
</div>
)}
diff --git a/skyvern-frontend/src/routes/browserSessions/BrowserSessionWorkflowRuns.tsx b/skyvern-frontend/src/routes/browserSessions/BrowserSessionWorkflowRuns.tsx
index 43489a6c8..4e928ce9c 100644
--- a/skyvern-frontend/src/routes/browserSessions/BrowserSessionWorkflowRuns.tsx
+++ b/skyvern-frontend/src/routes/browserSessions/BrowserSessionWorkflowRuns.tsx
@@ -76,10 +76,8 @@ function BrowserSessionWorkflowRuns() {
return (
<div className="flex h-full w-full items-center justify-center">
<div className="text-center">
- <div className="mb-2 text-lg text-muted-foreground">
- No runs available
- </div>
- <div className="text-sm text-muted-foreground">
+ <div className="mb-2 text-lg text-gray-500">No runs available</div>
+ <div className="text-sm text-gray-400">
No workflow runs on this browser session
</div>
</div>
diff --git a/skyvern-frontend/src/routes/browserSessions/BrowserSessions.tsx b/skyvern-frontend/src/routes/browserSessions/BrowserSessions.tsx
index 126c9b2bf..f308d6a98 100644
--- a/skyvern-frontend/src/routes/browserSessions/BrowserSessions.tsx
+++ b/skyvern-frontend/src/routes/browserSessions/BrowserSessions.tsx
@@ -59,7 +59,7 @@ function sessionIsOpen(browserSession: BrowserSession): boolean {
}
const No = () => (
- <Badge className="flex h-7 w-12 justify-center bg-red-900 text-red-50 hover:bg-red-900/80">
+ <Badge className="flex h-7 w-12 justify-center bg-gray-800 text-orange-50 hover:bg-gray-900">
No
</Badge>
);
@@ -185,7 +185,7 @@ function BrowserSessions() {
<GlobeIcon className="size-6" />
<h1 className="text-2xl">Browsers</h1>
</div>
- <p className="text-muted-foreground">
+ <p className="text-slate-300">
Create your own live browsers to interact with websites, or run
workflows in.
</p>
@@ -196,7 +196,6 @@ function BrowserSessions() {
<div className="flex justify-end">
<div className="flex gap-4">
<Button
- variant="brand"
disabled={createBrowserSessionMutation.isPending}
onClick={() => {
setIsDrawerOpen(true);
@@ -215,26 +214,26 @@ function BrowserSessions() {
<Table className="w-full table-fixed">
<TableHeader className="rounded-t-lg bg-slate-elevation2">
<TableRow>
- <TableHead className="w-1/4 truncate rounded-tl-lg text-muted-foreground">
+ <TableHead className="w-1/4 truncate rounded-tl-lg text-slate-400">
ID
</TableHead>
- <TableHead className="w-1/12 truncate text-muted-foreground">
+ <TableHead className="w-1/12 truncate text-slate-400">
Open
</TableHead>
- <TableHead className="w-1/6 truncate text-muted-foreground">
+ <TableHead className="w-1/6 truncate text-slate-400">
<span className="mr-2">Occupied</span>
<HelpTooltip
className="inline"
content="Browser is busy running a task or workflow"
/>
</TableHead>
- <TableHead className="w-1/6 truncate text-muted-foreground">
+ <TableHead className="w-1/6 truncate text-slate-400">
Started
</TableHead>
- <TableHead className="w-1/6 truncate text-muted-foreground">
+ <TableHead className="w-1/6 truncate text-slate-400">
Timeout
</TableHead>
- <TableHead className="w-1/2 truncate text-muted-foreground">
+ <TableHead className="w-1/2 truncate text-slate-400">
CDP Url
</TableHead>
</TableRow>
@@ -316,13 +315,11 @@ function BrowserSessions() {
)}
</TableBody>
</Table>
- <div className="flex flex-col items-center gap-3 px-3 py-3 sm:flex-row sm:justify-between">
- <div className="flex items-center gap-2 text-sm">
- <span className="whitespace-nowrap text-muted-foreground">
- Items per page
- </span>
+ <div className="relative px-3 py-3">
+ <div className="absolute left-3 top-1/2 flex -translate-y-1/2 items-center gap-2 text-sm">
+ <span className="text-slate-400">Items per page</span>
<select
- className="h-9 rounded-md border border-border bg-background"
+ className="h-9 rounded-md border border-slate-300 bg-background"
value={itemsPerPage}
onChange={(e) => {
const next = Number(e.target.value);
diff --git a/skyvern-frontend/src/routes/credentials/CredentialItem.tsx b/skyvern-frontend/src/routes/credentials/CredentialItem.tsx
index 18983c239..eba1972e1 100644
--- a/skyvern-frontend/src/routes/credentials/CredentialItem.tsx
+++ b/skyvern-frontend/src/routes/credentials/CredentialItem.tsx
@@ -63,10 +63,10 @@ function CredentialItem({ credential, onStartBackgroundTest }: Props) {
<div className="border-l pl-5">
<div className="flex gap-5">
<div className="shrink-0 space-y-2">
- <p className="text-sm text-muted-foreground">Username/Email</p>
- <p className="text-sm text-muted-foreground">Password</p>
+ <p className="text-sm text-slate-400">Username/Email</p>
+ <p className="text-sm text-slate-400">Password</p>
{credentialData.totp_type !== "none" && (
- <p className="text-sm text-muted-foreground">2FA Type</p>
+ <p className="text-sm text-slate-400">2FA Type</p>
)}
</div>
<div className="space-y-2">
@@ -86,8 +86,8 @@ function CredentialItem({ credential, onStartBackgroundTest }: Props) {
<div className="flex gap-5 border-l pl-5">
<div className="flex gap-5">
<div className="shrink-0 space-y-2">
- <p className="text-sm text-muted-foreground">Card Number</p>
- <p className="text-sm text-muted-foreground">Brand</p>
+ <p className="text-sm text-slate-400">Card Number</p>
+ <p className="text-sm text-slate-400">Brand</p>
</div>
</div>
<div className="flex gap-5">
@@ -104,9 +104,9 @@ function CredentialItem({ credential, onStartBackgroundTest }: Props) {
credentialDetails = (
<div className="flex gap-5 border-l pl-5">
<div className="shrink-0 space-y-2">
- <p className="text-sm text-muted-foreground">Secret Value</p>
+ <p className="text-sm text-slate-400">Secret Value</p>
{credentialData.secret_label ? (
- <p className="text-sm text-muted-foreground">Type</p>
+ <p className="text-sm text-slate-400">Type</p>
) : null}
</div>
<div className="space-y-2">
@@ -125,9 +125,7 @@ function CredentialItem({ credential, onStartBackgroundTest }: Props) {
<p className="w-full truncate" title={credential.name}>
{credential.name}
</p>
- <p className="text-sm text-muted-foreground">
- {credential.credential_id}
- </p>
+ <p className="text-sm text-slate-400">{credential.credential_id}</p>
{activeTest && (
<div className="flex items-center gap-1 text-xs">
<ReloadIcon className="size-3 animate-spin text-blue-400" />
diff --git a/skyvern-frontend/src/routes/credentials/CredentialsList.tsx b/skyvern-frontend/src/routes/credentials/CredentialsList.tsx
index 1837ed5df..45935bc53 100644
--- a/skyvern-frontend/src/routes/credentials/CredentialsList.tsx
+++ b/skyvern-frontend/src/routes/credentials/CredentialsList.tsx
@@ -65,7 +65,7 @@ function CredentialsList({ filter, onStartBackgroundTest }: Props = {}) {
if (filteredCredentials.length === 0 && page === 1) {
return (
- <div className="rounded-md border border-border bg-slate-elevation1 p-6 text-sm text-muted-foreground">
+ <div className="rounded-md border border-slate-700 bg-slate-elevation1 p-6 text-sm text-slate-300">
{filter ? EMPTY_MESSAGE[filter] : "No credentials stored yet."}
</div>
);
diff --git a/skyvern-frontend/src/routes/credentials/CredentialsModal.tsx b/skyvern-frontend/src/routes/credentials/CredentialsModal.tsx
index dff26fdfe..ce4bd2eda 100644
--- a/skyvern-frontend/src/routes/credentials/CredentialsModal.tsx
+++ b/skyvern-frontend/src/routes/credentials/CredentialsModal.tsx
@@ -1250,7 +1250,7 @@ function CredentialsModal({
setIsOpen(open);
}}
>
- <DialogContent className="w-[700px] max-w-[700px]">
+ <DialogContent className="max-h-[90vh] w-[700px] max-w-[700px] overflow-y-auto [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:border-2 [&::-webkit-scrollbar-thumb]:border-slate-100 [&::-webkit-scrollbar-thumb]:bg-slate-300 dark:[&::-webkit-scrollbar-thumb]:border-slate-800 dark:[&::-webkit-scrollbar-thumb]:bg-slate-600 [&::-webkit-scrollbar-track]:bg-slate-100 dark:[&::-webkit-scrollbar-track]:bg-slate-800 [&::-webkit-scrollbar]:w-2">
<DialogHeader>
<DialogTitle className="font-bold">
{isEditMode ? "Edit Credential" : "Add Credential"}
diff --git a/skyvern-frontend/src/routes/credentials/CredentialsPage.tsx b/skyvern-frontend/src/routes/credentials/CredentialsPage.tsx
index c665a2511..b165422c0 100644
--- a/skyvern-frontend/src/routes/credentials/CredentialsPage.tsx
+++ b/skyvern-frontend/src/routes/credentials/CredentialsPage.tsx
@@ -58,12 +58,10 @@ function CredentialsPage() {
<div className="space-y-5">
<h1 className="text-2xl">Credentials</h1>
<div className="flex items-center justify-between">
- <div className="w-96 text-sm text-muted-foreground">
- {subHeaderText}
- </div>
+ <div className="w-96 text-sm text-slate-300">{subHeaderText}</div>
<DropdownMenu modal={false}>
<DropdownMenuTrigger asChild>
- <Button variant="brand">
+ <Button>
<PlusIcon className="mr-2 size-6" /> Add
</Button>
</DropdownMenuTrigger>
@@ -142,8 +140,8 @@ function CredentialsPage() {
{/* Footer note - only for Passwords and Credit Cards tabs */}
{activeTab !== "twoFactor" && (
- <div className="mt-8 border-t border-border pt-4">
- <div className="text-sm italic text-muted-foreground">
+ <div className="mt-8 border-t border-slate-700 pt-4">
+ <div className="text-sm italic text-slate-400">
<strong>Note:</strong> This feature requires a Bitwarden-compatible
server ({" "}
<a
diff --git a/skyvern-frontend/src/routes/credentials/CredentialsTotpTab.tsx b/skyvern-frontend/src/routes/credentials/CredentialsTotpTab.tsx
index ea24d58da..6ba1cd8a2 100644
--- a/skyvern-frontend/src/routes/credentials/CredentialsTotpTab.tsx
+++ b/skyvern-frontend/src/routes/credentials/CredentialsTotpTab.tsx
@@ -69,9 +69,9 @@ function CredentialsTotpTab() {
return (
<div className="space-y-6">
- <div className="rounded-lg border border-border bg-slate-elevation1 p-6">
+ <div className="rounded-lg border border-slate-700 bg-slate-elevation1 p-6">
<h2 className="text-lg font-semibold">Push a 2FA Code</h2>
- <p className="mt-1 text-sm text-muted-foreground">
+ <p className="mt-1 text-sm text-slate-400">
Paste the verification message you received. Skyvern extracts the code
and attaches it to the relevant run.
</p>
@@ -160,7 +160,7 @@ function CredentialsTotpTab() {
)}
{!isFeatureUnavailable && (
- <div className="rounded-lg border border-border bg-slate-elevation1">
+ <div className="rounded-lg border border-slate-700 bg-slate-elevation1">
<Table>
<TableHeader>
<TableRow>
@@ -189,7 +189,7 @@ function CredentialsTotpTab() {
<TableRow>
<TableCell
colSpan={6}
- className="text-center text-sm text-muted-foreground"
+ className="text-center text-sm text-slate-300"
>
No 2FA codes yet. Paste a verification message above or
configure automatic forwarding.
@@ -212,7 +212,7 @@ function CredentialsTotpTab() {
{code.otp_type ?? "unknown"}
</Badge>
{code.source ? (
- <span className="ml-2 text-xs text-muted-foreground">
+ <span className="ml-2 text-xs text-slate-400">
{code.source}
</span>
) : null}
diff --git a/skyvern-frontend/src/routes/credentials/CreditCardCredentialContent.tsx b/skyvern-frontend/src/routes/credentials/CreditCardCredentialContent.tsx
index 8e1390408..86289c91e 100644
--- a/skyvern-frontend/src/routes/credentials/CreditCardCredentialContent.tsx
+++ b/skyvern-frontend/src/routes/credentials/CreditCardCredentialContent.tsx
@@ -70,7 +70,7 @@ function CreditCardCredentialContent({
<div className="flex">
<div className="w-72 shrink-0 space-y-1">
<div>Name</div>
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-slate-400">
The name of the credential
</div>
</div>
diff --git a/skyvern-frontend/src/routes/credentials/DeleteCredentialButton.tsx b/skyvern-frontend/src/routes/credentials/DeleteCredentialButton.tsx
index ceb030198..1bbc9aa04 100644
--- a/skyvern-frontend/src/routes/credentials/DeleteCredentialButton.tsx
+++ b/skyvern-frontend/src/routes/credentials/DeleteCredentialButton.tsx
@@ -71,7 +71,7 @@ function DeleteCredentialButton({ credential }: Props) {
<DialogHeader>
<DialogTitle>Are you sure?</DialogTitle>
</DialogHeader>
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-slate-400">
The credential{" "}
<span className="font-bold text-primary">{credential.name}</span> will
be PERMANENTLY deleted. The Skyvern team has no way to restore a
diff --git a/skyvern-frontend/src/routes/credentials/PasswordCredentialContent.tsx b/skyvern-frontend/src/routes/credentials/PasswordCredentialContent.tsx
index 889e23a2c..8a6de2789 100644
--- a/skyvern-frontend/src/routes/credentials/PasswordCredentialContent.tsx
+++ b/skyvern-frontend/src/routes/credentials/PasswordCredentialContent.tsx
@@ -295,7 +295,7 @@ function PasswordCredentialContent({
</AccordionTrigger>
<AccordionContent>
<div className="space-y-4">
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-slate-400">
Set up Skyvern to automatically retrieve two-factor
authentication codes.
</p>
@@ -365,11 +365,11 @@ function PasswordCredentialContent({
)}
</div>
</div>
- <p className="mt-1 text-sm text-muted-foreground">
+ <p className="mt-1 text-sm text-slate-400">
{totpIdentifierHelper}
</p>
</div>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-slate-400">
<Link
to="https://www.skyvern.com/contact"
target="_blank"
@@ -425,7 +425,7 @@ function PasswordCredentialContent({
/>
)}
</div>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-slate-400">
You need to find the authenticator secret from the website
where you are using the credential. Here are some guides
from popular authenticator apps:{" "}
diff --git a/skyvern-frontend/src/routes/credentials/SecretCredentialContent.tsx b/skyvern-frontend/src/routes/credentials/SecretCredentialContent.tsx
index d7dcca776..93e5bca1a 100644
--- a/skyvern-frontend/src/routes/credentials/SecretCredentialContent.tsx
+++ b/skyvern-frontend/src/routes/credentials/SecretCredentialContent.tsx
@@ -43,7 +43,7 @@ function SecretCredentialContent({
<div className="flex">
<div className="w-72 shrink-0 space-y-1">
<Label>Name</Label>
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-slate-400">
The name of the credential
</div>
</div>
@@ -132,7 +132,7 @@ function SecretCredentialContent({
</div>
</div>
)}
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-slate-400">
{
"Use in HTTP Request blocks with: {{ credential_name.secret_value }}"
}
diff --git a/skyvern-frontend/src/routes/discover/WorkflowTemplateCard.tsx b/skyvern-frontend/src/routes/discover/WorkflowTemplateCard.tsx
index cf6e54f8a..f49dda25a 100644
--- a/skyvern-frontend/src/routes/discover/WorkflowTemplateCard.tsx
+++ b/skyvern-frontend/src/routes/discover/WorkflowTemplateCard.tsx
@@ -1,34 +1,25 @@
-import { LightningBoltIcon } from "@radix-ui/react-icons";
-import { cn } from "@/util/utils";
-
type Props = {
title: string;
+ image: string;
onClick: () => void;
};
-function WorkflowTemplateCard({ title, onClick }: Props) {
+function WorkflowTemplateCard({ title, image, onClick }: Props) {
return (
- <button
- onClick={onClick}
- className={cn(
- "group flex h-52 w-full cursor-pointer flex-col overflow-hidden rounded-xl border border-border bg-card text-left shadow-card transition-shadow hover:shadow-card-hover",
- )}
- >
- <div className="relative flex h-28 items-center justify-center bg-gradient-to-br from-brand-soft to-slate-elevation2">
- <div className="flex size-12 items-center justify-center rounded-full bg-brand-cta text-brand-cta-foreground shadow-sm">
- <LightningBoltIcon className="size-6" />
- </div>
+ <div className="h-52 w-full cursor-pointer rounded-xl" onClick={onClick}>
+ <div className="h-28 rounded-t-xl bg-slate-elevation1 px-6 pt-6">
+ <img src={image} alt={title} className="h-full w-full object-contain" />
</div>
- <div className="flex h-24 flex-col gap-1 p-3">
+ <div className="h-24 space-y-1 rounded-b-xl bg-slate-elevation2 p-3">
<h1
- className="line-clamp-2 overflow-hidden text-ellipsis text-sm font-medium text-foreground"
+ className="line-clamp-2 overflow-hidden text-ellipsis"
title={title}
>
{title}
</h1>
- <p className="text-xs text-muted-foreground">Template</p>
+ <p className="text-sm text-slate-400">Template</p>
</div>
- </button>
+ </div>
);
}
diff --git a/skyvern-frontend/src/routes/discover/WorkflowTemplates.tsx b/skyvern-frontend/src/routes/discover/WorkflowTemplates.tsx
index 18da36331..2b690024c 100644
--- a/skyvern-frontend/src/routes/discover/WorkflowTemplates.tsx
+++ b/skyvern-frontend/src/routes/discover/WorkflowTemplates.tsx
@@ -1,9 +1,9 @@
-import { LightningBoltIcon } from "@radix-ui/react-icons";
-
import { Skeleton } from "@/components/ui/skeleton";
import { useGlobalWorkflowsQuery } from "../workflows/hooks/useGlobalWorkflowsQuery";
import { useNavigate } from "react-router-dom";
import { WorkflowTemplateCard } from "./WorkflowTemplateCard";
+import testImg from "@/assets/promptBoxBg.png";
+import { TEMPORARY_TEMPLATE_IMAGES } from "./TemporaryTemplateImages";
import {
Carousel,
CarouselContent,
@@ -12,55 +12,27 @@ import {
CarouselPrevious,
} from "@/components/ui/carousel";
-const VISIBLE_SLOTS = 5;
-
function WorkflowTemplates() {
const { data: workflowTemplates, isLoading } = useGlobalWorkflowsQuery();
const navigate = useNavigate();
if (isLoading) {
return (
- <div className="space-y-5">
- <h1 className="flex items-center gap-2 text-2xl">
- <LightningBoltIcon className="size-6" />
- Explore Workflows
- </h1>
- <div className="flex gap-6">
- <Skeleton className="h-52 w-56 rounded-xl" />
- <Skeleton className="h-52 w-56 rounded-xl" />
- <Skeleton className="h-52 w-56 rounded-xl" />
- </div>
+ <div className="flex gap-6">
+ <Skeleton className="h-48 w-56 rounded-xl" />
+ <Skeleton className="h-48 w-56 rounded-xl" />
+ <Skeleton className="h-48 w-56 rounded-xl" />
</div>
);
}
- if (!workflowTemplates || workflowTemplates.length === 0) {
- return (
- <div className="space-y-5">
- <h1 className="flex items-center gap-2 text-2xl">
- <LightningBoltIcon className="size-6" />
- Explore Workflows
- </h1>
- <div className="flex flex-col items-center gap-3 rounded-xl border border-dashed border-border bg-muted/40 py-12">
- <LightningBoltIcon className="size-8 text-muted-foreground" />
- <div className="text-base font-medium">No templates yet</div>
- <p className="max-w-sm text-center text-sm text-muted-foreground">
- Workflow templates will appear here once published. In the meantime,
- describe a task above to generate a workflow from scratch.
- </p>
- </div>
- </div>
- );
+ if (!workflowTemplates) {
+ return null;
}
- const showArrows = workflowTemplates.length > VISIBLE_SLOTS;
-
return (
<div className="space-y-5">
- <h1 className="flex items-center gap-2 text-2xl">
- <LightningBoltIcon className="size-6" />
- Explore Workflows
- </h1>
+ <h1 className="text-xl">Explore Workflows</h1>
<Carousel
opts={{
align: "start",
@@ -76,6 +48,10 @@ function WorkflowTemplates() {
>
<WorkflowTemplateCard
title={workflow.title}
+ image={
+ TEMPORARY_TEMPLATE_IMAGES[workflow.workflow_permanent_id] ??
+ testImg
+ }
onClick={() => {
navigate(
`/workflows/${workflow.workflow_permanent_id}/build`,
@@ -85,12 +61,8 @@ function WorkflowTemplates() {
</CarouselItem>
))}
</CarouselContent>
- {showArrows && (
- <>
- <CarouselPrevious className="-left-4" />
- <CarouselNext className="-right-4" />
- </>
- )}
+ <CarouselPrevious className="-left-4" />
+ <CarouselNext className="-right-4" />
</Carousel>
</div>
);
diff --git a/skyvern-frontend/src/routes/history/RunHistory.tsx b/skyvern-frontend/src/routes/history/RunHistory.tsx
index 17865dc1c..f582e6514 100644
--- a/skyvern-frontend/src/routes/history/RunHistory.tsx
+++ b/skyvern-frontend/src/routes/history/RunHistory.tsx
@@ -1,5 +1,4 @@
import {
- CounterClockwiseClockIcon,
ExclamationTriangleIcon,
LightningBoltIcon,
MixerHorizontalIcon,
@@ -237,17 +236,12 @@ function RunHistory() {
));
}
+ // No runs found
if (runs?.length === 0) {
return (
<TableRow>
<TableCell colSpan={6}>
- <div className="flex flex-col items-center gap-3 py-12">
- <CounterClockwiseClockIcon className="size-8 text-muted-foreground" />
- <div className="text-base font-medium">No runs yet</div>
- <p className="text-sm text-muted-foreground">
- Workflow and task runs will appear here once they execute.
- </p>
- </div>
+ <div className="text-center">No runs found</div>
</TableCell>
</TableRow>
);
@@ -269,17 +263,17 @@ function RunHistory() {
{triggerType && <TriggerTypeBadge triggerType={triggerType} />}
{run.script_run && (
<Tip content="Ran with code">
- <LightningBoltIcon className="text-warning" />
+ <LightningBoltIcon className="text-[gold]" />
</Tip>
)}
{run.workflow_deleted && (
<Tip content="Source workflow deleted">
- <ExclamationTriangleIcon className="text-warning" />
+ <ExclamationTriangleIcon className="text-amber-400" />
</Tip>
)}
<span
className={cn(
- run.workflow_deleted && "text-muted-foreground",
+ run.workflow_deleted && "text-slate-400",
"truncate",
)}
>
@@ -293,7 +287,7 @@ function RunHistory() {
return (
<React.Fragment key={run.task_run_id}>
<TableRow
- className="cursor-pointer transition-colors hover:bg-muted/40"
+ className="cursor-pointer"
onClick={(event) => {
handleNavigate(event, navPath);
}}
@@ -311,9 +305,7 @@ function RunHistory() {
{isKnownStatus(run.status) ? (
<StatusBadge status={run.status} />
) : (
- <span className="text-sm text-muted-foreground">
- {run.status}
- </span>
+ <span className="text-sm text-slate-400">{run.status}</span>
)}
</TableCell>
<TableCell
@@ -322,7 +314,7 @@ function RunHistory() {
>
{basicLocalTimeFormat(run.created_at)}
</TableCell>
- <TableCell className="text-muted-foreground">
+ <TableCell className="text-slate-400">
{executionTime ?? "-"}
</TableCell>
<TableCell>
@@ -338,7 +330,7 @@ function RunHistory() {
event.stopPropagation();
toggleParametersExpanded(run.run_id);
}}
- className={cn(isExpanded && "text-brand")}
+ className={cn(isExpanded && "text-blue-400")}
>
<MixerHorizontalIcon className="h-4 w-4" />
</Button>
@@ -355,7 +347,10 @@ function RunHistory() {
{isExpanded && run.workflow_permanent_id && (
<TableRow key={`${run.run_id}-params`}>
- <TableCell colSpan={6} className="bg-muted/50">
+ <TableCell
+ colSpan={6}
+ className="bg-slate-50 dark:bg-slate-900/50"
+ >
<WorkflowRunParametersInline
workflowPermanentId={run.workflow_permanent_id}
workflowRunId={run.run_id}
@@ -379,15 +374,8 @@ function RunHistory() {
return (
<div className="space-y-4">
- <header className="space-y-3">
- <div className="flex items-center gap-2">
- <CounterClockwiseClockIcon className="size-6" />
- <h1 className="text-2xl">Run History</h1>
- </div>
- <p className="text-muted-foreground">
- Browse every workflow run, task run, and Skyvern 2.0 session in your
- organization.
- </p>
+ <header>
+ <h1 className="text-2xl">Run History</h1>
</header>
{workflowPermanentIdFilter ? (
<div
@@ -443,31 +431,23 @@ function RunHistory() {
<Table className="sm:table-fixed">
<TableHeader className="rounded-t-lg bg-slate-elevation2">
<TableRow>
- <TableHead className="w-[20%] rounded-tl-lg text-muted-foreground">
+ <TableHead className="w-[20%] rounded-tl-lg text-slate-400">
Run ID
</TableHead>
- <TableHead className="w-[20%] text-muted-foreground">
- Detail
- </TableHead>
- <TableHead className="w-[16%] text-muted-foreground">
- Status
- </TableHead>
- <TableHead className="w-[27%] text-muted-foreground">
+ <TableHead className="w-[20%] text-slate-400">Detail</TableHead>
+ <TableHead className="w-[16%] text-slate-400">Status</TableHead>
+ <TableHead className="w-[27%] text-slate-400">
Created At
</TableHead>
- <TableHead className="w-[8%] text-muted-foreground">
- Duration
- </TableHead>
- <TableHead className="w-[8%] rounded-tr-lg text-muted-foreground"></TableHead>
+ <TableHead className="w-[8%] text-slate-400">Duration</TableHead>
+ <TableHead className="w-[8%] rounded-tr-lg text-slate-400"></TableHead>
</TableRow>
</TableHeader>
<TableBody>{displayTableBody()}</TableBody>
</Table>
- <div className="flex flex-col items-center gap-3 px-3 py-3 sm:flex-row sm:justify-between">
- <div className="flex items-center gap-2 text-sm">
- <span className="whitespace-nowrap text-muted-foreground">
- Items per page
- </span>
+ <div className="relative px-3 py-3">
+ <div className="absolute left-3 top-1/2 flex -translate-y-1/2 items-center gap-2 text-sm">
+ <span className="text-slate-400">Items per page</span>
<Select
value={String(itemsPerPage)}
onValueChange={(size) => {
@@ -577,7 +557,7 @@ function WorkflowRunParametersInline({
if (!hasParameters && !hasExtraHeaders) {
return (
- <div className="ml-8 py-4 text-sm text-muted-foreground">
+ <div className="ml-8 py-4 text-sm text-slate-400">
No parameters for this run
</div>
);
diff --git a/skyvern-frontend/src/routes/integrations/IntegrationsUnavailable.tsx b/skyvern-frontend/src/routes/integrations/IntegrationsUnavailable.tsx
index b4778148c..91576f50e 100644
--- a/skyvern-frontend/src/routes/integrations/IntegrationsUnavailable.tsx
+++ b/skyvern-frontend/src/routes/integrations/IntegrationsUnavailable.tsx
@@ -16,14 +16,14 @@ function IntegrationsUnavailable() {
Third-party integrations are available in Skyvern Cloud.
</CardDescription>
</CardHeader>
- <CardContent className="text-sm text-muted-foreground">
+ <CardContent className="text-sm text-slate-400">
<p>
Connect your Google account and other providers by signing up at{" "}
<a
href="https://app.skyvern.com"
target="_blank"
rel="noopener noreferrer"
- className="text-foreground underline hover:text-foreground"
+ className="text-slate-200 underline hover:text-slate-100"
>
app.skyvern.com
</a>
diff --git a/skyvern-frontend/src/routes/schedules/CreateOrgScheduleDialog.tsx b/skyvern-frontend/src/routes/schedules/CreateOrgScheduleDialog.tsx
index cc8ac38d7..5cd2ef1f4 100644
--- a/skyvern-frontend/src/routes/schedules/CreateOrgScheduleDialog.tsx
+++ b/skyvern-frontend/src/routes/schedules/CreateOrgScheduleDialog.tsx
@@ -201,7 +201,7 @@ function CreateOrgScheduleDialog({ open, onOpenChange }: Readonly<Props>) {
<div className="space-y-2">
<Label>Workflow</Label>
{selectedWorkflow ? (
- <div className="flex items-center justify-between rounded-md border border-border bg-slate-elevation3 px-3 py-2">
+ <div className="flex items-center justify-between rounded-md border border-slate-700 bg-slate-elevation3 px-3 py-2">
<span className="text-sm">{selectedWorkflow.title}</span>
<Button
variant="ghost"
@@ -221,12 +221,12 @@ function CreateOrgScheduleDialog({ open, onOpenChange }: Readonly<Props>) {
placeholder="Search workflows..."
/>
{workflowPickerOpen && (
- <div className="max-h-40 overflow-y-auto rounded-md border border-border bg-slate-elevation3">
+ <div className="max-h-40 overflow-y-auto rounded-md border border-slate-700 bg-slate-elevation3">
{workflows.map((wf) => (
<button
key={wf.workflow_permanent_id}
type="button"
- className="w-full px-3 py-2 text-left text-sm hover:bg-slate-elevation4"
+ className="w-full px-3 py-2 text-left text-sm hover:bg-slate-700"
onClick={() => {
setSelectedWorkflow(wf);
setWorkflowSearch("");
@@ -236,7 +236,7 @@ function CreateOrgScheduleDialog({ open, onOpenChange }: Readonly<Props>) {
</button>
))}
{workflows.length === 0 && (
- <div className="px-3 py-2 text-sm text-muted-foreground">
+ <div className="px-3 py-2 text-sm text-slate-500">
No workflows found
</div>
)}
@@ -303,7 +303,7 @@ function CreateOrgScheduleDialog({ open, onOpenChange }: Readonly<Props>) {
className={cn(!valid && cronExpression && "border-destructive")}
/>
{humanReadable && (
- <p className="text-sm text-muted-foreground">{humanReadable}</p>
+ <p className="text-sm text-slate-400">{humanReadable}</p>
)}
{!valid && cronExpression && (
<p className="text-sm text-destructive">
@@ -331,14 +331,14 @@ function CreateOrgScheduleDialog({ open, onOpenChange }: Readonly<Props>) {
placeholder="Search timezones..."
/>
{timezoneFilter !== null && (
- <div className="max-h-40 overflow-y-auto rounded-md border border-border bg-slate-elevation3">
+ <div className="max-h-40 overflow-y-auto rounded-md border border-slate-700 bg-slate-elevation3">
{filteredTimezones.slice(0, 20).map((tz) => (
<button
key={tz}
type="button"
className={cn(
- "w-full px-3 py-1.5 text-left text-sm hover:bg-slate-elevation4",
- tz === timezone && "bg-slate-elevation4 text-foreground",
+ "w-full px-3 py-1.5 text-left text-sm hover:bg-slate-700",
+ tz === timezone && "bg-slate-700 text-slate-50",
)}
onMouseDown={(e) => {
e.preventDefault();
@@ -350,24 +350,24 @@ function CreateOrgScheduleDialog({ open, onOpenChange }: Readonly<Props>) {
</button>
))}
{filteredTimezones.length === 0 && (
- <div className="px-3 py-2 text-sm text-muted-foreground">
+ <div className="px-3 py-2 text-sm text-slate-500">
No timezones found
</div>
)}
</div>
)}
- <p className="text-xs text-muted-foreground">Current: {timezone}</p>
+ <p className="text-xs text-slate-500">Current: {timezone}</p>
</div>
{/* Next Runs Preview */}
{nextRuns.length > 0 && (
<div className="space-y-2">
<Label>Next Scheduled Runs</Label>
- <div className="space-y-1 rounded-md border border-border bg-slate-elevation3 p-3">
+ <div className="space-y-1 rounded-md border border-slate-700 bg-slate-elevation3 p-3">
{nextRuns.map((run) => (
<div
key={run.toISOString()}
- className="text-xs text-muted-foreground"
+ className="text-xs text-slate-400"
>
{formatNextRun(run, timezone)}
</div>
diff --git a/skyvern-frontend/src/routes/schedules/ScheduleDetailPage.tsx b/skyvern-frontend/src/routes/schedules/ScheduleDetailPage.tsx
index b1b7a2c7a..9037e5682 100644
--- a/skyvern-frontend/src/routes/schedules/ScheduleDetailPage.tsx
+++ b/skyvern-frontend/src/routes/schedules/ScheduleDetailPage.tsx
@@ -112,7 +112,7 @@ function ScheduleDetailPage() {
if (isLoading) {
return (
<div className="flex items-center justify-center py-20">
- <ReloadIcon className="size-6 animate-spin text-muted-foreground" />
+ <ReloadIcon className="size-6 animate-spin text-slate-400" />
</div>
);
}
@@ -234,20 +234,18 @@ function ScheduleDetailPage() {
<ArrowLeftIcon className="size-4" />
</Button>
<div className="flex-1">
- <h1 className="text-2xl font-normal text-foreground">
+ <h1 className="text-2xl font-normal text-slate-50">
{schedule.name ?? workflowTitle}
</h1>
{schedule.description && (
- <p className="text-sm text-muted-foreground">
- {schedule.description}
- </p>
+ <p className="text-sm text-slate-400">{schedule.description}</p>
)}
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-500">
{humanReadable} · {schedule.timezone}
</p>
<Link
to={`/workflows/${schedule.workflow_permanent_id}/runs`}
- className="mt-1 inline-block text-xs text-muted-foreground hover:text-foreground hover:underline"
+ className="mt-1 inline-block text-xs text-slate-400 hover:text-slate-200 hover:underline"
onClick={(e) => e.stopPropagation()}
>
{workflowTitle} runs →
@@ -267,11 +265,9 @@ function ScheduleDetailPage() {
{/* Content grid */}
<div className="grid grid-cols-2 gap-6">
{/* Schedule Configuration */}
- <div className="rounded-lg border border-border p-4">
+ <div className="rounded-lg border border-slate-700 p-4">
<div className="mb-4 flex items-center justify-between">
- <h3 className="text-sm text-muted-foreground">
- Schedule Configuration
- </h3>
+ <h3 className="text-sm text-slate-400">Schedule Configuration</h3>
{!editing && (
<Button
variant="ghost"
@@ -354,9 +350,7 @@ function ScheduleDetailPage() {
)}
/>
{editHumanReadable && (
- <p className="text-xs text-muted-foreground">
- {editHumanReadable}
- </p>
+ <p className="text-xs text-slate-400">{editHumanReadable}</p>
)}
{!editValid && editCron && (
<p className="text-xs text-destructive">
@@ -385,15 +379,14 @@ function ScheduleDetailPage() {
className="h-8 text-sm"
/>
{timezoneFilter !== null && (
- <div className="max-h-32 overflow-y-auto rounded-md border border-border bg-slate-elevation3">
+ <div className="max-h-32 overflow-y-auto rounded-md border border-slate-700 bg-slate-elevation3">
{filteredTimezones.slice(0, 15).map((tz) => (
<button
key={tz}
type="button"
className={cn(
- "w-full px-3 py-1 text-left text-xs hover:bg-slate-elevation4",
- tz === editTimezone &&
- "bg-slate-elevation4 text-foreground",
+ "w-full px-3 py-1 text-left text-xs hover:bg-slate-700",
+ tz === editTimezone && "bg-slate-700 text-slate-50",
)}
onMouseDown={(e) => {
e.preventDefault();
@@ -405,13 +398,13 @@ function ScheduleDetailPage() {
</button>
))}
{filteredTimezones.length === 0 && (
- <div className="px-3 py-1.5 text-xs text-muted-foreground">
+ <div className="px-3 py-1.5 text-xs text-slate-500">
No timezones found
</div>
)}
</div>
)}
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-500">
Current: {editTimezone}
</p>
</div>
@@ -424,7 +417,7 @@ function ScheduleDetailPage() {
{editNextRuns.map((run) => (
<p
key={run.toISOString()}
- className="text-xs text-muted-foreground"
+ className="text-xs text-slate-500"
>
{formatNextRun(run, editTimezone)}
</p>
@@ -456,18 +449,18 @@ function ScheduleDetailPage() {
) : (
<div className="space-y-3">
<div className="flex items-start justify-between">
- <span className="text-sm text-muted-foreground">Frequency</span>
- <span className="text-sm text-foreground">{humanReadable}</span>
+ <span className="text-sm text-slate-400">Frequency</span>
+ <span className="text-sm text-slate-50">{humanReadable}</span>
</div>
<div className="flex items-start justify-between">
- <span className="text-sm text-muted-foreground">Timezone</span>
- <span className="text-sm text-foreground">
+ <span className="text-sm text-slate-400">Timezone</span>
+ <span className="text-sm text-slate-50">
{schedule.timezone}
</span>
</div>
<div className="flex items-start justify-between">
- <span className="text-sm text-muted-foreground">Cron</span>
- <code className="font-mono text-xs text-foreground">
+ <span className="text-sm text-slate-400">Cron</span>
+ <code className="font-mono text-xs text-slate-50">
{schedule.cron_expression}
</code>
</div>
@@ -477,24 +470,22 @@ function ScheduleDetailPage() {
{/* Details + Upcoming Runs */}
<div className="space-y-6">
- <div className="rounded-lg border border-border p-4">
- <h3 className="mb-4 text-sm text-muted-foreground">Details</h3>
+ <div className="rounded-lg border border-slate-700 p-4">
+ <h3 className="mb-4 text-sm text-slate-400">Details</h3>
<div className="space-y-2">
<div className="flex items-start justify-between">
- <span className="text-sm text-muted-foreground">Created</span>
+ <span className="text-sm text-slate-400">Created</span>
<span
- className="text-sm text-foreground"
+ className="text-sm text-slate-50"
title={basicTimeFormat(schedule.created_at)}
>
{basicLocalTimeFormat(schedule.created_at)}
</span>
</div>
<div className="flex items-start justify-between">
- <span className="text-sm text-muted-foreground">
- Last Modified
- </span>
+ <span className="text-sm text-slate-400">Last Modified</span>
<span
- className="text-sm text-foreground"
+ className="text-sm text-slate-50"
title={basicTimeFormat(schedule.modified_at)}
>
{basicLocalTimeFormat(schedule.modified_at)}
@@ -504,8 +495,8 @@ function ScheduleDetailPage() {
</div>
{hasUserFacingParameters(workflowParameters) && (
- <div className="rounded-lg border border-border p-4">
- <h3 className="mb-4 text-sm text-muted-foreground">
+ <div className="rounded-lg border border-slate-700 p-4">
+ <h3 className="mb-4 text-sm text-slate-400">
Workflow Parameters
</h3>
<div className="space-y-2">
@@ -520,22 +511,22 @@ function ScheduleDetailPage() {
key={parameter.key}
className="flex items-start justify-between gap-4"
>
- <span className="font-mono text-xs text-muted-foreground">
+ <span className="font-mono text-xs text-slate-400">
{parameter.key}
</span>
- <span className="max-w-[60%] truncate text-right text-xs text-foreground">
+ <span className="max-w-[60%] truncate text-right text-xs text-slate-50">
{hasValue ? (
formatScheduleParameterValue(storedValue)
) : parameter.default_value !== null &&
parameter.default_value !== undefined ? (
- <span className="italic text-muted-foreground">
+ <span className="italic text-slate-500">
default:{" "}
{formatScheduleParameterValue(
parameter.default_value,
)}
</span>
) : (
- <span className="italic text-muted-foreground">
+ <span className="italic text-slate-500">
(not set)
</span>
)}
@@ -547,16 +538,14 @@ function ScheduleDetailPage() {
</div>
)}
- <div className="rounded-lg border border-border p-4">
- <h3 className="mb-4 text-sm text-muted-foreground">
- Upcoming Runs
- </h3>
- <p className="mb-2 text-xs text-muted-foreground">
+ <div className="rounded-lg border border-slate-700 p-4">
+ <h3 className="mb-4 text-sm text-slate-400">Upcoming Runs</h3>
+ <p className="mb-2 text-xs text-slate-400">
Next {next_runs.length} runs
</p>
<div className="space-y-0.5">
{next_runs.map((run) => (
- <p key={run} className="text-xs text-muted-foreground">
+ <p key={run} className="text-xs text-slate-500">
{formatNextRun(new Date(run), schedule.timezone)}
</p>
))}
diff --git a/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx b/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx
index a69e19929..ca92c87b6 100644
--- a/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx
+++ b/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx
@@ -113,7 +113,7 @@ function StatusDisplay({ enabled }: Readonly<{ enabled: boolean }>) {
<circle cx="8" cy="8" r="4" fill="currentColor" />
</svg>
</span>
- <span className="text-sm capitalize text-muted-foreground">active</span>
+ <span className="text-sm capitalize text-slate-300">active</span>
</div>
);
}
@@ -124,7 +124,7 @@ function StatusDisplay({ enabled }: Readonly<{ enabled: boolean }>) {
<circle cx="8" cy="8" r="4" fill="currentColor" />
</svg>
</span>
- <span className="text-sm capitalize text-muted-foreground">paused</span>
+ <span className="text-sm capitalize text-slate-300">paused</span>
</div>
);
}
@@ -408,7 +408,7 @@ function SchedulesPage() {
{statusFilters.length > 0 && (
<button
type="button"
- className="w-full cursor-pointer p-2 text-left text-sm text-muted-foreground hover:text-foreground"
+ className="w-full cursor-pointer p-2 text-left text-sm text-slate-400 hover:text-slate-200"
onClick={() => {
setStatusFilters([]);
setPage(1);
@@ -420,7 +420,7 @@ function SchedulesPage() {
</DropdownMenuContent>
</DropdownMenu>
</div>
- <Button variant="brand" onClick={() => setCreateDialogOpen(true)}>
+ <Button onClick={() => setCreateDialogOpen(true)}>
<PlusIcon className="mr-1.5 size-4" />
Create Schedule
</Button>
@@ -428,9 +428,9 @@ function SchedulesPage() {
{/* Table */}
<div className="space-y-4">
- <div className="overflow-hidden rounded-lg border border-border">
+ <div className="overflow-hidden rounded-lg border border-slate-700">
<Table className="table-fixed">
- <TableHeader className="bg-slate-elevation2 text-muted-foreground [&_tr]:border-b-0">
+ <TableHeader className="bg-slate-elevation2 text-slate-400 [&_tr]:border-b-0">
<TableRow>
{showCheckbox && (
<TableHead className="w-[3%]">
@@ -454,7 +454,7 @@ function SchedulesPage() {
{isLoading && (
<TableRow>
<TableCell colSpan={columnCount} className="py-8 text-center">
- <ReloadIcon className="mx-auto size-5 animate-spin text-muted-foreground" />
+ <ReloadIcon className="mx-auto size-5 animate-spin text-slate-400" />
</TableCell>
</TableRow>
)}
@@ -466,7 +466,7 @@ function SchedulesPage() {
>
Failed to load schedules.
{error?.message && (
- <span className="block text-xs text-muted-foreground">
+ <span className="block text-xs text-slate-500">
{error.message}
</span>
)}
@@ -477,7 +477,7 @@ function SchedulesPage() {
<TableRow>
<TableCell
colSpan={columnCount}
- className="py-8 text-center text-sm text-muted-foreground"
+ className="py-8 text-center text-sm text-slate-500"
>
No schedules found.
</TableCell>
@@ -522,13 +522,13 @@ function SchedulesPage() {
<TableCell className="truncate font-medium">
{schedule.workflow_title}
</TableCell>
- <TableCell className="truncate text-muted-foreground">
+ <TableCell className="truncate text-slate-400">
{schedule.name ?? "\u2014"}
</TableCell>
- <TableCell className="text-muted-foreground">
+ <TableCell className="text-slate-400">
{cronToHumanReadable(schedule.cron_expression)}
</TableCell>
- <TableCell className="text-muted-foreground">
+ <TableCell className="text-slate-400">
{schedule.next_run ? (
<span title={basicTimeFormat(schedule.next_run)}>
{basicLocalTimeFormat(schedule.next_run)}
@@ -592,7 +592,7 @@ function SchedulesPage() {
{/* Pagination with Items per page */}
<div className="grid grid-cols-3 items-center px-4 py-2">
<div className="flex items-center gap-2">
- <span className="whitespace-nowrap text-sm text-muted-foreground">
+ <span className="whitespace-nowrap text-sm text-slate-400">
Items per page
</span>
<Select value={String(pageSize)} onValueChange={setPageSize}>
@@ -655,11 +655,11 @@ function SchedulesPage() {
{/* Multi-select bulk action bar */}
{selected.size > 0 && (
- <div className="fixed inset-x-0 bottom-6 mx-auto flex w-fit items-center gap-3 rounded-lg border border-border bg-slate-elevation1 px-6 py-3 shadow-xl">
- <span className="text-sm text-muted-foreground">
+ <div className="fixed inset-x-0 bottom-6 mx-auto flex w-fit items-center gap-3 rounded-lg border border-slate-700 bg-slate-900 px-6 py-3 shadow-xl">
+ <span className="text-sm text-slate-300">
{isBulkOperating ? "Processing…" : `${selected.size} selected`}
</span>
- <div className="h-6 w-px bg-slate-elevation4" />
+ <div className="h-6 w-px bg-slate-700" />
<Button
size="sm"
className="bg-green-900 text-green-50 hover:bg-green-800"
diff --git a/skyvern-frontend/src/routes/streaming/InteractiveStreamView.tsx b/skyvern-frontend/src/routes/streaming/InteractiveStreamView.tsx
index caa1c0f74..b99bf31eb 100644
--- a/skyvern-frontend/src/routes/streaming/InteractiveStreamView.tsx
+++ b/skyvern-frontend/src/routes/streaming/InteractiveStreamView.tsx
@@ -25,8 +25,8 @@ interface InteractiveStreamViewProps {
function UrlBar({ url }: { url: string }) {
return (
- <div className="flex h-8 w-full items-center gap-2 rounded-t-md bg-slate-elevation5 px-3 text-xs text-muted-foreground">
- <GlobeIcon className="h-3 w-3 flex-shrink-0 text-muted-foreground" />
+ <div className="flex h-8 w-full items-center gap-2 rounded-t-md bg-slate-800 px-3 text-xs text-slate-300">
+ <GlobeIcon className="h-3 w-3 flex-shrink-0 text-slate-400" />
<span className="truncate">{url}</span>
</div>
);
diff --git a/skyvern-frontend/src/routes/streaming/StreamDiagnostics.tsx b/skyvern-frontend/src/routes/streaming/StreamDiagnostics.tsx
index 7972617a7..e496be994 100644
--- a/skyvern-frontend/src/routes/streaming/StreamDiagnostics.tsx
+++ b/skyvern-frontend/src/routes/streaming/StreamDiagnostics.tsx
@@ -32,7 +32,7 @@ const STREAM_MODE_COPY: Record<
unavailable: {
label: "Unavailable",
title: "Browser streaming is unavailable for this session",
- className: "border-border bg-muted text-muted-foreground",
+ className: "border-slate-500/40 bg-slate-500/10 text-slate-300",
},
};
@@ -70,22 +70,20 @@ function StreamStatusPanel({
return (
<div
className={cn(
- "flex h-full w-full items-center justify-center rounded-md border bg-slate-elevation1 p-6 text-muted-foreground",
+ "flex h-full w-full items-center justify-center rounded-md bg-slate-900 p-6 text-slate-300",
className,
)}
>
<div className="flex max-w-md flex-col gap-2 text-sm">
- <div className="flex items-center gap-2 font-medium text-foreground">
- <InfoCircledIcon className="h-4 w-4 flex-shrink-0 text-muted-foreground" />
+ <div className="flex items-center gap-2 font-medium text-slate-100">
+ <InfoCircledIcon className="h-4 w-4 flex-shrink-0 text-slate-400" />
<span>{diagnostic.title}</span>
</div>
{diagnostic.detail && (
- <div className="text-muted-foreground">{diagnostic.detail}</div>
+ <div className="text-slate-400">{diagnostic.detail}</div>
)}
{diagnostic.hint && (
- <div className="text-xs text-muted-foreground/70">
- {diagnostic.hint}
- </div>
+ <div className="text-xs text-slate-500">{diagnostic.hint}</div>
)}
{children}
</div>
diff --git a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx
index ff8d0477f..f7e045879 100644
--- a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx
@@ -242,7 +242,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">URL</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The starting URL for the task
</h2>
</div>
@@ -266,7 +266,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Navigation Goal</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Where should Skyvern go and what should Skyvern
do?
</h2>
@@ -297,7 +297,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Navigation Payload</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify important parameters, routes, or
states
</h2>
@@ -375,7 +375,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Data Extraction Goal</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
What outputs are you looking to get?
</h2>
</div>
@@ -403,7 +403,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Data Schema</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify the output format in JSON
</h2>
</div>
@@ -454,7 +454,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Include Action History</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Whether to include action history when verifying
the task completion.
</h2>
@@ -484,7 +484,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Max Steps Override</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Want to allow this task to execute more or less
steps than the default?
</h2>
@@ -522,7 +522,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Webhook Callback URL</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The URL of a webhook endpoint to send the
extracted information
</h2>
@@ -574,7 +574,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<div className="flex items-center gap-2 text-lg">
Proxy Location
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
Route Skyvern through one of our available
proxies.
</h2>
@@ -604,7 +604,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Max Screenshot Scrolls</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
{`The maximum number of scrolls for the post action screenshot. Default is ${MAX_SCREENSHOT_SCROLLS_DEFAULT}. If it's set to 0, it will take the current viewport screenshot.`}
</h2>
</div>
@@ -642,7 +642,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Extra HTTP Headers</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify some self defined HTTP requests headers in
Dict format
</h2>
@@ -671,7 +671,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Error Messages</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify any error outputs you would like to be
notified about
</h2>
@@ -703,7 +703,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">2FA Identifier</h1>
- <h2 className="text-base text-muted-foreground"></h2>
+ <h2 className="text-base text-slate-400"></h2>
</div>
</FormLabel>
<div className="w-full">
@@ -729,7 +729,7 @@ function CreateNewTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Browser Address</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The address of the Browser server to use for the
task run.
</h2>
diff --git a/skyvern-frontend/src/routes/tasks/create/ExampleCasePill.tsx b/skyvern-frontend/src/routes/tasks/create/ExampleCasePill.tsx
index fbcc3d7c1..eacad780d 100644
--- a/skyvern-frontend/src/routes/tasks/create/ExampleCasePill.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/ExampleCasePill.tsx
@@ -6,16 +6,13 @@ type Props = {
function ExampleCasePill({ icon, label, onClick }: Props) {
return (
- <button
- type="button"
+ <div
+ className="flex cursor-pointer gap-2 whitespace-normal rounded-sm bg-slate-elevation3 px-4 py-3 hover:bg-slate-elevation5 lg:whitespace-nowrap"
onClick={onClick}
- className="group flex items-center gap-2 whitespace-normal rounded-full border border-border bg-card px-3 py-2 text-sm shadow-sm transition-shadow hover:shadow-card-hover lg:whitespace-nowrap"
>
- <span className="flex size-7 items-center justify-center rounded-full bg-brand-soft text-brand transition-colors group-hover:bg-brand-cta group-hover:text-brand-cta-foreground [&>svg]:size-3.5">
- {icon}
- </span>
- <span>{label}</span>
- </button>
+ <div>{icon}</div>
+ <div>{label}</div>
+ </div>
);
}
diff --git a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx
index c84797881..c77288b2f 100644
--- a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx
@@ -2,6 +2,7 @@ import { getClient } from "@/api/AxiosClient";
import { Createv2TaskRequest, ProxyLocation } from "@/api/types";
import { stringify as convertToYAML } from "yaml";
import { WorkflowCreateYAMLRequest } from "@/routes/workflows/types/workflowYamlTypes";
+import img from "@/assets/promptBoxBg.png";
import { AutoResizingTextarea } from "@/components/AutoResizingTextarea/AutoResizingTextarea";
import { CartIcon } from "@/components/icons/CartIcon";
import { GraphIcon } from "@/components/icons/GraphIcon";
@@ -305,25 +306,20 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
return (
<div>
- <div className="relative overflow-hidden rounded-2xl border border-border bg-card py-14 shadow-card">
- <div
- aria-hidden
- className="pointer-events-none absolute inset-0 bg-gradient-to-br from-brand-soft via-brand-soft/30 to-card dark:from-brand/15 dark:via-card dark:to-card"
- />
- <div className="relative mx-auto flex min-w-44 flex-col items-center gap-6 px-8">
- <div className="flex flex-col items-center gap-2 text-center">
- <span className="text-2xl font-semibold">
- What task would you like to accomplish?
- </span>
- <p className="max-w-md text-sm text-muted-foreground">
- Describe what you want Skyvern to do. We&apos;ll generate a
- workflow you can run, edit, and re-use.
- </p>
- </div>
+ <div
+ className="rounded-sm py-[4.25rem]"
+ style={{
+ background: `url(${img}) 50% / cover no-repeat`,
+ }}
+ >
+ <div className="mx-auto flex min-w-44 flex-col items-center gap-7 px-8">
+ <span className="text-2xl">
+ What task would you like to accomplish?
+ </span>
<div className="flex w-full max-w-xl flex-col">
<div
className={cn(
- "flex w-full items-center gap-2 rounded-xl bg-slate-elevation4 py-2 pr-4",
+ "flex w-full items-center gap-2 rounded-xl bg-slate-700 py-2 pr-4",
{
"pointer-events-none opacity-50": promptImprovalIsPending,
},
@@ -377,12 +373,12 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
</div>
{showAdvancedSettings ? (
<div className="rounded-b-lg px-2">
- <div className="space-y-4 rounded-b-xl bg-slate-elevation1 p-4">
+ <div className="space-y-4 rounded-b-xl bg-slate-900 p-4">
<header>Advanced Settings</header>
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">Webhook Callback URL</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
The URL of a webhook endpoint to send the extracted
information
</div>
@@ -415,7 +411,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">Proxy Location</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
Route Skyvern through one of our available proxies.
</div>
</div>
@@ -427,7 +423,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">Browser Session ID</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
The ID of a persistent browser session
</div>
</div>
@@ -442,7 +438,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">Browser Address</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
The address of the Browser server to use for the task
run.
</div>
@@ -458,7 +454,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">2FA Identifier</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
The identifier for a 2FA code for this task.
</div>
</div>
@@ -472,7 +468,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">Extra HTTP Headers</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
Specify some self defined HTTP requests headers in Dict
format
</div>
@@ -497,7 +493,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">Generate Script</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
Whether to generate scripts for this task run (on
success).
</div>
@@ -512,7 +508,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">Publish Workflow</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
Whether to create a workflow alongside this task run.
Will also be created if "Generate Scripts" is true.
</div>
@@ -527,7 +523,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">Max Steps Override</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
The maximum number of steps to take for this task.
</div>
</div>
@@ -542,7 +538,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">Data Schema</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
Specify the output data schema in JSON format
</div>
</div>
@@ -560,7 +556,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex gap-16">
<div className="w-48 shrink-0">
<div className="text-sm">Max Screenshot Scrolls</div>
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
{`The maximum number of scrolls for the post action screenshot. Default is ${MAX_SCREENSHOT_SCROLLS_DEFAULT}. If it's set to 0, it will take the current viewport screenshot.`}
</div>
</div>
@@ -578,7 +574,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
</div>
</div>
</div>
- <div className="flex flex-wrap justify-center gap-3 px-4 py-6">
+ <div className="flex flex-wrap justify-center gap-4 rounded-sm bg-slate-elevation1 p-4">
{exampleCases.map((example) => {
return (
<ExampleCasePill
diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTaskCard.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTaskCard.tsx
index 29fbcc859..a9d828325 100644
--- a/skyvern-frontend/src/routes/tasks/create/SavedTaskCard.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/SavedTaskCard.tsx
@@ -83,7 +83,7 @@ function SavedTaskCard({ workflowId, title, url, description }: Props) {
>
<CardHeader
className={cn("rounded-t-md bg-slate-elevation1", {
- "bg-slate-elevation1": hovering,
+ "bg-slate-900": hovering,
})}
>
<CardTitle className="flex items-center justify-between font-normal">
@@ -144,15 +144,15 @@ function SavedTaskCard({ workflowId, title, url, description }: Props) {
</DialogContent>
</Dialog>
</CardTitle>
- <CardDescription className="overflow-hidden text-ellipsis whitespace-nowrap text-muted-foreground">
+ <CardDescription className="overflow-hidden text-ellipsis whitespace-nowrap text-slate-400">
{url}
</CardDescription>
</CardHeader>
<CardContent
className={cn(
- "h-36 cursor-pointer overflow-scroll rounded-b-md bg-slate-elevation3 p-4 text-sm text-muted-foreground",
+ "h-36 cursor-pointer overflow-scroll rounded-b-md bg-slate-elevation3 p-4 text-sm text-slate-300",
{
- "bg-slate-elevation5": hovering,
+ "bg-slate-800": hovering,
},
)}
onClick={() => {
diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
index cc48664e5..6662e0f20 100644
--- a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
@@ -322,7 +322,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Title</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Name of your task
</h2>
</div>
@@ -346,7 +346,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Description</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
What is the purpose of the task?
</h2>
</div>
@@ -374,7 +374,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">URL</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The starting URL for the task
</h2>
</div>
@@ -398,7 +398,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Navigation Goal</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Where should Skyvern go and what should Skyvern
do?
</h2>
@@ -429,7 +429,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Navigation Payload</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify important parameters, routes, or
states
</h2>
@@ -507,7 +507,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Data Extraction Goal</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
What outputs are you looking to get?
</h2>
</div>
@@ -535,7 +535,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Data Schema</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify the output format in JSON
</h2>
</div>
@@ -591,7 +591,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Max Steps Override</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Want to allow this task to execute more or less
steps than the default?
</h2>
@@ -629,7 +629,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Webhook Callback URL</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The URL of a webhook endpoint to send the
extracted information
</h2>
@@ -681,7 +681,7 @@ function SavedTaskForm({ initialValues }: Props) {
<div className="flex items-center gap-2 text-lg">
Proxy Location
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
Route Skyvern through one of our available
proxies.
</h2>
@@ -712,7 +712,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">Error Messages</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify any error outputs you would like to be
notified about
</h2>
@@ -744,7 +744,7 @@ function SavedTaskForm({ initialValues }: Props) {
<FormLabel>
<div className="w-72">
<h1 className="text-lg">2FA Identifier</h1>
- <h2 className="text-base text-muted-foreground"></h2>
+ <h2 className="text-base text-slate-400"></h2>
</div>
</FormLabel>
<div className="w-full">
diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx
index df4330767..d4feeb73d 100644
--- a/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx
@@ -118,7 +118,7 @@ function SavedTasks() {
>
<CardHeader
className={cn("rounded-t-md bg-slate-elevation1", {
- "bg-slate-elevation1": hovering,
+ "bg-slate-900": hovering,
})}
>
<CardTitle className="font-normal">New Task</CardTitle>
@@ -126,9 +126,9 @@ function SavedTasks() {
</CardHeader>
<CardContent
className={cn(
- "flex h-36 cursor-pointer items-center justify-center rounded-b-md bg-slate-elevation3 p-4 text-sm text-muted-foreground",
+ "flex h-36 cursor-pointer items-center justify-center rounded-b-md bg-slate-elevation3 p-4 text-sm text-slate-300",
{
- "bg-slate-elevation5": hovering,
+ "bg-slate-800": hovering,
},
)}
onClick={() => {
diff --git a/skyvern-frontend/src/routes/tasks/create/TaskFormSection.tsx b/skyvern-frontend/src/routes/tasks/create/TaskFormSection.tsx
index 5cee6e2a6..07b86fa0a 100644
--- a/skyvern-frontend/src/routes/tasks/create/TaskFormSection.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/TaskFormSection.tsx
@@ -33,14 +33,14 @@ function TaskFormSection({
>
<div
className={cn(
- "flex w-7 items-center justify-center rounded-full border border-border",
+ "flex w-7 items-center justify-center rounded-full border border-slate-400",
{
"border-destructive": !active && hasError,
- "bg-slate-elevation4 text-foreground": active || hovering,
+ "bg-slate-400 text-slate-950": active || hovering,
},
)}
>
- <span className={"text-foreground"}>{String(index)}</span>
+ <span className={"text-slate-50"}>{String(index)}</span>
</div>
<span
className={cn("text-lg", {
diff --git a/skyvern-frontend/src/routes/tasks/create/TaskTemplateCard.tsx b/skyvern-frontend/src/routes/tasks/create/TaskTemplateCard.tsx
index 5ed0565ea..0a735df55 100644
--- a/skyvern-frontend/src/routes/tasks/create/TaskTemplateCard.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/TaskTemplateCard.tsx
@@ -28,19 +28,19 @@ function TaskTemplateCard({ title, description, body, onClick }: Props) {
>
<CardHeader
className={cn("rounded-t-md bg-slate-elevation1", {
- "bg-slate-elevation1": hovering,
+ "bg-slate-900": hovering,
})}
>
<CardTitle className="font-normal">{title}</CardTitle>
- <CardDescription className="overflow-hidden text-ellipsis whitespace-nowrap text-muted-foreground">
+ <CardDescription className="overflow-hidden text-ellipsis whitespace-nowrap text-slate-400">
{description}
</CardDescription>
</CardHeader>
<CardContent
className={cn(
- "h-36 cursor-pointer rounded-b-md bg-slate-elevation3 p-4 text-sm text-muted-foreground",
+ "h-36 cursor-pointer rounded-b-md bg-slate-elevation3 p-4 text-sm text-slate-300",
{
- "bg-slate-elevation5": hovering,
+ "bg-slate-800": hovering,
},
)}
onClick={() => {
diff --git a/skyvern-frontend/src/routes/tasks/detail/ActionCardCompact.tsx b/skyvern-frontend/src/routes/tasks/detail/ActionCardCompact.tsx
index 8983868f2..2178b7491 100644
--- a/skyvern-frontend/src/routes/tasks/detail/ActionCardCompact.tsx
+++ b/skyvern-frontend/src/routes/tasks/detail/ActionCardCompact.tsx
@@ -88,8 +88,8 @@ function ActionCardCompact({
className={cn(
"group rounded-md bg-slate-elevation4 ring-1 ring-transparent transition-all duration-200",
{
- "ring-1 ring-brand/60 hover:ring-brand/60": active,
- "hover:ring-border": !active,
+ "ring-1 ring-white/40 hover:ring-white/40": active,
+ "hover:ring-white/25": !active,
},
cardClassName,
)}
@@ -98,7 +98,7 @@ function ActionCardCompact({
<button
type="button"
onClick={onSelect}
- className="flex min-h-[40px] flex-1 cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-left outline-none focus-visible:ring-1 focus-visible:ring-brand"
+ className="flex min-h-[40px] flex-1 cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-left outline-none focus-visible:ring-1 focus-visible:ring-white/40"
>
<span
aria-hidden="true"
@@ -107,23 +107,18 @@ function ActionCardCompact({
"bg-destructive": !success,
})}
/>
- <span className="shrink-0 text-xs tabular-nums text-muted-foreground">
+ <span className="shrink-0 text-xs tabular-nums text-slate-500">
#{index}
</span>
{icon && (
- <span
- className="shrink-0 text-muted-foreground"
- aria-hidden="true"
- >
+ <span className="shrink-0 text-slate-300" aria-hidden="true">
{icon}
</span>
)}
- <span className="shrink-0 text-xs text-muted-foreground">
- {label}
- </span>
+ <span className="shrink-0 text-xs text-slate-300">{label}</span>
<span
className={cn(
- "min-w-0 flex-1 truncate text-xs text-foreground",
+ "min-w-0 flex-1 truncate text-xs text-slate-200",
reasoningPreview.length === 0 && "invisible",
)}
>
@@ -135,7 +130,7 @@ function ActionCardCompact({
<Tooltip delayDuration={300}>
<TooltipTrigger asChild>
<span className="shrink-0" aria-label="Code Execution">
- <LightningBoltIcon className="h-4 w-4 text-warning" />
+ <LightningBoltIcon className="h-4 w-4 text-[gold]" />
</span>
</TooltipTrigger>
<TooltipContent className="max-w-[250px]">
@@ -149,7 +144,7 @@ function ActionCardCompact({
aria-label={expanded ? "Collapse details" : "Expand details"}
aria-expanded={expanded}
onClick={onToggleExpanded}
- className="mr-2 shrink-0 rounded p-0.5 text-muted-foreground outline-none hover:bg-slate-elevation3 hover:text-foreground focus-visible:ring-1 focus-visible:ring-brand"
+ className="mr-2 shrink-0 rounded p-0.5 text-slate-400 outline-none hover:bg-slate-elevation3 hover:text-slate-200 focus-visible:ring-1 focus-visible:ring-white/40"
>
{expanded ? (
<ChevronDownIcon className="h-4 w-4" />
@@ -158,33 +153,33 @@ function ActionCardCompact({
)}
</button>
</div>
- <CollapsibleContent className="space-y-2 px-3 pb-3 pt-1 text-xs text-muted-foreground">
+ <CollapsibleContent className="space-y-2 px-3 pb-3 pt-1 text-xs text-slate-400">
{action.reasoning && (
<div className="rounded bg-slate-elevation5 p-2">
- <div className="mb-1 text-[10px] uppercase tracking-wide text-muted-foreground">
+ <div className="mb-1 text-[10px] uppercase tracking-wide text-slate-500">
Reasoning
</div>
- <div className="whitespace-pre-wrap break-words text-foreground">
+ <div className="whitespace-pre-wrap break-words text-slate-300">
{action.reasoning}
</div>
</div>
)}
{inputValue != null && inputValue.length > 0 && (
<div className="rounded bg-slate-elevation5 p-2">
- <div className="mb-1 text-[10px] uppercase tracking-wide text-muted-foreground">
+ <div className="mb-1 text-[10px] uppercase tracking-wide text-slate-500">
Input
</div>
- <div className="whitespace-pre-wrap break-words font-mono text-foreground">
+ <div className="whitespace-pre-wrap break-words font-mono text-slate-300">
{inputValue}
</div>
</div>
)}
{confidencePct != null && (
<div className="flex items-center gap-2">
- <span className="text-[10px] uppercase tracking-wide text-muted-foreground">
+ <span className="text-[10px] uppercase tracking-wide text-slate-500">
Confidence
</span>
- <span className="tabular-nums text-foreground">
+ <span className="tabular-nums text-slate-300">
{confidencePct}%
</span>
</div>
diff --git a/skyvern-frontend/src/routes/tasks/detail/RunViewingModeToggle.tsx b/skyvern-frontend/src/routes/tasks/detail/RunViewingModeToggle.tsx
index 9bbaa886f..9bf425ffc 100644
--- a/skyvern-frontend/src/routes/tasks/detail/RunViewingModeToggle.tsx
+++ b/skyvern-frontend/src/routes/tasks/detail/RunViewingModeToggle.tsx
@@ -25,9 +25,9 @@ function ModeButton({ active, label, onClick, children }: ModeButtonProps) {
aria-pressed={active}
onClick={onClick}
className={cn(
- "flex h-6 w-7 items-center justify-center rounded-sm text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-1 focus-visible:ring-brand",
+ "flex h-6 w-7 items-center justify-center rounded-sm text-slate-400 outline-none transition-colors hover:text-slate-100 focus-visible:ring-1 focus-visible:ring-white/40",
{
- "bg-slate-elevation4 text-foreground": active,
+ "bg-slate-600 text-slate-50": active,
},
)}
>
@@ -49,7 +49,7 @@ function RunViewingModeToggle() {
role="group"
aria-label="Action list view density"
data-slot="run-viewing-mode-toggle"
- className="flex h-7 items-center gap-0.5 rounded-md border bg-slate-elevation2 p-0.5"
+ className="flex h-7 items-center gap-0.5 rounded-md border border-slate-700 bg-slate-elevation2 p-0.5"
>
<ModeButton
active={viewMode === "compact"}
diff --git a/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx b/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx
index 99b5b2e64..81329600c 100644
--- a/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx
+++ b/skyvern-frontend/src/routes/tasks/detail/ScrollableActionList.tsx
@@ -133,11 +133,11 @@ function ScrollableActionList({
refs.current[i] = element;
}}
className={cn(
- "flex cursor-pointer rounded-lg border-2 bg-slate-elevation3 hover:border-foreground",
+ "flex cursor-pointer rounded-lg border-2 bg-slate-elevation3 hover:border-slate-50",
{
"border-l-destructive": !action.success,
"border-l-success": action.success,
- "border-foreground ring-1 ring-ring": selected,
+ "border-slate-50": selected,
},
)}
onClick={() => onActiveIndexChange(i)}
@@ -179,13 +179,11 @@ function ScrollableActionList({
)}
</div>
</div>
- <div className="text-xs text-muted-foreground">
- {action.reasoning}
- </div>
+ <div className="text-xs text-slate-400">{action.reasoning}</div>
{action.type === ActionTypes.InputText && (
<>
<Separator />
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
Input: {action.input}
</div>
</>
@@ -200,10 +198,10 @@ function ScrollableActionList({
return (
<div className="h-[40rem] w-1/3 rounded border bg-slate-elevation1">
<div className="flex items-center gap-2 p-4">
- <div className="flex h-8 flex-1 items-center justify-center rounded-sm bg-slate-elevation4 px-3 text-xs text-foreground">
+ <div className="flex h-8 flex-1 items-center justify-center rounded-sm bg-slate-700 px-3 text-xs text-gray-50">
Actions: {taskDetails.actions}
</div>
- <div className="flex h-8 flex-1 items-center justify-center rounded-sm bg-slate-elevation4 px-3 text-xs text-foreground">
+ <div className="flex h-8 flex-1 items-center justify-center rounded-sm bg-slate-700 px-3 text-xs text-gray-50">
Steps: {taskDetails.steps}
</div>
{isViewingV2 && <RunViewingModeToggle />}
@@ -220,11 +218,10 @@ function ScrollableActionList({
}}
className={cn(
useCompact
- ? "flex cursor-pointer items-center gap-2 rounded-md border-2 bg-slate-elevation3 px-3 py-2 text-xs hover:border-foreground"
- : "flex cursor-pointer rounded-lg border-2 bg-slate-elevation3 p-4 hover:border-foreground",
+ ? "flex cursor-pointer items-center gap-2 rounded-md border-2 bg-slate-elevation3 px-3 py-2 text-xs hover:border-slate-50"
+ : "flex cursor-pointer rounded-lg border-2 bg-slate-elevation3 p-4 hover:border-slate-50",
{
- "border-foreground ring-1 ring-ring":
- activeIndex === "stream",
+ "border-slate-50": activeIndex === "stream",
},
)}
onClick={() => onActiveIndexChange("stream")}
@@ -236,7 +233,7 @@ function ScrollableActionList({
useCompact ? "h-3 w-3 animate-pulse" : "h-6 w-6",
)}
/>
- <span className={cn(useCompact && "text-xs text-foreground")}>
+ <span className={cn(useCompact && "text-xs text-slate-200")}>
Live
</span>
</div>
diff --git a/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx b/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
index 8c298ac40..65a9d66b6 100644
--- a/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
+++ b/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
@@ -306,7 +306,7 @@ function TaskDetails() {
)}
</div>
</div>
- <div className="text-2xl text-muted-foreground underline underline-offset-4">
+ <div className="text-2xl text-slate-400 underline underline-offset-4">
{workflowIsLoading || workflowRunIsLoading ? (
<Skeleton className="h-8 w-64" />
) : (
diff --git a/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx b/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx
index b2422977c..81d69b64d 100644
--- a/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx
+++ b/skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx
@@ -43,7 +43,7 @@ function TaskParameters() {
<div className="flex gap-16">
<div className="w-72">
<h1 className="text-lg">URL</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The starting URL for the task
</h2>
</div>
@@ -52,7 +52,7 @@ function TaskParameters() {
<div className="flex gap-16">
<div className="w-72">
<h1 className="text-lg">Navigation Goal</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Where should Skyvern go and what should Skyvern do?
</h2>
</div>
@@ -64,7 +64,7 @@ function TaskParameters() {
<div className="flex gap-16">
<div className="w-72">
<h1 className="text-lg">Navigation Payload</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify important parameters, routes, or states
</h2>
</div>
@@ -84,7 +84,7 @@ function TaskParameters() {
<div className="flex gap-16">
<div className="w-72">
<h1 className="text-lg">Data Extraction Goal</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
What outputs are you looking to get?
</h2>
</div>
@@ -96,7 +96,7 @@ function TaskParameters() {
<div className="flex gap-16">
<div className="w-72">
<h1 className="text-lg">Data Schema</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify the output format in JSON
</h2>
</div>
@@ -120,7 +120,7 @@ function TaskParameters() {
<div className="flex gap-16">
<div className="w-72">
<h1 className="text-lg">Extra HTTP Headers</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify some self-defined HTTP requests headers
</h2>
</div>
@@ -139,7 +139,7 @@ function TaskParameters() {
<div className="flex gap-16">
<div className="w-72">
<h1 className="text-lg">Webhook Callback URL</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The URL of a webhook endpoint to send the extracted information
</h2>
</div>
@@ -148,7 +148,7 @@ function TaskParameters() {
<div className="flex gap-16">
<div className="w-72">
<h1 className="text-lg">Max Screenshot Scrolls</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The maximum number of times to scroll the page
</h2>
</div>
@@ -161,7 +161,7 @@ function TaskParameters() {
<div className="flex gap-16">
<div className="w-72">
<h1 className="text-lg">Include Action History</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Include the action history in the completion verification
</h2>
</div>
diff --git a/skyvern-frontend/src/routes/tasks/list/TasksPage.tsx b/skyvern-frontend/src/routes/tasks/list/TasksPage.tsx
index 29a1d821c..0326a6474 100644
--- a/skyvern-frontend/src/routes/tasks/list/TasksPage.tsx
+++ b/skyvern-frontend/src/routes/tasks/list/TasksPage.tsx
@@ -10,12 +10,12 @@ function TasksPage() {
return (
<div className="space-y-8">
<PromptBox />
- <div className="flex w-fit gap-1 rounded-sm border border-border p-2">
+ <div className="flex w-fit gap-1 rounded-sm border border-slate-700 p-2">
<div
className={cn(
- "cursor-pointer rounded-sm px-3 py-2 hover:bg-slate-elevation4",
+ "cursor-pointer rounded-sm px-3 py-2 hover:bg-slate-700",
{
- "bg-slate-elevation4": view === "history",
+ "bg-slate-700": view === "history",
},
)}
onClick={() => setView("history")}
@@ -24,9 +24,9 @@ function TasksPage() {
</div>
<div
className={cn(
- "cursor-pointer rounded-sm px-3 py-2 hover:bg-slate-elevation4",
+ "cursor-pointer rounded-sm px-3 py-2 hover:bg-slate-700",
{
- "bg-slate-elevation4": view === "myTasks",
+ "bg-slate-700": view === "myTasks",
},
)}
onClick={() => setView("myTasks")}
diff --git a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx
index 5606d8fbd..e01f77554 100644
--- a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx
+++ b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx
@@ -572,7 +572,7 @@ function RunWorkflowForm({
<h1 className="text-3xl">
Parameters{workflow?.title ? ` - ${workflow.title}` : ""}
</h1>
- <h2 className="text-lg text-muted-foreground">
+ <h2 className="text-lg text-slate-400">
Fill the placeholder values that you have linked throughout your
workflow.
</h2>
@@ -606,7 +606,6 @@ function RunWorkflowForm({
/>
<Button
type="submit"
- variant="brand"
disabled={
runWorkflowMutation.isPending ||
hasLoginBlockValidationError ||
@@ -738,17 +737,17 @@ function RunWorkflowForm({
return (
<FormItem>
<div className="flex gap-16">
- <FormLabel className="!text-foreground">
+ <FormLabel className="!text-slate-50">
<div className="w-72">
<div className="flex items-center gap-2 text-lg">
{parameter.key}
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{getLabelForWorkflowParameterType(
parameter.workflow_parameter_type,
)}
</span>
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
{parameter.description}
</h2>
</div>
@@ -827,7 +826,7 @@ function RunWorkflowForm({
<div className="flex items-center gap-2 text-lg">
Webhook Callback URL
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
The URL of a webhook endpoint to send the details of
the workflow result.
</h2>
@@ -887,7 +886,7 @@ function RunWorkflowForm({
<div className="flex items-center gap-2 text-lg">
Proxy Location
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
Route Skyvern through one of our available proxies.
</h2>
</div>
@@ -938,7 +937,7 @@ function RunWorkflowForm({
<div className="flex items-center gap-2 text-lg">
Run With
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
{descriptions[field.value] ?? descriptions.agent}
</h2>
</div>
@@ -979,7 +978,7 @@ function RunWorkflowForm({
<div className="flex items-center gap-2 text-lg">
AI Fallback (self-healing)
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
If the run fails when running with code, keep this on
to have AI attempt to fix the issue and regenerate the
code.
@@ -1025,7 +1024,7 @@ function RunWorkflowForm({
<div className="flex items-center gap-2 text-lg">
Browser Session ID
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
Use a persistent browser session to maintain
state and enable browser interaction.
</h2>
@@ -1062,7 +1061,7 @@ function RunWorkflowForm({
<div className="flex items-center gap-2 text-lg">
Browser Profile
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
Load a saved browser profile to reuse cookies,
storage, and signed-in state for this run.
</h2>
@@ -1095,7 +1094,7 @@ function RunWorkflowForm({
<div className="flex items-center gap-2 text-lg">
Browser Address
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
The address of the Browser server to use for
the workflow run.
</h2>
@@ -1133,7 +1132,7 @@ function RunWorkflowForm({
<div className="flex items-center gap-2 text-lg">
Extra HTTP Headers
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
Specify some self defined HTTP requests
headers in Dict format
</h2>
@@ -1203,7 +1202,7 @@ function RunWorkflowForm({
<div className="flex items-center gap-2 text-lg">
Max Screenshot Scrolls
</div>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
{`The maximum number of scrolls for the post action screenshot. Default is ${MAX_SCREENSHOT_SCROLLS_DEFAULT}. If it's set to 0, it will take the current viewport screenshot.`}
</h2>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowBlockCollapsibleContent.tsx b/skyvern-frontend/src/routes/workflows/WorkflowBlockCollapsibleContent.tsx
index 4bdf20eb2..3c99b9b8d 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowBlockCollapsibleContent.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowBlockCollapsibleContent.tsx
@@ -126,9 +126,9 @@ function WorkflowBlockCollapsibleContent({ task, onNavigate }: Props) {
{statusIsFinalized(task) && (
<div
className={cn(
- "cursor-pointer rounded-sm px-3 py-2 text-muted-foreground hover:bg-slate-elevation4",
+ "cursor-pointer rounded-sm px-3 py-2 text-slate-400 hover:bg-slate-700",
{
- "bg-slate-elevation4 text-foreground":
+ "bg-slate-700 text-foreground":
activeTab === "output",
},
)}
@@ -146,10 +146,9 @@ function WorkflowBlockCollapsibleContent({ task, onNavigate }: Props) {
<div
className={cn(
- "cursor-pointer rounded-sm px-3 py-2 text-muted-foreground hover:bg-slate-elevation4 hover:text-foreground",
+ "cursor-pointer rounded-sm px-3 py-2 text-slate-400 hover:bg-slate-700 hover:text-foreground",
{
- "bg-slate-elevation4 text-foreground":
- activeTab === "goal",
+ "bg-slate-700 text-foreground": activeTab === "goal",
},
)}
onClick={() => {
@@ -160,9 +159,9 @@ function WorkflowBlockCollapsibleContent({ task, onNavigate }: Props) {
</div>
<div
className={cn(
- "cursor-pointer rounded-sm px-3 py-2 text-muted-foreground hover:bg-slate-elevation4 hover:text-foreground",
+ "cursor-pointer rounded-sm px-3 py-2 text-slate-400 hover:bg-slate-700 hover:text-foreground",
{
- "bg-slate-elevation4 text-foreground":
+ "bg-slate-700 text-foreground":
activeTab === "parameters",
},
)}
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx b/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx
index cd7b717b7..6fa1120a3 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx
@@ -280,7 +280,7 @@ function WorkflowPage() {
>
{basicLocalTimeFormat(workflowRun.created_at)}
</TableCell>
- <TableCell className="text-muted-foreground">
+ <TableCell className="text-slate-400">
{formatExecutionTime(
workflowRun.started_at ?? workflowRun.created_at,
workflowRun.finished_at,
@@ -323,7 +323,7 @@ function WorkflowPage() {
<TableRow key={`${workflowRun.workflow_run_id}-params`}>
<TableCell
colSpan={5}
- className="bg-slate-elevation1 dark:bg-slate-elevation1/50"
+ className="bg-slate-50 dark:bg-slate-900/50"
>
<WorkflowRunParameters
workflowPermanentId={workflowPermanentId}
@@ -349,11 +349,9 @@ function WorkflowPage() {
workflowPermanentId={workflowPermanentId}
workflowRunId={openRunParams}
/>
- <div className="flex flex-col items-center gap-3 px-3 py-3 sm:flex-row sm:justify-between">
- <div className="flex items-center gap-2 text-sm">
- <span className="whitespace-nowrap text-muted-foreground">
- Items per page
- </span>
+ <div className="relative px-3 py-3">
+ <div className="absolute left-3 top-1/2 flex -translate-y-1/2 items-center gap-2 text-sm">
+ <span className="text-slate-400">Items per page</span>
<Select
value={String(pageSize)}
onValueChange={(size) => {
@@ -479,7 +477,7 @@ function WorkflowRunParameters({
if (!run || !run.parameters || Object.keys(run.parameters).length === 0) {
return (
- <div className="ml-8 py-4 text-sm text-muted-foreground">
+ <div className="ml-8 py-4 text-sm text-slate-400">
No parameters for this run
</div>
);
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
index 7ca634724..110b879c9 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
@@ -375,12 +375,12 @@ function WorkflowRun() {
/>
) : null}
</div>
- <h2 className="text-2xl text-muted-foreground">{workflowRunId}</h2>
+ <h2 className="text-2xl text-slate-400">{workflowRunId}</h2>
{workflowRun &&
(workflowRun.started_at ||
workflowRun.finished_at ||
isWorkflowDeleted) && (
- <div className="flex flex-wrap gap-x-4 gap-y-1 text-sm text-muted-foreground">
+ <div className="flex flex-wrap gap-x-4 gap-y-1 text-sm text-slate-400">
{workflowRun.started_at && (
<span title={basicTimeFormat(workflowRun.started_at)}>
Started: {basicLocalTimeFormat(workflowRun.started_at)}
@@ -401,7 +401,7 @@ function WorkflowRun() {
)}
{workflowRun?.browser_session_id && (
<Link
- className="font-mono text-sm text-muted-foreground hover:text-foreground hover:underline hover:underline-offset-2"
+ className="font-mono text-sm text-slate-400 hover:text-slate-200 hover:underline hover:underline-offset-2"
to={`/browser-session/${workflowRun.browser_session_id}/stream`}
>
Browser Session: {workflowRun.browser_session_id}
@@ -409,7 +409,7 @@ function WorkflowRun() {
)}
{workflowRun?.browser_profile_id && (
<Link
- className="font-mono text-sm text-muted-foreground hover:text-foreground hover:underline hover:underline-offset-2"
+ className="font-mono text-sm text-slate-400 hover:text-slate-200 hover:underline hover:underline-offset-2"
to={`/browser-profiles/${workflowRun.browser_profile_id}`}
>
Browser Profile: {workflowRun.browser_profile_id}
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx
index 3a8c6fad4..54750b164 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx
@@ -64,7 +64,7 @@ function WorkflowRunParameters() {
<div className="space-y-8">
<header className="space-y-5">
<h1 className="text-3xl">Parameters</h1>
- <h2 className="text-lg text-muted-foreground">
+ <h2 className="text-lg text-slate-400">
Fill the placeholder values that you have linked throughout your
workflow.
</h2>
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowScriptDetailPage.tsx b/skyvern-frontend/src/routes/workflows/WorkflowScriptDetailPage.tsx
index ce8107763..18a6b6dc5 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowScriptDetailPage.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowScriptDetailPage.tsx
@@ -55,10 +55,10 @@ function StatusDistribution({
running: "bg-blue-500",
failed: "bg-red-500",
terminated: "bg-orange-500",
- canceled: "bg-slate-elevation4",
+ canceled: "bg-slate-400",
timed_out: "bg-yellow-500",
- created: "bg-slate-elevation4",
- queued: "bg-slate-elevation4",
+ created: "bg-slate-300",
+ queued: "bg-slate-300",
};
return (
@@ -67,7 +67,7 @@ function StatusDistribution({
{Object.entries(statusCounts).map(([status, count]) => (
<div
key={status}
- className={statusColors[status] ?? "bg-slate-elevation4"}
+ className={statusColors[status] ?? "bg-slate-300"}
style={{ width: `${(count / totalCount) * 100}%` }}
title={`${status}: ${count} (${Math.round((count / totalCount) * 100)}%)`}
/>
@@ -77,7 +77,7 @@ function StatusDistribution({
{Object.entries(statusCounts).map(([status, count]) => (
<div key={status} className="flex items-center gap-1.5">
<div
- className={`size-2.5 rounded-full ${statusColors[status] ?? "bg-slate-elevation4"}`}
+ className={`size-2.5 rounded-full ${statusColors[status] ?? "bg-slate-300"}`}
/>
<span>
{status}: {count} ({Math.round((count / totalCount) * 100)}%)
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowScriptsPage.tsx b/skyvern-frontend/src/routes/workflows/WorkflowScriptsPage.tsx
index fd56d1de5..b93acf33e 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowScriptsPage.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowScriptsPage.tsx
@@ -288,8 +288,8 @@ function ScriptsTableRows({
<TableRow>
<TableCell colSpan={TABLE_COL_COUNT}>
<div className="flex flex-col items-center gap-2 py-12 text-center">
- <FileTextIcon className="size-8 text-muted-foreground" />
- <p className="text-sm text-muted-foreground">
+ <FileTextIcon className="size-8 text-slate-400" />
+ <p className="text-sm text-slate-500">
No scripts yet. Scripts are created automatically when this
workflow runs with Code mode enabled.
</p>
diff --git a/skyvern-frontend/src/routes/workflows/Workflows.tsx b/skyvern-frontend/src/routes/workflows/Workflows.tsx
index 4580ce52b..b1c867179 100644
--- a/skyvern-frontend/src/routes/workflows/Workflows.tsx
+++ b/skyvern-frontend/src/routes/workflows/Workflows.tsx
@@ -387,18 +387,18 @@ function Workflows() {
return (
<div className="space-y-10">
- <div className="flex flex-col gap-6 lg:h-32 lg:flex-row lg:justify-between">
+ <div className="flex h-32 justify-between gap-6">
<div className="space-y-5">
<div className="flex items-center gap-2">
<LightningBoltIcon className="size-6" />
<h1 className="text-2xl">Workflows</h1>
</div>
- <p className="text-muted-foreground">
+ <p className="text-slate-300">
Create your own complex workflows by connecting web agents together.
Define a series of actions, set it, and forget it.
</p>
</div>
- <div className="flex flex-wrap gap-5 lg:flex-nowrap">
+ <div className="flex gap-5">
<NarrativeCard
index={1}
description="Save browser sessions and reuse them in subsequent runs"
@@ -458,13 +458,13 @@ function Workflows() {
))}
</div>
) : (
- <div className="rounded-lg border border-border bg-slate-elevation1 py-6 text-center dark:border-border">
+ <div className="rounded-lg border border-slate-200 bg-slate-elevation1 py-6 text-center dark:border-slate-700">
<div className="mx-auto max-w-md">
<FolderIcon className="mx-auto mb-3 h-10 w-10 text-blue-400 opacity-50" />
- <h3 className="mb-2 text-foreground dark:text-foreground">
+ <h3 className="mb-2 text-slate-900 dark:text-slate-100">
Organize Your Workflows with Folders
</h3>
- <p className="mb-4 text-sm text-muted-foreground dark:text-muted-foreground">
+ <p className="mb-4 text-sm text-slate-500 dark:text-slate-400">
Keep your workflows organized by creating folders. Group
related workflows together by project, team, or workflow type
for easier management.
@@ -520,10 +520,7 @@ function Workflows() {
/>
<DropdownMenu modal={false}>
<DropdownMenuTrigger asChild>
- <Button
- variant="brand"
- disabled={createWorkflowMutation.isPending}
- >
+ <Button disabled={createWorkflowMutation.isPending}>
{createWorkflowMutation.isPending ? (
<ReloadIcon className="mr-2 h-4 w-4 animate-spin" />
) : (
@@ -560,16 +557,12 @@ function Workflows() {
<Table className="table-fixed">
<TableHeader className="rounded-t-lg bg-slate-elevation2">
<TableRow>
- <TableHead className="w-[25%] rounded-tl-lg text-muted-foreground">
+ <TableHead className="w-[25%] rounded-tl-lg text-slate-400">
ID
</TableHead>
- <TableHead className="w-[30%] text-muted-foreground">
- Title
- </TableHead>
- <TableHead className="w-[15%] text-muted-foreground">
- Folder
- </TableHead>
- <TableHead className="w-[15%] text-muted-foreground">
+ <TableHead className="w-[30%] text-slate-400">Title</TableHead>
+ <TableHead className="w-[15%] text-slate-400">Folder</TableHead>
+ <TableHead className="w-[15%] text-slate-400">
Created At
</TableHead>
<TableHead className="w-[15%] rounded-tr-lg"></TableHead>
@@ -641,7 +634,7 @@ function Workflows() {
</div>
</TableCell>
<TableCell>
- <span className="text-muted-foreground">-</span>
+ <span className="text-slate-400">-</span>
</TableCell>
<TableCell>
{basicLocalTimeFormat(workflow.created_at)}
@@ -738,7 +731,7 @@ function Workflows() {
</span>
</div>
) : (
- <span className="text-muted-foreground">-</span>
+ <span className="text-slate-400">-</span>
)}
</TableCell>
<TableCell
@@ -854,7 +847,7 @@ function Workflows() {
>
<TableCell
colSpan={5}
- className="bg-slate-elevation1 dark:bg-slate-elevation1/50"
+ className="bg-slate-50 dark:bg-slate-900/50"
>
<ParameterDisplayInline
parameters={parameterItems}
@@ -870,13 +863,11 @@ function Workflows() {
)}
</TableBody>
</Table>
- <div className="flex flex-col items-center gap-3 px-3 py-3 sm:flex-row sm:justify-between">
- <div className="flex items-center gap-2 text-sm">
- <span className="whitespace-nowrap text-muted-foreground">
- Items per page
- </span>
+ <div className="relative px-3 py-3">
+ <div className="absolute left-3 top-1/2 flex -translate-y-1/2 items-center gap-2 text-sm">
+ <span className="text-slate-400">Items per page</span>
<select
- className="h-9 rounded-md border border-border bg-background px-3"
+ className="h-9 rounded-md border border-slate-300 bg-background px-3"
value={itemsPerPage}
onChange={(e) => {
const next = Number(e.target.value);
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowsBetaAlertCard.tsx b/skyvern-frontend/src/routes/workflows/WorkflowsBetaAlertCard.tsx
index 15f466d05..156cd7700 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowsBetaAlertCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowsBetaAlertCard.tsx
@@ -2,7 +2,7 @@ import { Button } from "@/components/ui/button";
function WorkflowsBetaAlertCard() {
return (
- <div className="flex flex-col items-center rounded-lg bg-slate-elevation1 p-4 shadow">
+ <div className="flex flex-col items-center rounded-lg bg-slate-900 p-4 shadow">
<header>
<h1 className="py-4 text-3xl">Workflows (Beta)</h1>
</header>
diff --git a/skyvern-frontend/src/routes/workflows/components/BlockCodeEditor.tsx b/skyvern-frontend/src/routes/workflows/components/BlockCodeEditor.tsx
index 8c97ab768..4a4cc1d19 100644
--- a/skyvern-frontend/src/routes/workflows/components/BlockCodeEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/BlockCodeEditor.tsx
@@ -52,7 +52,7 @@ function BlockCodeEditor({
<div
className={cn(
- "transform-origin-center flex h-full w-[30rem] flex-col space-y-4 rounded-lg border border-border bg-slate-elevation3 px-6 py-4 transition-all",
+ "transform-origin-center flex h-full w-[30rem] flex-col space-y-4 rounded-lg border border-slate-600 bg-slate-elevation3 px-6 py-4 transition-all",
)}
onClick={(e) => {
onClick?.(e);
@@ -61,7 +61,7 @@ function BlockCodeEditor({
<header className="relative !mt-0 flex h-[2.75rem] justify-between gap-2">
{blockType ? (
<div className="flex w-full gap-2">
- <div className="relative flex h-[2.75rem] w-[2.75rem] items-center justify-center overflow-hidden rounded border border-border">
+ <div className="relative flex h-[2.75rem] w-[2.75rem] items-center justify-center overflow-hidden rounded border border-slate-600">
<WorkflowBlockIcon
workflowBlockType={blockType}
className="size-6"
@@ -74,13 +74,11 @@ function BlockCodeEditor({
<div className="flex w-full flex-col gap-1">
{blockLabel}
<div className="flex w-full items-center justify-center gap-1">
- <span className="text-xs text-muted-foreground">
- {blockTitle}
- </span>
+ <span className="text-xs text-slate-400">{blockTitle}</span>
<div className="ml-auto scale-[60%] opacity-50">
<KeyIcon />
</div>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-slate-400">
{cacheKeyValue === "" || !cacheKeyValue
? "(none)"
: cacheKeyValue}
@@ -93,7 +91,7 @@ function BlockCodeEditor({
{title ?? blockLabel}
</header>
)}
- <div className="absolute right-[-0.5rem] top-0 flex h-[2rem] w-[2rem] items-center justify-center rounded hover:bg-slate-elevation5">
+ <div className="absolute right-[-0.5rem] top-0 flex h-[2rem] w-[2rem] items-center justify-center rounded hover:bg-slate-800">
<ExitIcon
onClick={() => {
const result = onExit ? onExit() : true;
@@ -122,7 +120,7 @@ function BlockCodeEditor({
/>
</div>
) : (
- <div className="flex h-full w-full items-center justify-center bg-background">
+ <div className="flex h-full w-full items-center justify-center bg-slate-950">
No script defined
</div>
)}
diff --git a/skyvern-frontend/src/routes/workflows/components/BlockOutputs.tsx b/skyvern-frontend/src/routes/workflows/components/BlockOutputs.tsx
index e68106de4..27c2c7b48 100644
--- a/skyvern-frontend/src/routes/workflows/components/BlockOutputs.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/BlockOutputs.tsx
@@ -101,7 +101,7 @@ function BlockOutputs({
)}
{pageName === "override" && (
<header className="flex w-full items-center justify-end gap-2 text-xs">
- <Label className="text-xs font-normal text-muted-foreground">
+ <Label className="text-xs font-normal text-slate-300">
Use Override
</Label>
<HelpTooltip content="Use this override instead of the last block output" />
@@ -134,7 +134,7 @@ function BlockOutputs({
/>
</>
) : (
- <div className="flex h-full w-full flex-1 items-center justify-center bg-background">
+ <div className="flex h-full w-full flex-1 items-center justify-center bg-slate-950">
No output defined
</div>
)}
diff --git a/skyvern-frontend/src/routes/workflows/components/BrowserProfileSelector.tsx b/skyvern-frontend/src/routes/workflows/components/BrowserProfileSelector.tsx
index e3f8f150a..ef6b22b4a 100644
--- a/skyvern-frontend/src/routes/workflows/components/BrowserProfileSelector.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/BrowserProfileSelector.tsx
@@ -125,7 +125,7 @@ function BrowserProfileSelector({
</span>
</div>
<div className="flex items-center pr-2">
- <ChevronDownIcon className="size-4 text-muted-foreground" />
+ <ChevronDownIcon className="size-4 text-slate-500" />
</div>
</div>
);
@@ -163,14 +163,14 @@ function BrowserProfileSelector({
)}
>
{hasValue ? (
- <span className="text-foreground">{triggerLabel}</span>
+ <span className="text-slate-200">{triggerLabel}</span>
) : (
<span className="text-muted-foreground">{triggerLabel}</span>
)}
</div>
<div className="flex items-center pr-2">
<ChevronDownIcon
- className={`size-4 text-muted-foreground transition-transform ${open ? "rotate-180" : ""}`}
+ className={`size-4 text-slate-500 transition-transform ${open ? "rotate-180" : ""}`}
/>
</div>
</div>
@@ -178,17 +178,17 @@ function BrowserProfileSelector({
{open && (
<div
ref={dropdownRef}
- className="absolute z-50 mt-1 w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-popover"
+ className="absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-slate-600 bg-slate-800 shadow-lg"
onMouseDown={(e) => e.preventDefault()}
>
- <div className="border-b px-3 py-2">
+ <div className="border-b border-slate-600 px-3 py-2">
<input
ref={inputRef}
type="text"
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
placeholder="Search browser profiles..."
- className="w-full bg-transparent text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none"
+ className="w-full bg-transparent text-sm text-slate-200 placeholder:text-muted-foreground focus-visible:outline-none"
/>
</div>
<div
@@ -206,11 +206,11 @@ function BrowserProfileSelector({
type="button"
onMouseDown={(e) => e.preventDefault()}
onClick={() => handleSelect(null)}
- className={`flex w-full items-center px-3 py-2 text-left text-sm transition-colors hover:bg-accent ${
- !hasValue ? "bg-accent" : ""
+ className={`flex w-full items-center px-3 py-2 text-left text-sm transition-colors hover:bg-slate-700 ${
+ !hasValue ? "bg-slate-700" : ""
}`}
>
- <span className="text-foreground">None</span>
+ <span className="text-slate-200">None</span>
</button>
{(isFetching || isTyping) && profiles.length === 0 ? (
<>
@@ -225,7 +225,7 @@ function BrowserProfileSelector({
))}
</>
) : profiles.length === 0 ? (
- <div className="px-3 py-3 text-xs text-muted-foreground">
+ <div className="px-3 py-3 text-xs text-slate-500">
{debouncedSearch
? `No browser profiles match "${debouncedSearch}".`
: "No browser profiles found."}
@@ -240,15 +240,15 @@ function BrowserProfileSelector({
type="button"
onMouseDown={(e) => e.preventDefault()}
onClick={() => handleSelect(profile.browser_profile_id)}
- className={`flex w-full flex-col gap-0.5 px-3 py-2 text-left text-sm transition-colors hover:bg-accent ${
- isSelected ? "bg-accent" : ""
+ className={`flex w-full flex-col gap-0.5 px-3 py-2 text-left text-sm transition-colors hover:bg-slate-700 ${
+ isSelected ? "bg-slate-700" : ""
}`}
>
- <span className="font-medium text-foreground">
+ <span className="font-medium text-slate-200">
{profile.name}
</span>
{profile.description && (
- <span className="truncate text-xs text-muted-foreground">
+ <span className="truncate text-xs text-slate-400">
{profile.description}
</span>
)}
@@ -257,7 +257,7 @@ function BrowserProfileSelector({
})}
{isFetchingNextPage && (
<div className="flex items-center justify-center py-2">
- <ReloadIcon className="h-3 w-3 animate-spin text-muted-foreground" />
+ <ReloadIcon className="h-3 w-3 animate-spin text-slate-400" />
</div>
)}
</>
diff --git a/skyvern-frontend/src/routes/workflows/components/ColumnMappingEditor.tsx b/skyvern-frontend/src/routes/workflows/components/ColumnMappingEditor.tsx
index 6b4ee1991..890f0f4b8 100644
--- a/skyvern-frontend/src/routes/workflows/components/ColumnMappingEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/ColumnMappingEditor.tsx
@@ -91,7 +91,7 @@ function ColumnMappingEditor({
if (entries.length === 0) {
return (
- <div className="rounded-md border border-dashed border-border bg-slate-elevation1/40 p-3 text-xs text-muted-foreground">
+ <div className="rounded-md border border-dashed border-slate-700 bg-slate-900/40 p-3 text-xs text-slate-400">
<div className="mb-2">
No column mappings. Add mappings when your data is a list of objects;
each source field maps to one sheet column.
@@ -112,7 +112,7 @@ function ColumnMappingEditor({
return (
<div className={cn("space-y-2", disabled && "opacity-60")}>
- <div className="grid grid-cols-[1fr_1fr_auto] gap-2 text-[0.65rem] uppercase tracking-wider text-muted-foreground">
+ <div className="grid grid-cols-[1fr_1fr_auto] gap-2 text-[0.65rem] uppercase tracking-wider text-slate-500">
<Label className="text-[0.65rem]">Source field</Label>
<Label className="text-[0.65rem]">
Destination
diff --git a/skyvern-frontend/src/routes/workflows/components/CreateFromTemplateDialog.tsx b/skyvern-frontend/src/routes/workflows/components/CreateFromTemplateDialog.tsx
index f2a072266..ceb330cc0 100644
--- a/skyvern-frontend/src/routes/workflows/components/CreateFromTemplateDialog.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/CreateFromTemplateDialog.tsx
@@ -56,7 +56,7 @@ function CreateFromTemplateDialog({
</DialogHeader>
<div className="space-y-4">
<div className="relative">
- <MagnifyingGlassIcon className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
+ <MagnifyingGlassIcon className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" />
<Input
value={search}
onChange={(e) => setSearch(e.target.value)}
@@ -74,22 +74,22 @@ function CreateFromTemplateDialog({
</div>
) : filteredTemplates.length === 0 ? (
<div className="flex flex-col items-center justify-center py-12 text-center">
- <BookmarkFilledIcon className="mb-3 h-10 w-10 text-muted-foreground" />
+ <BookmarkFilledIcon className="mb-3 h-10 w-10 text-slate-400" />
{templates.length === 0 ? (
<>
- <p className="text-muted-foreground dark:text-muted-foreground">
+ <p className="text-slate-600 dark:text-slate-300">
No templates yet
</p>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-slate-400">
Save a workflow as a template to see it here.
</p>
</>
) : (
<>
- <p className="text-muted-foreground dark:text-muted-foreground">
+ <p className="text-slate-600 dark:text-slate-300">
No templates match your search
</p>
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-slate-400">
Try a different search term.
</p>
</>
@@ -114,11 +114,11 @@ function CreateFromTemplateDialog({
</span>
</div>
{template.description && (
- <p className="line-clamp-2 text-xs text-muted-foreground">
+ <p className="line-clamp-2 text-xs text-slate-500">
{template.description}
</p>
)}
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-400">
{template.workflow_definition.blocks.length} block
{template.workflow_definition.blocks.length !== 1
? "s"
diff --git a/skyvern-frontend/src/routes/workflows/components/CredentialSelector.tsx b/skyvern-frontend/src/routes/workflows/components/CredentialSelector.tsx
index 0650c5f3e..c52301026 100644
--- a/skyvern-frontend/src/routes/workflows/components/CredentialSelector.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/CredentialSelector.tsx
@@ -86,7 +86,7 @@ function CredentialSelector({ value, onChange, placeholder, required }: Props) {
</>
)}
</div>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-400">
{credential.credential_type === "password"
? "Password"
: credential.credential_type === "credit_card"
diff --git a/skyvern-frontend/src/routes/workflows/components/DataSchema.tsx b/skyvern-frontend/src/routes/workflows/components/DataSchema.tsx
index c7efd9146..e248bb2ef 100644
--- a/skyvern-frontend/src/routes/workflows/components/DataSchema.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/DataSchema.tsx
@@ -11,7 +11,7 @@ function DataSchema({ value, onChange }: Props) {
if (value === null) {
return (
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">Data Schema</Label>
+ <Label className="text-xs text-slate-300">Data Schema</Label>
<Checkbox
checked={false}
onCheckedChange={() => {
@@ -25,7 +25,7 @@ function DataSchema({ value, onChange }: Props) {
return (
<div className="space-y-2">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">Data Schema</Label>
+ <Label className="text-xs text-slate-300">Data Schema</Label>
<Checkbox
checked
onCheckedChange={() => {
diff --git a/skyvern-frontend/src/routes/workflows/components/FolderCard.tsx b/skyvern-frontend/src/routes/workflows/components/FolderCard.tsx
index e8e494b84..7846f8d5a 100644
--- a/skyvern-frontend/src/routes/workflows/components/FolderCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/FolderCard.tsx
@@ -32,7 +32,7 @@ function FolderCard({ folder, isSelected, onClick }: FolderCardProps) {
"relative flex h-24 flex-col gap-3 rounded-lg border p-4 text-left transition-colors hover:border-blue-400",
isSelected
? "border-blue-400 bg-blue-50 ring-2 ring-blue-400/20 dark:bg-blue-950/20"
- : "border-border bg-slate-elevation1 dark:border-border",
+ : "border-slate-200 bg-slate-elevation1 dark:border-slate-700",
)}
>
<div className="flex items-start gap-3">
@@ -41,7 +41,7 @@ function FolderCard({ folder, isSelected, onClick }: FolderCardProps) {
</div>
<div className="flex min-w-0 flex-1 flex-col gap-1">
<div className="flex items-start justify-between gap-2">
- <h3 className="truncate text-sm font-medium text-foreground dark:text-foreground">
+ <h3 className="truncate text-sm font-medium text-slate-900 dark:text-slate-100">
{folder.title}
</h3>
<div
@@ -56,7 +56,7 @@ function FolderCard({ folder, isSelected, onClick }: FolderCardProps) {
<TooltipTrigger asChild>
<button
onClick={() => setIsEditDialogOpen(true)}
- className="rounded p-1.5 text-muted-foreground transition-colors hover:bg-slate-elevation5/20 hover:text-muted-foreground"
+ className="rounded p-1.5 text-slate-400 transition-colors hover:bg-slate-500/20 hover:text-slate-300"
aria-label="Edit folder"
>
<Pencil1Icon className="h-4 w-4" />
@@ -71,7 +71,7 @@ function FolderCard({ folder, isSelected, onClick }: FolderCardProps) {
/>
</div>
</div>
- <p className="text-xs text-muted-foreground dark:text-muted-foreground">
+ <p className="text-xs text-slate-500 dark:text-slate-400">
{folder.workflow_count}{" "}
{folder.workflow_count === 1 ? "workflow" : "workflows"}
</p>
diff --git a/skyvern-frontend/src/routes/workflows/components/GoogleOAuthCredentialSelector.tsx b/skyvern-frontend/src/routes/workflows/components/GoogleOAuthCredentialSelector.tsx
index 0dbef781e..1370e68fb 100644
--- a/skyvern-frontend/src/routes/workflows/components/GoogleOAuthCredentialSelector.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/GoogleOAuthCredentialSelector.tsx
@@ -98,7 +98,7 @@ function GoogleOAuthCredentialSelector({
<button
type="button"
onClick={handleUseAccountPicker}
- className="text-xs text-muted-foreground underline hover:text-muted-foreground"
+ className="text-xs text-slate-400 underline hover:text-slate-300"
>
Use account picker
</button>
@@ -122,7 +122,7 @@ function GoogleOAuthCredentialSelector({
<p className="text-sm font-medium">
<SelectItemText>{cred.credential_name}</SelectItemText>
</p>
- <p className="text-xs text-muted-foreground">{cred.id}</p>
+ <p className="text-xs text-slate-400">{cred.id}</p>
</div>
</CustomSelectItem>
))}
diff --git a/skyvern-frontend/src/routes/workflows/components/InlineCreateRow.tsx b/skyvern-frontend/src/routes/workflows/components/InlineCreateRow.tsx
index c828dfb54..e462b8e5d 100644
--- a/skyvern-frontend/src/routes/workflows/components/InlineCreateRow.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/InlineCreateRow.tsx
@@ -22,7 +22,7 @@ function InlineCreateRow({
return (
<button
type="button"
- className="flex w-full items-center gap-2 px-3 py-2 text-left text-xs text-foreground hover:bg-slate-elevation4"
+ className="flex w-full items-center gap-2 px-3 py-2 text-left text-xs text-slate-200 hover:bg-slate-700"
onClick={() => setEditing(true)}
disabled={isSubmitting}
>
@@ -56,7 +56,7 @@ function InlineCreateRow({
/>
<button
type="button"
- className="rounded p-1 text-muted-foreground hover:bg-slate-elevation4 disabled:opacity-50"
+ className="rounded p-1 text-slate-300 hover:bg-slate-700 disabled:opacity-50"
onClick={() => value.trim() && onConfirm(value.trim())}
disabled={isSubmitting || !value.trim()}
aria-label="Confirm"
@@ -65,7 +65,7 @@ function InlineCreateRow({
</button>
<button
type="button"
- className="rounded p-1 text-muted-foreground hover:bg-slate-elevation4"
+ className="rounded p-1 text-slate-400 hover:bg-slate-700"
onClick={() => {
setEditing(false);
setValue("");
diff --git a/skyvern-frontend/src/routes/workflows/components/ParameterDisplayInline.tsx b/skyvern-frontend/src/routes/workflows/components/ParameterDisplayInline.tsx
index a23968e42..4c09ee07d 100644
--- a/skyvern-frontend/src/routes/workflows/components/ParameterDisplayInline.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/ParameterDisplayInline.tsx
@@ -45,7 +45,7 @@ function ParameterDisplayInline({
}: ParameterDisplayInlineProps) {
if (!parameters || parameters.length === 0) {
return (
- <div className={cn("ml-8 py-4 text-sm text-muted-foreground", className)}>
+ <div className={cn("ml-8 py-4 text-sm text-slate-400", className)}>
{emptyMessage}
</div>
);
@@ -63,7 +63,7 @@ function ParameterDisplayInline({
<div
key={parameter.key}
className={cn(
- "grid gap-6 rounded border border-border bg-card p-3 text-sm",
+ "grid gap-6 rounded border bg-white p-3 text-sm dark:border-slate-800 dark:bg-slate-900",
showDescription
? "grid-cols-[minmax(200px,1fr)_minmax(200px,1fr)_minmax(300px,2fr)]"
: "grid-cols-[minmax(200px,1fr)_minmax(300px,2fr)]",
@@ -76,22 +76,20 @@ function ParameterDisplayInline({
</div>
<div className="truncate">
{displayValue === "-" ? (
- <span className="text-muted-foreground">-</span>
+ <span className="text-slate-400">-</span>
) : (
<HighlightText text={displayValue} query={searchQuery} />
)}
</div>
{showDescription ? (
- <div className="text-muted-foreground">
+ <div className="text-slate-500">
{parameter.description ? (
<HighlightText
text={parameter.description}
query={searchQuery}
/>
) : (
- <span className="text-muted-foreground">
- No description
- </span>
+ <span className="text-slate-400">No description</span>
)}
</div>
) : null}
diff --git a/skyvern-frontend/src/routes/workflows/components/ParametersDialogBase.tsx b/skyvern-frontend/src/routes/workflows/components/ParametersDialogBase.tsx
index 109419724..bdd12eb1d 100644
--- a/skyvern-frontend/src/routes/workflows/components/ParametersDialogBase.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/ParametersDialogBase.tsx
@@ -60,7 +60,7 @@ export function ParametersDialogBase({
<div className="flex flex-wrap items-center gap-2">
<div className="break-all font-mono text-sm">{item.key}</div>
{item.description ? (
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
— {item.description}
</div>
) : null}
@@ -102,7 +102,7 @@ export function ParametersDialogBase({
<DialogTitle>{title}</DialogTitle>
</DialogHeader>
{items.length === 0 ? (
- <div className="text-sm text-muted-foreground">No parameters.</div>
+ <div className="text-sm text-slate-400">No parameters.</div>
) : (
<div className="space-y-3">
<Label className="text-xs">{sectionLabel}</Label>
diff --git a/skyvern-frontend/src/routes/workflows/components/ScheduleParametersSection.tsx b/skyvern-frontend/src/routes/workflows/components/ScheduleParametersSection.tsx
index b929df5a6..8a9b5327c 100644
--- a/skyvern-frontend/src/routes/workflows/components/ScheduleParametersSection.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/ScheduleParametersSection.tsx
@@ -33,11 +33,11 @@ function ScheduleParametersSection({
<div className="space-y-2">
<div className="space-y-1">
<Label>Workflow Parameters</Label>
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-500">
Values supplied here are used every time this schedule runs.
</p>
</div>
- <div className="space-y-4 rounded-md border border-border bg-slate-elevation3 p-3">
+ <div className="space-y-4 rounded-md border border-slate-700 bg-slate-elevation3 p-3">
{workflowParameters.map((parameter) => {
const error = errors?.[parameter.key];
const required = isRequired(parameter);
@@ -55,14 +55,14 @@ function ScheduleParametersSection({
</span>
)}
</Label>
- <span className="text-[10px] uppercase tracking-wide text-muted-foreground">
+ <span className="text-[10px] uppercase tracking-wide text-slate-500">
{getLabelForWorkflowParameterType(
parameter.workflow_parameter_type,
)}
</span>
</div>
{parameter.description && (
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-500">
{parameter.description}
</p>
)}
diff --git a/skyvern-frontend/src/routes/workflows/components/SheetTabCombobox.tsx b/skyvern-frontend/src/routes/workflows/components/SheetTabCombobox.tsx
index fe1f29069..0644a4b2a 100644
--- a/skyvern-frontend/src/routes/workflows/components/SheetTabCombobox.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/SheetTabCombobox.tsx
@@ -94,7 +94,7 @@ function SheetTabCombobox({
e.preventDefault();
}
}}
- className="nopan w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-md border border-border bg-slate-elevation1 p-0 shadow-lg"
+ className="nopan w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-md border border-slate-700 bg-slate-900 p-0 shadow-lg"
>
<SheetTabListPanel
credentialId={credentialId}
@@ -197,14 +197,14 @@ function SheetTabListPanel({
if (isReconnectRequired(tabsQuery.error)) {
return (
<div className="w-full p-3 text-xs">
- <p className="mb-2 text-foreground">
+ <p className="mb-2 text-slate-200">
Reconnect this Google account to enable the sheet picker.
</p>
<a
href="/integrations"
target="_blank"
rel="noopener noreferrer"
- className="inline-flex items-center gap-1 text-muted-foreground underline hover:text-foreground"
+ className="inline-flex items-center gap-1 text-slate-300 underline hover:text-slate-100"
>
Open integrations <ExternalLinkIcon className="size-3" />
</a>
@@ -224,7 +224,7 @@ function SheetTabListPanel({
return (
<>
{allowCreate ? (
- <div className="border-b border-border">
+ <div className="border-b border-slate-700">
<InlineCreateRow
label="Create new sheet"
placeholder="Sheet title"
@@ -241,16 +241,14 @@ function SheetTabListPanel({
))}
</div>
) : tabs.length === 0 ? (
- <div className="px-3 py-3 text-xs text-muted-foreground">
- No sheets.
- </div>
+ <div className="px-3 py-3 text-xs text-slate-500">No sheets.</div>
) : (
tabs.map((tab, index) => (
<button
key={tab.sheet_id}
type="button"
onClick={() => onPick(tab.title, index)}
- className="flex w-full px-3 py-2 text-left text-xs text-foreground hover:bg-slate-elevation4"
+ className="flex w-full px-3 py-2 text-left text-xs text-slate-200 hover:bg-slate-700"
>
{tab.title}
</button>
diff --git a/skyvern-frontend/src/routes/workflows/components/SpreadsheetCombobox.tsx b/skyvern-frontend/src/routes/workflows/components/SpreadsheetCombobox.tsx
index 816c7d4d7..536ef94ee 100644
--- a/skyvern-frontend/src/routes/workflows/components/SpreadsheetCombobox.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/SpreadsheetCombobox.tsx
@@ -137,7 +137,7 @@ function SpreadsheetCombobox({
e.preventDefault();
}
}}
- className="nopan w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-md border border-border bg-slate-elevation1 p-0 shadow-lg"
+ className="nopan w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-md border border-slate-700 bg-slate-900 p-0 shadow-lg"
>
<SpreadsheetListPanel
credentialId={credentialId}
@@ -214,14 +214,14 @@ function SpreadsheetListPanel({
if (isReconnectRequired(listing.error)) {
return (
<div className="w-full p-3 text-xs">
- <p className="mb-2 text-foreground">
+ <p className="mb-2 text-slate-200">
Reconnect this Google account to enable the sheet picker.
</p>
<a
href="/integrations"
target="_blank"
rel="noopener noreferrer"
- className="inline-flex items-center gap-1 text-muted-foreground underline hover:text-foreground"
+ className="inline-flex items-center gap-1 text-slate-300 underline hover:text-slate-100"
>
Open integrations <ExternalLinkIcon className="size-3" />
</a>
@@ -242,7 +242,7 @@ function SpreadsheetListPanel({
return (
<>
{allowCreate ? (
- <div className="border-b border-border">
+ <div className="border-b border-slate-700">
<InlineCreateRow
label="Create new spreadsheet"
placeholder="Spreadsheet title"
@@ -277,7 +277,7 @@ function SpreadsheetListPanel({
Could not load spreadsheets. Please try again.
</div>
) : items.length === 0 ? (
- <div className="px-3 py-3 text-xs text-muted-foreground">
+ <div className="px-3 py-3 text-xs text-slate-500">
No spreadsheets found.
</div>
) : (
@@ -293,11 +293,11 @@ function SpreadsheetListPanel({
firstSheetName: null,
})
}
- className="flex w-full flex-col gap-0.5 px-3 py-2 text-left text-xs hover:bg-slate-elevation4"
+ className="flex w-full flex-col gap-0.5 px-3 py-2 text-left text-xs hover:bg-slate-700"
>
- <span className="font-medium text-foreground">{ss.name}</span>
+ <span className="font-medium text-slate-200">{ss.name}</span>
{ss.modified_time ? (
- <span className="text-muted-foreground">
+ <span className="text-slate-500">
Modified {new Date(ss.modified_time).toLocaleString()}
</span>
) : null}
@@ -305,7 +305,7 @@ function SpreadsheetListPanel({
))}
{listing.isFetchingNextPage ? (
<div className="flex items-center justify-center py-2">
- <ReloadIcon className="size-3 animate-spin text-muted-foreground" />
+ <ReloadIcon className="size-3 animate-spin text-slate-400" />
</div>
) : null}
</>
diff --git a/skyvern-frontend/src/routes/workflows/components/ViewAllFoldersDialog.tsx b/skyvern-frontend/src/routes/workflows/components/ViewAllFoldersDialog.tsx
index d24aea20e..36cefcb2a 100644
--- a/skyvern-frontend/src/routes/workflows/components/ViewAllFoldersDialog.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/ViewAllFoldersDialog.tsx
@@ -66,7 +66,7 @@ function ViewAllFoldersDialog({
</DialogHeader>
<div className="relative mb-4">
- <MagnifyingGlassIcon className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
+ <MagnifyingGlassIcon className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" />
<Input
type="text"
placeholder="Search folders..."
@@ -77,7 +77,7 @@ function ViewAllFoldersDialog({
</div>
<div
- className="max-h-[500px] overflow-y-auto pr-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:border-2 [&::-webkit-scrollbar-thumb]:border-border [&::-webkit-scrollbar-thumb]:bg-slate-elevation4 dark:[&::-webkit-scrollbar-thumb]:border-border dark:[&::-webkit-scrollbar-thumb]:bg-slate-elevation5 [&::-webkit-scrollbar-track]:bg-slate-elevation2 dark:[&::-webkit-scrollbar-track]:bg-slate-elevation5 [&::-webkit-scrollbar]:w-2"
+ className="max-h-[500px] overflow-y-auto pr-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:border-2 [&::-webkit-scrollbar-thumb]:border-slate-100 [&::-webkit-scrollbar-thumb]:bg-slate-300 dark:[&::-webkit-scrollbar-thumb]:border-slate-800 dark:[&::-webkit-scrollbar-thumb]:bg-slate-600 [&::-webkit-scrollbar-track]:bg-slate-100 dark:[&::-webkit-scrollbar-track]:bg-slate-800 [&::-webkit-scrollbar]:w-2"
onScroll={(e) =>
handleInfiniteScroll(
e,
@@ -93,7 +93,7 @@ function ViewAllFoldersDialog({
{Array.from({ length: 12 }).map((_, index) => (
<div
key={`skeleton-${index}`}
- className="flex h-24 flex-col gap-3 rounded-lg border border-border bg-slate-elevation1 p-4 dark:border-border"
+ className="flex h-24 flex-col gap-3 rounded-lg border border-slate-200 bg-slate-elevation1 p-4 dark:border-slate-700"
>
<div className="flex items-start gap-3">
<Skeleton className="mt-0.5 h-5 w-5" />
@@ -106,7 +106,7 @@ function ViewAllFoldersDialog({
))}
</div>
) : folders.length === 0 ? (
- <div className="flex flex-col items-center justify-center py-12 text-muted-foreground">
+ <div className="flex flex-col items-center justify-center py-12 text-slate-400">
<p>No folders found</p>
</div>
) : (
@@ -124,14 +124,14 @@ function ViewAllFoldersDialog({
{isFetchingNextPage && (
<div className="mt-4 flex items-center justify-center py-4">
<ReloadIcon className="mr-2 h-4 w-4 animate-spin" />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
Loading more folders...
</span>
</div>
)}
{!hasNextPage && folders.length > 20 && (
<div className="mt-4 flex items-center justify-center py-4">
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
All folders loaded
</span>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/components/WhileLoopPostRunFields.tsx b/skyvern-frontend/src/routes/workflows/components/WhileLoopPostRunFields.tsx
index 48f8c63d0..83d3b23ef 100644
--- a/skyvern-frontend/src/routes/workflows/components/WhileLoopPostRunFields.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/WhileLoopPostRunFields.tsx
@@ -38,12 +38,10 @@ export function WhileLoopPostRunFields({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-sm">While condition</h1>
- <h2 className="text-sm text-muted-foreground">
- {WHILE_CONDITION_HELP}
- </h2>
+ <h2 className="text-sm text-slate-400">{WHILE_CONDITION_HELP}</h2>
</div>
<div className="w-full space-y-2">
- <div className="text-xs capitalize text-muted-foreground">
+ <div className="text-xs capitalize text-slate-500">
{whileDefinition.condition.criteria_type.replace(/_/g, " ")}
</div>
<AutoResizingTextarea
@@ -57,9 +55,7 @@ export function WhileLoopPostRunFields({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-sm">Block output</h1>
- <h2 className="text-sm text-muted-foreground">
- {BLOCK_OUTPUT_HELP}
- </h2>
+ <h2 className="text-sm text-slate-400">{BLOCK_OUTPUT_HELP}</h2>
</div>
<CodeEditor
className="w-full"
@@ -82,7 +78,7 @@ export function WhileLoopPostRunFields({
<h1 className="text-sm">While condition</h1>
<HelpTooltip content={WHILE_CONDITION_HELP} />
</div>
- <div className="text-xs capitalize text-muted-foreground">
+ <div className="text-xs capitalize text-slate-500">
{whileDefinition.condition.criteria_type.replace(/_/g, " ")}
</div>
<AutoResizingTextarea
diff --git a/skyvern-frontend/src/routes/workflows/components/WorkflowFolderSelector.tsx b/skyvern-frontend/src/routes/workflows/components/WorkflowFolderSelector.tsx
index c6e354c5a..e9bcdeb3c 100644
--- a/skyvern-frontend/src/routes/workflows/components/WorkflowFolderSelector.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/WorkflowFolderSelector.tsx
@@ -63,7 +63,7 @@ function WorkflowFolderSelector({
size="icon"
className={cn(
"h-8 w-8",
- currentFolderId ? "text-blue-400" : "text-muted-foreground",
+ currentFolderId ? "text-blue-400" : "text-slate-400",
)}
>
<FolderIcon className="h-4 w-4" />
@@ -77,7 +77,7 @@ function WorkflowFolderSelector({
<div className="border-b p-3">
<h4 className="mb-2 text-sm font-medium">Move to folder</h4>
<div className="relative">
- <MagnifyingGlassIcon className="absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
+ <MagnifyingGlassIcon className="absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" />
<Input
placeholder="Search folders..."
value={search}
@@ -88,7 +88,7 @@ function WorkflowFolderSelector({
</div>
</div>
<div
- className="max-h-[300px] overflow-y-auto [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:border-2 [&::-webkit-scrollbar-thumb]:border-border [&::-webkit-scrollbar-thumb]:bg-slate-elevation4 dark:[&::-webkit-scrollbar-thumb]:border-border dark:[&::-webkit-scrollbar-thumb]:bg-slate-elevation5 [&::-webkit-scrollbar-track]:bg-slate-elevation2 dark:[&::-webkit-scrollbar-track]:bg-slate-elevation5 [&::-webkit-scrollbar]:w-2"
+ className="max-h-[300px] overflow-y-auto [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:border-2 [&::-webkit-scrollbar-thumb]:border-slate-100 [&::-webkit-scrollbar-thumb]:bg-slate-300 dark:[&::-webkit-scrollbar-thumb]:border-slate-800 dark:[&::-webkit-scrollbar-thumb]:bg-slate-600 [&::-webkit-scrollbar-track]:bg-slate-100 dark:[&::-webkit-scrollbar-track]:bg-slate-800 [&::-webkit-scrollbar]:w-2"
onScroll={(e) =>
handleInfiniteScroll(
e,
@@ -101,7 +101,7 @@ function WorkflowFolderSelector({
{currentFolderId && (
<button
onClick={() => handleFolderSelect(null)}
- className="flex w-full items-center justify-between border-b px-3 py-2 text-left text-sm transition-colors hover:bg-slate-elevation1 dark:hover:bg-slate-elevation5"
+ className="flex w-full items-center justify-between border-b px-3 py-2 text-left text-sm transition-colors hover:bg-slate-50 dark:hover:bg-slate-800"
>
<div className="flex items-center gap-2">
<Cross2Icon className="h-4 w-4 text-red-400" />
@@ -127,7 +127,7 @@ function WorkflowFolderSelector({
))}
</>
) : folders.length === 0 ? (
- <div className="px-3 py-8 text-center text-sm text-muted-foreground">
+ <div className="px-3 py-8 text-center text-sm text-slate-400">
No folders found
</div>
) : (
@@ -139,14 +139,14 @@ function WorkflowFolderSelector({
key={folder.folder_id}
onClick={() => handleFolderSelect(folder.folder_id)}
disabled={isCurrentFolder}
- className="flex w-full items-center justify-between px-3 py-2 text-left text-sm transition-colors hover:bg-slate-elevation1 disabled:opacity-50 dark:hover:bg-slate-elevation5"
+ className="flex w-full items-center justify-between px-3 py-2 text-left text-sm transition-colors hover:bg-slate-50 disabled:opacity-50 dark:hover:bg-slate-800"
>
<div className="flex items-center gap-2">
<FolderIcon className="h-4 w-4 text-blue-400" />
<div className="flex flex-col">
<span>{folder.title}</span>
{folder.description && (
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-slate-400">
{folder.description}
</span>
)}
@@ -160,7 +160,7 @@ function WorkflowFolderSelector({
})}
{isFetchingNextPage && (
<div className="flex items-center justify-center py-2">
- <ReloadIcon className="h-3 w-3 animate-spin text-muted-foreground" />
+ <ReloadIcon className="h-3 w-3 animate-spin text-slate-400" />
</div>
)}
</>
diff --git a/skyvern-frontend/src/routes/workflows/components/WorkflowVisualComparisonDrawer.tsx b/skyvern-frontend/src/routes/workflows/components/WorkflowVisualComparisonDrawer.tsx
index 98a645917..c35fe3198 100644
--- a/skyvern-frontend/src/routes/workflows/components/WorkflowVisualComparisonDrawer.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/WorkflowVisualComparisonDrawer.tsx
@@ -221,7 +221,7 @@ function WorkflowComparisonRenderer({
</div>
</div>
</div>
- <div className="h-[calc(100%-3rem)] rounded-lg border bg-card">
+ <div className="h-[calc(100%-3rem)] rounded-lg border bg-white">
<FlowRenderer
hideBackground={false}
readOnly
@@ -295,7 +295,7 @@ function WorkflowVisualComparisonDrawer({
if (!isOpen) return null;
return (
- <div className="fixed inset-0 z-50 flex bg-black/50">
+ <div className="fixed inset-0 z-50 flex bg-black bg-opacity-50">
{/* Main Drawer */}
<div className="bg-navy mx-auto my-4 flex w-full max-w-[95vw] flex-col rounded-lg shadow-xl">
{/* Header */}
diff --git a/skyvern-frontend/src/routes/workflows/components/WorkflowsTable.tsx b/skyvern-frontend/src/routes/workflows/components/WorkflowsTable.tsx
index ff1cb5505..a3e1ba17d 100644
--- a/skyvern-frontend/src/routes/workflows/components/WorkflowsTable.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/WorkflowsTable.tsx
@@ -61,15 +61,13 @@ function WorkflowsTable() {
return (
<div className="space-y-4">
<Table>
- <TableHeader className="bg-slate-elevation2 text-muted-foreground [&_tr]:border-b-0">
+ <TableHeader className="bg-slate-elevation2 text-slate-400 [&_tr]:border-b-0">
<TableRow className="rounded-lg px-6 [&_th:first-child]:pl-6 [&_th]:py-4">
- <TableHead className="text-sm text-muted-foreground">
- Title
- </TableHead>
- <TableHead className="text-sm text-muted-foreground">
+ <TableHead className="text-sm text-slate-400">Title</TableHead>
+ <TableHead className="text-sm text-slate-400">
Last Run Status
</TableHead>
- <TableHead className="text-sm text-muted-foreground">
+ <TableHead className="text-sm text-slate-400">
Last Run Time
</TableHead>
</TableRow>
diff --git a/skyvern-frontend/src/routes/workflows/components/header/NarrativeCard.tsx b/skyvern-frontend/src/routes/workflows/components/header/NarrativeCard.tsx
index 003d5cc90..89a46e331 100644
--- a/skyvern-frontend/src/routes/workflows/components/header/NarrativeCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/header/NarrativeCard.tsx
@@ -1,44 +1,15 @@
-import { cn } from "@/util/utils";
-
type Props = {
index: number;
description: string;
};
-const VARIANTS = {
- 1: {
- cardBg: "bg-brand-soft/60 dark:bg-brand/10",
- chipBg: "bg-brand-cta text-brand-cta-foreground",
- },
- 2: {
- cardBg: "bg-warning/10 dark:bg-warning/15",
- chipBg: "bg-warning text-warning-foreground",
- },
- 3: {
- cardBg: "bg-success/10 dark:bg-success/15",
- chipBg: "bg-success text-success-foreground",
- },
-} as const;
-
function NarrativeCard({ index, description }: Props) {
- const variant = VARIANTS[index as 1 | 2 | 3] ?? VARIANTS[1];
-
return (
- <div
- className={cn(
- "flex h-32 w-52 flex-col gap-3 rounded-xl border border-border p-4 shadow-sm",
- variant.cardBg,
- )}
- >
- <div
- className={cn(
- "flex size-6 items-center justify-center rounded-full text-xs font-semibold shadow-sm",
- variant.chipBg,
- )}
- >
+ <div className="flex h-32 w-52 flex-col gap-3 rounded-xl bg-slate-elevation1 p-4">
+ <div className="flex size-6 items-center justify-center rounded-full bg-slate-400 text-slate-950">
{index}
</div>
- <div className="text-sm text-foreground/80">{description}</div>
+ <div className="text-sm text-slate-300">{description}</div>
</div>
);
}
diff --git a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotButton.tsx b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotButton.tsx
index 823dfe678..030a1d1cc 100644
--- a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotButton.tsx
+++ b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotButton.tsx
@@ -20,7 +20,7 @@ export const WorkflowCopilotButton = forwardRef<
<ChatBubbleIcon className="h-4 w-4" />
<span>Copilot</span>
{messageCount > 0 && (
- <span className="flex h-5 w-5 items-center justify-center rounded-full bg-brand-cta text-xs font-bold text-brand-cta-foreground">
+ <span className="flex h-5 w-5 items-center justify-center rounded-full bg-blue-600 text-xs font-bold text-white">
{messageCount}
</span>
)}
diff --git a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx
index 7c497e1d9..ec11e563d 100644
--- a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx
+++ b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx
@@ -111,19 +111,19 @@ const MessageItem = memo(({ message, footer }: MessageItemProps) => {
return (
<div className="flex items-start gap-3">
<div
- className={`flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold text-brand-foreground ${
- message.sender === "ai" ? "bg-brand" : "bg-purple-600"
+ className={`flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold text-white ${
+ message.sender === "ai" ? "bg-blue-600" : "bg-purple-600"
}`}
>
{message.sender === "ai" ? "AI" : "U"}
</div>
- <div className="relative flex-1 rounded-lg bg-slate-elevation5 p-3 pr-12">
- <p className="whitespace-pre-wrap pr-3 text-sm text-foreground">
+ <div className="relative flex-1 rounded-lg bg-slate-800 p-3 pr-12">
+ <p className="whitespace-pre-wrap pr-3 text-sm text-slate-200">
{message.content}
</p>
{footer ? <div className="mt-3 flex gap-2">{footer}</div> : null}
{message.timestamp ? (
- <span className="pointer-events-none absolute bottom-2 right-2 rounded bg-slate-elevation1/70 px-1.5 py-0.5 text-[10px] text-muted-foreground">
+ <span className="pointer-events-none absolute bottom-2 right-2 rounded bg-slate-900/70 px-1.5 py-0.5 text-[10px] text-slate-400">
{formatChatTimestamp(message.timestamp)}
</span>
) : null}
@@ -1256,7 +1256,7 @@ export function WorkflowCopilotChat({
return (
<div
- className="fixed z-50 flex flex-col rounded-lg border border-border bg-slate-elevation1 shadow-2xl"
+ className="fixed z-50 flex flex-col rounded-lg border border-slate-700 bg-slate-900 shadow-2xl"
style={{
left: `${position.x}px`,
top: `${position.y}px`,
@@ -1266,10 +1266,10 @@ export function WorkflowCopilotChat({
>
{/* Header */}
<div
- className="flex cursor-move items-center justify-between border-b border-border px-4 py-2"
+ className="flex cursor-move items-center justify-between border-b border-slate-700 px-4 py-2"
onMouseDown={handleMouseDown}
>
- <h3 className="text-sm font-semibold text-foreground">
+ <h3 className="text-sm font-semibold text-slate-200">
Workflow Copilot (Beta)
</h3>
<div className="flex items-center gap-2">
@@ -1277,17 +1277,17 @@ export function WorkflowCopilotChat({
type="button"
onClick={handleNewChat}
onMouseDown={(e) => e.stopPropagation()}
- className="rounded border border-border px-2 py-1 text-xs text-muted-foreground hover:bg-slate-elevation5"
+ className="rounded border border-slate-700 px-2 py-1 text-xs text-slate-300 hover:bg-slate-800"
>
New chat
</button>
<div className="h-2 w-2 rounded-full bg-green-500"></div>
- <span className="text-xs text-muted-foreground">Active</span>
+ <span className="text-xs text-slate-400">Active</span>
<button
type="button"
onClick={() => onClose?.()}
onMouseDown={(e) => e.stopPropagation()}
- className="ml-2 rounded p-1 text-muted-foreground hover:bg-slate-elevation5 hover:text-foreground"
+ className="ml-2 rounded p-1 text-slate-400 hover:bg-slate-800 hover:text-slate-200"
title="Close"
>
<Cross2Icon className="h-4 w-4" />
@@ -1299,13 +1299,13 @@ export function WorkflowCopilotChat({
<div className="flex-1 overflow-y-auto p-4">
<div className="space-y-3">
{!isLoadingHistory && messages.length === 0 && !isLoading ? (
- <div className="rounded-lg border border-border bg-slate-elevation1/60 p-4 text-sm text-muted-foreground">
- <p className="font-semibold text-foreground">Start a new chat</p>
- <p className="mt-2 text-muted-foreground">
+ <div className="rounded-lg border border-slate-800 bg-slate-900/60 p-4 text-sm text-slate-300">
+ <p className="font-semibold text-slate-200">Start a new chat</p>
+ <p className="mt-2 text-slate-400">
Ask the copilot to draft or edit your workflow. Provide a goal,
the target site, and any credentials it should use.
</p>
- <p className="mt-2 text-muted-foreground">
+ <p className="mt-2 text-slate-400">
Example: "Build workflow to find the top post on hackernews
today"
</p>
@@ -1322,7 +1322,7 @@ export function WorkflowCopilotChat({
message={message}
footer={
showQueuedFooter ? (
- <div className="flex items-center gap-2 text-xs text-muted-foreground">
+ <div className="flex items-center gap-2 text-xs text-slate-400">
<ReloadIcon className="h-3 w-3 animate-spin" />
<span>{queuedPromptWaitingStatus}</span>
</div>
@@ -1331,14 +1331,14 @@ export function WorkflowCopilotChat({
<button
type="button"
onClick={() => handleReviewWorkflow(proposedWorkflow)}
- className="rounded border border-brand/60 bg-brand/10 px-3 py-1 text-xs text-foreground hover:bg-brand/20"
+ className="rounded border border-blue-500/60 bg-blue-500/10 px-3 py-1 text-xs text-blue-100 hover:bg-blue-500/20"
>
Review
</button>
<button
type="button"
onClick={() => handleAcceptWorkflow(proposedWorkflow)}
- className="rounded bg-success px-3 py-1 text-xs text-success-foreground hover:bg-success/90"
+ className="rounded bg-green-600 px-3 py-1 text-xs text-white hover:bg-green-700"
>
Accept
</button>
@@ -1347,14 +1347,14 @@ export function WorkflowCopilotChat({
onClick={() =>
handleAcceptWorkflow(proposedWorkflow, true)
}
- className="rounded bg-success px-3 py-1 text-xs text-success-foreground hover:bg-success/80"
+ className="rounded bg-emerald-600 px-3 py-1 text-xs text-white hover:bg-emerald-700"
>
Always accept
</button>
<button
type="button"
onClick={handleRejectWorkflow}
- className="rounded bg-destructive px-3 py-1 text-xs text-destructive-foreground hover:bg-destructive/90"
+ className="rounded bg-red-600 px-3 py-1 text-xs text-white hover:bg-red-700"
>
Reject
</button>
@@ -1366,11 +1366,11 @@ export function WorkflowCopilotChat({
})}
{(isLoading || isQueuedPromptWaiting) && (
<div className="flex items-start gap-3">
- <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-brand text-xs font-bold text-brand-foreground">
+ <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-bold text-white">
AI
</div>
- <div className="flex-1 rounded-lg bg-slate-elevation5 p-3">
- <div className="flex items-center gap-2 text-sm text-muted-foreground">
+ <div className="flex-1 rounded-lg bg-slate-800 p-3">
+ <div className="flex items-center gap-2 text-sm text-slate-300">
<ReloadIcon className="h-4 w-4 animate-spin" />
<span>
{isQueuedPromptWaiting
@@ -1379,7 +1379,7 @@ export function WorkflowCopilotChat({
</span>
</div>
{isQueuedPromptWaiting ? (
- <div className="mt-2 text-xs text-muted-foreground">
+ <div className="mt-2 text-xs text-slate-500">
Copilot will start automatically once the browser is ready.
</div>
) : null}
@@ -1393,7 +1393,7 @@ export function WorkflowCopilotChat({
const displayName =
TOOL_DISPLAY_NAMES[activity.tool_name] ??
activity.tool_name;
- const containerClass = `flex items-start gap-1.5 text-xs text-muted-foreground${
+ const containerClass = `flex items-start gap-1.5 text-xs text-slate-500${
activity.linkedRecovery
? " border-l border-amber-400/40 pl-2"
: ""
@@ -1427,11 +1427,9 @@ export function WorkflowCopilotChat({
</div>
{/* Input */}
- <div className="border-t border-border p-3">
+ <div className="border-t border-slate-700 p-3">
{browserStatusText ? (
- <div className="mb-2 text-xs text-muted-foreground">
- {browserStatusText}
- </div>
+ <div className="mb-2 text-xs text-slate-400">{browserStatusText}</div>
) : null}
<div className="flex items-end gap-2">
<textarea
@@ -1448,7 +1446,7 @@ export function WorkflowCopilotChat({
onKeyDown={handleKeyPress}
disabled={inputDisabled}
rows={1}
- className="flex-1 resize-none rounded-md border border-border bg-slate-elevation5 px-3 py-2 text-sm text-foreground placeholder-muted-foreground focus:border-brand focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
+ className="flex-1 resize-none rounded-md border border-slate-600 bg-slate-800 px-3 py-2 text-sm text-slate-200 placeholder-slate-500 focus:border-blue-500 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
style={{
minHeight: "38px",
maxHeight: "150px",
@@ -1459,14 +1457,14 @@ export function WorkflowCopilotChat({
<button
onClick={isLoading ? cancelSend : cancelQueuedPrompt}
title={isLoading ? "Stop Copilot" : "Edit queued prompt"}
- className="rounded-md bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground hover:bg-destructive/90"
+ className="rounded-md bg-red-600 px-4 py-2 text-sm font-medium text-white hover:bg-red-700"
>
Cancel
</button>
) : (
<button
onClick={() => handleSend()}
- className="rounded-md bg-brand-cta px-4 py-2 text-sm font-medium text-brand-cta-foreground hover:bg-brand-cta/90"
+ className="rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700"
>
Send
</button>
diff --git a/skyvern-frontend/src/routes/workflows/debugger/DebuggerPostRunParameters.tsx b/skyvern-frontend/src/routes/workflows/debugger/DebuggerPostRunParameters.tsx
index 9ec6db395..24b263c76 100644
--- a/skyvern-frontend/src/routes/workflows/debugger/DebuggerPostRunParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/debugger/DebuggerPostRunParameters.tsx
@@ -226,7 +226,7 @@ function DebuggerPostRunParameters() {
checked={activeBlock.executed_branch_result}
disabled
/>
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{activeBlock.executed_branch_result ? "True" : "False"}
</span>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/debugger/DebuggerTaskBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/debugger/DebuggerTaskBlockParameters.tsx
index 791fc8bd7..24f21d098 100644
--- a/skyvern-frontend/src/routes/workflows/debugger/DebuggerTaskBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/debugger/DebuggerTaskBlockParameters.tsx
@@ -148,7 +148,7 @@ function DebuggerTaskBlockParameters({ block }: Props) {
</div>
<div className="flex items-center gap-3">
<Switch checked={block.continue_on_failure} disabled />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{block.continue_on_failure ? "Enabled" : "Disabled"}
</span>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
index 3930e7cdb..63ffa0503 100644
--- a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
@@ -1579,7 +1579,7 @@ function FlowRenderer({
onMouseDownCapture={() => onMouseDownCapture?.()}
>
{layoutPhase === "pre-layout" && (
- <div className="absolute inset-0 z-50 flex items-center justify-center bg-background">
+ <div className="absolute inset-0 z-50 flex items-center justify-center bg-slate-950">
<div className="animate-pulse">
<LogoMinimized />
</div>
diff --git a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
index ec61bb266..fd127a392 100644
--- a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
@@ -1361,7 +1361,7 @@ function Workspace({
<DialogHeader>
<DialogTitle>Cycle (Get a new browser)</DialogTitle>
<DialogDescription>
- <div className="pb-2 pt-4 text-sm text-muted-foreground">
+ <div className="pb-2 pt-4 text-sm text-slate-400">
{cycleBrowser.isPending ? (
<>
Cooking you up a fresh browser...
@@ -1790,8 +1790,8 @@ function Workspace({
data-testid="browser-rate-limit-message"
className="flex w-full flex-1 items-center justify-center"
>
- <div className="flex max-w-md flex-col items-center justify-center gap-4 rounded-md border border-border bg-slate-elevation1 p-8 text-center">
- <p className="text-sm text-muted-foreground">
+ <div className="flex max-w-md flex-col items-center justify-center gap-4 rounded-md border border-slate-700 bg-slate-900 p-8 text-center">
+ <p className="text-sm text-slate-300">
Failed to load a browser. We have a high demand for
browsers right now. The browser will become
available again automatically in ~30 minutes. If the
diff --git a/skyvern-frontend/src/routes/workflows/editor/hooks/useSelectedCredentialTotpIdentifier.test.tsx b/skyvern-frontend/src/routes/workflows/editor/hooks/useSelectedCredentialTotpIdentifier.test.tsx
new file mode 100644
index 000000000..e4f51e6f9
--- /dev/null
+++ b/skyvern-frontend/src/routes/workflows/editor/hooks/useSelectedCredentialTotpIdentifier.test.tsx
@@ -0,0 +1,115 @@
+// @vitest-environment jsdom
+
+import { renderHook } from "@testing-library/react";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+
+import { useWorkflowParametersStore } from "@/store/WorkflowParametersStore";
+
+import { useSelectedCredentialTotpIdentifier } from "./useSelectedCredentialTotpIdentifier";
+
+const credentialsQuery = vi.hoisted(() => ({
+ data: [] as Array<unknown>,
+}));
+
+vi.mock("@/routes/workflows/hooks/useCredentialsQuery", () => ({
+ useCredentialsQuery: () => ({ data: credentialsQuery.data }),
+}));
+
+const PASSWORD_CRED = {
+ credential_id: "cred-1",
+ credential_type: "password" as const,
+ credential: {
+ username: "alice",
+ password: "*",
+ totp_identifier: "[email protected]",
+ },
+};
+
+const PASSWORD_CRED_NO_TOTP = {
+ credential_id: "cred-2",
+ credential_type: "password" as const,
+ credential: { username: "bob", password: "*", totp_identifier: null },
+};
+
+beforeEach(() => {
+ credentialsQuery.data = [];
+ useWorkflowParametersStore.setState({ parameters: [] });
+});
+
+describe("useSelectedCredentialTotpIdentifier", () => {
+ test("returns null when no parameterKey is provided", () => {
+ const { result } = renderHook(() =>
+ useSelectedCredentialTotpIdentifier(undefined),
+ );
+ expect(result.current).toBeNull();
+ });
+
+ test("resolves via a Skyvern credential parameter pointing at a credential with a stored totp_identifier", () => {
+ credentialsQuery.data = [PASSWORD_CRED];
+ useWorkflowParametersStore.setState({
+ parameters: [
+ {
+ key: "my_cred",
+ parameterType: "credential",
+ credentialId: "cred-1",
+ },
+ ],
+ });
+ const { result } = renderHook(() =>
+ useSelectedCredentialTotpIdentifier("my_cred"),
+ );
+ expect(result.current).toBe("[email protected]");
+ });
+
+ test("returns null when the matched credential has no stored totp_identifier", () => {
+ credentialsQuery.data = [PASSWORD_CRED_NO_TOTP];
+ useWorkflowParametersStore.setState({
+ parameters: [
+ {
+ key: "my_cred",
+ parameterType: "credential",
+ credentialId: "cred-2",
+ },
+ ],
+ });
+ const { result } = renderHook(() =>
+ useSelectedCredentialTotpIdentifier("my_cred"),
+ );
+ expect(result.current).toBeNull();
+ });
+
+ test("falls back to a workflow parameter whose dataType is credential_id and defaultValue points at a stored credential", () => {
+ credentialsQuery.data = [PASSWORD_CRED];
+ useWorkflowParametersStore.setState({
+ parameters: [
+ {
+ key: "my_cred",
+ parameterType: "workflow",
+ dataType: "credential_id",
+ defaultValue: "cred-1",
+ },
+ ],
+ });
+ const { result } = renderHook(() =>
+ useSelectedCredentialTotpIdentifier("my_cred"),
+ );
+ expect(result.current).toBe("[email protected]");
+ });
+
+ test("returns null when the parameter key matches nothing", () => {
+ credentialsQuery.data = [PASSWORD_CRED];
+ useWorkflowParametersStore.setState({
+ parameters: [
+ {
+ key: "other_key",
+ parameterType: "credential",
+ credentialId: "cred-1",
+ },
+ ],
+ });
+ const { result } = renderHook(() =>
+ useSelectedCredentialTotpIdentifier("missing_key"),
+ );
+ expect(result.current).toBeNull();
+ });
+});
diff --git a/skyvern-frontend/src/routes/workflows/editor/hooks/useSelectedCredentialTotpIdentifier.ts b/skyvern-frontend/src/routes/workflows/editor/hooks/useSelectedCredentialTotpIdentifier.ts
new file mode 100644
index 000000000..092532e72
--- /dev/null
+++ b/skyvern-frontend/src/routes/workflows/editor/hooks/useSelectedCredentialTotpIdentifier.ts
@@ -0,0 +1,68 @@
+import { useContext, useMemo } from "react";
+import CloudContext from "@/store/CloudContext";
+import { useCredentialsQuery } from "@/routes/workflows/hooks/useCredentialsQuery";
+import { useWorkflowParametersStore } from "@/store/WorkflowParametersStore";
+import { parameterIsSkyvernCredential } from "../types";
+
+/**
+ * Resolves the totp_identifier stored on the credential a block currently
+ * references (by parameter key). Returns null when no Skyvern credential is
+ * selected or the credential has no stored totp_identifier. Used only to render
+ * helper text — the runtime fallback to the credential's value lives in the
+ * backend, so the value is never written into the block.
+ *
+ * Callers pass the first credential parameter key on the block; blocks carry at
+ * most one credential parameter in practice, so subsequent keys are ignored.
+ */
+export function useSelectedCredentialTotpIdentifier(
+ parameterKey: string | undefined,
+): string | null {
+ const isCloud = useContext(CloudContext);
+ const { parameters: workflowParameters } = useWorkflowParametersStore();
+ const { data: credentials = [] } = useCredentialsQuery({
+ enabled: isCloud,
+ page_size: 100,
+ });
+
+ return useMemo(() => {
+ if (!parameterKey) {
+ return null;
+ }
+
+ let credentialId: string | undefined;
+ const credentialParam = workflowParameters
+ .filter((p) => p.parameterType === "credential")
+ .find((p) => p.key === parameterKey);
+ if (credentialParam && parameterIsSkyvernCredential(credentialParam)) {
+ credentialId = credentialParam.credentialId;
+ } else {
+ const workflowParam = workflowParameters.find(
+ (p) =>
+ p.parameterType === "workflow" &&
+ p.key === parameterKey &&
+ p.dataType === "credential_id" &&
+ typeof p.defaultValue === "string" &&
+ p.defaultValue,
+ );
+ if (workflowParam && workflowParam.parameterType === "workflow") {
+ credentialId = workflowParam.defaultValue as string;
+ }
+ }
+
+ if (!credentialId) {
+ return null;
+ }
+
+ const credential = credentials.find(
+ (c) => c.credential_id === credentialId,
+ );
+ if (
+ credential &&
+ credential.credential_type === "password" &&
+ "totp_identifier" in credential.credential
+ ) {
+ return credential.credential.totp_identifier ?? null;
+ }
+ return null;
+ }, [parameterKey, workflowParameters, credentials]);
+}
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionEditor.tsx
index f30d72892..8f6ee3a6e 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionEditor.tsx
@@ -23,6 +23,7 @@ import { useHasInteractedThisSession } from "../../panels/useHasInteractedThisSe
import { BlockExecutionOptions } from "../components/BlockExecutionOptions";
import { DisableCache } from "../DisableCache";
import { IgnoreWorkflowSystemPrompt } from "../IgnoreWorkflowSystemPrompt";
+import { useSelectedCredentialTotpIdentifier } from "../../hooks/useSelectedCredentialTotpIdentifier";
import { ParametersMultiSelect } from "../TaskNode/ParametersMultiSelect";
import { errorMappingExampleValue } from "../types";
import { type AppNode } from "..";
@@ -72,6 +73,9 @@ function ActionEditorBody({
const isInsideForLoop = isNodeInsideForLoop(nodes, blockId);
const parentLoopSkipsOnFail = getParentLoopSkipsOnFail(nodes, blockId);
const hasInteracted = useHasInteractedThisSession();
+ const credentialTotpIdentifier = useSelectedCredentialTotpIdentifier(
+ data.parameterKeys.length > 0 ? data.parameterKeys[0] : undefined,
+ );
return (
<div data-testid="action-block-form" className="space-y-4">
@@ -137,11 +141,6 @@ function ActionEditorBody({
onParametersChange={(parameterKeys) =>
update({ parameterKeys })
}
- onCredentialTotpIdentifier={(totpIdentifier) => {
- if (!data.totpIdentifier?.trim()) {
- update({ totpIdentifier });
- }
- }}
/>
</div>
<div className="flex items-center justify-between">
@@ -276,9 +275,18 @@ function ActionEditorBody({
nodeId={blockId}
onChange={(value) => update({ totpIdentifier: value })}
value={data.totpIdentifier ?? ""}
- placeholder={placeholders["action"]["totpIdentifier"]}
+ placeholder={
+ !data.totpIdentifier?.trim() && credentialTotpIdentifier
+ ? `${credentialTotpIdentifier} (from credential)`
+ : placeholders["action"]["totpIdentifier"]
+ }
className="nopan text-xs"
/>
+ {!data.totpIdentifier?.trim() && credentialTotpIdentifier ? (
+ <p className="text-xs text-slate-500">
+ Leave empty to use the credential's value.
+ </p>
+ ) : null}
</div>
<div className="space-y-2">
<div className="flex gap-2">
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/DisableCache.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/DisableCache.tsx
index 803276bfe..3f16b9acd 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/DisableCache.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/DisableCache.tsx
@@ -23,7 +23,7 @@ function DisableCache({
*/}
<div className="flex items-center justify-between">
<div className="flex gap-2">
- <Label className="text-xs font-normal text-muted-foreground">
+ <Label className="text-xs font-normal text-slate-300">
Disable Cache
</Label>
<HelpTooltip content="Disable caching for this block." />
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadEditor.tsx
index 3f2aafced..c0594318b 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadEditor.tsx
@@ -25,6 +25,7 @@ import { DisableCache } from "../DisableCache";
import { IgnoreWorkflowSystemPrompt } from "../IgnoreWorkflowSystemPrompt";
import { BlockExecutionOptions } from "../components/BlockExecutionOptions";
import { type FileDownloadNode, type FileDownloadNodeData } from "./types";
+import { useSelectedCredentialTotpIdentifier } from "../../hooks/useSelectedCredentialTotpIdentifier";
import { errorMappingExampleValue } from "../types";
import { ParametersMultiSelect } from "../TaskNode/ParametersMultiSelect";
import { useUpdate } from "../../useUpdate";
@@ -89,6 +90,9 @@ function FileDownloadEditorBody({
const parentLoopSkipsOnFail = getParentLoopSkipsOnFail(nodes, blockId);
const update = useUpdate<FileDownloadNodeData>({ id: blockId, editable });
const hasInteracted = useHasInteractedThisSession();
+ const credentialTotpIdentifier = useSelectedCredentialTotpIdentifier(
+ parameterKeys.length > 0 ? parameterKeys[0] : undefined,
+ );
return (
<div data-testid="file-download-block-form" className="space-y-4">
@@ -175,11 +179,6 @@ function FileDownloadEditorBody({
availableOutputParameters={outputParameterKeys}
parameters={parameterKeys}
onParametersChange={(next) => update({ parameterKeys: next })}
- onCredentialTotpIdentifier={(next) => {
- if (!totpIdentifier?.trim()) {
- update({ totpIdentifier: next });
- }
- }}
/>
</div>
<div className="flex items-center justify-between">
@@ -315,9 +314,18 @@ function FileDownloadEditorBody({
nodeId={blockId}
onChange={(next) => update({ totpIdentifier: next })}
value={totpIdentifier ?? ""}
- placeholder={placeholders["download"]["totpIdentifier"]}
+ placeholder={
+ !totpIdentifier?.trim() && credentialTotpIdentifier
+ ? `${credentialTotpIdentifier} (from credential)`
+ : placeholders["download"]["totpIdentifier"]
+ }
className="nopan text-xs"
/>
+ {!totpIdentifier?.trim() && credentialTotpIdentifier ? (
+ <p className="text-xs text-slate-500">
+ Leave empty to use the credential's value.
+ </p>
+ ) : null}
</div>
<div className="space-y-2">
<div className="flex gap-2">
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/CurlImportDialog.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/CurlImportDialog.tsx
index 66e43ea9a..00ee4977e 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/CurlImportDialog.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/CurlImportDialog.tsx
@@ -256,7 +256,7 @@ export function CurlImportDialog({ onImport, children }: Props) {
<CopyIcon className="h-3 w-3" />
</Button>
</div>
- <pre className="overflow-x-auto whitespace-pre-wrap break-all text-xs text-muted-foreground">
+ <pre className="overflow-x-auto whitespace-pre-wrap break-all text-xs text-slate-400">
{example.curl}
</pre>
</div>
@@ -276,7 +276,7 @@ export function CurlImportDialog({ onImport, children }: Props) {
<Badge variant="outline" className="font-mono">
{previewData.method}
</Badge>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-slate-400">
{previewData.url}
</span>
</div>
@@ -285,7 +285,7 @@ export function CurlImportDialog({ onImport, children }: Props) {
Object.keys(previewData.headers).length > 0 && (
<div>
<div className="mb-1 text-xs font-medium">Headers:</div>
- <div className="space-y-1 text-xs text-muted-foreground">
+ <div className="space-y-1 text-xs text-slate-400">
{Object.entries(previewData.headers).map(
([key, value]) => (
<div key={key} className="font-mono">
@@ -310,7 +310,7 @@ export function CurlImportDialog({ onImport, children }: Props) {
<div className="mb-1 text-xs font-medium">
Body:
</div>
- <pre className="overflow-x-auto whitespace-pre-wrap text-xs text-muted-foreground">
+ <pre className="overflow-x-auto whitespace-pre-wrap text-xs text-slate-400">
{bodyStr || "{}"}
</pre>
</div>
@@ -321,7 +321,7 @@ export function CurlImportDialog({ onImport, children }: Props) {
<div className="mb-1 text-xs font-medium">
Body:
</div>
- <pre className="overflow-x-auto whitespace-pre-wrap text-xs text-muted-foreground">
+ <pre className="overflow-x-auto whitespace-pre-wrap text-xs text-slate-400">
{"{}"}
</pre>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpUtils.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpUtils.tsx
index af9ad4b32..12199049d 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpUtils.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpUtils.tsx
@@ -33,11 +33,11 @@ export function MethodBadge({
case "PATCH":
return "bg-purple-100 text-purple-800 border-purple-300 dark:bg-purple-900/20 dark:text-purple-400 dark:border-purple-800";
case "HEAD":
- return "bg-slate-elevation2 text-foreground border-border dark:bg-slate-elevation1/20 dark:text-muted-foreground dark:border-border";
+ return "bg-gray-100 text-gray-800 border-gray-300 dark:bg-gray-900/20 dark:text-gray-400 dark:border-gray-800";
case "OPTIONS":
return "bg-cyan-100 text-cyan-800 border-cyan-300 dark:bg-cyan-900/20 dark:text-cyan-400 dark:border-cyan-800";
default:
- return "bg-slate-elevation2 text-foreground border-border dark:bg-slate-elevation1/20 dark:text-muted-foreground dark:border-border";
+ return "bg-slate-100 text-slate-800 border-slate-300 dark:bg-slate-900/20 dark:text-slate-400 dark:border-slate-800";
}
};
@@ -212,11 +212,11 @@ export function RequestPreview({
const hasFiles = files && files.trim() && files !== "{}";
return (
- <div className="rounded-md border bg-slate-elevation1 p-3 dark:bg-slate-elevation1/50">
+ <div className="rounded-md border bg-slate-50 p-3 dark:bg-slate-900/50">
<div className="flex items-center justify-between gap-2">
<div className="flex min-w-0 items-center gap-2">
<MethodBadge method={method} className="shrink-0" />
- <span className="truncate font-mono text-sm text-muted-foreground dark:text-muted-foreground">
+ <span className="truncate font-mono text-sm text-slate-600 dark:text-slate-400">
{url || "No URL specified"}
</span>
{hasFiles && (
@@ -240,7 +240,7 @@ export function RequestPreview({
{/* URL */}
<div>
<div className="mb-1 text-xs font-medium">URL:</div>
- <pre className="overflow-x-auto whitespace-pre-wrap break-all rounded bg-slate-elevation2 p-2 text-xs text-muted-foreground dark:bg-slate-elevation5 dark:text-muted-foreground">
+ <pre className="overflow-x-auto whitespace-pre-wrap break-all rounded bg-slate-100 p-2 text-xs text-slate-600 dark:bg-slate-800 dark:text-slate-400">
{url}
</pre>
</div>
@@ -248,7 +248,7 @@ export function RequestPreview({
{/* Headers */}
<div>
<div className="mb-1 text-xs font-medium">Headers:</div>
- <pre className="overflow-x-auto rounded bg-slate-elevation2 p-2 text-xs text-muted-foreground dark:bg-slate-elevation5 dark:text-muted-foreground">
+ <pre className="overflow-x-auto rounded bg-slate-100 p-2 text-xs text-slate-600 dark:bg-slate-800 dark:text-slate-400">
{headers || "{}"}
</pre>
</div>
@@ -257,7 +257,7 @@ export function RequestPreview({
{["POST", "PUT", "PATCH"].includes(method.toUpperCase()) && (
<div>
<div className="mb-1 text-xs font-medium">Body:</div>
- <pre className="overflow-x-auto rounded bg-slate-elevation2 p-2 text-xs text-muted-foreground dark:bg-slate-elevation5 dark:text-muted-foreground">
+ <pre className="overflow-x-auto rounded bg-slate-100 p-2 text-xs text-slate-600 dark:bg-slate-800 dark:text-slate-400">
{body || "{}"}
</pre>
</div>
@@ -268,7 +268,7 @@ export function RequestPreview({
hasFiles && (
<div>
<div className="mb-1 text-xs font-medium">Files:</div>
- <pre className="overflow-x-auto rounded bg-slate-elevation2 p-2 text-xs text-muted-foreground dark:bg-slate-elevation5 dark:text-muted-foreground">
+ <pre className="overflow-x-auto rounded bg-slate-100 p-2 text-xs text-slate-600 dark:bg-slate-800 dark:text-slate-400">
{files || "{}"}
</pre>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/QuickHeadersDialog.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/QuickHeadersDialog.tsx
index 2b42d88fb..b3fc22741 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/QuickHeadersDialog.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/QuickHeadersDialog.tsx
@@ -120,7 +120,7 @@ export function QuickHeadersDialog({ onAdd, children }: Props) {
return (
<div
key={index}
- className={`cursor-pointer rounded-lg border p-3 transition-colors hover:bg-slate-elevation1 dark:hover:bg-slate-elevation5 ${
+ className={`cursor-pointer rounded-lg border p-3 transition-colors hover:bg-slate-50 dark:hover:bg-slate-800 ${
isSelected
? "border-blue-500 bg-blue-50 dark:bg-blue-900/20"
: ""
@@ -134,7 +134,7 @@ export function QuickHeadersDialog({ onAdd, children }: Props) {
<Badge variant="outline" className="font-mono text-xs">
{header.name}
</Badge>
- <span className="text-sm text-muted-foreground dark:text-muted-foreground">
+ <span className="text-sm text-slate-600 dark:text-slate-400">
{header.value}
</span>
</div>
@@ -144,7 +144,7 @@ export function QuickHeadersDialog({ onAdd, children }: Props) {
</Badge>
)}
</div>
- <div className="mt-1 text-xs text-muted-foreground">
+ <div className="mt-1 text-xs text-slate-500">
{header.description}
</div>
</div>
@@ -200,8 +200,8 @@ export function QuickHeadersDialog({ onAdd, children }: Props) {
<h4 className="mb-3 text-sm font-medium">
Selected Headers ({Object.keys(selectedHeaders).length})
</h4>
- <div className="rounded-lg border bg-slate-elevation1 p-3 dark:bg-slate-elevation5">
- <pre className="text-xs text-muted-foreground dark:text-muted-foreground">
+ <div className="rounded-lg border bg-slate-50 p-3 dark:bg-slate-800">
+ <pre className="text-xs text-slate-600 dark:text-slate-400">
{JSON.stringify(selectedHeaders, null, 2)}
</pre>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/IgnoreWorkflowSystemPrompt.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/IgnoreWorkflowSystemPrompt.tsx
index ab28bfb5c..2301a536c 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/IgnoreWorkflowSystemPrompt.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/IgnoreWorkflowSystemPrompt.tsx
@@ -14,7 +14,7 @@ function IgnoreWorkflowSystemPrompt({
return (
<div className="flex items-center justify-between gap-2">
<div className="flex min-w-0 items-center gap-2">
- <Label className="truncate text-xs font-normal text-muted-foreground">
+ <Label className="truncate text-xs font-normal text-slate-300">
Ignore System Prompt
</Label>
<HelpTooltip content="When checked, this block ignores the workflow-level system prompt. Only relevant when the workflow has a workflow system prompt set." />
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx
index f5673d27e..c6d6aab61 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx
@@ -39,10 +39,6 @@ type Props = {
onUrlAutoFill?: (url: string) => void;
/** Current URL value of the login block — skip auto-fill if already set */
currentUrl?: string;
- /** Called when a credential with a totp_identifier is selected to auto-fill the 2FA identifier */
- onTotpIdentifierAutoFill?: (totpIdentifier: string) => void;
- /** Current totp_identifier value — skip auto-fill if already set */
- currentTotpIdentifier?: string;
};
// Function to generate a unique credential parameter key
@@ -69,8 +65,6 @@ function LoginBlockCredentialSelector({
onChange,
onUrlAutoFill,
currentUrl,
- onTotpIdentifierAutoFill,
- currentTotpIdentifier,
}: Props) {
const { setIsOpen, setType } = useCredentialModalState();
const nodes = useNodes<AppNode>();
@@ -174,11 +168,6 @@ function LoginBlockCredentialSelector({
type: "credential" as const,
hasBrowserProfile: !!credential.browser_profile_id,
browserProfileUrl: credential.tested_url ?? null,
- totpIdentifier:
- credential.credential_type === "password" &&
- "totp_identifier" in credential.credential
- ? (credential.credential.totp_identifier ?? null)
- : null,
}));
// Auto-generated Skyvern wrappers are hidden (they back a direct credential
@@ -320,16 +309,6 @@ function LoginBlockCredentialSelector({
) {
onUrlAutoFill?.(selectedCredential.browserProfileUrl);
}
-
- // Auto-fill the 2FA identifier from the credential's totp_identifier
- // when the field is empty.
- if (
- selectedCredential &&
- !currentTotpIdentifier?.trim() &&
- selectedCredential.totpIdentifier
- ) {
- onTotpIdentifierAutoFill?.(selectedCredential.totpIdentifier);
- }
}}
>
<SelectTrigger
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginEditor.tsx
index b9c8e1e28..387f5eed5 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginEditor.tsx
@@ -24,6 +24,7 @@ import { BlockExecutionOptions } from "../components/BlockExecutionOptions";
import { DisableCache } from "../DisableCache";
import { IgnoreWorkflowSystemPrompt } from "../IgnoreWorkflowSystemPrompt";
import { LoginBlockCredentialSelector } from "./LoginBlockCredentialSelector";
+import { useSelectedCredentialTotpIdentifier } from "../../hooks/useSelectedCredentialTotpIdentifier";
import { type LoginNode, type LoginNodeData } from "./types";
import { errorMappingExampleValue } from "../types";
import { ParametersMultiSelect } from "../TaskNode/ParametersMultiSelect";
@@ -65,6 +66,9 @@ function LoginEditorBody({
const isFirstWorkflowBlock = useIsFirstBlockInWorkflow({ id: blockId });
const isInsideForLoop = isNodeInsideForLoop(nodes, blockId);
const parentLoopSkipsOnFail = getParentLoopSkipsOnFail(nodes, blockId);
+ const credentialTotpIdentifier = useSelectedCredentialTotpIdentifier(
+ data.parameterKeys.length > 0 ? data.parameterKeys[0] : undefined,
+ );
return (
<div data-testid="login-block-form" className="space-y-4">
@@ -129,10 +133,6 @@ function LoginEditorBody({
onUrlAutoFill={(url) => {
if (editable) update({ url });
}}
- currentTotpIdentifier={data.totpIdentifier ?? undefined}
- onTotpIdentifierAutoFill={(totpIdentifier) => {
- if (editable) update({ totpIdentifier });
- }}
/>
</div>
<div className="space-y-2">
@@ -144,9 +144,18 @@ function LoginEditorBody({
nodeId={blockId}
onChange={(value) => update({ totpIdentifier: value })}
value={data.totpIdentifier ?? ""}
- placeholder={placeholders["login"]["totpIdentifier"]}
+ placeholder={
+ !data.totpIdentifier?.trim() && credentialTotpIdentifier
+ ? `${credentialTotpIdentifier} (from credential)`
+ : placeholders["login"]["totpIdentifier"]
+ }
className="nopan text-xs"
/>
+ {!data.totpIdentifier?.trim() && credentialTotpIdentifier ? (
+ <p className="text-xs text-slate-500">
+ Leave empty to use the credential's value.
+ </p>
+ ) : null}
</div>
<div className="space-y-2">
<div className="flex gap-2">
@@ -186,11 +195,6 @@ function LoginEditorBody({
onParametersChange={(parameterKeys) =>
update({ parameterKeys })
}
- onCredentialTotpIdentifier={(totpIdentifier) => {
- if (!data.totpIdentifier?.trim()) {
- update({ totpIdentifier });
- }
- }}
/>
</div>
<div className="space-y-2">
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationEditor.test.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationEditor.test.tsx
index e70c07d4e..1806e0f61 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationEditor.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationEditor.test.tsx
@@ -110,6 +110,10 @@ vi.mock("@/routes/workflows/editor/ErrorCodeMappingEditor", () => ({
ErrorCodeMappingEditor: () => null,
}));
+vi.mock("../../hooks/useSelectedCredentialTotpIdentifier", () => ({
+ useSelectedCredentialTotpIdentifier: () => null,
+}));
+
function setNavigationNode(
engine: RunEngine,
overrides: Partial<NavigationNodeData> = {},
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationEditor.tsx
index 67f0c03a7..bcfd4199c 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationEditor.tsx
@@ -25,6 +25,7 @@ import { type AppNode } from "..";
import { DisableCache } from "../DisableCache";
import { IgnoreWorkflowSystemPrompt } from "../IgnoreWorkflowSystemPrompt";
import { BlockExecutionOptions } from "../components/BlockExecutionOptions";
+import { useSelectedCredentialTotpIdentifier } from "../../hooks/useSelectedCredentialTotpIdentifier";
import {
MAX_STEPS_DEFAULT,
type NavigationNode,
@@ -80,6 +81,9 @@ function NavigationEditorBody({
]
: [RunEngine.SkyvernV1, RunEngine.OpenaiCua, RunEngine.AnthropicCua];
const hasInteracted = useHasInteractedThisSession();
+ const credentialTotpIdentifier = useSelectedCredentialTotpIdentifier(
+ data.parameterKeys.length > 0 ? data.parameterKeys[0] : undefined,
+ );
const handleEngineChange = (value: RunEngine) => {
if (!editable) return;
@@ -208,9 +212,18 @@ function NavigationEditorBody({
nodeId={blockId}
onChange={(value) => update({ totpIdentifier: value })}
value={data.totpIdentifier ?? ""}
- placeholder={placeholders["navigation"]["totpIdentifier"]}
+ placeholder={
+ !data.totpIdentifier?.trim() && credentialTotpIdentifier
+ ? `${credentialTotpIdentifier} (from credential)`
+ : placeholders["navigation"]["totpIdentifier"]
+ }
className="nopan text-xs"
/>
+ {!data.totpIdentifier?.trim() && credentialTotpIdentifier ? (
+ <p className="text-xs text-slate-500">
+ Leave empty to use the credential's value.
+ </p>
+ ) : null}
</div>
<div className="space-y-2">
<div className="flex gap-2">
@@ -307,11 +320,6 @@ function NavigationEditorBody({
onParametersChange={(parameterKeys) =>
update({ parameterKeys })
}
- onCredentialTotpIdentifier={(totpIdentifier) => {
- if (!data.totpIdentifier?.trim()) {
- update({ totpIdentifier });
- }
- }}
/>
</div>
<div className="space-y-2">
@@ -470,9 +478,18 @@ function NavigationEditorBody({
nodeId={blockId}
onChange={(value) => update({ totpIdentifier: value })}
value={data.totpIdentifier ?? ""}
- placeholder={placeholders["navigation"]["totpIdentifier"]}
+ placeholder={
+ !data.totpIdentifier?.trim() && credentialTotpIdentifier
+ ? `${credentialTotpIdentifier} (from credential)`
+ : placeholders["navigation"]["totpIdentifier"]
+ }
className="nopan text-xs"
/>
+ {!data.totpIdentifier?.trim() && credentialTotpIdentifier ? (
+ <p className="text-xs text-slate-500">
+ Leave empty to use the credential's value.
+ </p>
+ ) : null}
</div>
<div className="space-y-2">
<div className="flex gap-2">
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx
index f943b6d47..0b9987d40 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx
@@ -194,31 +194,30 @@ function StartNode({ id, data, parentId }: NodeProps<StartNode>) {
id="a"
className="opacity-0"
/>
- <div className="w-[30rem] rounded-lg bg-slate-elevation4 px-6 py-4 text-center text-xs font-semibold uppercase tracking-[0.2em] text-muted-foreground">
+ <div className="w-[30rem] rounded-lg bg-slate-elevation4 px-6 py-4 text-center text-xs font-semibold uppercase tracking-[0.2em] text-slate-400">
Start
{loopParent ? (
- <div className="mt-4 flex gap-3 rounded-md bg-slate-elevation5 p-3 normal-case tracking-normal">
- <span className="rounded bg-slate-elevation4 p-1 text-lg">💡</span>
- <div className="space-y-1 text-left font-normal text-muted-foreground">
+ <div className="mt-4 flex gap-3 rounded-md bg-slate-800 p-3 normal-case tracking-normal">
+ <span className="rounded bg-slate-700 p-1 text-lg">💡</span>
+ <div className="space-y-1 text-left font-normal text-slate-400">
{loopParent.data.loopKind === "while" ? (
<>
Use{" "}
- <code className="text-foreground">{`{{ current_index }}`}</code>{" "}
- to get the current zero-based loop index for a given
- iteration.
+ <code className="text-white">{`{{ current_index }}`}</code> to
+ get the current zero-based loop index for a given iteration.
</>
) : (
<>
Use{" "}
- <code className="text-foreground">{`{{ current_value }}`}</code>{" "}
- to get the current loop value for a given iteration.
+ <code className="text-white">{`{{ current_value }}`}</code> to
+ get the current loop value for a given iteration.
</>
)}
</div>
</div>
) : null}
{isInsideConditional && (
- <div className="mt-4 rounded-md border border-dashed border-input p-4 text-center font-normal normal-case tracking-normal text-muted-foreground">
+ <div className="mt-4 rounded-md border border-dashed border-slate-500 p-4 text-center font-normal normal-case tracking-normal text-slate-300">
Start adding blocks to be executed for the selected condition
</div>
)}
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/ParametersMultiSelect.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/ParametersMultiSelect.tsx
index 76358392a..f94c1b55a 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/ParametersMultiSelect.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/ParametersMultiSelect.tsx
@@ -3,7 +3,7 @@ import { useWorkflowParametersStore } from "@/store/WorkflowParametersStore";
import { HelpTooltip } from "@/components/HelpTooltip";
import { helpTooltips } from "../../helpContent";
import { useCredentialsQuery } from "@/routes/workflows/hooks/useCredentialsQuery";
-import { useCallback, useContext, useMemo } from "react";
+import { useContext, useMemo } from "react";
import CloudContext from "@/store/CloudContext";
import { parameterIsSkyvernCredential } from "../../types";
@@ -11,15 +11,12 @@ type Props = {
availableOutputParameters: Array<string>;
parameters: Array<string>;
onParametersChange: (parameters: Array<string>) => void;
- /** Called when a credential parameter with a totp_identifier is added */
- onCredentialTotpIdentifier?: (totpIdentifier: string) => void;
};
function ParametersMultiSelect({
availableOutputParameters,
parameters,
onParametersChange,
- onCredentialTotpIdentifier,
}: Props) {
const isCloud = useContext(CloudContext);
const { parameters: workflowParameters } = useWorkflowParametersStore();
@@ -60,56 +57,15 @@ function ParametersMultiSelect({
});
}, [keys, workflowParameters, isSuccess, credentialIdsInVault]);
- const handleValueChange = useCallback(
- (newParameters: Array<string>) => {
- onParametersChange(newParameters);
-
- // Check if a credential parameter was newly added
- if (onCredentialTotpIdentifier) {
- const addedKeys = newParameters.filter(
- (key) => !parameters.includes(key),
- );
- for (const key of addedKeys) {
- const param = workflowParameters.find((p) => p.key === key);
- if (
- param &&
- param.parameterType === "credential" &&
- parameterIsSkyvernCredential(param)
- ) {
- const credential = credentials.find(
- (c) => c.credential_id === param.credentialId,
- );
- if (
- credential &&
- credential.credential_type === "password" &&
- "totp_identifier" in credential.credential &&
- credential.credential.totp_identifier
- ) {
- onCredentialTotpIdentifier(credential.credential.totp_identifier);
- break;
- }
- }
- }
- }
- },
- [
- onParametersChange,
- onCredentialTotpIdentifier,
- parameters,
- workflowParameters,
- credentials,
- ],
- );
-
return (
<div className="space-y-2">
<header className="flex gap-2">
- <h1 className="text-xs text-muted-foreground">Parameters</h1>
+ <h1 className="text-xs text-slate-300">Parameters</h1>
<HelpTooltip content={helpTooltips["task"]["parameters"]} />
</header>
<MultiSelect
value={parameters}
- onValueChange={handleValueChange}
+ onValueChange={onParametersChange}
options={options}
maxCount={50}
/>
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskEditor.tsx
index 4a942ce47..0b7d7a6ca 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskEditor.tsx
@@ -26,6 +26,7 @@ import { type AppNode, isWorkflowBlockNode } from "..";
import { BlockExecutionOptions } from "../components/BlockExecutionOptions";
import { DisableCache } from "../DisableCache";
import { IgnoreWorkflowSystemPrompt } from "../IgnoreWorkflowSystemPrompt";
+import { useSelectedCredentialTotpIdentifier } from "../../hooks/useSelectedCredentialTotpIdentifier";
import { ParametersMultiSelect } from "./ParametersMultiSelect";
import type { TaskNode, TaskNodeData } from "./types";
import { dataSchemaExampleValue, errorMappingExampleValue } from "../types";
@@ -65,6 +66,9 @@ function TaskEditorBody({ blockId }: { blockId: string }) {
const isInsideForLoop = isNodeInsideForLoop(nodes, blockId);
const parentLoopSkipsOnFail = getParentLoopSkipsOnFail(nodes, blockId);
const hasInteracted = useHasInteractedThisSession();
+ const credentialTotpIdentifier = useSelectedCredentialTotpIdentifier(
+ data?.parameterKeys?.[0],
+ );
if (!taskNode || !data) {
return null;
}
@@ -123,11 +127,6 @@ function TaskEditorBody({ blockId }: { blockId: string }) {
onParametersChange={(parameterKeys) =>
update({ parameterKeys })
}
- onCredentialTotpIdentifier={(totpIdentifier) => {
- if (!data.totpIdentifier?.trim()) {
- update({ totpIdentifier });
- }
- }}
/>
</div>
</div>
@@ -362,9 +361,18 @@ function TaskEditorBody({ blockId }: { blockId: string }) {
nodeId={blockId}
onChange={(value) => update({ totpIdentifier: value })}
value={data.totpIdentifier ?? ""}
- placeholder={placeholders["task"]["totpIdentifier"]}
+ placeholder={
+ !data.totpIdentifier?.trim() && credentialTotpIdentifier
+ ? `${credentialTotpIdentifier} (from credential)`
+ : placeholders["task"]["totpIdentifier"]
+ }
className="nopan text-xs"
/>
+ {!data.totpIdentifier?.trim() && credentialTotpIdentifier ? (
+ <p className="text-xs text-slate-500">
+ Leave empty to use the credential's value.
+ </p>
+ ) : null}
</div>
<div className="space-y-2">
<div className="flex gap-2">
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNodeParametersPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNodeParametersPanel.tsx
index 2a482ff98..cc8e55a05 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNodeParametersPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNodeParametersPanel.tsx
@@ -29,7 +29,7 @@ function TaskNodeParametersPanel({
return (
<div className="space-y-2">
<header className="flex gap-2">
- <h1 className="text-xs text-muted-foreground">Parameters</h1>
+ <h1 className="text-xs text-slate-300">Parameters</h1>
<HelpTooltip content={helpTooltips["task"]["parameters"]} />
</header>
<MultiSelect
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/PayloadParameterFields.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/PayloadParameterFields.tsx
index bb30790da..7d713b98a 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/PayloadParameterFields.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/PayloadParameterFields.tsx
@@ -132,7 +132,7 @@ function PayloadParameterFields({
if (parameters.length === 0 && staleKeys.length === 0) {
return (
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-500">
This workflow has no input parameters.
</p>
);
@@ -141,7 +141,7 @@ function PayloadParameterFields({
return (
<div className="space-y-3">
{parameters.length === 0 && (
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-500">
This workflow has no input parameters.
</p>
)}
@@ -153,10 +153,8 @@ function PayloadParameterFields({
<div key={param.key} className="space-y-1.5">
<div className="flex items-center justify-between">
<div className="flex items-baseline gap-2">
- <Label className="text-xs text-muted-foreground">
- {param.key}
- </Label>
- <span className="text-[10px] text-muted-foreground">
+ <Label className="text-xs text-slate-300">{param.key}</Label>
+ <span className="text-[10px] text-slate-500">
{param.workflow_parameter_type}
</span>
</div>
@@ -171,9 +169,7 @@ function PayloadParameterFields({
)}
</div>
{param.description && (
- <p className="text-[10px] text-muted-foreground">
- {param.description}
- </p>
+ <p className="text-[10px] text-slate-500">{param.description}</p>
)}
{isCredential && !isDynamic ? (
<CredentialSelector
@@ -198,7 +194,7 @@ function PayloadParameterFields({
{isCredential &&
!payloadValues[param.key] &&
param.default_value != null && (
- <p className="text-[10px] text-muted-foreground">
+ <p className="text-[10px] text-slate-500">
Default:{" "}
{credentialNameById.get(String(param.default_value)) ??
String(param.default_value)}
@@ -215,7 +211,7 @@ function PayloadParameterFields({
<p className="text-[10px] font-medium uppercase text-amber-400">
Dormant payload entries
</p>
- <p className="text-[10px] text-muted-foreground">
+ <p className="text-[10px] text-slate-400">
The target workflow no longer declares these parameters. They are
saved but never consumed at runtime, and any malformed Jinja2 here
will still fail the trigger at execute time. Delete or align the
@@ -223,9 +219,9 @@ function PayloadParameterFields({
</p>
{staleKeys.map((key) => (
<div key={key} className="flex items-center gap-2">
- <Label className="text-xs text-muted-foreground">{key}</Label>
+ <Label className="text-xs text-slate-300">{key}</Label>
<code
- className="min-w-0 grow truncate text-[10px] text-muted-foreground"
+ className="min-w-0 grow truncate text-[10px] text-slate-400"
title={payloadValues[key]}
>
{payloadValues[key]}
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/WorkflowSelector.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/WorkflowSelector.tsx
index cd21d1c88..ac0c71929 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/WorkflowSelector.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/WorkflowSelector.tsx
@@ -131,11 +131,11 @@ function WorkflowSelector({
<div className="min-w-0 flex-1 truncate px-3 py-2">
{hasSelection ? (
<>
- <span className="text-muted-foreground">{workflowTitle}</span>
- <span className="ml-1.5 text-muted-foreground">[{value}]</span>
+ <span className="text-slate-300">{workflowTitle}</span>
+ <span className="ml-1.5 text-slate-500">[{value}]</span>
</>
) : value ? (
- <span className="text-muted-foreground">{value}</span>
+ <span className="text-slate-300">{value}</span>
) : (
<span className="text-muted-foreground">
Select a workflow to trigger...
@@ -146,7 +146,7 @@ function WorkflowSelector({
{hasSelection && (
<button
type="button"
- className="rounded p-0.5 text-muted-foreground hover:bg-muted hover:text-muted-foreground"
+ className="rounded p-0.5 text-slate-500 hover:bg-muted hover:text-slate-300"
onClick={(e) => {
e.stopPropagation();
handleClear();
@@ -169,7 +169,7 @@ function WorkflowSelector({
</button>
)}
<ChevronDownIcon
- className={`size-4 text-muted-foreground transition-transform ${open ? "rotate-180" : ""}`}
+ className={`size-4 text-slate-500 transition-transform ${open ? "rotate-180" : ""}`}
/>
</div>
</div>
@@ -178,11 +178,11 @@ function WorkflowSelector({
{open && (
<div
ref={dropdownRef}
- className="absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-border bg-slate-elevation5 shadow-lg"
+ className="absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-slate-600 bg-slate-800 shadow-lg"
onMouseDown={(e) => e.preventDefault()}
>
{/* Search input */}
- <div className="border-b border-border px-3 py-2">
+ <div className="border-b border-slate-600 px-3 py-2">
<input
ref={inputRef}
id={`workflow-selector-${nodeId}`}
@@ -190,7 +190,7 @@ function WorkflowSelector({
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
placeholder="Search workflows..."
- className="w-full bg-transparent text-xs text-muted-foreground placeholder:text-muted-foreground focus-visible:outline-none"
+ className="w-full bg-transparent text-xs text-slate-300 placeholder:text-muted-foreground focus-visible:outline-none"
/>
</div>
{/* Results */}
@@ -218,7 +218,7 @@ function WorkflowSelector({
))}
</>
) : workflows.length === 0 ? (
- <div className="px-3 py-3 text-xs text-muted-foreground">
+ <div className="px-3 py-3 text-xs text-slate-500">
No workflows found.
</div>
) : (
@@ -231,14 +231,14 @@ function WorkflowSelector({
type="button"
onMouseDown={(e) => e.preventDefault()}
onClick={() => handleSelect(workflow)}
- className={`flex w-full flex-col gap-0.5 px-3 py-2 text-left text-xs transition-colors hover:bg-slate-elevation4 ${
- isSelected ? "bg-slate-elevation4" : ""
+ className={`flex w-full flex-col gap-0.5 px-3 py-2 text-left text-xs transition-colors hover:bg-slate-700 ${
+ isSelected ? "bg-slate-700" : ""
}`}
>
- <span className="font-medium text-foreground">
+ <span className="font-medium text-slate-200">
{workflow.title}
</span>
- <span className="text-muted-foreground">
+ <span className="text-slate-500">
{workflow.workflow_permanent_id}
</span>
</button>
@@ -246,7 +246,7 @@ function WorkflowSelector({
})}
{isFetchingNextPage && (
<div className="flex items-center justify-center py-2">
- <ReloadIcon className="h-3 w-3 animate-spin text-muted-foreground" />
+ <ReloadIcon className="h-3 w-3 animate-spin text-slate-400" />
</div>
)}
</>
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/components/BlockExecutionOptions.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/components/BlockExecutionOptions.tsx
index 8d6400d41..4effd9db7 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/components/BlockExecutionOptions.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/components/BlockExecutionOptions.tsx
@@ -71,7 +71,7 @@ export function BlockExecutionOptions({
onIncludeActionHistoryInVerificationChange && (
<div className="flex items-center justify-between">
<div className="flex gap-2">
- <Label className="text-xs font-normal text-muted-foreground">
+ <Label className="text-xs font-normal text-slate-300">
Include Action History
</Label>
<HelpTooltip
@@ -116,7 +116,7 @@ export function BlockExecutionOptions({
return (
<div className="flex items-center justify-between">
<div className="flex gap-2">
- <Label className="text-xs font-normal text-muted-foreground">
+ <Label className="text-xs font-normal text-slate-300">
On block failure
</Label>
<HelpTooltip
@@ -159,7 +159,7 @@ export function BlockExecutionOptions({
(!isInsideForLoop || !showNextLoopOnFailure) && (
<div className="flex items-center justify-between">
<div className="flex gap-2">
- <Label className="text-xs font-normal text-muted-foreground">
+ <Label className="text-xs font-normal text-slate-300">
Continue on Failure
</Label>
<HelpTooltip
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/components/BlockParametersDialog.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/components/BlockParametersDialog.tsx
index 8842ffbd5..4a4cd58ec 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/components/BlockParametersDialog.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/components/BlockParametersDialog.tsx
@@ -186,14 +186,14 @@ function BlockParametersDialog({
>
{param.key}
</Label>
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{getLabelForWorkflowParameterType(
param.workflow_parameter_type,
)}
</span>
</div>
{param.description && (
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-slate-400">
{param.description}
</p>
)}
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/components/MicroDropdown.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/components/MicroDropdown.tsx
index cbfa34e0b..4da607cba 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/components/MicroDropdown.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/components/MicroDropdown.tsx
@@ -81,7 +81,7 @@ function MicroDropdown({ selections, selected, onChange }: Props) {
{isOpen && (
<div
className={cn(
- "absolute right-0 z-10 rounded-md bg-background text-xs text-muted-foreground",
+ "absolute right-0 z-10 rounded-md bg-background text-xs text-slate-400",
"duration-200 animate-in fade-in-0 zoom-in-95",
openUpwards
? "bottom-full mb-2 slide-in-from-bottom-2"
@@ -94,7 +94,7 @@ function MicroDropdown({ selections, selected, onChange }: Props) {
<div
key={s}
className={cn(
- "flex cursor-pointer items-center gap-1 rounded-md p-1 hover:bg-slate-elevation5",
+ "flex cursor-pointer items-center gap-1 rounded-md p-1 hover:bg-slate-800",
"animate-in fade-in-0 slide-in-from-left-2",
{
"pointer-events-none cursor-default opacity-50":
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeHeader.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeHeader.tsx
index ebda30ea0..badbf6084 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeHeader.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeHeader.tsx
@@ -779,7 +779,7 @@ function NodeHeader({
) : (
gripHandle
))}
- <div className="flex h-[2.75rem] w-[2.75rem] items-center justify-center rounded border border-border">
+ <div className="flex h-[2.75rem] w-[2.75rem] items-center justify-center rounded border border-slate-600">
<WorkflowBlockIcon workflowBlockType={type} className="size-6" />
</div>
<div className="flex min-w-0 flex-col gap-1">
@@ -794,7 +794,7 @@ function NodeHeader({
<div className="flex items-center gap-2">
{transmutations && transmutations.others.length ? (
<div className="flex items-center gap-1">
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-slate-400">
{transmutations.blockTitle}
</span>
<NoticeMe trigger="viewport">
@@ -819,9 +819,7 @@ function NodeHeader({
</NoticeMe>
</div>
) : (
- <span className="text-xs text-muted-foreground">
- {blockTitle}
- </span>
+ <span className="text-xs text-slate-400">{blockTitle}</span>
)}
{workflowSettingsStore.finallyBlockLabel === blockLabel && (
<span className="rounded bg-amber-600/20 px-1.5 py-0.5 text-[10px] font-medium text-amber-400">
@@ -835,7 +833,7 @@ function NodeHeader({
{extraActions}
{thisBlockIsPlaying && (
<div className="ml-auto">
- <button className="rounded p-1 hover:bg-destructive hover:text-destructive-foreground disabled:opacity-50">
+ <button className="rounded p-1 hover:bg-red-500 hover:text-black disabled:opacity-50">
{cancelBlock.isPending ? (
<ReloadIcon className="size-6 animate-spin" />
) : (
@@ -861,7 +859,7 @@ function NodeHeader({
) : (
<PlayIcon
className={cn("size-6", {
- "pointer-events-none fill-gray-500 text-muted-foreground":
+ "pointer-events-none fill-gray-500 text-gray-500":
workflowRunIsRunningOrQueued ||
!workflowPermanentId ||
debugSession === undefined ||
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/ActionBlockForm.test.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/ActionBlockForm.test.tsx
index cfd4dfcef..27323a13a 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/ActionBlockForm.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/ActionBlockForm.test.tsx
@@ -104,6 +104,9 @@ vi.mock("../../nodes/components/BlockExecutionOptions", () => ({
vi.mock("../../nodes/DisableCache", () => ({
DisableCache: () => <div data-testid="disable-cache" />,
}));
+vi.mock("../../hooks/useSelectedCredentialTotpIdentifier", () => ({
+ useSelectedCredentialTotpIdentifier: () => null,
+}));
import { usePendingCommitsStore } from "@/store/PendingCommitsStore";
import { useSidebarSaveStateStore } from "@/store/SidebarSaveStateStore";
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/FileDownloadBlockForm.test.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/FileDownloadBlockForm.test.tsx
index 5a2410305..22ed7f213 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/FileDownloadBlockForm.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/FileDownloadBlockForm.test.tsx
@@ -111,7 +111,6 @@ vi.mock("../../nodes/TaskNode/ParametersMultiSelect", () => ({
ParametersMultiSelect: (props: {
parameters: Array<string>;
onParametersChange: (next: Array<string>) => void;
- onCredentialTotpIdentifier?: (totpIdentifier: string) => void;
availableOutputParameters: Array<string>;
}) => (
<div data-testid="parameters-multi-select">
@@ -119,10 +118,6 @@ vi.mock("../../nodes/TaskNode/ParametersMultiSelect", () => ({
data-testid="parameters-change"
onClick={() => props.onParametersChange(["param_a"])}
/>
- <button
- data-testid="parameters-credential-totp"
- onClick={() => props.onCredentialTotpIdentifier?.("totp-from-cred")}
- />
</div>
),
}));
@@ -166,6 +161,10 @@ vi.mock("../../nodes/DisableCache", () => ({
),
}));
+vi.mock("../../hooks/useSelectedCredentialTotpIdentifier", () => ({
+ useSelectedCredentialTotpIdentifier: () => null,
+}));
+
vi.mock("../../ErrorCodeMappingEditor", () => ({
ErrorCodeMappingEditor: (props: {
value: string;
@@ -454,26 +453,6 @@ describe("FileDownloadBlockForm (SKY-9361)", () => {
});
});
- test("ParametersMultiSelect.onCredentialTotpIdentifier sets totpIdentifier only when current is empty", () => {
- setFileDownloadNode("d1", { totpIdentifier: null });
- render(<FileDownloadBlockForm blockId="d1" />);
-
- fireEvent.click(screen.getByTestId("parameters-credential-totp"));
-
- expect(updateNodeData).toHaveBeenCalledWith("d1", {
- totpIdentifier: "totp-from-cred",
- });
- });
-
- test("ParametersMultiSelect.onCredentialTotpIdentifier no-op when totpIdentifier already set", () => {
- setFileDownloadNode("d1", { totpIdentifier: "preset" });
- render(<FileDownloadBlockForm blockId="d1" />);
-
- fireEvent.click(screen.getByTestId("parameters-credential-totp"));
-
- expect(updateNodeData).not.toHaveBeenCalled();
- });
-
test("non-editable: edits do not propagate", () => {
setFileDownloadNode("d1", { editable: false });
render(<FileDownloadBlockForm blockId="d1" />);
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/LoginBlockForm.test.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/LoginBlockForm.test.tsx
index f20aa0ad3..edaf7719a 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/LoginBlockForm.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/LoginBlockForm.test.tsx
@@ -55,6 +55,10 @@ vi.mock("@/components/HelpTooltip", () => ({
HelpTooltip: () => <span data-testid="help-tooltip" />,
}));
+vi.mock("../../hooks/useSelectedCredentialTotpIdentifier", () => ({
+ useSelectedCredentialTotpIdentifier: () => null,
+}));
+
vi.mock("../../nodes/LoginNode/LoginBlockCredentialSelector", () => ({
LoginBlockCredentialSelector: (props: {
nodeId: string;
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowCacheKeyValuesPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowCacheKeyValuesPanel.tsx
index 3b91b245a..83a6b5e74 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowCacheKeyValuesPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowCacheKeyValuesPanel.tsx
@@ -55,27 +55,27 @@ function WorkflowCacheKeyValuesPanel({
return (
<div
- className="relative z-10 w-[44.26rem] rounded-xl border border-border bg-background p-5 shadow-xl"
+ className="relative z-10 w-[44.26rem] rounded-xl border border-slate-700 bg-slate-950 p-5 shadow-xl"
onMouseDownCapture={() => onMouseDownCapture?.()}
>
<div className="space-y-4">
<header className="flex items-start justify-between gap-3">
<div className="flex-1">
<h1 className="text-lg">Code Cache</h1>
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
Given your code key,{" "}
- <code className="font-mono text-xs text-foreground">
+ <code className="font-mono text-xs text-slate-200">
{scriptKey}
</code>
, search for saved code using a code key value. For this code key
there {totalCount === 1 ? "is" : "are"}{" "}
- <span className="font-bold text-foreground">{totalCount}</span>{" "}
+ <span className="font-bold text-slate-200">{totalCount}</span>{" "}
code key {totalCount === 1 ? "value" : "values"}
{filteredCount !== totalCount && (
<>
{" "}
(
- <span className="font-bold text-foreground">
+ <span className="font-bold text-slate-200">
{filteredCount}
</span>{" "}
filtered)
@@ -121,17 +121,16 @@ function WorkflowCacheKeyValuesPanel({
}}
/>
)}
- <div className="h-[10rem] w-full overflow-hidden overflow-y-auto border-b border-border p-1">
+ <div className="h-[10rem] w-full overflow-hidden overflow-y-auto border-b border-slate-700 p-1">
{values.length ? (
<div className="grid w-full grid-cols-[3rem_1fr_3rem] text-sm">
{values.map((cacheKeyValue, i) => (
<div
key={cacheKeyValue}
className={cn(
- "col-span-3 grid w-full cursor-pointer grid-cols-subgrid rounded-md hover:bg-slate-elevation5",
+ "col-span-3 grid w-full cursor-pointer grid-cols-subgrid rounded-md hover:bg-slate-800",
{
- "bg-slate-elevation1 hover:bg-slate-elevation5":
- i % 2 === 0,
+ "bg-slate-900 hover:bg-slate-800": i % 2 === 0,
},
)}
onClick={() => {
@@ -140,14 +139,14 @@ function WorkflowCacheKeyValuesPanel({
>
<div
className={cn(
- "flex items-center justify-end p-1 text-muted-foreground",
+ "flex items-center justify-end p-1 text-slate-500",
)}
>
{i + 1 + (page - 1) * pageSize}
</div>
<div
className={cn(
- "flex min-w-0 flex-1 items-center justify-start p-1 text-muted-foreground",
+ "flex min-w-0 flex-1 items-center justify-start p-1 text-slate-300",
)}
title={cacheKeyValue}
>
@@ -176,7 +175,7 @@ function WorkflowCacheKeyValuesPanel({
</div>
)}
</div>
- <div className="flex items-center justify-between p-1 text-muted-foreground">
+ <div className="flex items-center justify-between p-1 text-slate-500">
{pending && <ReloadIcon className="size-6 animate-spin" />}
<Pagination className="justify-end pt-2">
<PaginationContent>
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowComparisonPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowComparisonPanel.tsx
index a60b72ffc..ad4429891 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowComparisonPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowComparisonPanel.tsx
@@ -245,7 +245,7 @@ function WorkflowComparisonRenderer({
);
return (
- <div className="h-full w-full rounded-lg border bg-card">
+ <div className="h-full w-full rounded-lg border bg-white">
<FlowRenderer
hideBackground={false}
readOnly
@@ -354,7 +354,7 @@ function WorkflowComparisonPanel({
<button
type="button"
onClick={() => onCopilotReviewClose("close")}
- className="absolute right-4 top-4 rounded p-1 text-muted-foreground hover:bg-slate-elevation4 hover:text-foreground"
+ className="absolute right-4 top-4 rounded p-1 text-slate-400 hover:bg-slate-700 hover:text-slate-200"
title="Close (Esc)"
>
<Cross2Icon className="h-5 w-5" />
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx
index 0edd4bb83..98358fb8b 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx
@@ -403,14 +403,14 @@ function WorkflowNodeLibraryPanel({ onNodeClick }: Props) {
}}
>
<div className="flex gap-2">
- <div className="flex h-[2.75rem] w-[2.75rem] shrink-0 items-center justify-center rounded border border-border">
+ <div className="flex h-[2.75rem] w-[2.75rem] shrink-0 items-center justify-center rounded border border-slate-600">
{item.icon}
</div>
<div className="flex flex-col gap-1">
<span className="max-w-64 truncate text-base">
{item.title}
</span>
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-slate-400">
{item.description}
</span>
</div>
@@ -419,7 +419,7 @@ function WorkflowNodeLibraryPanel({ onNodeClick }: Props) {
</div>
))
) : (
- <div className="p-4 text-center text-sm text-muted-foreground">
+ <div className="p-4 text-center text-sm text-slate-400">
No results found
</div>
)}
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterEditPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterEditPanel.tsx
index 1ea325c6f..c55d88a1c 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterEditPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterEditPanel.tsx
@@ -325,14 +325,14 @@ function WorkflowParameterEditPanel({
<Cross2Icon className="h-6 w-6 cursor-pointer" onClick={onClose} />
</header>
<div className="space-y-1">
- <Label className="text-xs text-muted-foreground">Key</Label>
+ <Label className="text-xs text-slate-300">Key</Label>
<Input value={key} onChange={(e) => setKey(e.target.value)} />
{keyValidationError && (
<p className="text-xs text-destructive">{keyValidationError}</p>
)}
</div>
<div className="space-y-1">
- <Label className="text-xs text-muted-foreground">Description</Label>
+ <Label className="text-xs text-slate-300">Description</Label>
<Input
value={description}
onChange={(e) => setDescription(e.target.value)}
@@ -436,7 +436,7 @@ function WorkflowParameterEditPanel({
});
}}
/>
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Use Default Value
</Label>
</div>
@@ -479,7 +479,7 @@ function WorkflowParameterEditPanel({
{/* Step 1: Credential Type */}
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Credential Type
</Label>
<HelpTooltip content="Select the type of credential you want to use. Password for login credentials, Secret for sensitive data fields, Credit Card for payment information." />
@@ -506,9 +506,7 @@ function WorkflowParameterEditPanel({
{/* Step 2: Source */}
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
- Source
- </Label>
+ <Label className="text-xs text-slate-300">Source</Label>
<HelpTooltip content="Select the storage location for your credentials. Skyvern supports managed credentials such as Bitwarden, 1Password, and Azure Key Vault that connect directly to your vault. If you use a custom external credential service, you can add it here as well." />
</div>
<Select
@@ -539,7 +537,7 @@ function WorkflowParameterEditPanel({
<>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
URL Parameter Key
</Label>
<HelpTooltip content="Optional. The workflow parameter key that holds the URL. If provided, Skyvern will match the credential based on this URL." />
@@ -551,7 +549,7 @@ function WorkflowParameterEditPanel({
</div>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Bitwarden Collection ID
</Label>
<HelpTooltip content="Find in the Bitwarden collection URL. Supports workflow parameters." />
@@ -563,7 +561,7 @@ function WorkflowParameterEditPanel({
</div>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Bitwarden Item ID
</Label>
<HelpTooltip content="Find in /#/vault?itemId=[ITEM_ID]. Supports workflow parameters." />
@@ -583,7 +581,7 @@ function WorkflowParameterEditPanel({
<>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Bitwarden Collection ID
</Label>
<HelpTooltip content="Collection containing the identity, such as {{ parameter_name }}." />
@@ -595,9 +593,7 @@ function WorkflowParameterEditPanel({
</div>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
- Identity Key
- </Label>
+ <Label className="text-xs text-slate-300">Identity Key</Label>
<HelpTooltip content="Identity name or identifier, such as {{ parameter_name }}." />
</div>
<Input
@@ -607,7 +603,7 @@ function WorkflowParameterEditPanel({
</div>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Identity Fields
</Label>
<HelpTooltip content="Comma-separated list of field names to extract from the Bitwarden identity (e.g., 'ssn, address, phone')." />
@@ -626,7 +622,7 @@ function WorkflowParameterEditPanel({
<>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Bitwarden Collection ID
</Label>
<HelpTooltip content="Collection containing the credit card. Supports workflow parameters." />
@@ -638,7 +634,7 @@ function WorkflowParameterEditPanel({
</div>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Bitwarden Item ID
</Label>
<HelpTooltip content="Credit card item ID. Supports workflow parameters." />
@@ -658,7 +654,7 @@ function WorkflowParameterEditPanel({
<>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
1Password Vault ID
</Label>
<HelpTooltip content="Find this in the 1Password vault URL. Supports workflow parameters." />
@@ -670,7 +666,7 @@ function WorkflowParameterEditPanel({
</div>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
1Password Item ID
</Label>
<HelpTooltip content="Find this in the 1Password item URL. Supports workflow parameters." />
@@ -681,8 +677,8 @@ function WorkflowParameterEditPanel({
/>
</div>
{credentialDataType === "creditCard" && (
- <div className="rounded-md bg-slate-elevation5 p-2">
- <div className="space-y-1 text-xs text-muted-foreground">
+ <div className="rounded-md bg-slate-800 p-2">
+ <div className="space-y-1 text-xs text-slate-400">
Credit Cards: Due to a 1Password limitation, add the
expiration date as a separate text field named "Expire Date"
in the format MM/YYYY (e.g. 09/2027).
@@ -697,7 +693,7 @@ function WorkflowParameterEditPanel({
<>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Azure Key Vault Name
</Label>
<HelpTooltip content="The name of your Azure Key Vault instance (e.g., 'my-company-vault'). This is the name you see in the Azure portal." />
@@ -709,7 +705,7 @@ function WorkflowParameterEditPanel({
</div>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Azure Username Secret Key
</Label>
<HelpTooltip content="The secret name in Azure Key Vault that stores the username (e.g., 'my-app-username')." />
@@ -722,7 +718,7 @@ function WorkflowParameterEditPanel({
</div>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Azure Password Secret Key
</Label>
<HelpTooltip content="The secret name in Azure Key Vault that stores the password (e.g., 'my-app-password')." />
@@ -734,7 +730,7 @@ function WorkflowParameterEditPanel({
</div>
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Azure TOTP Secret Key
</Label>
<HelpTooltip content="Optional. The secret name in Azure Key Vault that stores the TOTP secret for two-factor authentication." />
@@ -751,7 +747,7 @@ function WorkflowParameterEditPanel({
{showSkyvernCredentialSelector && (
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Skyvern Credential
</Label>
<HelpTooltip content="Select a credential from your Skyvern credential store. These are managed credentials you've previously added to Skyvern." />
@@ -767,7 +763,7 @@ function WorkflowParameterEditPanel({
{showCustomCredentialSelector && (
<div className="space-y-1">
<div className="flex gap-2">
- <Label className="text-xs text-muted-foreground">
+ <Label className="text-xs text-slate-300">
Custom Credential
</Label>
<HelpTooltip content="Select a credential managed by your custom credential service. These credentials are stored in your external credential vault." />
@@ -782,9 +778,7 @@ function WorkflowParameterEditPanel({
{type === "context" && (
<div className="space-y-1">
- <Label className="text-xs text-muted-foreground">
- Source Parameter
- </Label>
+ <Label className="text-xs text-slate-300">Source Parameter</Label>
<SourceParameterKeySelector
value={sourceParameterKey}
onChange={setSourceParameterKey}
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParametersPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParametersPanel.tsx
index 30d4d76da..8bdf6ba3c 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParametersPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParametersPanel.tsx
@@ -93,13 +93,13 @@ function WorkflowParametersPanel({ onMouseDownCapture }: Props) {
return (
<div
- className="relative z-10 w-[25rem] rounded-xl border border-border bg-background p-5 shadow-xl"
+ className="relative z-10 w-[25rem] rounded-xl border border-slate-700 bg-slate-950 p-5 shadow-xl"
onMouseDownCapture={() => onMouseDownCapture?.()}
>
<div className="space-y-4">
<header>
<h1 className="text-lg">Parameters</h1>
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
Create placeholder values that you can link in nodes. You will be
prompted to fill them in before running your workflow.
</span>
@@ -141,11 +141,11 @@ function WorkflowParametersPanel({ onMouseDownCapture }: Props) {
</Tooltip>
</TooltipProvider>
{parameter.parameterType === "workflow" ? (
- <span className="shrink-0 text-sm text-muted-foreground">
+ <span className="shrink-0 text-sm text-slate-400">
{getLabelForWorkflowParameterType(parameter.dataType)}
</span>
) : (
- <span className="shrink-0 text-sm text-muted-foreground">
+ <span className="shrink-0 text-sm text-slate-400">
{parameter.parameterType === "onepassword" ||
parameter.parameterType === "secret" ||
parameter.parameterType === "creditCardData"
@@ -221,7 +221,7 @@ function WorkflowParametersPanel({ onMouseDownCapture }: Props) {
}}
>
{operationPanelState.operation === "add" && (
- <div className="w-80 rounded-xl border border-border bg-background p-5 px-2 shadow-xl">
+ <div className="w-80 rounded-xl border border-slate-700 bg-slate-950 p-5 px-2 shadow-xl">
<WorkflowParameterEditPanel
type={operationPanelState.type}
onSave={(parameter) => {
@@ -245,7 +245,7 @@ function WorkflowParametersPanel({ onMouseDownCapture }: Props) {
)}
{operationPanelState.operation === "edit" &&
operationPanelState.parameter && (
- <div className="w-80 rounded-xl border border-border bg-background p-5 px-2 shadow-xl">
+ <div className="w-80 rounded-xl border border-slate-700 bg-slate-950 p-5 px-2 shadow-xl">
<WorkflowParameterEditPanel
key={operationPanelState.parameter?.key}
type={operationPanelState.type}
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/CreateScheduleDialog.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/CreateScheduleDialog.tsx
index bd7999b77..3374d2f93 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/CreateScheduleDialog.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/CreateScheduleDialog.tsx
@@ -184,7 +184,7 @@ function CreateScheduleDialog({
className={cn(!valid && cronExpression && "border-destructive")}
/>
{humanReadable && (
- <p className="text-sm text-muted-foreground">{humanReadable}</p>
+ <p className="text-sm text-slate-400">{humanReadable}</p>
)}
{!valid && cronExpression && (
<p className="text-sm text-destructive">
@@ -211,14 +211,14 @@ function CreateScheduleDialog({
placeholder="Search timezones..."
/>
{timezoneFilter !== null && (
- <div className="max-h-40 overflow-y-auto rounded-md border border-border bg-slate-elevation3">
+ <div className="max-h-40 overflow-y-auto rounded-md border border-slate-700 bg-slate-elevation3">
{filteredTimezones.slice(0, 20).map((tz) => (
<button
key={tz}
type="button"
className={cn(
- "w-full px-3 py-1.5 text-left text-sm hover:bg-slate-elevation4",
- tz === timezone && "bg-slate-elevation4 text-foreground",
+ "w-full px-3 py-1.5 text-left text-sm hover:bg-slate-700",
+ tz === timezone && "bg-slate-700 text-slate-50",
)}
onMouseDown={(e) => {
e.preventDefault();
@@ -230,23 +230,23 @@ function CreateScheduleDialog({
</button>
))}
{filteredTimezones.length === 0 && (
- <div className="px-3 py-2 text-sm text-muted-foreground">
+ <div className="px-3 py-2 text-sm text-slate-500">
No timezones found
</div>
)}
</div>
)}
- <p className="text-xs text-muted-foreground">Current: {timezone}</p>
+ <p className="text-xs text-slate-500">Current: {timezone}</p>
</div>
{nextRuns.length > 0 && (
<div className="space-y-2">
<Label>Next Scheduled Runs</Label>
- <div className="space-y-1 rounded-md border border-border bg-slate-elevation3 p-3">
+ <div className="space-y-1 rounded-md border border-slate-700 bg-slate-elevation3 p-3">
{nextRuns.map((run) => (
<div
key={run.toISOString()}
- className="text-xs text-muted-foreground"
+ className="text-xs text-slate-400"
>
{formatNextRun(run, timezone)}
</div>
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/ScheduleCard.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/ScheduleCard.tsx
index a877c0429..7d0c24b78 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/ScheduleCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/ScheduleCard.tsx
@@ -18,18 +18,18 @@ function ScheduleCard({ schedule, isToggling, onToggle, onDelete }: Props) {
const nextRun = nextRuns[0];
return (
- <div className="flex flex-col gap-2 rounded-md border border-border px-3.5 pb-0.5 pt-3.5">
+ <div className="flex flex-col gap-2 rounded-md border border-slate-700 px-3.5 pb-0.5 pt-3.5">
<div className="flex items-start justify-between">
<div className="flex flex-col gap-0.5">
{schedule.name && (
- <span className="text-sm font-medium text-foreground">
+ <span className="text-sm font-medium text-slate-50">
{schedule.name}
</span>
)}
<span
className={cn(
"text-sm",
- schedule.name ? "text-muted-foreground" : "text-foreground",
+ schedule.name ? "text-slate-400" : "text-slate-50",
)}
>
{humanReadable}
@@ -37,9 +37,7 @@ function ScheduleCard({ schedule, isToggling, onToggle, onDelete }: Props) {
</div>
</div>
<div className="flex items-center justify-between">
- <span className="text-xs text-muted-foreground">
- {schedule.timezone}
- </span>
+ <span className="text-xs text-slate-400">{schedule.timezone}</span>
<div className="flex items-center gap-2">
<Switch
checked={schedule.enabled}
@@ -59,7 +57,7 @@ function ScheduleCard({ schedule, isToggling, onToggle, onDelete }: Props) {
</div>
</div>
{nextRun && (
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-500">
Next: {formatNextRun(nextRun, schedule.timezone)}
</div>
)}
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/WorkflowSchedulePanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/WorkflowSchedulePanel.tsx
index cb76097f5..fcbe21ba0 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/WorkflowSchedulePanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/WorkflowSchedulePanel.tsx
@@ -80,9 +80,9 @@ function WorkflowSchedulePanel({ onClose }: Props) {
};
return (
- <div className="flex h-full w-[22rem] flex-col rounded-lg border border-border bg-slate-elevation3">
- <div className="flex items-center justify-between border-b border-border px-4 py-4">
- <h3 className="text-sm font-normal text-foreground">
+ <div className="flex h-full w-[22rem] flex-col rounded-lg border border-slate-700 bg-slate-elevation3">
+ <div className="flex items-center justify-between border-b border-slate-700 px-4 py-4">
+ <h3 className="text-sm font-normal text-slate-50">
Schedules
{schedules && schedules.length > 0 ? ` (${schedules.length})` : ""}
</h3>
@@ -111,14 +111,14 @@ function WorkflowSchedulePanel({ onClose }: Props) {
<div className="flex flex-col gap-3 px-4 py-2">
{isLoading && (
<div className="flex items-center justify-center py-8">
- <ReloadIcon className="size-5 animate-spin text-muted-foreground" />
+ <ReloadIcon className="size-5 animate-spin text-slate-400" />
</div>
)}
{isError && (
<div className="py-8 text-center text-sm text-red-400">
Failed to load schedules.
{error?.message && (
- <span className="block text-xs text-muted-foreground">
+ <span className="block text-xs text-slate-500">
{error.message}
</span>
)}
@@ -127,7 +127,7 @@ function WorkflowSchedulePanel({ onClose }: Props) {
{!isLoading &&
!isError &&
(!schedules || schedules.length === 0) && (
- <div className="py-8 text-center text-sm text-muted-foreground">
+ <div className="py-8 text-center text-sm text-slate-500">
No schedules configured.
<br />
Click &quot;Add&quot; to create one.
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx
index 20a9cb6b6..01509753f 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx
@@ -72,13 +72,13 @@ function ActionCard({ action, onClick, active, index, cardClassName }: Props) {
)}
</div>
</div>
- <div className="break-words text-xs text-muted-foreground">
+ <div className="break-words text-xs text-slate-400">
{action.reasoning}
</div>
{action.action_type === ActionTypes.InputText && (
<>
<Separator />
- <div className="text-xs text-muted-foreground">
+ <div className="text-xs text-slate-400">
Input:{" "}
{action.action_type === "input_text"
? (action.text ?? action.response)
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/BlockCard.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/BlockCard.tsx
index d2430c473..e98da8926 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/BlockCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/BlockCard.tsx
@@ -14,9 +14,9 @@ function BlockCard({ block, onClick, active }: Props) {
return (
<div
className={cn(
- "cursor-pointer space-y-3 rounded-md border bg-slate-elevation3 p-4 hover:border-foreground",
+ "cursor-pointer space-y-3 rounded-md border bg-slate-elevation3 p-4 hover:border-slate-50",
{
- "border-foreground ring-1 ring-ring": active,
+ "border-slate-50": active,
},
)}
onClick={onClick}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ScriptFixInput.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ScriptFixInput.tsx
index a61fbb6c5..c8b2f1653 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/ScriptFixInput.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/ScriptFixInput.tsx
@@ -75,8 +75,8 @@ function ScriptFixInput({
)}
{/* Expanded input panel */}
{isOpen && (
- <div className="flex w-full flex-col gap-2 rounded-md border border-border bg-slate-elevation2 p-3">
- <div className="flex items-center gap-2 text-xs font-medium text-muted-foreground">
+ <div className="flex w-full flex-col gap-2 rounded-md border border-slate-700 bg-slate-elevation2 p-3">
+ <div className="flex items-center gap-2 text-xs font-medium text-slate-300">
<MagicWandIcon className="h-3.5 w-3.5" />
Describe what to fix
</div>
@@ -95,7 +95,7 @@ function ScriptFixInput({
}}
/>
<div className="flex items-center justify-between">
- <span className="text-[10px] text-muted-foreground">
+ <span className="text-[10px] text-slate-500">
{isPending ? "Reviewing script..." : "Cmd/Ctrl+Enter to submit"}
</span>
<div className="flex gap-2">
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ScriptUpdateCard.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ScriptUpdateCard.tsx
index 055301715..41bb3ab9d 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/ScriptUpdateCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/ScriptUpdateCard.tsx
@@ -98,9 +98,9 @@ function EpisodeDetail({ episode }: { episode: ScriptFallbackEpisode }) {
: errorMessage;
return (
- <div className="rounded border border-border bg-slate-elevation5/50 p-3 text-sm">
+ <div className="rounded border border-slate-700 bg-slate-800/50 p-3 text-sm">
<div className="flex flex-wrap items-center gap-2">
- <span className="font-mono text-foreground">{episode.block_label}</span>
+ <span className="font-mono text-slate-200">{episode.block_label}</span>
<Badge variant="secondary" className="text-xs">
{fallbackTypeLabels[episode.fallback_type] ?? episode.fallback_type}
</Badge>
@@ -122,7 +122,7 @@ function EpisodeDetail({ episode }: { episode: ScriptFallbackEpisode }) {
</div>
{errorMessage && (
<div className="mt-2">
- <p className="text-xs text-muted-foreground">{displayMessage}</p>
+ <p className="text-xs text-slate-400">{displayMessage}</p>
{isTruncated && (
<button
onClick={() => setExpanded(!expanded)}
@@ -194,21 +194,21 @@ function DiffSection({
<CodeIcon className="size-3.5" />
{showDiff ? "Hide code changes" : "View code changes"}
{beforeVersion != null && afterVersion != null && (
- <span className="text-xs text-muted-foreground">
+ <span className="text-xs text-slate-500">
v{beforeVersion} → v{afterVersion}
</span>
)}
</button>
{showDiff && isLoading && (
- <p className="mt-2 text-xs text-muted-foreground">Loading diff…</p>
+ <p className="mt-2 text-xs text-slate-500">Loading diff…</p>
)}
{showDiff && hasBothVersions && (
- <div className="mt-3 overflow-hidden rounded border border-border">
+ <div className="mt-3 overflow-hidden rounded border border-slate-700">
<ScriptDiffViewer original={beforeText} modified={afterText} />
</div>
)}
{showDiff && noCodeAvailable && (
- <p className="mt-2 text-xs text-muted-foreground">
+ <p className="mt-2 text-xs text-slate-500">
Code not available for these versions.
</p>
)}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/TaskBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/TaskBlockParameters.tsx
index 58c0ac7f6..a75bdb73e 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/TaskBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/TaskBlockParameters.tsx
@@ -102,7 +102,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">URL</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The starting URL for the block
</h2>
</div>
@@ -113,7 +113,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Navigation Goal</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
What should Skyvern do on this page?
</h2>
</div>
@@ -125,7 +125,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Navigation Payload</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify important parameters, routes, or states
</h2>
</div>
@@ -144,7 +144,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Data Extraction Goal</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
What outputs are you looking to get?
</h2>
</div>
@@ -159,7 +159,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Data Schema</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Specify the output format in JSON
</h2>
</div>
@@ -178,7 +178,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Completion Criteria</h1>
- <h2 className="text-base text-muted-foreground">Complete if...</h2>
+ <h2 className="text-base text-slate-400">Complete if...</h2>
</div>
<AutoResizingTextarea
value={block.complete_criterion ?? ""}
@@ -191,7 +191,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Termination Criteria</h1>
- <h2 className="text-base text-muted-foreground">Terminate if...</h2>
+ <h2 className="text-base text-slate-400">Terminate if...</h2>
</div>
<AutoResizingTextarea
value={block.terminate_criterion ?? ""}
@@ -204,7 +204,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Include Action History</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Whether to include action history in the completion verification
</h2>
</div>
@@ -220,13 +220,13 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Continue on Failure</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Whether to continue the workflow if this block fails
</h2>
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={block.continue_on_failure} disabled />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{block.continue_on_failure ? "Enabled" : "Disabled"}
</span>
</div>
@@ -234,7 +234,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
{hasAdvancedSettings ? (
<>
- <h2 className="text-base font-semibold text-muted-foreground">
+ <h2 className="text-base font-semibold text-slate-300">
Advanced Settings
</h2>
@@ -242,7 +242,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Engine</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The execution engine used for this block
</h2>
</div>
@@ -254,7 +254,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Error Code Mapping</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Custom error codes and their descriptions
</h2>
</div>
@@ -312,7 +312,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={true} disabled />
- <span className="text-sm text-muted-foreground">Enabled</span>
+ <span className="text-sm text-slate-400">Enabled</span>
</div>
</div>
) : null}
@@ -333,7 +333,7 @@ function TaskBlockParameters({ block, definitionBlock }: Props) {
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={true} disabled />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
Cache is disabled for this block
</span>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ThoughtCard.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ThoughtCard.tsx
index f3b746c53..4c1ebb761 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/ThoughtCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/ThoughtCard.tsx
@@ -31,7 +31,7 @@ function ThoughtCard({ thought, onClick, active, cardClassName }: Props) {
</StatusPill>
</div>
{(thought.answer || thought.thought) && (
- <div className="break-words text-xs text-muted-foreground">
+ <div className="break-words text-xs text-slate-400">
{thought.answer || thought.thought}
</div>
)}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx
index ab2e80c66..860b1ddde 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx
@@ -138,7 +138,7 @@ function WorkflowPostRunParameters() {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-sm">Loop Values</h1>
- <h2 className="text-sm text-muted-foreground">
+ <h2 className="text-sm text-slate-400">
The values that are being looped over
</h2>
</div>
@@ -423,7 +423,7 @@ function WorkflowPostRunParameters() {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Run With</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Execution mode for this run
</h2>
</div>
@@ -453,7 +453,7 @@ function WorkflowPostRunParameters() {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Task 2.0 Prompt</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The original prompt for the task
</h2>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx
index b7cc9cb42..d898063f4 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx
@@ -351,16 +351,14 @@ function WorkflowRunCode(props?: Props) {
"rounded-full border px-2.5 py-1 text-xs transition-colors",
activeChipVersion === usedVersion
? "border-blue-500 bg-blue-500/20 text-blue-300"
- : "border-border text-muted-foreground hover:border-input",
+ : "border-slate-700 text-slate-400 hover:border-slate-500",
)}
onClick={() => setSelectedVersion(didGenerate ? usedVersion : null)}
disabled={isEditing}
>
Used: #{usedVersion}
</button>
- {didGenerate && (
- <span className="text-xs text-muted-foreground">→</span>
- )}
+ {didGenerate && <span className="text-xs text-slate-600">→</span>}
</>
)}
{generatedVersion != null && (
@@ -370,16 +368,14 @@ function WorkflowRunCode(props?: Props) {
"rounded-full border px-2.5 py-1 text-xs transition-colors",
activeChipVersion === generatedVersion || selectedVersion === null
? "border-emerald-500 bg-emerald-500/20 text-emerald-300"
- : "border-border text-muted-foreground hover:border-input",
+ : "border-slate-700 text-slate-400 hover:border-slate-500",
)}
onClick={() => setSelectedVersion(null)}
disabled={isEditing}
>
Generated: #{generatedVersion}
{usedVersion == null && (
- <span className="ml-1 text-[10px] text-muted-foreground">
- (initial)
- </span>
+ <span className="ml-1 text-[10px] text-slate-500">(initial)</span>
)}
</button>
)}
@@ -452,7 +448,7 @@ function WorkflowRunCode(props?: Props) {
value={cacheKeyValue}
onValueChange={(v: string) => setCacheKeyValue(v)}
>
- <SelectTrigger className="h-7 max-w-[15rem] gap-1.5 rounded-full border-border px-2.5 text-xs [&>span]:text-ellipsis">
+ <SelectTrigger className="h-7 max-w-[15rem] gap-1.5 rounded-full border-slate-700 px-2.5 text-xs [&>span]:text-ellipsis">
<SelectValue placeholder="Variant" />
</SelectTrigger>
<SelectContent>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunHumanInteraction.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunHumanInteraction.tsx
index c8239dc7f..f3f12136c 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunHumanInteraction.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunHumanInteraction.tsx
@@ -156,7 +156,7 @@ export function WorkflowRunHumanInteraction({ workflowRunBlock }: Props) {
<div>{workflowRunBlock.negative_descriptor}</div>
</Button>
<Button
- variant="brand"
+ variant="default"
onClick={() => {
setChoice("approve");
setIsDialogOpen(true);
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx
index 7a3d9a4e5..4aef52f3f 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx
@@ -36,14 +36,14 @@ function SummaryDisplay({
className="space-y-1 rounded bg-slate-elevation3 p-4"
>
{isStale && (
- <p className="text-xs text-muted-foreground">
+ <p className="text-xs text-slate-400">
Out of date - re-summarize for the current output.
</p>
)}
<p
className={
isStale
- ? "whitespace-pre-wrap text-sm text-muted-foreground"
+ ? "whitespace-pre-wrap text-sm text-slate-400"
: "whitespace-pre-wrap text-sm"
}
>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
index 6deb6d5fc..d6955906c 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
@@ -64,7 +64,7 @@ function WorkflowRunRecording() {
key={index} // presigned URLs change on refetch; list order is stable
className="flex flex-col gap-2"
>
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-slate-400">
Recording {index + 1} of {recordingUrls.length}
</div>
<video
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx
index f252bed66..2151dbd54 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx
@@ -258,7 +258,7 @@ function WorkflowRunStream({
if (workflowRun?.status === Status.Created) {
return (
- <div className="flex h-full w-full flex-col items-center justify-center gap-8 rounded-md bg-slate-elevation1 py-8 text-lg">
+ <div className="flex h-full w-full flex-col items-center justify-center gap-8 rounded-md bg-slate-900 py-8 text-lg">
<span>Workflow has been created.</span>
<span>Stream will start when the workflow is running.</span>
</div>
@@ -266,7 +266,7 @@ function WorkflowRunStream({
}
if (workflowRun?.status === Status.Queued) {
return (
- <div className="flex h-full w-full flex-col items-center justify-center gap-8 rounded-md bg-slate-elevation1 py-8 text-lg">
+ <div className="flex h-full w-full flex-col items-center justify-center gap-8 rounded-md bg-slate-900 py-8 text-lg">
<span>Your workflow run is queued.</span>
<span>Stream will start when the workflow is running.</span>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimeline.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimeline.tsx
index 674453371..a150c537b 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimeline.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimeline.tsx
@@ -120,7 +120,7 @@ function WorkflowRunTimeline({
</div>
)}
{workflowRunIsNotFinalized && workflowRunTimeline.length === 0 && (
- <div className="flex items-center justify-center py-8 text-sm text-muted-foreground">
+ <div className="flex items-center justify-center py-8 text-sm text-slate-400">
Formulating actions...
</div>
)}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx
index 40dd3e7cd..4b2bcfa67 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx
@@ -146,7 +146,7 @@ function LoopValueCode({
<TooltipTrigger asChild>
<code
ref={codeRef}
- className="line-clamp-2 block min-w-0 break-all rounded bg-slate-elevation1 px-1 py-0.5 font-mono text-muted-foreground"
+ className="line-clamp-2 block min-w-0 break-all rounded bg-slate-elevation1 px-1 py-0.5 font-mono text-slate-300"
>
{collapsed}
</code>
@@ -471,7 +471,7 @@ function WorkflowRunTimelineBlockItem({
<div
className={cn("min-w-0", {
"ml-3 pl-3": depth > 0,
- "border-l border-border": depth > 0,
+ "border-l border-slate-700": depth > 0,
})}
>
<div
@@ -495,14 +495,14 @@ function WorkflowRunTimelineBlockItem({
<div className="space-y-2">
<div className="flex justify-between">
<div className="flex gap-3">
- <div className="relative rounded bg-slate-elevation5 p-2">
+ <div className="relative rounded bg-slate-800 p-2">
<WorkflowBlockIcon
workflowBlockType={block.block_type}
className="size-6"
/>
{isRunning && (
<div className="absolute -bottom-1 -left-1 rounded-full bg-slate-elevation3 p-0.5">
- <ReloadIcon className="size-3 animate-spin text-muted-foreground" />
+ <ReloadIcon className="size-3 animate-spin text-slate-400" />
</div>
)}
</div>
@@ -513,7 +513,7 @@ function WorkflowRunTimelineBlockItem({
</span>
<span
ref={shimmerLabelRef}
- className="flex gap-2 text-xs text-muted-foreground"
+ className="flex gap-2 text-xs text-slate-400"
>
{block.label}
</span>
@@ -563,15 +563,15 @@ function WorkflowRunTimelineBlockItem({
</div>
</div>
{block.description ? (
- <div className="break-words text-xs text-muted-foreground">
+ <div className="break-words text-xs text-slate-400">
{block.description}
</div>
) : null}
{isForLoopBlock && (
<div className="min-w-0 space-y-2 rounded bg-slate-elevation5 px-3 py-2 text-xs">
- <div className="text-muted-foreground">
+ <div className="text-slate-300">
Iterable values:{" "}
- <span className="font-medium text-foreground">
+ <span className="font-medium text-slate-200">
{loopValues.length}
</span>
</div>
@@ -583,9 +583,9 @@ function WorkflowRunTimelineBlockItem({
return (
<div
key={index}
- className="flex min-w-0 break-words text-muted-foreground"
+ className="flex min-w-0 break-words text-slate-400"
>
- <span className="mr-1 shrink-0 text-muted-foreground">
+ <span className="mr-1 shrink-0 text-slate-500">
[{index}]
</span>
<LoopValueCode
@@ -600,9 +600,9 @@ function WorkflowRunTimelineBlockItem({
</div>
)}
{isWhileLoopBlock && (
- <div className="min-w-0 rounded bg-slate-elevation5 px-3 py-2 text-xs text-muted-foreground">
+ <div className="min-w-0 rounded bg-slate-elevation5 px-3 py-2 text-xs text-slate-300">
Iterations run:{" "}
- <span className="font-medium text-foreground">
+ <span className="font-medium text-slate-200">
{loopIterationGroups.length}
</span>
</div>
@@ -619,11 +619,11 @@ function WorkflowRunTimelineBlockItem({
"rounded border px-2 py-1.5",
evaluation.is_matched
? "border-success/50 bg-success/10"
- : "border-border bg-slate-elevation3",
+ : "border-slate-600 bg-slate-elevation3",
)}
>
{evaluation.is_default ? (
- <div className="text-muted-foreground">
+ <div className="text-slate-300">
<span className="font-medium">Default branch</span>
{evaluation.is_matched && (
<span className="ml-2 text-success">
@@ -633,23 +633,23 @@ function WorkflowRunTimelineBlockItem({
</div>
) : (
<div className="space-y-1">
- <div className="text-muted-foreground">
- <code className="break-all rounded bg-slate-elevation1 px-1 py-0.5 font-mono text-muted-foreground">
+ <div className="text-slate-400">
+ <code className="break-all rounded bg-slate-elevation1 px-1 py-0.5 font-mono text-slate-300">
{evaluation.original_expression}
</code>
</div>
{evaluation.rendered_expression &&
evaluation.rendered_expression !==
evaluation.original_expression && (
- <div className="text-muted-foreground">
+ <div className="text-slate-400">
→ rendered to{" "}
- <code className="break-all rounded bg-slate-elevation1 px-1 py-0.5 font-mono text-foreground">
+ <code className="break-all rounded bg-slate-elevation1 px-1 py-0.5 font-mono text-slate-200">
{evaluation.rendered_expression}
</code>
</div>
)}
<div className="flex items-center gap-2">
- <span className="text-muted-foreground">
+ <span className="text-slate-400">
evaluated to
</span>
<span
@@ -670,9 +670,9 @@ function WorkflowRunTimelineBlockItem({
)}
{evaluation.is_matched &&
evaluation.next_block_label && (
- <div className="mt-1 text-muted-foreground">
+ <div className="mt-1 text-slate-400">
→ Executing next block:{" "}
- <span className="font-medium text-muted-foreground">
+ <span className="font-medium text-slate-300">
{evaluation.next_block_label}
</span>
</div>
@@ -685,23 +685,23 @@ function WorkflowRunTimelineBlockItem({
<>
{block.executed_branch_expression !== null &&
block.executed_branch_expression !== undefined ? (
- <div className="text-muted-foreground">
+ <div className="text-slate-300">
Condition{" "}
- <code className="break-all rounded bg-slate-elevation3 px-1.5 py-0.5 font-mono text-foreground">
+ <code className="break-all rounded bg-slate-elevation3 px-1.5 py-0.5 font-mono text-slate-200">
{block.executed_branch_expression}
</code>{" "}
evaluated to{" "}
<span className="font-medium text-success">True</span>
</div>
) : (
- <div className="text-muted-foreground">
+ <div className="text-slate-300">
No conditions matched, executing default branch
</div>
)}
{block.executed_branch_next_block && (
- <div className="text-muted-foreground">
+ <div className="text-slate-400">
→ Executing next block:{" "}
- <span className="font-medium text-muted-foreground">
+ <span className="font-medium text-slate-300">
{block.executed_branch_next_block}
</span>
</div>
@@ -799,21 +799,21 @@ function WorkflowRunTimelineBlockItem({
});
}}
>
- <div className="rounded border border-border bg-slate-elevation4">
+ <div className="rounded border border-slate-700 bg-slate-elevation4">
<CollapsibleTrigger asChild>
<button
className="group flex w-full items-center justify-between gap-2 px-2 py-1 text-left"
onClick={(event) => event.stopPropagation()}
>
<div className="flex items-center gap-1.5">
- <ChevronRightIcon className="size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" />
- <span className="text-xs text-foreground">{`Iteration ${iterationNumber}`}</span>
+ <ChevronRightIcon className="size-4 text-slate-300 transition-transform group-data-[state=open]:rotate-90" />
+ <span className="text-xs text-slate-200">{`Iteration ${iterationNumber}`}</span>
</div>
{isWhileLoopBlock ? null : isValueTruncated ? (
<TooltipProvider delayDuration={300}>
<Tooltip>
<TooltipTrigger asChild>
- <code className="min-w-0 truncate rounded bg-slate-elevation1 px-1 py-0.5 text-[11px] text-muted-foreground">
+ <code className="min-w-0 truncate rounded bg-slate-elevation1 px-1 py-0.5 text-[11px] text-slate-300">
current_value: {currentValuePreview}
</code>
</TooltipTrigger>
@@ -826,7 +826,7 @@ function WorkflowRunTimelineBlockItem({
</Tooltip>
</TooltipProvider>
) : (
- <code className="min-w-0 truncate rounded bg-slate-elevation1 px-1 py-0.5 text-[11px] text-muted-foreground">
+ <code className="min-w-0 truncate rounded bg-slate-elevation1 px-1 py-0.5 text-[11px] text-slate-300">
current_value: {currentValuePreview}
</code>
)}
@@ -853,13 +853,13 @@ function WorkflowRunTimelineBlockItem({
{hasNestedChildren && isConditionalBlock && (
<Collapsible open={childrenOpen} onOpenChange={setChildrenOpen}>
- <div className="rounded border border-border bg-slate-elevation4 px-2 py-1.5">
+ <div className="rounded border border-slate-700 bg-slate-elevation4 px-2 py-1.5">
<CollapsibleTrigger asChild>
<button
className="flex w-full items-center justify-between gap-2 text-left"
onClick={(event) => event.stopPropagation()}
>
- <div className="flex items-center gap-1.5 text-xs text-foreground">
+ <div className="flex items-center gap-1.5 text-xs text-slate-200">
{childrenOpen ? (
<ChevronDownIcon className="size-4" />
) : (
@@ -868,7 +868,7 @@ function WorkflowRunTimelineBlockItem({
<span>{`Executed branch blocks (${subItems.length})`}</span>
</div>
{block.executed_branch_next_block && (
- <span className="text-[11px] text-muted-foreground">
+ <span className="text-[11px] text-slate-400">
next: {block.executed_branch_next_block}
</span>
)}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx
index a8aa62302..bba1ce66d 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx
@@ -206,7 +206,7 @@ function WorkflowRunTimelineItemInfoSection({ activeItem }: Props) {
if (item.wait_sec !== null && typeof item.wait_sec !== "undefined") {
return (
<div className="flex w-1/2 justify-between rounded bg-slate-elevation1 p-4">
- <span className="text-sm text-muted-foreground">Wait Time</span>
+ <span className="text-sm text-slate-400">Wait Time</span>
<span className="text-sm">{item.wait_sec} Seconds</span>
</div>
);
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/CodeBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/CodeBlockParameters.tsx
index 8412db901..1d2549822 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/CodeBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/CodeBlockParameters.tsx
@@ -12,7 +12,7 @@ function CodeBlockParameters({ code, parameters }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Code</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The Python snippet executed for this block
</h2>
</div>
@@ -29,7 +29,7 @@ function CodeBlockParameters({ code, parameters }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Parameters</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Inputs passed to this code block
</h2>
</div>
@@ -37,11 +37,11 @@ function CodeBlockParameters({ code, parameters }: Props) {
{parameters.map((parameter) => (
<div
key={parameter.key}
- className="rounded border border-border/40 bg-slate-elevation3 p-3"
+ className="rounded border border-slate-700/40 bg-slate-elevation3 p-3"
>
<p className="font-medium">{parameter.key}</p>
{parameter.description ? (
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-slate-400">
{parameter.description}
</p>
) : null}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/ConditionalBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/ConditionalBlockParameters.tsx
index bf1512655..2a0aa5eee 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/ConditionalBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/ConditionalBlockParameters.tsx
@@ -24,7 +24,7 @@ function ConditionalBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Executed Expression</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The branch expression that was evaluated
</h2>
</div>
@@ -38,7 +38,7 @@ function ConditionalBlockParameters({
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={executedBranchResult} disabled />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{executedBranchResult ? "True" : "False"}
</span>
</div>
@@ -48,7 +48,7 @@ function ConditionalBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Next Block</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The block that was executed after the condition
</h2>
</div>
@@ -65,23 +65,23 @@ function ConditionalBlockParameters({
) : null}
{branchConditions && branchConditions.length > 0 ? (
<div className="space-y-3">
- <h2 className="text-base font-semibold text-muted-foreground">
+ <h2 className="text-base font-semibold text-slate-300">
Branch Conditions
</h2>
{branchConditions.map((condition) => (
<div
key={condition.id}
- className="space-y-2 rounded border border-border/40 bg-slate-elevation3 p-3"
+ className="space-y-2 rounded border border-slate-700/40 bg-slate-elevation3 p-3"
>
{condition.description ? (
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-slate-400">
{condition.description}
</p>
) : null}
{condition.criteria?.expression ? (
<div className="flex items-center gap-2">
<span className="text-sm font-medium">Expression:</span>
- <code className="text-sm text-muted-foreground">
+ <code className="text-sm text-slate-300">
{condition.criteria.expression}
</code>
</div>
@@ -89,13 +89,13 @@ function ConditionalBlockParameters({
{condition.next_block_label ? (
<div className="flex items-center gap-2">
<span className="text-sm font-medium">Next Block:</span>
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-300">
{condition.next_block_label}
</span>
</div>
) : null}
{condition.is_default ? (
- <span className="inline-block rounded bg-slate-elevation4 px-2 py-0.5 text-xs">
+ <span className="inline-block rounded bg-slate-700 px-2 py-0.5 text-xs">
Default
</span>
) : null}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/FileDownloadBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/FileDownloadBlockParameters.tsx
index e6859069f..286df05d9 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/FileDownloadBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/FileDownloadBlockParameters.tsx
@@ -28,7 +28,7 @@ function FileDownloadBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Prompt</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Instructions followed to download the file
</h2>
</div>
@@ -39,7 +39,7 @@ function FileDownloadBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Download Suffix</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Expected suffix or filename for the downloaded file
</h2>
</div>
@@ -50,7 +50,7 @@ function FileDownloadBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Download Timeout</h1>
- <h2 className="text-base text-muted-foreground">In seconds</h2>
+ <h2 className="text-base text-slate-400">In seconds</h2>
</div>
<Input value={downloadTimeout.toString()} readOnly />
</div>
@@ -84,7 +84,7 @@ function FileDownloadBlockParameters({
typeof maxRetries !== "number" &&
typeof maxStepsPerRun !== "number" &&
!formattedErrorCodeMapping ? (
- <div className="text-sm text-muted-foreground">
+ <div className="text-sm text-slate-400">
No additional download-specific metadata configured for this block.
</div>
) : null}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/GotoUrlBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/GotoUrlBlockParameters.tsx
index 265e99389..28ef528c4 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/GotoUrlBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/GotoUrlBlockParameters.tsx
@@ -12,7 +12,7 @@ function GotoUrlBlockParameters({ url, continueOnFailure }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">URL</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The destination Skyvern navigates to
</h2>
</div>
@@ -21,13 +21,13 @@ function GotoUrlBlockParameters({ url, continueOnFailure }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Continue on Failure</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Whether to continue if navigation fails
</h2>
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={continueOnFailure} disabled />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{continueOnFailure ? "Enabled" : "Disabled"}
</span>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/HttpRequestBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/HttpRequestBlockParameters.tsx
index 7dd74834b..0f7e8db9d 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/HttpRequestBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/HttpRequestBlockParameters.tsx
@@ -76,7 +76,7 @@ function HttpRequestBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Files</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
File fields and their paths/URLs
</h2>
</div>
@@ -93,7 +93,7 @@ function HttpRequestBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Timeout</h1>
- <h2 className="text-base text-muted-foreground">In seconds</h2>
+ <h2 className="text-base text-slate-400">In seconds</h2>
</div>
<Input value={timeout.toString()} readOnly />
</div>
@@ -103,7 +103,7 @@ function HttpRequestBlockParameters({
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={followRedirects} disabled />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{followRedirects ? "Enabled" : "Disabled"}
</span>
</div>
@@ -123,7 +123,7 @@ function HttpRequestBlockParameters({
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={true} disabled />
- <span className="text-sm text-muted-foreground">Enabled</span>
+ <span className="text-sm text-slate-400">Enabled</span>
</div>
</div>
) : null}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/HumanInteractionBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/HumanInteractionBlockParameters.tsx
index 9ae2533af..b7bb7d018 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/HumanInteractionBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/HumanInteractionBlockParameters.tsx
@@ -20,7 +20,7 @@ function HumanInteractionBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Instructions</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Instructions for the human interaction
</h2>
</div>
@@ -47,7 +47,7 @@ function HumanInteractionBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Timeout</h1>
- <h2 className="text-base text-muted-foreground">In seconds</h2>
+ <h2 className="text-base text-slate-400">In seconds</h2>
</div>
<Input value={timeoutSeconds.toString()} readOnly />
</div>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/PrintPageBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/PrintPageBlockParameters.tsx
index a6c37f42b..5e0f2719d 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/PrintPageBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/PrintPageBlockParameters.tsx
@@ -30,7 +30,7 @@ function PrintPageBlockParameters({
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={landscape} disabled />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{landscape ? "Enabled" : "Disabled"}
</span>
</div>
@@ -41,7 +41,7 @@ function PrintPageBlockParameters({
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={printBackground} disabled />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{printBackground ? "Enabled" : "Disabled"}
</span>
</div>
@@ -52,7 +52,7 @@ function PrintPageBlockParameters({
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={includeTimestamp} disabled />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
{includeTimestamp ? "Enabled" : "Disabled"}
</span>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/Taskv2BlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/Taskv2BlockParameters.tsx
index ff48aa311..7be054826 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/Taskv2BlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/Taskv2BlockParameters.tsx
@@ -24,7 +24,7 @@ function Taskv2BlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Prompt</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
The instructions for this task
</h2>
</div>
@@ -69,7 +69,7 @@ function Taskv2BlockParameters({
</div>
<div className="flex w-full items-center gap-3">
<Switch checked={true} disabled />
- <span className="text-sm text-muted-foreground">
+ <span className="text-sm text-slate-400">
Cache is disabled for this block
</span>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/TextPromptBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/TextPromptBlockParameters.tsx
index 6cd16df2d..6275871da 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/TextPromptBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/TextPromptBlockParameters.tsx
@@ -21,7 +21,7 @@ function TextPromptBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Prompt</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Instructions passed to the selected LLM
</h2>
</div>
@@ -39,7 +39,7 @@ function TextPromptBlockParameters({
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">JSON Schema</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Expected shape of the model response
</h2>
</div>
@@ -66,11 +66,11 @@ function TextPromptBlockParameters({
{parameters.map((parameter) => (
<div
key={parameter.key}
- className="rounded border border-border/40 bg-slate-elevation3 p-3"
+ className="rounded border border-slate-700/40 bg-slate-elevation3 p-3"
>
<p className="font-medium">{parameter.key}</p>
{parameter.description ? (
- <p className="text-sm text-muted-foreground">
+ <p className="text-sm text-slate-400">
{parameter.description}
</p>
) : null}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/WaitBlockParameters.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/WaitBlockParameters.tsx
index 583730397..f9694fb89 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/WaitBlockParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockInfo/WaitBlockParameters.tsx
@@ -10,7 +10,7 @@ function WaitBlockParameters({ waitSec }: Props) {
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Wait Duration</h1>
- <h2 className="text-base text-muted-foreground">
+ <h2 className="text-base text-slate-400">
Seconds to wait before proceeding
</h2>
</div>
diff --git a/skyvern/forge/sdk/api/llm/config_registry.py b/skyvern/forge/sdk/api/llm/config_registry.py
index c775dc91d..4d47f2ff6 100644
--- a/skyvern/forge/sdk/api/llm/config_registry.py
+++ b/skyvern/forge/sdk/api/llm/config_registry.py
@@ -10,6 +10,8 @@ from skyvern.schemas.llm import LiteLLMParams, LLMConfig, LLMRouterConfig
LOG = structlog.get_logger()
+FLEX_EXECUTION_TIMEOUT_SECONDS = 180.0
+
class LLMConfigRegistry:
_configs: dict[str, LLMRouterConfig | LLMConfig] = {}
@@ -119,7 +121,7 @@ if settings.ENABLE_OPENAI:
api_key=settings.OPENAI_API_KEY,
model_info={"model_name": "gpt-5-mini-2025-08-07"},
service_tier="flex",
- timeout=900.0,
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -149,7 +151,7 @@ if settings.ENABLE_OPENAI:
api_key=settings.OPENAI_API_KEY,
model_info={"model_name": "gpt-5-nano-2025-08-07"},
service_tier="flex",
- timeout=900.0,
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -215,7 +217,7 @@ if settings.ENABLE_OPENAI:
api_key=settings.OPENAI_API_KEY,
model_info={"model_name": "gpt-5.4-mini"},
service_tier="flex",
- timeout=900.0,
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -245,7 +247,7 @@ if settings.ENABLE_OPENAI:
api_key=settings.OPENAI_API_KEY,
model_info={"model_name": "gpt-5.4-nano"},
service_tier="flex",
- timeout=900.0,
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -1094,7 +1096,7 @@ if settings.ENABLE_GEMINI:
"type": "enabled" if settings.GEMINI_INCLUDE_THOUGHT else None,
},
service_tier="flex",
- timeout=900.0,
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -1112,7 +1114,7 @@ if settings.ENABLE_GEMINI:
"type": "enabled" if settings.GEMINI_INCLUDE_THOUGHT else None,
},
service_tier="flex",
- timeout=900.0,
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -1146,7 +1148,7 @@ if settings.ENABLE_GEMINI:
"type": "enabled" if settings.GEMINI_INCLUDE_THOUGHT else None,
},
service_tier="flex",
- timeout=900.0,
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -1630,7 +1632,7 @@ if settings.ENABLE_VERTEX_AI:
vertex_credentials=settings.VERTEX_CREDENTIALS,
service_tier="SERVICE_TIER_FLEX",
extra_headers={"X-Vertex-AI-LLM-Shared-Request-Type": "flex", "X-Vertex-AI-LLM-Request-Type": "shared"},
- timeout=900.0, # Vertex flex best-effort SLA upper bound (15 min)
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -1652,7 +1654,7 @@ if settings.ENABLE_VERTEX_AI:
vertex_credentials=settings.VERTEX_CREDENTIALS,
service_tier="SERVICE_TIER_FLEX",
extra_headers={"X-Vertex-AI-LLM-Shared-Request-Type": "flex", "X-Vertex-AI-LLM-Request-Type": "shared"},
- timeout=900.0, # Vertex flex best-effort SLA upper bound (15 min)
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -1674,7 +1676,7 @@ if settings.ENABLE_VERTEX_AI:
vertex_credentials=settings.VERTEX_CREDENTIALS,
service_tier="SERVICE_TIER_FLEX",
extra_headers={"X-Vertex-AI-LLM-Shared-Request-Type": "flex", "X-Vertex-AI-LLM-Request-Type": "shared"},
- timeout=900.0, # Vertex flex best-effort SLA upper bound (15 min)
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -1694,7 +1696,7 @@ if settings.ENABLE_VERTEX_AI:
vertex_credentials=settings.VERTEX_CREDENTIALS,
service_tier="SERVICE_TIER_FLEX",
extra_headers={"X-Vertex-AI-LLM-Shared-Request-Type": "flex", "X-Vertex-AI-LLM-Request-Type": "shared"},
- timeout=900.0,
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -1713,7 +1715,7 @@ if settings.ENABLE_VERTEX_AI:
vertex_credentials=settings.VERTEX_CREDENTIALS,
service_tier="SERVICE_TIER_FLEX",
extra_headers={"X-Vertex-AI-LLM-Shared-Request-Type": "flex", "X-Vertex-AI-LLM-Request-Type": "shared"},
- timeout=900.0,
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
@@ -1732,7 +1734,7 @@ if settings.ENABLE_VERTEX_AI:
vertex_credentials=settings.VERTEX_CREDENTIALS,
service_tier="SERVICE_TIER_FLEX",
extra_headers={"X-Vertex-AI-LLM-Shared-Request-Type": "flex", "X-Vertex-AI-LLM-Request-Type": "shared"},
- timeout=900.0,
+ timeout=FLEX_EXECUTION_TIMEOUT_SECONDS,
),
),
)
diff --git a/skyvern/services/otp_service.py b/skyvern/services/otp_service.py
index 75cdfdcb1..56d2f3f05 100644
--- a/skyvern/services/otp_service.py
+++ b/skyvern/services/otp_service.py
@@ -1,8 +1,9 @@
import asyncio
import re
from datetime import datetime, timedelta
-from typing import TYPE_CHECKING
+from typing import TYPE_CHECKING, Any
+import aiohttp
import pyotp
import structlog
from pydantic import BaseModel, Field
@@ -15,7 +16,7 @@ from skyvern.exceptions import FailedToGetTOTPVerificationCode, NoTOTPVerificati
from skyvern.forge import app
from skyvern.forge.prompts import prompt_engine
from skyvern.forge.sdk.core import skyvern_context
-from skyvern.forge.sdk.core.aiohttp_helper import aiohttp_post
+from skyvern.forge.sdk.core.aiohttp_helper import DEFAULT_REQUEST_TIMEOUT
from skyvern.forge.sdk.core.security import generate_skyvern_webhook_signature
from skyvern.forge.sdk.db.enums import OrganizationAuthTokenType
from skyvern.forge.sdk.schemas.totp_codes import OTPType
@@ -27,8 +28,17 @@ _MFA_PARAMETER_KEY_HINTS = ("mfa", "otp", "verification")
# "totpidentifier" matches "otp" but carries a lookup key, not a 6-digit code.
_MFA_METADATA_KEY_HINTS = ("identifier", "url", "secret", "seed", "key")
_NON_ALNUM_PATTERN = re.compile(r"[^a-z0-9]")
+_EXPECTED_TOTP_WEBHOOK_RESPONSE_SHAPE = '{"verification_code":"123456"}'
+_TOTP_WEBHOOK_BODY_PREVIEW_LIMIT = 200
+_TOTP_WEBHOOK_REQUEST_MAX_ATTEMPTS = 3
+_TOTP_WEBHOOK_REQUEST_RETRY_TIMEOUT_SECONDS = 5
MFANavigationPayload = dict | list | str | None
+_TOTPWebhookPostResponse = tuple[int, dict[str, str], Any, bool]
+
+
+class _TOTPWebhookRequestError(Exception):
+ pass
class OTPValue(BaseModel):
@@ -125,6 +135,74 @@ def extract_totp_from_navigation_inputs(navigation_payload: MFANavigationPayload
return None
+def _get_header_value(headers: dict[str, str], header_name: str) -> str | None:
+ for key, value in headers.items():
+ if key.lower() == header_name.lower():
+ return value
+ return None
+
+
+def _format_content_type_for_error(content_type: str | None) -> str:
+ return content_type if content_type is not None else "<absent>"
+
+
+def _response_body_preview(response_body: Any) -> str:
+ body = response_body if isinstance(response_body, str) else str(response_body)
+ if len(body) <= _TOTP_WEBHOOK_BODY_PREVIEW_LIMIT:
+ return body
+ return f"{body[:_TOTP_WEBHOOK_BODY_PREVIEW_LIMIT]}... (truncated)"
+
+
+def _totp_webhook_contract_error_reason(
+ *,
+ url: str,
+ status_code: int,
+ content_type: str | None,
+ response_body: Any,
+) -> str:
+ return (
+ "TOTP webhook returned HTTP 200 but the response was not JSON. "
+ f"endpoint_url={url} "
+ f"HTTP status={status_code} "
+ f"content_type={_format_content_type_for_error(content_type)} "
+ f"body_preview={_response_body_preview(response_body)!r} "
+ f"expected_response_shape={_EXPECTED_TOTP_WEBHOOK_RESPONSE_SHAPE}"
+ )
+
+
+async def _post_totp_verification_url(
+ *,
+ url: str,
+ signed_payload: str,
+ headers: dict[str, str],
+ max_attempts: int = _TOTP_WEBHOOK_REQUEST_MAX_ATTEMPTS,
+ retry_timeout: float = _TOTP_WEBHOOK_REQUEST_RETRY_TIMEOUT_SECONDS,
+ timeout: int = DEFAULT_REQUEST_TIMEOUT,
+) -> _TOTPWebhookPostResponse:
+ async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=timeout)) as session:
+ for attempt in range(max_attempts):
+ try:
+ async with session.post(url, data=signed_payload, headers=headers) as response:
+ response_headers = dict(response.headers)
+ try:
+ response_body = await response.json()
+ return response.status, response_headers, response_body, True
+ except (aiohttp.ContentTypeError, ValueError):
+ response_body = await response.text()
+ return response.status, response_headers, response_body, False
+ except Exception:
+ LOG.debug(
+ "TOTP webhook request attempt failed",
+ endpoint_url=url,
+ attempt=attempt + 1,
+ max_attempts=max_attempts,
+ exc_info=True,
+ )
+ if attempt < max_attempts - 1 and retry_timeout > 0:
+ await asyncio.sleep(retry_timeout)
+ raise _TOTPWebhookRequestError(f"Failed post request url={url}")
+
+
def _try_generate_totp_for_credential(
workflow_run_context: "WorkflowRunContext",
credential_key: str,
@@ -254,6 +332,7 @@ async def poll_otp_value(
org_token.token,
task_id=task_id,
workflow_run_id=workflow_run_id,
+ workflow_permanent_id=workflow_permanent_id,
)
elif totp_identifier:
otp_value = await _get_otp_value_from_db(
@@ -303,16 +382,13 @@ async def _get_otp_value_from_url(
api_key=api_key,
)
try:
- json_resp = await aiohttp_post(
+ status_code, response_headers, response_body, is_json_response = await _post_totp_verification_url(
url=url,
- str_data=signed_data.signed_payload,
+ signed_payload=signed_data.signed_payload,
headers=signed_data.headers,
- raise_exception=False,
- retry=2,
- retry_timeout=5,
)
except Exception as e:
- LOG.error("Failed to get otp value from url", exc_info=True)
+ LOG.error("Failed to get otp value from url", totp_verification_url=url, exc_info=True)
raise FailedToGetTOTPVerificationCode(
task_id=task_id,
workflow_run_id=workflow_run_id,
@@ -320,11 +396,61 @@ async def _get_otp_value_from_url(
totp_verification_url=url,
reason=str(e),
)
- if not json_resp:
+ content_type = _get_header_value(response_headers, "Content-Type")
+ if status_code != 200:
+ LOG.warning(
+ "TOTP webhook returned non-200 response",
+ endpoint_url=url,
+ http_status=status_code,
+ content_type=content_type,
+ body_preview=_response_body_preview(response_body),
+ )
return None
- content = json_resp.get("verification_code", None)
+ if not is_json_response:
+ reason = _totp_webhook_contract_error_reason(
+ url=url,
+ status_code=status_code,
+ content_type=content_type,
+ response_body=response_body,
+ )
+ LOG.error(
+ "TOTP webhook returned non-JSON response",
+ endpoint_url=url,
+ http_status=status_code,
+ content_type=content_type,
+ body_preview=_response_body_preview(response_body),
+ expected_response_shape=_EXPECTED_TOTP_WEBHOOK_RESPONSE_SHAPE,
+ )
+ raise FailedToGetTOTPVerificationCode(
+ task_id=task_id,
+ workflow_run_id=workflow_run_id,
+ workflow_id=workflow_permanent_id,
+ totp_verification_url=url,
+ reason=reason,
+ )
+
+ if not isinstance(response_body, dict):
+ LOG.warning(
+ "TOTP webhook response body is not a JSON object",
+ endpoint_url=url,
+ http_status=status_code,
+ content_type=content_type,
+ response_json_type=type(response_body).__name__,
+ expected_response_shape=_EXPECTED_TOTP_WEBHOOK_RESPONSE_SHAPE,
+ )
+ return None
+
+ content = response_body.get("verification_code", None)
if not content:
+ LOG.warning(
+ "No verification_code found in TOTP webhook response",
+ endpoint_url=url,
+ http_status=status_code,
+ content_type=content_type,
+ response_keys=list(response_body.keys()),
+ expected_response_shape=_EXPECTED_TOTP_WEBHOOK_RESPONSE_SHAPE,
+ )
return None
otp_value: OTPValue | None = OTPValue(value=content, type=OTPType.TOTP)
@@ -337,7 +463,7 @@ async def _get_otp_value_from_url(
if not otp_value:
LOG.warning(
"Failed to parse otp login from the totp url",
- content=content,
+ content_preview=_response_body_preview(content),
)
return None
diff --git a/tests/unit/test_otp_service.py b/tests/unit/test_otp_service.py
index 7ba8dc91f..9af17ea36 100644
--- a/tests/unit/test_otp_service.py
+++ b/tests/unit/test_otp_service.py
@@ -14,6 +14,7 @@ from skyvern.forge.sdk.core import skyvern_context
from skyvern.forge.sdk.core.skyvern_context import SkyvernContext
from skyvern.services.otp_service import (
OTPValue,
+ _get_otp_value_from_url,
_is_mfa_like_parameter_key,
extract_totp_from_navigation_inputs,
poll_otp_value,
@@ -117,9 +118,241 @@ def _mock_org_token() -> MagicMock:
return token
+def _patch_totp_url_response(
+ monkeypatch: pytest.MonkeyPatch,
+ *,
+ status_code: int,
+ headers: dict[str, str],
+ response_body: object,
+ is_json_response: bool,
+) -> None:
+ from skyvern.services import otp_service
+
+ async def post_totp_verification_url(*_args: object, **_kwargs: object) -> tuple[int, dict[str, str], object, bool]:
+ return status_code, headers, response_body, is_json_response
+
+ monkeypatch.setattr(otp_service, "_post_totp_verification_url", post_totp_verification_url)
+
+
+class TestGetOtpValueFromUrl:
+ @pytest.mark.asyncio
+ async def test_returns_totp_from_valid_json_verification_code(self, monkeypatch: pytest.MonkeyPatch) -> None:
+ _patch_totp_url_response(
+ monkeypatch,
+ status_code=200,
+ headers={"Content-Type": "application/json"},
+ response_body={"verification_code": "123456"},
+ is_json_response=True,
+ )
+
+ result = await _get_otp_value_from_url(
+ organization_id="o_test",
+ url="https://example.com/totp",
+ api_key="api-key",
+ task_id="tsk_test",
+ )
+
+ assert result == OTPValue(value="123456", type="totp")
+
+ @pytest.mark.asyncio
+ async def test_text_plain_200_raises_actionable_error(self, monkeypatch: pytest.MonkeyPatch) -> None:
+ _patch_totp_url_response(
+ monkeypatch,
+ status_code=200,
+ headers={"Content-Type": "text/plain; charset=utf-8"},
+ response_body="147258",
+ is_json_response=False,
+ )
+
+ with pytest.raises(FailedToGetTOTPVerificationCode) as exc_info:
+ await _get_otp_value_from_url(
+ organization_id="o_test",
+ url="https://example.com/totp",
+ api_key="api-key",
+ workflow_run_id="wr_test",
+ )
+
+ reason = exc_info.value.reason or ""
+ assert "https://example.com/totp" in reason
+ assert "HTTP status=200" in reason
+ assert "content_type=text/plain; charset=utf-8" in reason
+ assert "body_preview='147258'" in reason
+ assert '{"verification_code":"123456"}' in reason
+ assert "api-key" not in reason
+
+ @pytest.mark.asyncio
+ async def test_text_plain_200_truncates_long_body_preview(self, monkeypatch: pytest.MonkeyPatch) -> None:
+ long_body = "x" * 250
+ _patch_totp_url_response(
+ monkeypatch,
+ status_code=200,
+ headers={"Content-Type": "text/plain"},
+ response_body=long_body,
+ is_json_response=False,
+ )
+
+ with pytest.raises(FailedToGetTOTPVerificationCode) as exc_info:
+ await _get_otp_value_from_url(
+ organization_id="o_test",
+ url="https://example.com/totp",
+ api_key="api-key",
+ workflow_run_id="wr_test",
+ )
+
+ reason = exc_info.value.reason or ""
+ assert f"body_preview='{long_body[:200]}... (truncated)'" in reason
+ assert long_body not in reason
+
+ @pytest.mark.asyncio
+ async def test_text_plain_200_reports_absent_content_type(self, monkeypatch: pytest.MonkeyPatch) -> None:
+ _patch_totp_url_response(
+ monkeypatch,
+ status_code=200,
+ headers={},
+ response_body="147258",
+ is_json_response=False,
+ )
+
+ with pytest.raises(FailedToGetTOTPVerificationCode) as exc_info:
+ await _get_otp_value_from_url(
+ organization_id="o_test",
+ url="https://example.com/totp",
+ api_key="api-key",
+ workflow_run_id="wr_test",
+ )
+
+ reason = exc_info.value.reason or ""
+ assert "content_type=<absent>" in reason
+
+ @pytest.mark.asyncio
+ async def test_text_plain_200_body_preview_uses_single_repr_escaping(self, monkeypatch: pytest.MonkeyPatch) -> None:
+ _patch_totp_url_response(
+ monkeypatch,
+ status_code=200,
+ headers={"Content-Type": "text/plain"},
+ response_body="line1\nline2",
+ is_json_response=False,
+ )
+
+ with pytest.raises(FailedToGetTOTPVerificationCode) as exc_info:
+ await _get_otp_value_from_url(
+ organization_id="o_test",
+ url="https://example.com/totp",
+ api_key="api-key",
+ workflow_run_id="wr_test",
+ )
+
+ reason = exc_info.value.reason or ""
+ assert "body_preview='line1\\nline2'" in reason
+ assert "body_preview='line1\\\\nline2'" not in reason
+
+ @pytest.mark.asyncio
+ async def test_json_missing_verification_code_returns_none_and_logs(self, monkeypatch: pytest.MonkeyPatch) -> None:
+ import structlog.testing
+
+ _patch_totp_url_response(
+ monkeypatch,
+ status_code=200,
+ headers={"Content-Type": "application/json"},
+ response_body={"message": "pending"},
+ is_json_response=True,
+ )
+
+ with structlog.testing.capture_logs() as logs:
+ result = await _get_otp_value_from_url(
+ organization_id="o_test",
+ url="https://example.com/totp",
+ api_key="api-key",
+ task_id="tsk_test",
+ )
+
+ assert result is None
+ assert any("No verification_code found in TOTP webhook response" in log.get("event", "") for log in logs)
+
+ @pytest.mark.asyncio
+ async def test_json_non_object_response_returns_none_and_logs_distinct_event(
+ self, monkeypatch: pytest.MonkeyPatch
+ ) -> None:
+ import structlog.testing
+
+ _patch_totp_url_response(
+ monkeypatch,
+ status_code=200,
+ headers={"Content-Type": "application/json"},
+ response_body=["147258"],
+ is_json_response=True,
+ )
+
+ with structlog.testing.capture_logs() as logs:
+ result = await _get_otp_value_from_url(
+ organization_id="o_test",
+ url="https://example.com/totp",
+ api_key="api-key",
+ task_id="tsk_test",
+ )
+
+ assert result is None
+ assert any("TOTP webhook response body is not a JSON object" in log.get("event", "") for log in logs)
+ assert not any("No verification_code found in TOTP webhook response" in log.get("event", "") for log in logs)
+
+ @pytest.mark.asyncio
+ async def test_non_200_response_returns_none_and_logs(self, monkeypatch: pytest.MonkeyPatch) -> None:
+ import structlog.testing
+
+ _patch_totp_url_response(
+ monkeypatch,
+ status_code=500,
+ headers={"Content-Type": "text/plain"},
+ response_body="temporary outage",
+ is_json_response=False,
+ )
+
+ with structlog.testing.capture_logs() as logs:
+ result = await _get_otp_value_from_url(
+ organization_id="o_test",
+ url="https://example.com/totp",
+ api_key="api-key",
+ task_id="tsk_test",
+ )
+
+ assert result is None
+ assert any("TOTP webhook returned non-200 response" in log.get("event", "") for log in logs)
+
+
class TestPollOtpValueRetry:
"""poll_otp_value retries fetch failures across the full wall-clock timeout window."""
+ @pytest.mark.asyncio
+ @patch("skyvern.services.otp_service.asyncio.sleep", new_callable=AsyncMock)
+ @patch("skyvern.services.otp_service._get_otp_value_from_url", new_callable=AsyncMock)
+ @patch("skyvern.services.otp_service.app")
+ @patch("skyvern.services.otp_service.settings")
+ async def test_passes_workflow_permanent_id_to_totp_url_fetch(
+ self, mock_settings: MagicMock, mock_app: MagicMock, mock_fetch: AsyncMock, mock_sleep: AsyncMock
+ ) -> None:
+ mock_settings.VERIFICATION_CODE_POLLING_TIMEOUT_MINS = 15
+ mock_app.DATABASE.organizations.get_valid_org_auth_token = AsyncMock(return_value=_mock_org_token())
+ otp = OTPValue(value="123456")
+ mock_fetch.return_value = otp
+
+ result = await poll_otp_value(
+ organization_id="o_test",
+ task_id="tsk_test",
+ workflow_run_id="wr_test",
+ workflow_permanent_id="wpid_test",
+ totp_verification_url="https://example.com/mfa",
+ )
+
+ assert result == otp
+ mock_fetch.assert_awaited_once_with(
+ "o_test",
+ "https://example.com/mfa",
+ "fake-token",
+ task_id="tsk_test",
+ workflow_run_id="wr_test",
+ workflow_permanent_id="wpid_test",
+ )
+
@pytest.mark.asyncio
@patch("skyvern.services.otp_service.asyncio.sleep", new_callable=AsyncMock)
@patch("skyvern.services.otp_service._get_otp_value_from_url", new_callable=AsyncMock)
diff --git a/uv.lock b/uv.lock
index 6b49d1321..088286ea1 100644
--- a/uv.lock
+++ b/uv.lock
@@ -5719,6 +5719,7 @@ version = "1.0.36"
source = { editable = "." }
dependencies = [
{ name = "cachetools" },
+ { name = "click" },
{ name = "httpx", extra = ["socks"] },
{ name = "orjson" },
{ name = "pydantic" },
@@ -5939,6 +5940,7 @@ requires-dist = [
{ name = "azure-storage-blob", marker = "extra == 'local'", specifier = ">=12.26.0" },
{ name = "azure-storage-blob", marker = "extra == 'server'", specifier = ">=12.26.0" },
{ name = "cachetools", specifier = ">=5.3.2,<6" },
+ { name = "click", specifier = ">=8,<9" },
{ name = "croniter", marker = "extra == 'local'", specifier = ">=1.3.8,<4" },
{ name = "croniter", marker = "extra == 'server'", specifier = ">=1.3.8,<4" },
{ name = "curlparser", marker = "extra == 'local'", specifier = ">=0.1.0,<0.2" },
@@ -6036,7 +6038,7 @@ requires-dist = [
{ name = "toml", marker = "extra == 'server'", specifier = ">=0.10.2,<0.11" },
{ name = "tornado", marker = "extra == 'local'", specifier = ">=6.5.5" },
{ name = "tornado", marker = "extra == 'server'", specifier = ">=6.5.5" },
- { name = "typer", specifier = ">=0.16.0" },
+ { name = "typer", specifier = ">=0.16.0,<0.26" },
{ name = "types-boto3", extras = ["full"], marker = "extra == 'server'", specifier = ">=1.38.31,<2" },
{ name = "types-toml", marker = "extra == 'server'", specifier = ">=0.10.8.7,<0.11" },
{ name = "urllib3", marker = "extra == 'local'", specifier = ">=2.7.0" },