Skip to content

Automate browser based workflows with AI

[SKY-10263] Redesign sidebar navigation (#6211)

Suchintanbaac1d1cf2ed
diff --git a/skyvern-frontend/src/components/BrowserStream.tsx b/skyvern-frontend/src/components/BrowserStream.tsx
index 615623270..5eb5b0355 100644
--- a/skyvern-frontend/src/components/BrowserStream.tsx
+++ b/skyvern-frontend/src/components/BrowserStream.tsx
@@ -544,7 +544,7 @@ function BrowserStream({
return;
}
- const name = task ? "task" : workflow ? "workflow" : null;
+ const name = task ? "task" : workflow ? "agent" : null;
if (!name) {
return;
@@ -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-slate-800 text-sm text-slate-400">
+ <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-neutral-200 bg-white text-sm text-neutral-600 dark:border-slate-800 dark:bg-transparent dark:text-slate-400">
<StreamStatusPanel diagnostic={streamDiagnostic}>
{isBrowserSessionBackendReady && (
<>
diff --git a/skyvern-frontend/src/components/GlobalNotificationListener.tsx b/skyvern-frontend/src/components/GlobalNotificationListener.tsx
index aafaa340b..43721fd80 100644
--- a/skyvern-frontend/src/components/GlobalNotificationListener.tsx
+++ b/skyvern-frontend/src/components/GlobalNotificationListener.tsx
@@ -6,7 +6,7 @@ import {
function notificationLabel(req: VerificationRequest): string {
if (req.task_id) return `Task "${req.task_id}"`;
- if (req.workflow_run_id) return `Workflow run "${req.workflow_run_id}"`;
+ if (req.workflow_run_id) return `Agent run "${req.workflow_run_id}"`;
return "Run";
}
diff --git a/skyvern-frontend/src/components/ImprovePrompt.tsx b/skyvern-frontend/src/components/ImprovePrompt.tsx
index dc99cd6f5..c9ab6f1ce 100644
--- a/skyvern-frontend/src/components/ImprovePrompt.tsx
+++ b/skyvern-frontend/src/components/ImprovePrompt.tsx
@@ -96,7 +96,7 @@ function ImprovePrompt(props: Props) {
<div
className={`flex items-center overflow-hidden transition-all duration-300 ${
props.isVisible
- ? `${size === "large" ? "w-14" : "w-4"} opacity-100`
+ ? `${size === "large" ? "w-6" : "w-4"} opacity-100`
: "pointer-events-none w-0 opacity-0"
}`}
>
diff --git a/skyvern-frontend/src/components/PushTotpCodeForm.tsx b/skyvern-frontend/src/components/PushTotpCodeForm.tsx
index 346cf61a1..6104af01a 100644
--- a/skyvern-frontend/src/components/PushTotpCodeForm.tsx
+++ b/skyvern-frontend/src/components/PushTotpCodeForm.tsx
@@ -192,7 +192,7 @@ function PushTotpCodeForm({
{advancedOpen && (
<div className="grid gap-3 md:grid-cols-3">
<div className="space-y-1">
- <Label htmlFor="totp-workflow-run-input">Workflow run ID</Label>
+ <Label htmlFor="totp-workflow-run-input">Agent run ID</Label>
<Input
id="totp-workflow-run-input"
placeholder="wr_123"
@@ -203,7 +203,7 @@ function PushTotpCodeForm({
/>
</div>
<div className="space-y-1">
- <Label htmlFor="totp-workflow-id-input">Workflow ID</Label>
+ <Label htmlFor="totp-workflow-id-input">Agent ID</Label>
<Input
id="totp-workflow-id-input"
placeholder="wf_123"
diff --git a/skyvern-frontend/src/components/SidebarResourceLinks.tsx b/skyvern-frontend/src/components/SidebarResourceLinks.tsx
new file mode 100644
index 000000000..37b043b2a
--- /dev/null
+++ b/skyvern-frontend/src/components/SidebarResourceLinks.tsx
@@ -0,0 +1,109 @@
+import {
+ DiscordLogoIcon,
+ ExternalLinkIcon,
+ GitHubLogoIcon,
+ ReaderIcon,
+ StarIcon,
+} from "@radix-ui/react-icons";
+
+import {
+ starCountFormatter,
+ useGithubStarCount,
+} from "@/hooks/useGithubStarCount";
+import { cn } from "@/util/utils";
+
+type Props = {
+ collapsed: boolean;
+};
+
+const links = [
+ {
+ label: "API Docs",
+ href: "https://www.skyvern.com/docs",
+ icon: <ReaderIcon className="size-4" />,
+ },
+ {
+ label: "GitHub",
+ href: "https://github.com/skyvern-ai/skyvern",
+ icon: <GitHubLogoIcon className="size-4" />,
+ showStars: true,
+ },
+ {
+ label: "Discord",
+ href: "https://discord.com/invite/fG2XXEuQX3",
+ icon: <DiscordLogoIcon className="size-4" />,
+ },
+ {
+ label: "Book a demo",
+ href: "https://www.skyvern.com/contact",
+ icon: <ExternalLinkIcon className="size-4" />,
+ cta: true,
+ },
+];
+
+function SidebarResourceLinks({ collapsed }: Props) {
+ const { data: starCount } = useGithubStarCount();
+
+ return (
+ <div
+ className={cn(
+ "border-t border-neutral-200 py-2 dark:border-white/[0.06]",
+ {
+ "px-2": collapsed,
+ "px-3": !collapsed,
+ },
+ )}
+ >
+ <div
+ className={cn("flex gap-1", {
+ "flex-col items-center": collapsed,
+ "flex-col": !collapsed,
+ })}
+ >
+ {links.map((link) => (
+ <a
+ key={link.label}
+ href={link.href}
+ target="_blank"
+ rel="noopener noreferrer"
+ title={collapsed ? link.label : undefined}
+ className={cn(
+ "group flex h-7 items-center rounded-md text-[13px] font-medium leading-5 text-neutral-500 antialiased transition-colors duration-100 hover:bg-neutral-200/70 hover:text-neutral-950 dark:text-neutral-400 dark:hover:bg-white/[0.04] dark:hover:text-neutral-200",
+ {
+ "w-7 justify-center": collapsed,
+ "w-full gap-2.5 px-2": !collapsed,
+ "border-cta/30 bg-cta/10 text-cta hover:bg-cta/15 hover:text-cta-hover dark:border-cta/35 dark:bg-cta/15 dark:text-cta-foreground dark:hover:bg-cta/25 dark:hover:text-cta-foreground border shadow-[inset_0_1px_0_rgba(255,255,255,0.65)] dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08)]":
+ link.cta,
+ },
+ )}
+ >
+ <span
+ className={cn(
+ "flex size-4 shrink-0 items-center justify-center text-neutral-400 transition-colors duration-100 group-hover:text-neutral-900 dark:text-neutral-500 dark:group-hover:text-neutral-300",
+ {
+ "text-cta group-hover:text-cta-hover dark:text-cta-foreground/90 dark:group-hover:text-cta-foreground":
+ link.cta,
+ },
+ )}
+ >
+ {link.icon}
+ </span>
+ {!collapsed && (
+ <>
+ <span className="min-w-0 flex-1 truncate">{link.label}</span>
+ {link.showStars && typeof starCount === "number" ? (
+ <span className="flex shrink-0 items-center gap-1 text-[11px] text-neutral-400 group-hover:text-neutral-700 dark:text-neutral-500 dark:group-hover:text-neutral-400">
+ <StarIcon className="size-3" />
+ {starCountFormatter.format(starCount)}
+ </span>
+ ) : null}
+ </>
+ )}
+ </a>
+ ))}
+ </div>
+ </div>
+ );
+}
+
+export { SidebarResourceLinks };
diff --git a/skyvern-frontend/src/components/SidebarTreeNav.tsx b/skyvern-frontend/src/components/SidebarTreeNav.tsx
new file mode 100644
index 000000000..58d6e4d24
--- /dev/null
+++ b/skyvern-frontend/src/components/SidebarTreeNav.tsx
@@ -0,0 +1,535 @@
+import { Link, useLocation } from "react-router-dom";
+import { ChevronDownIcon } from "@radix-ui/react-icons";
+import {
+ useCallback,
+ useEffect,
+ useRef,
+ useState,
+ type ReactNode,
+} from "react";
+
+import { useSidebarStore } from "@/store/SidebarStore";
+import { cn } from "@/util/utils";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from "@/components/ui/dropdown-menu";
+
+type SidebarNavChild = {
+ label: string;
+ to?: string;
+ icon?: ReactNode;
+ external?: boolean;
+ onClick?: () => void;
+ active?: boolean;
+ disabled?: boolean;
+};
+
+type SidebarNavItem = {
+ label: string;
+ to: string;
+ icon: ReactNode;
+ badge?: string;
+ defaultOpen?: boolean | (() => boolean);
+ initialVisibleChildren?: number;
+ children?: Array<SidebarNavChild>;
+};
+
+type Props = {
+ items: Array<SidebarNavItem>;
+};
+
+const OPEN_GROUPS_STORAGE_KEY = "skyvern-sidebar-open-groups";
+const EXPANDED_CHILDREN_STORAGE_KEY = "skyvern-sidebar-expanded-children";
+
+function readStoredRecord(key: string) {
+ try {
+ const raw = window.localStorage.getItem(key);
+ if (!raw) {
+ return {};
+ }
+ const parsed = JSON.parse(raw);
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
+ return {};
+ }
+ return parsed as Record<string, boolean>;
+ } catch {
+ return {};
+ }
+}
+
+function writeStoredRecord(key: string, value: Record<string, boolean>) {
+ try {
+ window.localStorage.setItem(key, JSON.stringify(value));
+ } catch {
+ // localStorage can fail in private or embedded contexts; collapse state is
+ // cosmetic, so keep the in-memory state and skip persistence.
+ }
+}
+
+function getItemStorageKey(item: SidebarNavItem) {
+ return item.to;
+}
+
+function normalizePath(to: string) {
+ return to.split("?")[0] || "/";
+}
+
+function resolveDefaultOpen(item: SidebarNavItem) {
+ if (typeof item.defaultOpen === "function") {
+ return item.defaultOpen();
+ }
+ return item.defaultOpen !== false;
+}
+
+function queryMatches(to: string, search: string, requireExactQuery = false) {
+ const query = to.split("?")[1];
+ if (!query) {
+ return !requireExactQuery || search === "";
+ }
+
+ try {
+ const targetParams = new URLSearchParams(query);
+ const currentParams = new URLSearchParams(search);
+ const targetEntries = Array.from(targetParams.entries());
+
+ if (
+ requireExactQuery &&
+ targetEntries.length !== Array.from(currentParams.entries()).length
+ ) {
+ return false;
+ }
+
+ for (const [key, value] of targetEntries) {
+ if (!currentParams.getAll(key).includes(value)) {
+ return false;
+ }
+ }
+ return true;
+ } catch {
+ return false;
+ }
+}
+
+function useIsActive() {
+ const location = useLocation();
+
+ return useCallback(
+ (to: string, exact = false, requireExactQuery = false) => {
+ const path = normalizePath(to);
+ const pathMatches = exact
+ ? location.pathname === path
+ : location.pathname === path ||
+ location.pathname.startsWith(`${path}/`);
+
+ return (
+ pathMatches && queryMatches(to, location.search, requireExactQuery)
+ );
+ },
+ [location.pathname, location.search],
+ );
+}
+
+function SidebarTreeNav({ items }: Props) {
+ const collapsed = useSidebarStore((state) => state.collapsed);
+ const isActive = useIsActive();
+ const openGroupsDidMountRef = useRef(false);
+ const expandedChildrenDidMountRef = useRef(false);
+ const [openGroups, setOpenGroups] = useState<Record<string, boolean>>(() => {
+ const stored = readStoredRecord(OPEN_GROUPS_STORAGE_KEY);
+ return {
+ ...stored,
+ ...Object.fromEntries(
+ items
+ .filter((item) => item.children && item.children.length > 0)
+ .map((item) => {
+ const key = getItemStorageKey(item);
+ return [
+ key,
+ stored[key] ?? stored[item.label] ?? resolveDefaultOpen(item),
+ ];
+ }),
+ ),
+ };
+ });
+ const [expandedChildren, setExpandedChildren] = useState<
+ Record<string, boolean>
+ >(() => {
+ const stored = readStoredRecord(EXPANDED_CHILDREN_STORAGE_KEY);
+ return {
+ ...stored,
+ ...Object.fromEntries(
+ items
+ .filter((item) => item.children && item.children.length > 0)
+ .map((item) => {
+ const key = getItemStorageKey(item);
+ return [key, stored[key] ?? stored[item.label] ?? false];
+ }),
+ ),
+ };
+ });
+
+ useEffect(() => {
+ if (!openGroupsDidMountRef.current) {
+ openGroupsDidMountRef.current = true;
+ return;
+ }
+ writeStoredRecord(OPEN_GROUPS_STORAGE_KEY, openGroups);
+ }, [openGroups]);
+
+ useEffect(() => {
+ if (!expandedChildrenDidMountRef.current) {
+ expandedChildrenDidMountRef.current = true;
+ return;
+ }
+ writeStoredRecord(EXPANDED_CHILDREN_STORAGE_KEY, expandedChildren);
+ }, [expandedChildren]);
+
+ return (
+ <nav
+ className={cn("flex flex-col gap-1 py-1 antialiased", {
+ "items-center": collapsed,
+ })}
+ >
+ {items.map((item) => {
+ const groupStorageKey = getItemStorageKey(item);
+ const childPathsWithQuerySiblings = new Set(
+ item.children
+ ?.filter((child) => child.to?.includes("?"))
+ .map((child) => normalizePath(child.to ?? "")) ?? [],
+ );
+ const childIsActive = item.children?.some((child) => {
+ if (child.active === false || !child.to) {
+ return false;
+ }
+ const requireExactQuery =
+ !child.to.includes("?") &&
+ childPathsWithQuerySiblings.has(normalizePath(child.to));
+ return isActive(child.to, true, requireExactQuery);
+ });
+ const itemIsActive = isActive(item.to, item.to === "/discover");
+ const active = itemIsActive || childIsActive;
+ const hasChildren = item.children && item.children.length > 0;
+ const open = openGroups[groupStorageKey] ?? resolveDefaultOpen(item);
+ const childrenExpanded = expandedChildren[groupStorageKey] ?? false;
+ const collapsedPreviewChildCount =
+ item.initialVisibleChildren && item.children
+ ? Math.min(item.children.length, item.initialVisibleChildren + 1)
+ : undefined;
+ const previewChildCount = childrenExpanded
+ ? undefined
+ : collapsedPreviewChildCount;
+ const hiddenChildCount =
+ collapsedPreviewChildCount && item.children
+ ? Math.max(item.children.length - collapsedPreviewChildCount, 0)
+ : 0;
+ const topLevelClassName = cn(
+ "group flex h-7 w-full items-center gap-2.5 rounded-md px-2 text-[13px] font-medium leading-5 text-neutral-600 transition-colors duration-100 hover:bg-neutral-200/70 hover:text-neutral-950 dark:text-neutral-300 dark:hover:bg-white/[0.04] dark:hover:text-neutral-200",
+ {
+ "w-7 justify-center px-0": collapsed,
+ "bg-neutral-200 text-neutral-950 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.04)] dark:bg-white/[0.07] dark:text-neutral-50 dark:shadow-[inset_0_0_0_1px_rgba(255,255,255,0.035)]":
+ active && (!hasChildren || collapsed),
+ "text-neutral-950 dark:text-neutral-100":
+ active && hasChildren && !collapsed,
+ },
+ );
+ const topLevelIconClassName = cn(
+ "flex size-4 shrink-0 items-center justify-center text-neutral-500 transition-colors duration-100 group-hover:text-neutral-900 dark:text-neutral-500 dark:group-hover:text-neutral-300",
+ {
+ "text-neutral-950 dark:text-neutral-50":
+ active && (!hasChildren || collapsed),
+ "text-neutral-800 dark:text-neutral-200":
+ active && hasChildren && !collapsed,
+ },
+ );
+ const menuChildItemClassName =
+ "flex cursor-pointer items-center gap-2 text-[13px] font-medium";
+ return (
+ <div
+ key={groupStorageKey}
+ className={cn("w-full", {
+ "flex justify-center": collapsed,
+ })}
+ >
+ {hasChildren && !collapsed ? (
+ <button
+ type="button"
+ className={topLevelClassName}
+ onClick={() => {
+ setOpenGroups((value) => ({
+ ...value,
+ [groupStorageKey]: !open,
+ }));
+ }}
+ >
+ <span className={topLevelIconClassName}>{item.icon}</span>
+ <span className="min-w-0 flex-1 truncate text-left">
+ {item.label}
+ </span>
+ {item.badge ? (
+ <span className="rounded bg-neutral-200 px-1.5 py-0.5 text-[9px] font-medium uppercase leading-none text-neutral-500 dark:bg-white/[0.06] dark:text-neutral-400">
+ {item.badge}
+ </span>
+ ) : null}
+ <ChevronDownIcon
+ className={cn(
+ "size-3.5 shrink-0 text-neutral-500 transition-transform duration-100 dark:text-neutral-500",
+ {
+ "-rotate-90": !open,
+ },
+ )}
+ />
+ </button>
+ ) : hasChildren && collapsed ? (
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <button
+ type="button"
+ title={item.label}
+ className={topLevelClassName}
+ >
+ <span className={topLevelIconClassName}>{item.icon}</span>
+ </button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent
+ side="right"
+ align="start"
+ className="min-w-48 border-neutral-200 bg-white p-1 text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-100"
+ >
+ <DropdownMenuItem asChild>
+ <Link
+ to={item.to}
+ className={cn(menuChildItemClassName, "font-semibold")}
+ >
+ <span className="flex size-3.5 shrink-0 items-center justify-center text-neutral-500 dark:text-neutral-400">
+ {item.icon}
+ </span>
+ <span className="min-w-0 flex-1 truncate">
+ {item.label}
+ </span>
+ {item.badge ? (
+ <span className="rounded bg-neutral-200 px-1.5 py-0.5 text-[9px] font-medium uppercase leading-none text-neutral-500 dark:bg-white/[0.06] dark:text-neutral-400">
+ {item.badge}
+ </span>
+ ) : null}
+ </Link>
+ </DropdownMenuItem>
+ <DropdownMenuSeparator />
+ {(item.children ?? []).map((child) => {
+ const childKey = `${groupStorageKey}-${
+ child.to ?? child.label
+ }`;
+ const content = (
+ <>
+ {child.icon ? (
+ <span className="flex size-3.5 shrink-0 items-center justify-center text-neutral-500 dark:text-neutral-400">
+ {child.icon}
+ </span>
+ ) : null}
+ <span className="truncate">{child.label}</span>
+ </>
+ );
+
+ if (child.to && child.external) {
+ return (
+ <DropdownMenuItem key={childKey} asChild>
+ <a
+ href={child.to}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => child.onClick?.()}
+ className={menuChildItemClassName}
+ >
+ {content}
+ </a>
+ </DropdownMenuItem>
+ );
+ }
+
+ if (child.to) {
+ return (
+ <DropdownMenuItem key={childKey} asChild>
+ <Link
+ to={child.to}
+ onClick={() => child.onClick?.()}
+ className={menuChildItemClassName}
+ >
+ {content}
+ </Link>
+ </DropdownMenuItem>
+ );
+ }
+
+ return (
+ <DropdownMenuItem
+ key={childKey}
+ disabled={child.disabled}
+ onSelect={(event) => {
+ event.preventDefault();
+ child.onClick?.();
+ }}
+ className={menuChildItemClassName}
+ >
+ {content}
+ </DropdownMenuItem>
+ );
+ })}
+ </DropdownMenuContent>
+ </DropdownMenu>
+ ) : (
+ <Link
+ to={item.to}
+ title={collapsed ? item.label : undefined}
+ className={topLevelClassName}
+ >
+ <span className={topLevelIconClassName}>{item.icon}</span>
+ {!collapsed && (
+ <span className="min-w-0 flex-1 truncate">{item.label}</span>
+ )}
+ </Link>
+ )}
+
+ {!collapsed && hasChildren && open ? (
+ <div className="ml-[18px] mt-1 flex flex-col gap-px border-l border-neutral-200 pl-3 dark:border-white/[0.06]">
+ {(item.children ?? [])
+ .slice(0, previewChildCount)
+ .map((child, childIndex) => {
+ const partiallyHidden =
+ Boolean(item.initialVisibleChildren) &&
+ !childrenExpanded &&
+ hiddenChildCount > 0 &&
+ childIndex === item.initialVisibleChildren;
+ const childActive =
+ child.active === false || !child.to || child.external
+ ? false
+ : isActive(
+ child.to,
+ true,
+ !child.to.includes("?") &&
+ childPathsWithQuerySiblings.has(
+ normalizePath(child.to),
+ ),
+ );
+ const childClassName = cn(
+ "group/child flex h-7 w-full items-center gap-2 rounded-md px-2 text-left text-[13px] font-medium leading-5 text-neutral-500 transition-colors duration-100 hover:bg-neutral-200/70 hover:text-neutral-950 dark:text-neutral-400 dark:hover:bg-white/[0.04] dark:hover:text-neutral-200",
+ {
+ "bg-neutral-200 text-neutral-950 dark:bg-white/[0.07] dark:text-neutral-50":
+ childActive,
+ "pointer-events-none opacity-50": child.disabled,
+ "opacity-60": partiallyHidden && !child.disabled,
+ },
+ );
+ const childStyle = partiallyHidden
+ ? {
+ maskImage:
+ "linear-gradient(to bottom, black 0%, transparent 100%)",
+ WebkitMaskImage:
+ "linear-gradient(to bottom, black 0%, transparent 100%)",
+ }
+ : undefined;
+ const content = (
+ <>
+ {child.icon ? (
+ <span
+ className={cn(
+ "flex size-3.5 shrink-0 items-center justify-center text-neutral-400 transition-colors duration-100 group-hover/child:text-neutral-900 dark:text-neutral-500 dark:group-hover/child:text-neutral-300",
+ {
+ "text-neutral-950 dark:text-neutral-50":
+ childActive,
+ },
+ )}
+ >
+ {child.icon}
+ </span>
+ ) : null}
+ <span className="truncate">{child.label}</span>
+ </>
+ );
+
+ return child.disabled ? (
+ <button
+ key={`${groupStorageKey}-${child.to ?? child.label}`}
+ type="button"
+ disabled
+ className={childClassName}
+ style={childStyle}
+ >
+ {content}
+ </button>
+ ) : child.to && child.external ? (
+ <a
+ key={`${groupStorageKey}-${child.to ?? child.label}`}
+ href={child.to}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => child.onClick?.()}
+ className={childClassName}
+ style={childStyle}
+ >
+ {content}
+ </a>
+ ) : child.to ? (
+ <Link
+ key={`${groupStorageKey}-${child.to ?? child.label}`}
+ to={child.to}
+ onClick={() => child.onClick?.()}
+ className={childClassName}
+ style={childStyle}
+ >
+ {content}
+ </Link>
+ ) : (
+ <button
+ key={`${groupStorageKey}-${child.to ?? child.label}`}
+ type="button"
+ className={childClassName}
+ onClick={(event) => {
+ event.stopPropagation();
+ child.onClick?.();
+ }}
+ style={childStyle}
+ >
+ {content}
+ </button>
+ );
+ })}
+ {item.initialVisibleChildren &&
+ item.children &&
+ hiddenChildCount > 0 ? (
+ <button
+ type="button"
+ className="flex h-7 w-full items-center gap-2 rounded-md px-2 text-left text-[13px] font-medium leading-5 text-neutral-500 transition-colors duration-100 hover:bg-neutral-200/70 hover:text-neutral-950 dark:text-neutral-400 dark:hover:bg-white/[0.04] dark:hover:text-neutral-200"
+ onClick={() => {
+ setExpandedChildren((value) => ({
+ ...value,
+ [groupStorageKey]: !childrenExpanded,
+ }));
+ }}
+ >
+ <ChevronDownIcon
+ className={cn(
+ "size-3.5 shrink-0 text-neutral-400 transition-transform duration-100 dark:text-neutral-500",
+ {
+ "rotate-180": childrenExpanded,
+ },
+ )}
+ />
+ {childrenExpanded
+ ? "Show less"
+ : `${hiddenChildCount} more`}
+ </button>
+ ) : null}
+ </div>
+ ) : null}
+ </div>
+ );
+ })}
+ </nav>
+ );
+}
+
+export { SidebarTreeNav };
+export type { SidebarNavItem };
diff --git a/skyvern-frontend/src/components/Splitter.tsx b/skyvern-frontend/src/components/Splitter.tsx
index b7c3155a6..2e5c48bde 100644
--- a/skyvern-frontend/src/components/Splitter.tsx
+++ b/skyvern-frontend/src/components/Splitter.tsx
@@ -15,49 +15,67 @@ function Handle({
return (
<div
className={cn(
- "absolute flex h-[1.25rem] w-[10px] flex-wrap items-center justify-center gap-[2px] bg-slate-800 pb-1 pt-1",
+ "absolute flex h-[1.25rem] w-[10px] flex-wrap items-center justify-center gap-[2px] bg-neutral-200 pb-1 pt-1 dark:bg-slate-800",
{
"cursor-col-resize": direction === "vertical",
"cursor-row-resize": direction === "horizontal",
- "bg-slate-700": isDragging,
+ "bg-neutral-300 dark:bg-slate-700": isDragging,
},
)}
onDoubleClick={() => onDoubleClick?.()}
>
<div className="flex w-full items-center justify-center gap-[0.15rem]">
<div
- className={cn("h-[2px] w-[2px] rounded-full bg-[#666]", {
- "bg-[#222]": isDragging,
- })}
+ className={cn(
+ "h-[2px] w-[2px] rounded-full bg-neutral-500 dark:bg-[#666]",
+ {
+ "bg-neutral-700 dark:bg-[#222]": isDragging,
+ },
+ )}
/>
<div
- className={cn("h-[2px] w-[2px] rounded-full bg-[#666]", {
- "bg-[#222]": isDragging,
- })}
+ className={cn(
+ "h-[2px] w-[2px] rounded-full bg-neutral-500 dark:bg-[#666]",
+ {
+ "bg-neutral-700 dark:bg-[#222]": isDragging,
+ },
+ )}
/>
</div>
<div className="flex w-full items-center justify-center gap-[0.15rem]">
<div
- className={cn("h-[2px] w-[2px] rounded-full bg-[#666]", {
- "bg-[#222]": isDragging,
- })}
+ className={cn(
+ "h-[2px] w-[2px] rounded-full bg-neutral-500 dark:bg-[#666]",
+ {
+ "bg-neutral-700 dark:bg-[#222]": isDragging,
+ },
+ )}
/>
<div
- className={cn("h-[2px] w-[2px] rounded-full bg-[#666]", {
- "bg-[#222]": isDragging,
- })}
+ className={cn(
+ "h-[2px] w-[2px] rounded-full bg-neutral-500 dark:bg-[#666]",
+ {
+ "bg-neutral-700 dark:bg-[#222]": isDragging,
+ },
+ )}
/>
</div>
<div className="flex w-full items-center justify-center gap-[0.15rem]">
<div
- className={cn("h-[2px] w-[2px] rounded-full bg-[#666]", {
- "bg-[#222]": isDragging,
- })}
+ className={cn(
+ "h-[2px] w-[2px] rounded-full bg-neutral-500 dark:bg-[#666]",
+ {
+ "bg-neutral-700 dark:bg-[#222]": isDragging,
+ },
+ )}
/>
<div
- className={cn("h-[2px] w-[2px] rounded-full bg-[#666]", {
- "bg-[#222]": isDragging,
- })}
+ className={cn(
+ "h-[2px] w-[2px] rounded-full bg-neutral-500 dark:bg-[#666]",
+ {
+ "bg-neutral-700 dark:bg-[#222]": isDragging,
+ },
+ )}
/>
</div>
</div>
@@ -430,8 +448,8 @@ function Splitter({
onDoubleClick={snap}
>
<div
- className={cn("h-full w-[2px] bg-slate-800", {
- "bg-slate-700": isDragging,
+ className={cn("h-full w-[2px] bg-neutral-300 dark:bg-slate-800", {
+ "bg-neutral-400 dark:bg-slate-700": isDragging,
})}
/>
<Handle
diff --git a/skyvern-frontend/src/components/StatusBadge.tsx b/skyvern-frontend/src/components/StatusBadge.tsx
index 6f95fca0e..3c4f99fc5 100644
--- a/skyvern-frontend/src/components/StatusBadge.tsx
+++ b/skyvern-frontend/src/components/StatusBadge.tsx
@@ -13,13 +13,13 @@ function StatusBadge({ className, status }: Props) {
return (
<Badge
className={cn("flex h-7 w-24 justify-center", className, {
- "bg-green-900 text-green-50 hover:bg-green-900/80":
+ "border-green-900/20 bg-green-900/10 text-green-800 hover:bg-green-900/15 dark:border-transparent dark:bg-green-900 dark:text-green-50 dark:hover:bg-green-900/80":
status === Status.Completed,
- "bg-orange-900 text-orange-50 hover:bg-orange-900/80":
+ "border-orange-900/20 bg-orange-900/10 text-orange-800 hover:bg-orange-900/15 dark:border-transparent dark:bg-orange-900 dark:text-orange-50 dark:hover:bg-orange-900/80":
status === Status.Terminated,
- "bg-gray-900 text-gray-50 hover:bg-gray-900/80":
+ "border-gray-900/20 bg-gray-900/10 text-gray-800 hover:bg-gray-900/15 dark:border-transparent dark:bg-gray-900 dark:text-gray-50 dark:hover:bg-gray-900/80":
status === Status.Created,
- "bg-red-900 text-red-50 hover:bg-red-900/80":
+ "border-red-900/20 bg-red-900/10 text-red-800 hover:bg-red-900/15 dark:border-transparent dark:bg-red-900 dark:text-red-50 dark:hover:bg-red-900/80":
status === Status.Failed ||
status === Status.Canceled ||
status === Status.TimedOut,
diff --git a/skyvern-frontend/src/components/SwitchBarNavigation.tsx b/skyvern-frontend/src/components/SwitchBarNavigation.tsx
index 265870720..c05920bc3 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-slate-700 p-2">
+ <div className="flex w-fit gap-2 rounded-sm border border-slate-300 p-2 dark:border-slate-700">
{options.map((option) => {
return (
<NavLink
@@ -24,9 +24,10 @@ 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-700",
+ "flex cursor-pointer items-center justify-center rounded-sm px-3 py-2 text-center text-slate-700 hover:bg-slate-100 hover:text-slate-950 dark:text-foreground dark:hover:bg-slate-700 dark:hover:text-foreground",
{
- "bg-slate-700": isActive,
+ "bg-neutral-900 !text-white hover:bg-neutral-900 hover:!text-white dark:bg-slate-700 dark:!text-foreground dark:hover:bg-slate-700":
+ isActive,
},
);
}}
diff --git a/skyvern-frontend/src/components/ThemeSwitch.tsx b/skyvern-frontend/src/components/ThemeSwitch.tsx
index 05e9d20cd..823d0b363 100644
--- a/skyvern-frontend/src/components/ThemeSwitch.tsx
+++ b/skyvern-frontend/src/components/ThemeSwitch.tsx
@@ -15,9 +15,13 @@ function ThemeToggle() {
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="outline" size="icon">
- <SunIcon className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
- <MoonIcon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
+ <Button
+ variant="ghost"
+ size="icon"
+ className="size-8 rounded-md text-neutral-500 transition-colors hover:bg-neutral-200/70 hover:text-neutral-950 dark:hover:bg-white/[0.04] dark:hover:text-neutral-200"
+ >
+ <SunIcon className="size-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
+ <MoonIcon className="absolute size-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
<span className="sr-only">Toggle theme</span>
</Button>
</DropdownMenuTrigger>
diff --git a/skyvern-frontend/src/components/VerificationToast.tsx b/skyvern-frontend/src/components/VerificationToast.tsx
index dee0658b3..54b213401 100644
--- a/skyvern-frontend/src/components/VerificationToast.tsx
+++ b/skyvern-frontend/src/components/VerificationToast.tsx
@@ -21,7 +21,7 @@ function VerificationToastContent({ label, navigateUrl }: ToastContentProps) {
to={navigateUrl}
className="inline-flex items-center gap-1 text-xs text-blue-400 hover:text-blue-300"
>
- Go to workflow
+ Go to agent
<ExternalLinkIcon className="h-3 w-3" />
</Link>
)}
diff --git a/skyvern-frontend/src/components/ui/button-variants.ts b/skyvern-frontend/src/components/ui/button-variants.ts
index 55fbe60b0..509eacbd7 100644
--- a/skyvern-frontend/src/components/ui/button-variants.ts
+++ b/skyvern-frontend/src/components/ui/button-variants.ts
@@ -6,7 +6,7 @@ const buttonVariants = cva(
variants: {
variant: {
default:
- "bg-primary text-primary-foreground shadow hover:bg-primary/90 font-bold",
+ "bg-cta text-cta-foreground shadow hover:bg-cta-hover font-bold",
destructive:
"bg-red-900 text-destructive-foreground shadow-sm hover:bg-destructive/90",
disabled:
@@ -16,7 +16,7 @@ const buttonVariants = cva(
secondary:
"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
tertiary:
- "bg-tertiary/20 text-tertiary-foreground border border-slate-500 hover:bg-tertiary/10 rounded-lg",
+ "bg-tertiary/20 text-tertiary-foreground border border-neutral-400 hover:bg-tertiary/10 rounded-lg dark:border-neutral-700",
ghost: "hover:bg-accent hover:text-accent-foreground",
link: "text-primary underline-offset-4 hover:underline",
},
diff --git a/skyvern-frontend/src/components/ui/css-vars.test.ts b/skyvern-frontend/src/components/ui/css-vars.test.ts
index 08a57ec6d..1f7235637 100644
--- a/skyvern-frontend/src/components/ui/css-vars.test.ts
+++ b/skyvern-frontend/src/components/ui/css-vars.test.ts
@@ -92,6 +92,26 @@ describe.each(CSS_FILES)("%s defines DS token vars", (file) => {
expect(root).toMatch(/--warning-foreground:\s*[^;]+;/);
});
+ it("defines --tertiary under :root", () => {
+ expect(root).toMatch(/--tertiary:\s*[^;]+;/);
+ });
+
+ it("defines --tertiary-foreground under :root", () => {
+ expect(root).toMatch(/--tertiary-foreground:\s*[^;]+;/);
+ });
+
+ it("defines --cta under :root", () => {
+ expect(root).toMatch(/--cta:\s*[^;]+;/);
+ });
+
+ it("defines --cta-hover under :root", () => {
+ expect(root).toMatch(/--cta-hover:\s*[^;]+;/);
+ });
+
+ it("defines --cta-foreground under :root", () => {
+ expect(root).toMatch(/--cta-foreground:\s*[^;]+;/);
+ });
+
it("defines --success under .dark", () => {
expect(dark).toMatch(/--success:\s*[^;]+;/);
});
@@ -99,22 +119,61 @@ describe.each(CSS_FILES)("%s defines DS token vars", (file) => {
it("defines --warning under .dark", () => {
expect(dark).toMatch(/--warning:\s*[^;]+;/);
});
+
+ it("defines --tertiary under .dark", () => {
+ expect(dark).toMatch(/--tertiary:\s*[^;]+;/);
+ });
+
+ it("defines --tertiary-foreground under .dark", () => {
+ expect(dark).toMatch(/--tertiary-foreground:\s*[^;]+;/);
+ });
+
+ it("defines --cta under .dark", () => {
+ expect(dark).toMatch(/--cta:\s*[^;]+;/);
+ });
+
+ it("defines --cta-hover under .dark", () => {
+ expect(dark).toMatch(/--cta-hover:\s*[^;]+;/);
+ });
+
+ it("defines --cta-foreground under .dark", () => {
+ expect(dark).toMatch(/--cta-foreground:\s*[^;]+;/);
+ });
});
-describe("--ring is consistent across cloud/eval/src", () => {
- function ringValue(css: string, selector: string): string {
+describe("shared semantic tokens are consistent across cloud/eval/src", () => {
+ function tokenValue(css: string, selector: string, token: string): string {
const block = blockBetween(css, selector);
- const m = block.match(/--ring:\s*([^;]+);/);
+ const m = block.match(new RegExp(`${token}:\\s*([^;]+);`));
return (m?.[1] ?? "").trim();
}
- it("light-mode --ring is the same value in all 3 entrypoints", () => {
- const values = CSS_FILES.map((f) => ringValue(load(f), ":root"));
+ function expectConsistentToken(token: string, selector: string) {
+ const values = CSS_FILES.map((f) => tokenValue(load(f), selector, token));
expect(new Set(values).size).toBe(1);
+ }
+
+ it("light-mode --ring is the same value in all 3 entrypoints", () => {
+ expectConsistentToken("--ring", ":root");
});
it("dark-mode --ring is the same value in all 3 entrypoints", () => {
- const values = CSS_FILES.map((f) => ringValue(load(f), ".dark"));
- expect(new Set(values).size).toBe(1);
+ expectConsistentToken("--ring", ".dark");
+ });
+
+ it("light-mode --cta is the same value in all 3 entrypoints", () => {
+ expectConsistentToken("--cta", ":root");
+ });
+
+ it("light-mode --cta-hover is the same value in all 3 entrypoints", () => {
+ expectConsistentToken("--cta-hover", ":root");
+ });
+
+ it("dark-mode --cta is the same value in all 3 entrypoints", () => {
+ expectConsistentToken("--cta", ".dark");
+ });
+
+ it("dark-mode --cta-hover is the same value in all 3 entrypoints", () => {
+ expectConsistentToken("--cta-hover", ".dark");
});
});
diff --git a/skyvern-frontend/src/components/ui/status-pill-variants.ts b/skyvern-frontend/src/components/ui/status-pill-variants.ts
index ae373b6a5..57a84bb72 100644
--- a/skyvern-frontend/src/components/ui/status-pill-variants.ts
+++ b/skyvern-frontend/src/components/ui/status-pill-variants.ts
@@ -3,7 +3,8 @@ import { cva } from "class-variance-authority";
const statusPillVariants = cva("flex items-center gap-1 rounded-sm px-2 py-1", {
variants: {
variant: {
- neutral: "bg-slate-elevation5",
+ neutral:
+ "bg-neutral-200 text-neutral-800 dark:bg-slate-elevation5 dark:text-foreground",
},
},
defaultVariants: {
diff --git a/skyvern-frontend/src/index.css b/skyvern-frontend/src/index.css
index fd45c056d..be679ed6a 100644
--- a/skyvern-frontend/src/index.css
+++ b/skyvern-frontend/src/index.css
@@ -5,28 +5,31 @@
@layer base {
:root {
--background: 0 0% 100%;
- --foreground: 222.2 84% 4.9%;
+ --foreground: 0 0% 7%;
--card: 0 0% 100%;
- --card-foreground: 222.2 84% 4.9%;
+ --card-foreground: 0 0% 7%;
--popover: 0 0% 100%;
- --popover-foreground: 222.2 84% 4.9%;
+ --popover-foreground: 0 0% 7%;
- --primary: 222.2 47.4% 11.2%;
- --primary-foreground: 210 40% 98%;
+ --primary: 0 0% 7%;
+ --primary-foreground: 0 0% 98%;
+ --cta: 234 52% 56%;
+ --cta-hover: 234 52% 48%;
+ --cta-foreground: 0 0% 100%;
- --secondary: 210 40% 96.1%;
- --secondary-foreground: 222.2 47.4% 11.2%;
+ --secondary: 0 0% 96%;
+ --secondary-foreground: 0 0% 7%;
- --tertiary: 227.6 11.6% 48.8%;
- --tertiary-foreground: 213 27% 84%;
+ --tertiary: 0 0% 46%;
+ --tertiary-foreground: 0 0% 12%;
- --muted: 210 40% 96.1%;
- --muted-foreground: 215.4 16.3% 46.9%;
+ --muted: 0 0% 96%;
+ --muted-foreground: 0 0% 42%;
- --accent: 210 40% 96.1%;
- --accent-foreground: 222.2 47.4% 11.2%;
+ --accent: 0 0% 94%;
+ --accent-foreground: 0 0% 7%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
@@ -38,26 +41,17 @@
--success: 142.1 76.2% 36.3%; /* green-600 */
--success-foreground: 138.5 76.5% 96.7%; /* green-50 */
- --border: 214.3 31.8% 91.4%;
- --input: 214.3 31.8% 91.4%;
- --ring: 222.2 84% 5%;
+ --border: 0 0% 88%;
+ --input: 0 0% 88%;
+ --ring: 0 0% 9%;
--radius: 0.5rem;
- --tertiary: 227.6 11.6% 48.8%;
- --tertiary-foreground: 213 27% 84%;
-
- --warning: 32.1 94.6% 43.7%; /* amber-600 */
- --warning-foreground: 36 100% 97.1%; /* amber-50 */
-
- --success: 142.1 76.2% 36.3%; /* green-600 */
- --success-foreground: 138.5 76.5% 96.7%; /* green-50 */
-
- --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%;
+ --slate-elevation-1: 0 0% 98%;
+ --slate-elevation-2: 0 0% 96%;
+ --slate-elevation-3: 0 0% 93%;
+ --slate-elevation-4: 0 0% 90%;
+ --slate-elevation-5: 0 0% 86%;
}
.dark {
@@ -72,10 +66,16 @@
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;
+ --cta: 234 56% 60%;
+ --cta-hover: 234 56% 52%;
+ --cta-foreground: 0 0% 100%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
+ --tertiary: 227.6 11.6% 48.8%;
+ --tertiary-foreground: 213 27% 84%;
+
--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;
diff --git a/skyvern-frontend/src/router.tsx b/skyvern-frontend/src/router.tsx
index d0a2f6357..1872c5718 100644
--- a/skyvern-frontend/src/router.tsx
+++ b/skyvern-frontend/src/router.tsx
@@ -34,10 +34,77 @@ import { BrowserProfileDetailPage } from "@/routes/browserProfiles/BrowserProfil
import { BrowserProfilesPage } from "@/routes/browserProfiles/BrowserProfilesPage.tsx";
import { CredentialsPage } from "@/routes/credentials/CredentialsPage.tsx";
import { IntegrationsUnavailable } from "@/routes/integrations/IntegrationsUnavailable";
+import { RecipeComingSoonPage } from "@/routes/recipes/RecipeComingSoonPage";
+import { RecipesPage } from "@/routes/recipes/RecipesPage";
import { RunRouter } from "@/routes/runs/RunRouter";
import { SchedulesRoute } from "@/routes/schedules/SchedulesRoute";
import { ScheduleDetailRoute } from "@/routes/schedules/ScheduleDetailRoute";
+const recipeComingSoonRoutes = [
+ {
+ path: "recipes/invoices",
+ title: "Invoices",
+ description:
+ "Skyvern's Invoices Agent allows you to automate invoice collection and downloads with agents",
+ },
+ {
+ path: "recipes/government",
+ title: "Government",
+ description:
+ "Skyvern's Government Agent allows you to navigate any government websites",
+ },
+ {
+ path: "recipes/healthcare",
+ title: "Healthcare",
+ description:
+ "Skyvern's Healthcare Agent allows you to automate work with healthcare websites",
+ },
+ {
+ path: "recipes/insurance",
+ title: "Insurance",
+ description:
+ "Skyvern's Insurance Agent allows you to automate work with insurance websites",
+ },
+ {
+ path: "recipes/purchasing",
+ title: "Purchasing",
+ description:
+ "Skyvern's Purchasing Agent allows you to make payments on the web",
+ },
+ {
+ path: "recipes/crm",
+ title: "CRM",
+ description: "Skyvern's CRM Agent allows you to navigate any CRM",
+ },
+ {
+ path: "recipes/logistics",
+ title: "Logistics",
+ description:
+ "Skyvern's Logistics Agent allows you to automate work with logistics websites",
+ },
+ {
+ path: "recipes/contact-forms",
+ title: "Contact Forms",
+ description:
+ "Skyvern's Contact Forms Agent allows you to submit contact forms across websites",
+ },
+ {
+ path: "recipes/job-apps",
+ title: "Job Apps",
+ description:
+ "Skyvern's Job Apps Agent allows you to automate job applications with agents",
+ },
+].map(({ path, title, description }) => ({
+ path,
+ element: <PageLayout />,
+ children: [
+ {
+ index: true,
+ element: <RecipeComingSoonPage title={title} description={description} />,
+ },
+ ],
+}));
+
const router = createBrowserRouter([
{
path: "browser-session/:browserSessionId",
@@ -253,6 +320,17 @@ const router = createBrowserRouter([
},
],
},
+ {
+ path: "recipes",
+ element: <PageLayout />,
+ children: [
+ {
+ index: true,
+ element: <RecipesPage />,
+ },
+ ],
+ },
+ ...recipeComingSoonRoutes,
{
path: "history",
element: <PageLayout />,
diff --git a/skyvern-frontend/src/routes/browserProfiles/BrowserProfileDetailPage.tsx b/skyvern-frontend/src/routes/browserProfiles/BrowserProfileDetailPage.tsx
index aecfc11e4..d62ffc2ce 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 border-slate-700 bg-slate-elevation1 p-6 text-sm text-slate-300">
+ <div className="rounded-md border border-slate-700 bg-slate-elevation1 p-6 text-sm text-neutral-600 dark:text-slate-300">
Browser profile not found.
</div>
)}
@@ -54,7 +54,9 @@ function BrowserProfileDetailPage() {
<div className="space-y-2">
<h1 className="text-2xl">{profile.name}</h1>
{profile.description && (
- <p className="text-sm text-slate-300">{profile.description}</p>
+ <p className="text-sm text-neutral-600 dark:text-slate-300">
+ {profile.description}
+ </p>
)}
{profile.deleted_at && (
<p className="text-sm text-amber-400">
@@ -82,7 +84,9 @@ function BrowserProfileDetailPage() {
<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-slate-400">ID</dt>
+ <dt className="text-sm text-neutral-600 dark:text-slate-400">
+ ID
+ </dt>
<dd className="flex items-center font-mono text-sm">
<span className="break-all">{profile.browser_profile_id}</span>
<CopyText
@@ -91,14 +95,18 @@ function BrowserProfileDetailPage() {
/>
</dd>
- <dt className="text-sm text-slate-400">Source Browser</dt>
+ <dt className="text-sm text-neutral-600 dark: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-slate-400">Created</dt>
+ <dt className="text-sm text-neutral-600 dark:text-slate-400">
+ Created
+ </dt>
<dd
className="text-sm"
title={basicTimeFormat(profile.created_at)}
@@ -106,7 +114,9 @@ function BrowserProfileDetailPage() {
{basicLocalTimeFormat(profile.created_at)}
</dd>
- <dt className="text-sm text-slate-400">Last Modified</dt>
+ <dt className="text-sm text-neutral-600 dark: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 e724e9898..b8dcce7d5 100644
--- a/skyvern-frontend/src/routes/browserProfiles/BrowserProfileItem.tsx
+++ b/skyvern-frontend/src/routes/browserProfiles/BrowserProfileItem.tsx
@@ -48,18 +48,18 @@ function BrowserProfileItem({ profile }: Props) {
<TableCell className="truncate">
<span title={profile.name}>{profile.name}</span>
</TableCell>
- <TableCell className="truncate text-slate-400">
+ <TableCell className="truncate text-neutral-600 dark:text-slate-400">
{profile.description ? (
<span title={profile.description}>{profile.description}</span>
) : (
<span className="opacity-50">—</span>
)}
</TableCell>
- <TableCell className="truncate text-slate-400">
+ <TableCell className="truncate text-neutral-600 dark:text-slate-400">
{profile.source_browser_type ?? <span className="opacity-50">—</span>}
</TableCell>
<TableCell
- className="text-slate-400"
+ className="text-neutral-600 dark: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 ed37bccc6..2e92ad239 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 border-slate-700 bg-slate-elevation1 p-6 text-sm text-slate-300">
+ <div className="rounded-md border border-slate-700 bg-slate-elevation1 p-6 text-sm text-neutral-600 dark: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 border-slate-700 bg-slate-elevation1 p-10 text-sm text-slate-300">
+ <div className="rounded-md border border-slate-700 bg-slate-elevation1 p-10 text-sm text-neutral-600 dark: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-slate-400" />
+ <BrowserIcon className="size-10 text-neutral-600 dark:text-slate-400" />
<div className="space-y-1">
<p className="text-base font-medium text-slate-100">
No browser profiles yet
</p>
- <p className="mx-auto max-w-md text-sm text-slate-400">
+ <p className="mx-auto max-w-md text-sm text-neutral-600 dark:text-slate-400">
Start a session, then click Save Profile on the session page to
capture it here.
</p>
@@ -131,19 +131,19 @@ function BrowserProfilesList({ searchKey }: Props = {}) {
<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-slate-400">
+ <TableHead className="w-1/4 truncate rounded-tl-lg text-neutral-600 dark:text-slate-400">
Name
</TableHead>
- <TableHead className="w-1/3 truncate text-slate-400">
+ <TableHead className="w-1/3 truncate text-neutral-600 dark:text-slate-400">
Description
</TableHead>
- <TableHead className="w-1/6 truncate text-slate-400">
+ <TableHead className="w-1/6 truncate text-neutral-600 dark:text-slate-400">
Source Browser
</TableHead>
- <TableHead className="w-1/6 truncate text-slate-400">
+ <TableHead className="w-1/6 truncate text-neutral-600 dark:text-slate-400">
Created
</TableHead>
- <TableHead className="w-32 truncate rounded-tr-lg text-right text-slate-400">
+ <TableHead className="w-32 truncate rounded-tr-lg text-right text-neutral-600 dark:text-slate-400">
Actions
</TableHead>
</TableRow>
@@ -159,7 +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-slate-400">Items per page</span>
+ <span className="text-neutral-600 dark:text-slate-400">
+ Items per page
+ </span>
<select
className="h-9 rounded-md border border-slate-300 bg-background px-3"
value={itemsPerPage}
diff --git a/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesPage.tsx b/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesPage.tsx
index 4446c2991..419faf02d 100644
--- a/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesPage.tsx
+++ b/skyvern-frontend/src/routes/browserProfiles/BrowserProfilesPage.tsx
@@ -8,8 +8,7 @@ import { BrowserProfilesList } from "./BrowserProfilesList";
import { CreateBrowserProfileButton } from "./CreateBrowserProfileButton";
import { useBackgroundBrowserProfileCreate } from "./hooks/useBackgroundBrowserProfileCreate";
-const subHeaderText =
- "Manage saved browser profiles used by your workflow runs.";
+const subHeaderText = "Manage saved browser profiles used by your agent runs.";
function BrowserProfilesPage() {
const [searchParams, setSearchParams] = useSearchParams();
@@ -24,7 +23,9 @@ function BrowserProfilesPage() {
return (
<div className="space-y-5">
<h1 className="text-2xl">Browser Profiles</h1>
- <div className="w-96 text-sm text-slate-300">{subHeaderText}</div>
+ <div className="w-96 text-sm text-neutral-600 dark: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/DeleteBrowserProfileButton.tsx b/skyvern-frontend/src/routes/browserProfiles/DeleteBrowserProfileButton.tsx
index 39c4a119d..8a6e1780e 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-slate-400">
+ <div className="text-sm text-neutral-600 dark:text-slate-400">
The browser profile{" "}
<span className="font-bold text-primary">{profile.name}</span> will be
- deleted. Workflows referencing this profile will no longer find it.
+ deleted. Agents 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 95f7133df..522a05f5f 100644
--- a/skyvern-frontend/src/routes/browserProfiles/SaveSessionAsBrowserProfileDialog.tsx
+++ b/skyvern-frontend/src/routes/browserProfiles/SaveSessionAsBrowserProfileDialog.tsx
@@ -73,7 +73,9 @@ function SaveSessionAsBrowserProfileDialog({
<form onSubmit={handleSubmit}>
<div className="grid gap-4 pb-4">
<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="text-xs text-neutral-600 dark:text-slate-400">
+ Source session
+ </div>
<div className="truncate font-mono text-xs text-slate-200">
{browserSessionId}
</div>
@@ -92,7 +94,10 @@ function SaveSessionAsBrowserProfileDialog({
</div>
<div className="grid gap-2">
<Label htmlFor="save-browser-profile-description">
- Description <span className="text-slate-400">(optional)</span>
+ Description{" "}
+ <span className="text-neutral-600 dark:text-slate-400">
+ (optional)
+ </span>
</Label>
<Textarea
id="save-browser-profile-description"
diff --git a/skyvern-frontend/src/routes/browserSessions/BrowserSessionWorkflowRuns.tsx b/skyvern-frontend/src/routes/browserSessions/BrowserSessionWorkflowRuns.tsx
index 4e928ce9c..5c77c121e 100644
--- a/skyvern-frontend/src/routes/browserSessions/BrowserSessionWorkflowRuns.tsx
+++ b/skyvern-frontend/src/routes/browserSessions/BrowserSessionWorkflowRuns.tsx
@@ -78,7 +78,7 @@ function BrowserSessionWorkflowRuns() {
<div className="text-center">
<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
+ No agent runs on this browser session
</div>
</div>
</div>
@@ -91,7 +91,7 @@ function BrowserSessionWorkflowRuns() {
<Table>
<TableHeader>
<TableRow>
- <TableHead className="w-1/4">Workflow</TableHead>
+ <TableHead className="w-1/4">Agent</TableHead>
<TableHead className="w-1/4">Run ID</TableHead>
<TableHead className="w-1/4">Status</TableHead>
<TableHead className="w-1/4">Created At</TableHead>
@@ -127,7 +127,7 @@ function BrowserSessionWorkflowRuns() {
className="cursor-pointer"
>
<TableCell>
- {workflowRun.workflow_title ?? "Untitled workflow"}
+ {workflowRun.workflow_title ?? "Untitled agent"}
</TableCell>
<TableCell className="font-mono text-xs">
{workflowRun.workflow_run_id}
diff --git a/skyvern-frontend/src/routes/browserSessions/BrowserSessions.tsx b/skyvern-frontend/src/routes/browserSessions/BrowserSessions.tsx
index f308d6a98..566689ac8 100644
--- a/skyvern-frontend/src/routes/browserSessions/BrowserSessions.tsx
+++ b/skyvern-frontend/src/routes/browserSessions/BrowserSessions.tsx
@@ -59,13 +59,13 @@ function sessionIsOpen(browserSession: BrowserSession): boolean {
}
const No = () => (
- <Badge className="flex h-7 w-12 justify-center bg-gray-800 text-orange-50 hover:bg-gray-900">
+ <Badge className="flex h-7 w-12 justify-center border border-neutral-200 bg-neutral-100 text-neutral-600 shadow-none hover:bg-neutral-100 dark:border-white/10 dark:bg-white/[0.06] dark:text-neutral-300 dark:hover:bg-white/[0.08]">
No
</Badge>
);
const Yes = () => (
- <Badge className="flex h-7 w-12 justify-center bg-green-900 text-green-50 hover:bg-green-900/80">
+ <Badge className="flex h-7 w-12 justify-center border border-emerald-200 bg-emerald-50 text-emerald-700 shadow-none hover:bg-emerald-50 dark:border-emerald-500/20 dark:bg-emerald-500/10 dark:text-emerald-300 dark:hover:bg-emerald-500/15">
Yes
</Badge>
);
@@ -185,9 +185,9 @@ function BrowserSessions() {
<GlobeIcon className="size-6" />
<h1 className="text-2xl">Browsers</h1>
</div>
- <p className="text-slate-300">
- Create your own live browsers to interact with websites, or run
- workflows in.
+ <p className="text-sm leading-6 text-neutral-600 dark:text-neutral-400">
+ Create your own live browsers to interact with websites, or run agents
+ in.
</p>
</div>
@@ -224,7 +224,7 @@ function BrowserSessions() {
<span className="mr-2">Occupied</span>
<HelpTooltip
className="inline"
- content="Browser is busy running a task or workflow"
+ content="Browser is busy running a task or agent"
/>
</TableHead>
<TableHead className="w-1/6 truncate text-slate-400">
@@ -381,7 +381,7 @@ function BrowserSessions() {
<DrawerTitle>Create Browser Session</DrawerTitle>
<DrawerDescription>
Create a new browser session to interact with websites, or run
- workflows in.
+ agents in.
<div className="mt-8 flex flex-col gap-4">
<div className="space-y-2">
<div className="flex gap-2">
diff --git a/skyvern-frontend/src/routes/browserSessions/hooks/useProcessRecordingMutation.ts b/skyvern-frontend/src/routes/browserSessions/hooks/useProcessRecordingMutation.ts
index 79f392527..995cb4eb8 100644
--- a/skyvern-frontend/src/routes/browserSessions/hooks/useProcessRecordingMutation.ts
+++ b/skyvern-frontend/src/routes/browserSessions/hooks/useProcessRecordingMutation.ts
@@ -42,7 +42,7 @@ const useProcessRecordingMutation = ({
if (!workflowPermanentId) {
throw new Error(
- "Cannot process recording without a valid workflow permanent ID.",
+ "Cannot process recording without a valid agent permanent ID.",
);
}
diff --git a/skyvern-frontend/src/routes/credentials/CredentialItem.tsx b/skyvern-frontend/src/routes/credentials/CredentialItem.tsx
index eba1972e1..4559becc6 100644
--- a/skyvern-frontend/src/routes/credentials/CredentialItem.tsx
+++ b/skyvern-frontend/src/routes/credentials/CredentialItem.tsx
@@ -63,10 +63,16 @@ 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-slate-400">Username/Email</p>
- <p className="text-sm text-slate-400">Password</p>
+ <p className="text-sm text-neutral-600 dark:text-slate-400">
+ Username/Email
+ </p>
+ <p className="text-sm text-neutral-600 dark:text-slate-400">
+ Password
+ </p>
{credentialData.totp_type !== "none" && (
- <p className="text-sm text-slate-400">2FA Type</p>
+ <p className="text-sm text-neutral-600 dark:text-slate-400">
+ 2FA Type
+ </p>
)}
</div>
<div className="space-y-2">
@@ -86,8 +92,12 @@ 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-slate-400">Card Number</p>
- <p className="text-sm text-slate-400">Brand</p>
+ <p className="text-sm text-neutral-600 dark:text-slate-400">
+ Card Number
+ </p>
+ <p className="text-sm text-neutral-600 dark:text-slate-400">
+ Brand
+ </p>
</div>
</div>
<div className="flex gap-5">
@@ -104,9 +114,11 @@ 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-slate-400">Secret Value</p>
+ <p className="text-sm text-neutral-600 dark:text-slate-400">
+ Secret Value
+ </p>
{credentialData.secret_label ? (
- <p className="text-sm text-slate-400">Type</p>
+ <p className="text-sm text-neutral-600 dark:text-slate-400">Type</p>
) : null}
</div>
<div className="space-y-2">
@@ -125,7 +137,9 @@ function CredentialItem({ credential, onStartBackgroundTest }: Props) {
<p className="w-full truncate" title={credential.name}>
{credential.name}
</p>
- <p className="text-sm text-slate-400">{credential.credential_id}</p>
+ <p className="text-sm text-neutral-600 dark: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 45935bc53..5d33a756a 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-slate-700 bg-slate-elevation1 p-6 text-sm text-slate-300">
+ <div className="rounded-md border border-slate-700 bg-slate-elevation1 p-6 text-sm text-neutral-600 dark: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 ce4bd2eda..26f66e0b7 100644
--- a/skyvern-frontend/src/routes/credentials/CredentialsModal.tsx
+++ b/skyvern-frontend/src/routes/credentials/CredentialsModal.tsx
@@ -1015,7 +1015,7 @@ function CredentialsModal({
>
Save browser session for future logins
</Label>
- <HelpTooltip content="Skyvern will log in using your credentials, verify success, and save the browser session. Future workflow runs will skip the login form entirely because the saved session is already authenticated." />
+ <HelpTooltip content="Skyvern will log in using your credentials, verify success, and save the browser session. Future agent runs will skip the login form entirely because the saved session is already authenticated." />
</div>
{testAndSave && (
@@ -1063,7 +1063,7 @@ function CredentialsModal({
<div className="flex items-center gap-2 pl-7 text-sm text-green-400">
<CheckCircledIcon className="size-4" />
<span>
- {`Login test passed — saved browser session available for workflows using ${getHostname(testUrl) ?? testUrl}`}
+ {`Login test passed — saved browser session available for agents using ${getHostname(testUrl) ?? testUrl}`}
</span>
</div>
)}
diff --git a/skyvern-frontend/src/routes/credentials/CredentialsPage.tsx b/skyvern-frontend/src/routes/credentials/CredentialsPage.tsx
index b165422c0..3d855981a 100644
--- a/skyvern-frontend/src/routes/credentials/CredentialsPage.tsx
+++ b/skyvern-frontend/src/routes/credentials/CredentialsPage.tsx
@@ -20,7 +20,7 @@ import { CredentialsTotpTab } from "./CredentialsTotpTab";
import { useSearchParams } from "react-router-dom";
const subHeaderText =
- "Securely store your passwords, credit cards, secrets, and manage incoming 2FA codes for your workflows.";
+ "Securely store your passwords, credit cards, secrets, and manage incoming 2FA codes for your agents.";
const TAB_VALUES = [
"passwords",
@@ -58,7 +58,9 @@ 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-slate-300">{subHeaderText}</div>
+ <div className="w-96 text-sm text-neutral-600 dark:text-slate-300">
+ {subHeaderText}
+ </div>
<DropdownMenu modal={false}>
<DropdownMenuTrigger asChild>
<Button>
@@ -141,7 +143,7 @@ function CredentialsPage() {
{/* Footer note - only for Passwords and Credit Cards tabs */}
{activeTab !== "twoFactor" && (
<div className="mt-8 border-t border-slate-700 pt-4">
- <div className="text-sm italic text-slate-400">
+ <div className="text-sm italic text-neutral-600 dark: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 6ba1cd8a2..b7863891e 100644
--- a/skyvern-frontend/src/routes/credentials/CredentialsTotpTab.tsx
+++ b/skyvern-frontend/src/routes/credentials/CredentialsTotpTab.tsx
@@ -71,7 +71,7 @@ function CredentialsTotpTab() {
<div className="space-y-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-slate-400">
+ <p className="mt-1 text-sm text-neutral-600 dark:text-slate-400">
Paste the verification message you received. Skyvern extracts the code
and attaches it to the relevant run.
</p>
@@ -167,7 +167,7 @@ function CredentialsTotpTab() {
<TableHead className="w-[220px]">Identifier</TableHead>
<TableHead>Code</TableHead>
<TableHead>Source</TableHead>
- <TableHead>Workflow Run</TableHead>
+ <TableHead>Agent Run</TableHead>
<TableHead>Created</TableHead>
<TableHead>Expires</TableHead>
</TableRow>
@@ -189,7 +189,7 @@ function CredentialsTotpTab() {
<TableRow>
<TableCell
colSpan={6}
- className="text-center text-sm text-slate-300"
+ className="text-center text-sm text-neutral-600 dark: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-slate-400">
+ <span className="ml-2 text-xs text-neutral-600 dark:text-slate-400">
{code.source}
</span>
) : null}
diff --git a/skyvern-frontend/src/routes/discover/DiscoverPage.tsx b/skyvern-frontend/src/routes/discover/DiscoverPage.tsx
index 5bce71d11..aa4ced68e 100644
--- a/skyvern-frontend/src/routes/discover/DiscoverPage.tsx
+++ b/skyvern-frontend/src/routes/discover/DiscoverPage.tsx
@@ -4,19 +4,7 @@ import { WorkflowTemplates } from "./WorkflowTemplates";
import { useCreateWorkflowMutation } from "../workflows/hooks/useCreateWorkflowMutation";
import { Button } from "@/components/ui/button";
import { ReloadIcon } from "@radix-ui/react-icons";
-
-const emptyWorkflowRequest = {
- title: "New Workflow",
- description: "",
- ai_fallback: true,
- code_version: 2 as const,
- run_with: "agent" as const,
- workflow_definition: {
- version: 2 as const,
- blocks: [],
- parameters: [],
- },
-};
+import { defaultWorkflowRequest } from "../workflows/defaultWorkflowRequest";
function DiscoverPage() {
const enableCopilotHandoff =
@@ -35,7 +23,7 @@ function DiscoverPage() {
disabled={createWorkflowMutation.isPending}
onClick={() =>
createWorkflowMutation.mutate({
- ...emptyWorkflowRequest,
+ ...defaultWorkflowRequest,
_via: "blank",
})
}
diff --git a/skyvern-frontend/src/routes/discover/WorkflowTemplates.tsx b/skyvern-frontend/src/routes/discover/WorkflowTemplates.tsx
index 2b690024c..8f5f5006f 100644
--- a/skyvern-frontend/src/routes/discover/WorkflowTemplates.tsx
+++ b/skyvern-frontend/src/routes/discover/WorkflowTemplates.tsx
@@ -32,7 +32,7 @@ function WorkflowTemplates() {
return (
<div className="space-y-5">
- <h1 className="text-xl">Explore Workflows</h1>
+ <h1 className="text-xl">Explore Agents</h1>
<Carousel
opts={{
align: "start",
diff --git a/skyvern-frontend/src/routes/history/RunHistory.tsx b/skyvern-frontend/src/routes/history/RunHistory.tsx
index f582e6514..3a5124897 100644
--- a/skyvern-frontend/src/routes/history/RunHistory.tsx
+++ b/skyvern-frontend/src/routes/history/RunHistory.tsx
@@ -267,13 +267,13 @@ function RunHistory() {
</Tip>
)}
{run.workflow_deleted && (
- <Tip content="Source workflow deleted">
+ <Tip content="Source agent deleted">
<ExclamationTriangleIcon className="text-amber-400" />
</Tip>
)}
<span
className={cn(
- run.workflow_deleted && "text-slate-400",
+ run.workflow_deleted && "text-neutral-600 dark:text-slate-400",
"truncate",
)}
>
@@ -305,7 +305,9 @@ function RunHistory() {
{isKnownStatus(run.status) ? (
<StatusBadge status={run.status} />
) : (
- <span className="text-sm text-slate-400">{run.status}</span>
+ <span className="text-sm text-neutral-600 dark:text-slate-400">
+ {run.status}
+ </span>
)}
</TableCell>
<TableCell
@@ -314,7 +316,7 @@ function RunHistory() {
>
{basicLocalTimeFormat(run.created_at)}
</TableCell>
- <TableCell className="text-slate-400">
+ <TableCell className="text-neutral-600 dark:text-slate-400">
{executionTime ?? "-"}
</TableCell>
<TableCell>
@@ -383,7 +385,7 @@ function RunHistory() {
data-testid="workflow-filter-banner"
>
<span className="truncate">
- Filtering runs for workflow{" "}
+ Filtering runs for agent{" "}
<span className="font-mono">{workflowPermanentIdFilter}</span>
</span>
<Button
@@ -407,7 +409,7 @@ function RunHistory() {
}}
placeholder={
workflowPermanentIdFilter
- ? "Clear the workflow filter above to search"
+ ? "Clear the agent filter above to search"
: "Search by run ID or parameter..."
}
disabled={!!workflowPermanentIdFilter}
@@ -431,23 +433,31 @@ function RunHistory() {
<Table className="sm:table-fixed">
<TableHeader className="rounded-t-lg bg-slate-elevation2">
<TableRow>
- <TableHead className="w-[20%] rounded-tl-lg text-slate-400">
+ <TableHead className="w-[20%] rounded-tl-lg text-neutral-600 dark:text-slate-400">
Run ID
</TableHead>
- <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">
+ <TableHead className="w-[20%] text-neutral-600 dark:text-slate-400">
+ Detail
+ </TableHead>
+ <TableHead className="w-[16%] text-neutral-600 dark:text-slate-400">
+ Status
+ </TableHead>
+ <TableHead className="w-[27%] text-neutral-600 dark:text-slate-400">
Created At
</TableHead>
- <TableHead className="w-[8%] text-slate-400">Duration</TableHead>
- <TableHead className="w-[8%] rounded-tr-lg text-slate-400"></TableHead>
+ <TableHead className="w-[8%] text-neutral-600 dark:text-slate-400">
+ Duration
+ </TableHead>
+ <TableHead className="w-[8%] rounded-tr-lg text-neutral-600 dark:text-slate-400"></TableHead>
</TableRow>
</TableHeader>
<TableBody>{displayTableBody()}</TableBody>
</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-slate-400">Items per page</span>
+ <span className="text-neutral-600 dark:text-slate-400">
+ Items per page
+ </span>
<Select
value={String(itemsPerPage)}
onValueChange={(size) => {
@@ -557,7 +567,7 @@ function WorkflowRunParametersInline({
if (!hasParameters && !hasExtraHeaders) {
return (
- <div className="ml-8 py-4 text-sm text-slate-400">
+ <div className="ml-8 py-4 text-sm text-neutral-600 dark:text-slate-400">
No parameters for this run
</div>
);
diff --git a/skyvern-frontend/src/routes/recipes/RecipeComingSoonPage.tsx b/skyvern-frontend/src/routes/recipes/RecipeComingSoonPage.tsx
new file mode 100644
index 000000000..4d0c0fad3
--- /dev/null
+++ b/skyvern-frontend/src/routes/recipes/RecipeComingSoonPage.tsx
@@ -0,0 +1,38 @@
+import { Link } from "react-router-dom";
+
+import { Button } from "@/components/ui/button";
+
+type Props = {
+ title: string;
+ description: string;
+};
+
+function RecipeComingSoonPage({ title, description }: Props) {
+ return (
+ <div>
+ <h1 className="mb-5 text-3xl font-bold">{title}</h1>
+ <h2 className="mb-5 text-neutral-600 dark:text-slate-400">
+ {description}
+ </h2>
+ <div className="mt-24 flex w-full justify-center">
+ <div className="flex w-[409px] flex-col items-center gap-4">
+ <h1 className="text-3xl font-bold">Apply for Private Beta</h1>
+ <h2 className="text-center text-neutral-600 dark:text-slate-400">
+ This Agent is currently in private beta, book a demo to learn more.
+ </h2>
+ <Button size="lg" asChild>
+ <Link
+ to="https://www.skyvern.com/contact"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ Book a Demo
+ </Link>
+ </Button>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+export { RecipeComingSoonPage };
diff --git a/skyvern-frontend/src/routes/recipes/RecipesPage.tsx b/skyvern-frontend/src/routes/recipes/RecipesPage.tsx
new file mode 100644
index 000000000..431f1cd0b
--- /dev/null
+++ b/skyvern-frontend/src/routes/recipes/RecipesPage.tsx
@@ -0,0 +1,82 @@
+import { Link } from "react-router-dom";
+
+const recipes = [
+ {
+ title: "Healthcare",
+ description: "Automate work with healthcare websites.",
+ to: "/recipes/healthcare",
+ },
+ {
+ title: "Government",
+ description: "Navigate and complete tasks across government websites.",
+ to: "/recipes/government",
+ },
+ {
+ title: "Invoices",
+ description: "Collect and download invoices with agents.",
+ to: "/recipes/invoices",
+ },
+ {
+ title: "Insurance",
+ description: "Automate work with insurance websites.",
+ to: "/recipes/insurance",
+ },
+ {
+ title: "Purchasing",
+ description: "Make payments and complete purchasing workflows on the web.",
+ to: "/recipes/purchasing",
+ },
+ {
+ title: "CRM",
+ description: "Navigate and update records across CRM systems.",
+ to: "/recipes/crm",
+ },
+ {
+ title: "Logistics",
+ description: "Automate work with logistics websites.",
+ to: "/recipes/logistics",
+ },
+ {
+ title: "Contact Forms",
+ description: "Submit contact forms across websites.",
+ to: "/recipes/contact-forms",
+ },
+ {
+ title: "Job Apps",
+ description: "Automate job applications with agents.",
+ to: "/recipes/job-apps",
+ },
+];
+
+function RecipesPage() {
+ return (
+ <div className="space-y-8">
+ <div>
+ <h1 className="text-3xl font-semibold tracking-normal text-neutral-950 dark:text-neutral-50">
+ Recipes
+ </h1>
+ <p className="mt-2 max-w-2xl text-sm leading-6 text-neutral-600 dark:text-neutral-400">
+ Browse ready-made agent templates for common web automation workflows.
+ </p>
+ </div>
+ <div className="grid gap-3 md:grid-cols-2 xl:grid-cols-3">
+ {recipes.map((recipe) => (
+ <Link
+ key={recipe.to}
+ to={recipe.to}
+ className="group rounded-lg border border-neutral-200 bg-white p-4 transition-colors duration-100 hover:border-neutral-300 hover:bg-neutral-50 dark:border-white/[0.08] dark:bg-neutral-950 dark:hover:border-white/[0.16] dark:hover:bg-white/[0.03]"
+ >
+ <div className="text-sm font-semibold text-neutral-950 group-hover:text-neutral-900 dark:text-neutral-100 dark:group-hover:text-white">
+ {recipe.title}
+ </div>
+ <div className="mt-2 text-sm leading-5 text-neutral-600 dark:text-neutral-400">
+ {recipe.description}
+ </div>
+ </Link>
+ ))}
+ </div>
+ </div>
+ );
+}
+
+export { RecipesPage };
diff --git a/skyvern-frontend/src/routes/root/Header.tsx b/skyvern-frontend/src/routes/root/Header.tsx
index 157719e50..585108118 100644
--- a/skyvern-frontend/src/routes/root/Header.tsx
+++ b/skyvern-frontend/src/routes/root/Header.tsx
@@ -1,27 +1,10 @@
-import {
- DiscordLogoIcon,
- GitHubLogoIcon,
- StarIcon,
-} from "@radix-ui/react-icons";
-import { Link, useMatch, useSearchParams } from "react-router-dom";
import { NavigationHamburgerMenu } from "./NavigationHamburgerMenu";
-import {
- starCountFormatter,
- useGithubStarCount,
-} from "@/hooks/useGithubStarCount";
+import { useSidebarHidden } from "./useSidebarHidden";
function Header() {
- const [searchParams] = useSearchParams();
- const embed = searchParams.get("embed");
- const match =
- useMatch("/workflows/:workflowPermanentId/edit") ||
- location.pathname.includes("build") ||
- location.pathname.includes("debug") ||
- embed === "true";
+ const sidebarHidden = useSidebarHidden();
- const { data: starCount } = useGithubStarCount({ enabled: !match });
-
- if (match) {
+ if (sidebarHidden) {
return null;
}
@@ -29,30 +12,6 @@ function Header() {
<header>
<div className="flex h-24 items-center px-6">
<NavigationHamburgerMenu />
- <div className="ml-auto flex gap-4">
- <Link
- to="https://discord.com/invite/fG2XXEuQX3"
- target="_blank"
- rel="noopener noreferrer"
- >
- <DiscordLogoIcon className="h-7 w-7" />
- </Link>
- <Link
- to="https://github.com/skyvern-ai/skyvern"
- target="_blank"
- rel="noopener noreferrer"
- aria-label="Star skyvern-ai/skyvern on GitHub"
- className="flex items-center gap-1"
- >
- <GitHubLogoIcon className="h-7 w-7" />
- <StarIcon className="h-5 w-5" />
- {typeof starCount === "number" ? (
- <span className="text-sm tabular-nums">
- {starCountFormatter.format(starCount)}
- </span>
- ) : null}
- </Link>
- </div>
</div>
</header>
);
diff --git a/skyvern-frontend/src/routes/root/RootLayout.tsx b/skyvern-frontend/src/routes/root/RootLayout.tsx
index 2f1b726e2..c28410bdd 100644
--- a/skyvern-frontend/src/routes/root/RootLayout.tsx
+++ b/skyvern-frontend/src/routes/root/RootLayout.tsx
@@ -15,8 +15,8 @@ function RootLayout() {
const isEmbedded = embed === "true";
const debugStore = useDebugStore();
- const horizontalPadding = cn("lg:pl-64", {
- "lg:pl-28": collapsed,
+ const horizontalPadding = cn("lg:pl-60", {
+ "lg:pl-16": collapsed,
"lg:pl-4": isEmbedded,
});
diff --git a/skyvern-frontend/src/routes/root/SideNav.test.tsx b/skyvern-frontend/src/routes/root/SideNav.test.tsx
new file mode 100644
index 000000000..563ae27bd
--- /dev/null
+++ b/skyvern-frontend/src/routes/root/SideNav.test.tsx
@@ -0,0 +1,173 @@
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { MemoryRouter } from "react-router-dom";
+import { afterEach, describe, expect, it, vi } from "vitest";
+
+import { SideNav } from "./SideNav";
+import { useSidebarStore } from "@/store/SidebarStore";
+
+const mutate = vi.fn();
+
+vi.mock("@/routes/workflows/hooks/useCreateWorkflowMutation", () => ({
+ useCreateWorkflowMutation: () => ({
+ isPending: false,
+ mutate,
+ }),
+}));
+
+describe("SideNav", () => {
+ function setViewportHeight(height: number) {
+ Object.defineProperty(window, "innerHeight", {
+ configurable: true,
+ writable: true,
+ value: height,
+ });
+ }
+
+ afterEach(() => {
+ cleanup();
+ window.localStorage.clear();
+ useSidebarStore.setState({ collapsed: false });
+ setViewportHeight(1024);
+ mutate.mockClear();
+ });
+
+ it("creates a new agent from the sidebar", () => {
+ render(
+ <MemoryRouter>
+ <SideNav />
+ </MemoryRouter>,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "New Agent" }));
+
+ expect(mutate).toHaveBeenCalledWith(
+ expect.objectContaining({
+ _via: "sidebar",
+ title: "New Agent",
+ workflow_definition: expect.objectContaining({
+ blocks: [],
+ parameters: [],
+ }),
+ }),
+ );
+ });
+
+ it("starts recipes collapsed on short screens", () => {
+ window.localStorage.clear();
+ setViewportHeight(860);
+
+ render(
+ <MemoryRouter>
+ <SideNav />
+ </MemoryRouter>,
+ );
+
+ expect(screen.queryByRole("link", { name: "Healthcare" })).toBeNull();
+ expect(screen.getByRole("button", { name: /Recipes/i })).toBeTruthy();
+ });
+
+ it("starts recipes expanded on tall screens", () => {
+ window.localStorage.clear();
+ setViewportHeight(1024);
+
+ render(
+ <MemoryRouter>
+ <SideNav />
+ </MemoryRouter>,
+ );
+
+ expect(screen.getByRole("link", { name: "Healthcare" })).toBeTruthy();
+ });
+
+ it("does not duplicate expanded group labels inside their children", () => {
+ window.localStorage.setItem(
+ "skyvern-sidebar-open-groups",
+ JSON.stringify({ "/recipes": true, "/credentials": true }),
+ );
+ setViewportHeight(1024);
+
+ render(
+ <MemoryRouter>
+ <SideNav />
+ </MemoryRouter>,
+ );
+
+ expect(screen.getAllByText("Recipes")).toHaveLength(1);
+ expect(screen.getAllByText("Credentials")).toHaveLength(1);
+ });
+
+ it("starts integrations collapsed by default", () => {
+ window.localStorage.clear();
+ setViewportHeight(1024);
+
+ render(
+ <MemoryRouter>
+ <SideNav />
+ </MemoryRouter>,
+ );
+
+ expect(screen.queryByRole("link", { name: "MCP" })).toBeNull();
+ expect(screen.getByRole("button", { name: /Integrations/i })).toBeTruthy();
+ });
+
+ it("preserves a stored recipes state on short screens", () => {
+ window.localStorage.setItem(
+ "skyvern-sidebar-open-groups",
+ JSON.stringify({ Recipes: true }),
+ );
+ setViewportHeight(860);
+
+ render(
+ <MemoryRouter>
+ <SideNav />
+ </MemoryRouter>,
+ );
+
+ expect(screen.getByRole("link", { name: "Healthcare" })).toBeTruthy();
+ });
+
+ it("uses route keys for persisted group state without rewriting storage on mount", () => {
+ const storedState = {
+ "/recipes": true,
+ "/future-section": false,
+ };
+ window.localStorage.setItem(
+ "skyvern-sidebar-open-groups",
+ JSON.stringify(storedState),
+ );
+ setViewportHeight(860);
+
+ render(
+ <MemoryRouter>
+ <SideNav />
+ </MemoryRouter>,
+ );
+
+ expect(screen.getByRole("link", { name: "Healthcare" })).toBeTruthy();
+ expect(
+ JSON.parse(
+ window.localStorage.getItem("skyvern-sidebar-open-groups") ?? "{}",
+ ),
+ ).toEqual(storedState);
+ });
+
+ it("shows clickable parent headers in collapsed popout menus", async () => {
+ useSidebarStore.setState({ collapsed: true });
+
+ render(
+ <MemoryRouter>
+ <SideNav />
+ </MemoryRouter>,
+ );
+
+ fireEvent.pointerDown(screen.getByTitle("Agents"), {
+ button: 0,
+ ctrlKey: false,
+ });
+
+ expect(
+ await screen.findByRole("menuitem", { name: "All Agents" }),
+ ).toBeTruthy();
+ expect(screen.getByRole("menuitem", { name: "Agents" })).toBeTruthy();
+ });
+});
diff --git a/skyvern-frontend/src/routes/root/SideNav.tsx b/skyvern-frontend/src/routes/root/SideNav.tsx
index ef8e2469f..6b679cfd6 100644
--- a/skyvern-frontend/src/routes/root/SideNav.tsx
+++ b/skyvern-frontend/src/routes/root/SideNav.tsx
@@ -1,78 +1,234 @@
-import { CompassIcon } from "@/components/icons/CompassIcon";
-import { NavLinkGroup } from "@/components/NavLinkGroup";
-import { useSidebarStore } from "@/store/SidebarStore";
-import { cn } from "@/util/utils";
import {
+ BookmarkIcon,
CalendarIcon,
+ Component1Icon,
CounterClockwiseClockIcon,
+ DesktopIcon,
+ DotsHorizontalIcon,
GearIcon,
GlobeIcon,
+ IdCardIcon,
LightningBoltIcon,
+ ListBulletIcon,
+ LockClosedIcon,
+ PersonIcon,
+ PlusIcon,
+ ReaderIcon,
+ ReloadIcon,
+ Share1Icon,
} from "@radix-ui/react-icons";
-import { BrowserIcon } from "@/components/icons/BrowserIcon.tsx";
-import { KeyIcon } from "@/components/icons/KeyIcon.tsx";
-function SideNav() {
- const { collapsed } = useSidebarStore();
+import { BagIcon } from "@/components/icons/BagIcon";
+import { CompassIcon } from "@/components/icons/CompassIcon";
+import { DocumentIcon } from "@/components/icons/DocumentIcon";
+import { GovernmentIcon } from "@/components/icons/GovernmentIcon";
+import { HospitalIcon } from "@/components/icons/HospitalIcon";
+import { InboxIcon } from "@/components/icons/InboxIcon";
+import { KeyIcon } from "@/components/icons/KeyIcon";
+import { LogisticsIcon } from "@/components/icons/LogisticsIcon";
+import { ReceiptIcon } from "@/components/icons/ReceiptIcon";
+import { RobotIcon } from "@/components/icons/RobotIcon";
+import {
+ SidebarTreeNav,
+ type SidebarNavItem,
+} from "@/components/SidebarTreeNav";
+import { defaultWorkflowRequest } from "@/routes/workflows/defaultWorkflowRequest";
+import { useCreateWorkflowMutation } from "@/routes/workflows/hooks/useCreateWorkflowMutation";
+import { shouldDefaultRecipesOpen } from "./sidebarDefaults";
- return (
- <nav
- className={cn("space-y-5", {
- "items-center": collapsed,
- })}
- >
- <NavLinkGroup
- title="Build"
- links={[
- {
- label: "Discover",
- to: "/discover",
- icon: <CompassIcon className="size-6" />,
- },
- {
- label: "Workflows",
- to: "/workflows",
- icon: <LightningBoltIcon className="size-6" />,
- },
- {
- label: "Runs",
- to: "/runs",
- icon: <CounterClockwiseClockIcon className="size-6" />,
- },
- {
- label: "Schedules",
- to: "/schedules",
- icon: <CalendarIcon className="size-6" />,
- },
- {
- label: "Browsers",
- to: "/browser-sessions",
- icon: <GlobeIcon className="size-6" />,
- },
- {
- label: "Browser Profiles",
- to: "/browser-profiles",
- icon: <BrowserIcon className="size-6" />,
- },
- ]}
- />
- <NavLinkGroup
- title={"General"}
- links={[
- {
- label: "Settings",
- to: "/settings",
- icon: <GearIcon className="size-6" />,
- },
- {
- label: "Credentials",
- to: "/credentials",
- icon: <KeyIcon className="size-6" />,
+function SideNav() {
+ const createWorkflowMutation = useCreateWorkflowMutation();
+ const navItems: Array<SidebarNavItem> = [
+ {
+ label: "Home",
+ to: "/discover",
+ icon: <CompassIcon className="size-4" />,
+ },
+ {
+ label: "Agents",
+ to: "/workflows",
+ icon: <LightningBoltIcon className="size-4" />,
+ children: [
+ {
+ label: createWorkflowMutation.isPending ? "Creating..." : "New Agent",
+ icon: createWorkflowMutation.isPending ? (
+ <ReloadIcon className="size-3.5 animate-spin" />
+ ) : (
+ <PlusIcon className="size-3.5" />
+ ),
+ onClick: () => {
+ if (createWorkflowMutation.isPending) {
+ return;
+ }
+ createWorkflowMutation.mutate({
+ ...defaultWorkflowRequest,
+ _via: "sidebar",
+ });
},
- ]}
- />
- </nav>
- );
+ disabled: createWorkflowMutation.isPending,
+ },
+ {
+ label: "All Agents",
+ to: "/workflows",
+ icon: <ListBulletIcon className="size-3.5" />,
+ },
+ {
+ label: "Schedules",
+ to: "/schedules",
+ icon: <CalendarIcon className="size-3.5" />,
+ },
+ {
+ label: "Runs",
+ to: "/runs",
+ icon: <CounterClockwiseClockIcon className="size-3.5" />,
+ },
+ ],
+ },
+ {
+ label: "Recipes",
+ to: "/recipes",
+ badge: "Beta",
+ icon: <BookmarkIcon className="size-4" />,
+ defaultOpen: shouldDefaultRecipesOpen,
+ initialVisibleChildren: 3,
+ children: [
+ {
+ label: "Healthcare",
+ to: "/recipes/healthcare",
+ icon: <HospitalIcon className="size-3.5" />,
+ },
+ {
+ label: "Government",
+ to: "/recipes/government",
+ icon: <GovernmentIcon className="size-3.5" />,
+ },
+ {
+ label: "Invoices",
+ to: "/recipes/invoices",
+ icon: <ReceiptIcon className="size-3.5" />,
+ },
+ {
+ label: "Insurance",
+ to: "/recipes/insurance",
+ icon: <DocumentIcon className="size-3.5" />,
+ },
+ {
+ label: "Purchasing",
+ to: "/recipes/purchasing",
+ icon: <BagIcon className="size-3.5" />,
+ },
+ {
+ label: "CRM",
+ to: "/recipes/crm",
+ icon: <Share1Icon className="size-3.5" />,
+ },
+ {
+ label: "Logistics",
+ to: "/recipes/logistics",
+ icon: <LogisticsIcon className="size-3.5" />,
+ },
+ {
+ label: "Contact Forms",
+ to: "/recipes/contact-forms",
+ icon: <ReaderIcon className="size-3.5" />,
+ },
+ {
+ label: "Job Apps",
+ to: "/recipes/job-apps",
+ icon: <InboxIcon className="size-3.5" />,
+ },
+ ],
+ },
+ {
+ label: "Browsers",
+ to: "/browser-sessions",
+ icon: <GlobeIcon className="size-4" />,
+ defaultOpen: false,
+ children: [
+ {
+ label: "Sessions",
+ to: "/browser-sessions",
+ icon: <DesktopIcon className="size-3.5" />,
+ },
+ {
+ label: "Profiles",
+ to: "/browser-profiles",
+ icon: <PersonIcon className="size-3.5" />,
+ },
+ ],
+ },
+ {
+ label: "Credentials",
+ to: "/credentials",
+ icon: <KeyIcon className="size-4" />,
+ defaultOpen: false,
+ children: [
+ {
+ label: "Passwords",
+ to: "/credentials?tab=passwords",
+ icon: <LockClosedIcon className="size-3.5" />,
+ },
+ {
+ label: "Credit Cards",
+ to: "/credentials?tab=creditCards",
+ icon: <IdCardIcon className="size-3.5" />,
+ },
+ {
+ label: "Secrets",
+ to: "/credentials?tab=secrets",
+ icon: <KeyIcon className="size-3.5" />,
+ },
+ {
+ label: "2FA",
+ to: "/credentials?tab=twoFactor",
+ icon: <CounterClockwiseClockIcon className="size-3.5" />,
+ },
+ ],
+ },
+ {
+ label: "Integrations",
+ to: "/integrations",
+ icon: <Share1Icon className="size-4" />,
+ defaultOpen: false,
+ children: [
+ {
+ label: "MCP",
+ to: "https://www.skyvern.com/docs/developers/getting-started/mcp",
+ external: true,
+ icon: <RobotIcon className="size-3.5" />,
+ },
+ {
+ label: "1Password",
+ to: "/integrations?query=1Password",
+ icon: <LockClosedIcon className="size-3.5" />,
+ },
+ {
+ label: "n8n",
+ to: "/integrations?query=n8n",
+ icon: <Component1Icon className="size-3.5" />,
+ },
+ {
+ label: "More",
+ to: "/integrations",
+ icon: <DotsHorizontalIcon className="size-3.5" />,
+ },
+ ],
+ },
+ {
+ label: "Settings",
+ to: "/settings",
+ icon: <GearIcon className="size-4" />,
+ children: [
+ {
+ label: "API Keys",
+ to: "/settings?section=api-keys",
+ icon: <KeyIcon className="size-3.5" />,
+ },
+ ],
+ },
+ ];
+
+ return <SidebarTreeNav items={navItems} />;
}
export { SideNav };
diff --git a/skyvern-frontend/src/routes/root/Sidebar.tsx b/skyvern-frontend/src/routes/root/Sidebar.tsx
index 03fdd5d79..30a07fb64 100644
--- a/skyvern-frontend/src/routes/root/Sidebar.tsx
+++ b/skyvern-frontend/src/routes/root/Sidebar.tsx
@@ -8,10 +8,10 @@ function Sidebar() {
return (
<aside
className={cn(
- "fixed hidden h-screen min-h-screen border-r-2 px-6 lg:block",
+ "fixed hidden h-screen min-h-screen border-r border-neutral-200 bg-neutral-50 dark:border-white/[0.06] dark:bg-background lg:block",
{
- "w-64": !collapsed,
- "w-28": collapsed,
+ "w-60": !collapsed,
+ "w-16": collapsed,
},
)}
>
diff --git a/skyvern-frontend/src/routes/root/SidebarContent.tsx b/skyvern-frontend/src/routes/root/SidebarContent.tsx
index ce8e7d77d..7c147a043 100644
--- a/skyvern-frontend/src/routes/root/SidebarContent.tsx
+++ b/skyvern-frontend/src/routes/root/SidebarContent.tsx
@@ -1,5 +1,6 @@
import { Logo } from "@/components/Logo";
import { LogoMinimized } from "@/components/LogoMinimized";
+import { SidebarResourceLinks } from "@/components/SidebarResourceLinks";
import { ThemeToggle } from "@/components/ThemeSwitch";
import { useSidebarStore } from "@/store/SidebarStore";
import { Link } from "react-router-dom";
@@ -7,6 +8,7 @@ import { SideNav } from "./SideNav";
import { cn } from "@/util/utils";
import { Button } from "@/components/ui/button";
import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons";
+import { useSidebarHidden } from "./useSidebarHidden";
type Props = {
useCollapsedState?: boolean;
@@ -15,25 +17,47 @@ type Props = {
function SidebarContent({ useCollapsedState }: Props) {
const { collapsed: collapsedState, setCollapsed } = useSidebarStore();
const collapsed = useCollapsedState ? collapsedState : false;
+ const sidebarHidden = useSidebarHidden({ hideBrowserSessions: true });
return (
- <div className="flex h-full flex-col overflow-y-auto px-6">
+ <div className="flex h-full flex-col overflow-y-auto">
<Link to={window.location.origin}>
- <div className="flex h-24 items-center justify-center">
+ <div
+ className={cn(
+ "flex h-20 items-center [&>img]:brightness-0 dark:[&>img]:brightness-100",
+ {
+ "w-16 justify-center px-0 [&>img]:size-9 [&>img]:object-contain":
+ collapsed,
+ "justify-start px-5": !collapsed,
+ },
+ )}
+ >
{collapsed ? <LogoMinimized /> : <Logo />}
</div>
</Link>
- <SideNav />
<div
- className={cn("mt-auto flex min-h-16 items-center", {
- "justify-center": collapsed,
- "justify-end gap-2": !collapsed,
+ className={cn("flex-1 overflow-y-auto", {
+ "px-2": collapsed,
+ "px-3": !collapsed,
})}
>
- <ThemeToggle />
+ <SideNav />
+ </div>
+ {!sidebarHidden ? <SidebarResourceLinks collapsed={collapsed} /> : null}
+ <div
+ className={cn(
+ "mt-auto flex min-h-14 items-center border-t border-neutral-200 dark:border-white/[0.06]",
+ {
+ "justify-center": collapsed,
+ "justify-end gap-2 px-3": !collapsed,
+ },
+ )}
+ >
+ {!collapsed ? <ThemeToggle /> : null}
<Button
size="icon"
variant="ghost"
+ className="size-8 text-neutral-500 hover:bg-neutral-200/70 hover:text-neutral-950 dark:hover:bg-white/[0.04] dark:hover:text-neutral-200"
onClick={() => {
setCollapsed(!collapsed);
}}
diff --git a/skyvern-frontend/src/routes/root/sidebarDefaults.ts b/skyvern-frontend/src/routes/root/sidebarDefaults.ts
new file mode 100644
index 000000000..f68da2e29
--- /dev/null
+++ b/skyvern-frontend/src/routes/root/sidebarDefaults.ts
@@ -0,0 +1,16 @@
+// Below this height, the expanded recipe preview pushes Settings out of the
+// sidebar viewport on a fresh session.
+const SIDEBAR_RECIPES_DEFAULT_OPEN_MIN_HEIGHT = 920;
+
+function shouldDefaultRecipesOpen() {
+ try {
+ if (typeof window === "undefined") {
+ return true;
+ }
+ return window.innerHeight >= SIDEBAR_RECIPES_DEFAULT_OPEN_MIN_HEIGHT;
+ } catch {
+ return true;
+ }
+}
+
+export { shouldDefaultRecipesOpen };
diff --git a/skyvern-frontend/src/routes/root/useSidebarHidden.ts b/skyvern-frontend/src/routes/root/useSidebarHidden.ts
new file mode 100644
index 000000000..9b86e3db9
--- /dev/null
+++ b/skyvern-frontend/src/routes/root/useSidebarHidden.ts
@@ -0,0 +1,36 @@
+import { useMatch, useSearchParams } from "react-router-dom";
+
+type Options = {
+ hideBrowserSessions?: boolean;
+};
+
+function useSidebarHidden({ hideBrowserSessions = false }: Options = {}) {
+ const [searchParams] = useSearchParams();
+ const embed = searchParams.get("embed");
+ const workflowEditMatch = useMatch("/workflows/:workflowPermanentId/edit");
+ const workflowBuildMatch = useMatch("/workflows/:workflowPermanentId/build");
+ const workflowBlockBuildMatch = useMatch(
+ "/workflows/:workflowPermanentId/:workflowRunId/:blockLabel/build",
+ );
+ const workflowDebugMatch = useMatch("/workflows/:workflowPermanentId/debug");
+ const workflowBlockDebugMatch = useMatch(
+ "/workflows/:workflowPermanentId/:workflowRunId/:blockLabel/debug",
+ );
+ const browserSessionMatch = useMatch("/browser-session/:browserSessionId");
+ const nestedBrowserSessionMatch = useMatch(
+ "/browser-session/:browserSessionId/*",
+ );
+
+ return Boolean(
+ workflowEditMatch ||
+ workflowBuildMatch ||
+ workflowBlockBuildMatch ||
+ workflowDebugMatch ||
+ workflowBlockDebugMatch ||
+ (hideBrowserSessions &&
+ (browserSessionMatch || nestedBrowserSessionMatch)) ||
+ embed === "true",
+ );
+}
+
+export { useSidebarHidden };
diff --git a/skyvern-frontend/src/routes/schedules/CreateOrgScheduleDialog.tsx b/skyvern-frontend/src/routes/schedules/CreateOrgScheduleDialog.tsx
index 5cd2ef1f4..29b4548b7 100644
--- a/skyvern-frontend/src/routes/schedules/CreateOrgScheduleDialog.tsx
+++ b/skyvern-frontend/src/routes/schedules/CreateOrgScheduleDialog.tsx
@@ -192,14 +192,14 @@ function CreateOrgScheduleDialog({ open, onOpenChange }: Readonly<Props>) {
<DialogHeader>
<DialogTitle>Create Schedule</DialogTitle>
<DialogDescription>
- Choose a workflow and configure when it should run automatically.
+ Choose an agent and configure when it should run automatically.
</DialogDescription>
</DialogHeader>
<div className="space-y-6 py-4">
- {/* Workflow Picker */}
+ {/* Agent Picker */}
<div className="space-y-2">
- <Label>Workflow</Label>
+ <Label>Agent</Label>
{selectedWorkflow ? (
<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>
@@ -218,7 +218,7 @@ function CreateOrgScheduleDialog({ open, onOpenChange }: Readonly<Props>) {
value={workflowSearch}
onChange={(e) => setWorkflowSearch(e.target.value)}
onFocus={() => setWorkflowPickerOpen(true)}
- placeholder="Search workflows..."
+ placeholder="Search agents..."
/>
{workflowPickerOpen && (
<div className="max-h-40 overflow-y-auto rounded-md border border-slate-700 bg-slate-elevation3">
@@ -237,7 +237,7 @@ function CreateOrgScheduleDialog({ open, onOpenChange }: Readonly<Props>) {
))}
{workflows.length === 0 && (
<div className="px-3 py-2 text-sm text-slate-500">
- No workflows found
+ No agents found
</div>
)}
</div>
diff --git a/skyvern-frontend/src/routes/schedules/ScheduleDetailPage.tsx b/skyvern-frontend/src/routes/schedules/ScheduleDetailPage.tsx
index 9037e5682..c243e7988 100644
--- a/skyvern-frontend/src/routes/schedules/ScheduleDetailPage.tsx
+++ b/skyvern-frontend/src/routes/schedules/ScheduleDetailPage.tsx
@@ -276,7 +276,7 @@ function ScheduleDetailPage() {
onClick={startEditing}
disabled={!workflowLoaded}
title={
- workflowLoaded ? undefined : "Loading workflow definition..."
+ workflowLoaded ? undefined : "Loading agent definition..."
}
>
<Pencil1Icon className="size-3" />
@@ -496,9 +496,7 @@ function ScheduleDetailPage() {
{hasUserFacingParameters(workflowParameters) && (
<div className="rounded-lg border border-slate-700 p-4">
- <h3 className="mb-4 text-sm text-slate-400">
- Workflow Parameters
- </h3>
+ <h3 className="mb-4 text-sm text-slate-400">Agent Parameters</h3>
<div className="space-y-2">
{workflowParameters
.filter(isScheduleParameter)
diff --git a/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx b/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx
index ca92c87b6..9b910ef87 100644
--- a/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx
+++ b/skyvern-frontend/src/routes/schedules/SchedulesPage.tsx
@@ -372,7 +372,7 @@ function SchedulesPage() {
<TableSearchInput
value={search}
onChange={setSearch}
- placeholder="Search by workflow or schedule name..."
+ placeholder="Search by agent or schedule name..."
className="w-64"
/>
<DropdownMenu modal={false}>
@@ -441,7 +441,7 @@ function SchedulesPage() {
</TableHead>
)}
<TableHead className={showCheckbox ? "w-[28%]" : "w-[31%]"}>
- Workflow
+ Agent
</TableHead>
<TableHead className="w-[20%]">Name</TableHead>
<TableHead className="w-[20%]">Schedule</TableHead>
diff --git a/skyvern-frontend/src/routes/streaming/StreamDiagnostics.tsx b/skyvern-frontend/src/routes/streaming/StreamDiagnostics.tsx
index e496be994..86e2fcdfc 100644
--- a/skyvern-frontend/src/routes/streaming/StreamDiagnostics.tsx
+++ b/skyvern-frontend/src/routes/streaming/StreamDiagnostics.tsx
@@ -17,22 +17,26 @@ const STREAM_MODE_COPY: Record<
cdp: {
label: "Local stream",
title: "Local browser streaming through the backend",
- className: "border-cyan-500/40 bg-cyan-500/10 text-cyan-200",
+ className:
+ "border-cyan-600/30 bg-cyan-600/10 text-cyan-700 dark:border-cyan-500/40 dark:bg-cyan-500/10 dark:text-cyan-200",
},
vnc: {
label: "VNC",
title: "VNC browser streaming",
- className: "border-emerald-500/40 bg-emerald-500/10 text-emerald-200",
+ className:
+ "border-emerald-600/30 bg-emerald-600/10 text-emerald-700 dark:border-emerald-500/40 dark:bg-emerald-500/10 dark:text-emerald-200",
},
fallback: {
label: "VNC -> Local",
title: "VNC disconnected; using local browser streaming fallback",
- className: "border-amber-500/40 bg-amber-500/10 text-amber-200",
+ className:
+ "border-amber-600/30 bg-amber-600/10 text-amber-700 dark:border-amber-500/40 dark:bg-amber-500/10 dark:text-amber-200",
},
unavailable: {
label: "Unavailable",
title: "Browser streaming is unavailable for this session",
- className: "border-slate-500/40 bg-slate-500/10 text-slate-300",
+ className:
+ "border-neutral-400/40 bg-neutral-500/10 text-neutral-600 dark:border-slate-500/40 dark:bg-slate-500/10 dark:text-slate-300",
},
};
@@ -70,20 +74,24 @@ function StreamStatusPanel({
return (
<div
className={cn(
- "flex h-full w-full items-center justify-center rounded-md bg-slate-900 p-6 text-slate-300",
+ "flex h-full w-full items-center justify-center rounded-md bg-white p-6 text-neutral-600 dark:bg-slate-900 dark: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-slate-100">
- <InfoCircledIcon className="h-4 w-4 flex-shrink-0 text-slate-400" />
+ <div className="flex items-center gap-2 font-medium text-neutral-900 dark:text-slate-100">
+ <InfoCircledIcon className="h-4 w-4 flex-shrink-0 text-neutral-500 dark:text-slate-400" />
<span>{diagnostic.title}</span>
</div>
{diagnostic.detail && (
- <div className="text-slate-400">{diagnostic.detail}</div>
+ <div className="text-neutral-600 dark:text-slate-400">
+ {diagnostic.detail}
+ </div>
)}
{diagnostic.hint && (
- <div className="text-xs text-slate-500">{diagnostic.hint}</div>
+ <div className="text-xs text-neutral-500 dark:text-slate-500">
+ {diagnostic.hint}
+ </div>
)}
{children}
</div>
diff --git a/skyvern-frontend/src/routes/tasks/create/PromptBox.test.tsx b/skyvern-frontend/src/routes/tasks/create/PromptBox.test.tsx
index f60035a1e..977c6ac96 100644
--- a/skyvern-frontend/src/routes/tasks/create/PromptBox.test.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/PromptBox.test.tsx
@@ -10,6 +10,7 @@ import type {
ButtonHTMLAttributes,
InputHTMLAttributes,
ReactNode,
+ SVGProps,
TextareaHTMLAttributes,
} from "react";
import { afterEach, describe, expect, test, vi } from "vitest";
@@ -112,9 +113,7 @@ vi.mock("@radix-ui/react-icons", () => ({
GearIcon: () => null,
Pencil1Icon: () => null,
ReloadIcon: () => null,
- PaperPlaneIcon: (props: ButtonHTMLAttributes<HTMLButtonElement>) => (
- <button type="button" aria-label="submit-prompt" {...props} />
- ),
+ PaperPlaneIcon: (props: SVGProps<SVGSVGElement>) => <svg {...props} />,
}));
vi.mock("@/components/icons/CartIcon", () => ({ CartIcon: () => null }));
diff --git a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx
index c77288b2f..ba06f5690 100644
--- a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx
@@ -112,7 +112,7 @@ const HANDOFF_TITLE_MAX_LEN = 80;
function deriveHandoffTitle(prompt: string): string {
const collapsed = prompt.replace(/\s+/g, " ").trim();
- if (!collapsed) return "New Workflow";
+ if (!collapsed) return "New Agent";
if (collapsed.length <= HANDOFF_TITLE_MAX_LEN) return collapsed;
return `${collapsed.slice(0, HANDOFF_TITLE_MAX_LEN - 1).trimEnd()}…`;
}
@@ -219,8 +219,8 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
onSuccess: ({ data: workflow }) => {
toast({
variant: "success",
- title: "Workflow Created",
- description: `Workflow created successfully.`,
+ title: "Agent Created",
+ description: `Agent created successfully.`,
});
queryClient.invalidateQueries({
@@ -238,7 +238,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
onError: (error: AxiosError) => {
toast({
variant: "destructive",
- title: "Error creating workflow from prompt",
+ title: "Error creating agent from prompt",
description: error.message,
});
},
@@ -280,7 +280,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
onError: (error: AxiosError) => {
toast({
variant: "destructive",
- title: "Error creating workflow",
+ title: "Error creating agent",
description: error.message,
});
},
@@ -319,14 +319,14 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
<div className="flex w-full max-w-xl flex-col">
<div
className={cn(
- "flex w-full items-center gap-2 rounded-xl bg-slate-700 py-2 pr-4",
+ "flex w-full items-center gap-2 rounded-xl border border-input bg-background py-2 pr-3 text-muted-foreground shadow-sm transition-colors focus-within:border-foreground/20 focus-within:ring-2 focus-within:ring-ring/10",
{
"pointer-events-none opacity-50": promptImprovalIsPending,
},
)}
>
<AutoResizingTextarea
- className="min-h-0 resize-none rounded-xl border-transparent px-4 hover:border-transparent focus-visible:ring-0"
+ className="min-h-0 resize-none border-0 bg-transparent px-4 py-0 leading-5 text-foreground shadow-none placeholder:text-muted-foreground hover:border-0 focus-visible:ring-0"
value={prompt}
onChange={(e) => setPrompt(e.target.value)}
placeholder="Enter your prompt..."
@@ -345,40 +345,44 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
useCase="new_workflow"
/>
{!enableCopilotHandoff ? (
- <div className="flex items-center">
- <GearIcon
- className="size-6 cursor-pointer"
- onClick={() => {
- setShowAdvancedSettings((value) => !value);
- }}
- />
- </div>
+ <button
+ type="button"
+ aria-label="Advanced settings"
+ className="flex items-center justify-center rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
+ onClick={() => {
+ setShowAdvancedSettings((value) => !value);
+ }}
+ >
+ <GearIcon aria-hidden="true" className="size-5 shrink-0" />
+ </button>
) : null}
- <div
- className={cn("flex items-center", {
- "pointer-events-none opacity-20": !prompt.trim(),
- })}
+ <button
+ type="button"
+ aria-label="submit-prompt"
+ disabled={!prompt.trim() || isSubmitting}
+ className="flex items-center justify-center rounded-lg bg-indigo-600 p-2 text-white shadow-sm shadow-indigo-950/15 transition-colors hover:bg-indigo-500 disabled:pointer-events-none disabled:bg-indigo-600/45 disabled:text-white/65 disabled:shadow-none dark:bg-indigo-500 dark:hover:bg-indigo-400 dark:disabled:bg-indigo-500/35"
+ onClick={() => {
+ submitPrompt({ prompt });
+ }}
>
{isSubmitting ? (
- <ReloadIcon className="size-6 animate-spin" />
+ <ReloadIcon className="size-4 animate-spin" />
) : (
<PaperPlaneIcon
- className="size-6 cursor-pointer"
- onClick={() => {
- submitPrompt({ prompt });
- }}
+ aria-hidden="true"
+ className="size-4 shrink-0"
/>
)}
- </div>
+ </button>
</div>
{showAdvancedSettings ? (
<div className="rounded-b-lg px-2">
- <div className="space-y-4 rounded-b-xl bg-slate-900 p-4">
+ <div className="space-y-4 rounded-b-xl border border-t-0 border-input bg-background p-4 text-foreground shadow-sm">
<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-slate-400">
+ <div className="text-xs text-muted-foreground">
The URL of a webhook endpoint to send the extracted
information
</div>
@@ -411,7 +415,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-slate-400">
+ <div className="text-xs text-muted-foreground">
Route Skyvern through one of our available proxies.
</div>
</div>
@@ -423,7 +427,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-slate-400">
+ <div className="text-xs text-muted-foreground">
The ID of a persistent browser session
</div>
</div>
@@ -438,7 +442,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-slate-400">
+ <div className="text-xs text-muted-foreground">
The address of the Browser server to use for the task
run.
</div>
@@ -454,7 +458,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-slate-400">
+ <div className="text-xs text-muted-foreground">
The identifier for a 2FA code for this task.
</div>
</div>
@@ -468,7 +472,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-slate-400">
+ <div className="text-xs text-muted-foreground">
Specify some self defined HTTP requests headers in Dict
format
</div>
@@ -493,7 +497,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-slate-400">
+ <div className="text-xs text-muted-foreground">
Whether to generate scripts for this task run (on
success).
</div>
@@ -507,10 +511,10 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {
</div>
<div className="flex gap-16">
<div className="w-48 shrink-0">
- <div className="text-sm">Publish Workflow</div>
- <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 className="text-sm">Publish Agent</div>
+ <div className="text-xs text-muted-foreground">
+ Whether to create an agent alongside this task run. Will
+ also be created if "Generate Scripts" is true.
</div>
</div>
<Switch
@@ -523,7 +527,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-slate-400">
+ <div className="text-xs text-muted-foreground">
The maximum number of steps to take for this task.
</div>
</div>
@@ -538,7 +542,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-slate-400">
+ <div className="text-xs text-muted-foreground">
Specify the output data schema in JSON format
</div>
</div>
@@ -556,7 +560,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-slate-400">
+ <div className="text-xs text-muted-foreground">
{`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>
diff --git a/skyvern-frontend/src/routes/tasks/detail/ActionCardCompact.tsx b/skyvern-frontend/src/routes/tasks/detail/ActionCardCompact.tsx
index 2178b7491..053d000f3 100644
--- a/skyvern-frontend/src/routes/tasks/detail/ActionCardCompact.tsx
+++ b/skyvern-frontend/src/routes/tasks/detail/ActionCardCompact.tsx
@@ -88,8 +88,9 @@ function ActionCardCompact({
className={cn(
"group rounded-md bg-slate-elevation4 ring-1 ring-transparent transition-all duration-200",
{
- "ring-1 ring-white/40 hover:ring-white/40": active,
- "hover:ring-white/25": !active,
+ "ring-1 ring-neutral-500/45 hover:ring-neutral-500/45 dark:ring-white/40 dark:hover:ring-white/40":
+ active,
+ "hover:ring-neutral-400/40 dark:hover:ring-white/25": !active,
},
cardClassName,
)}
@@ -98,7 +99,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-white/40"
+ 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-neutral-500/45 dark:focus-visible:ring-white/40"
>
<span
aria-hidden="true"
@@ -107,18 +108,23 @@ function ActionCardCompact({
"bg-destructive": !success,
})}
/>
- <span className="shrink-0 text-xs tabular-nums text-slate-500">
+ <span className="shrink-0 text-xs tabular-nums text-neutral-500 dark:text-slate-500">
#{index}
</span>
{icon && (
- <span className="shrink-0 text-slate-300" aria-hidden="true">
+ <span
+ className="shrink-0 text-neutral-600 dark:text-slate-300"
+ aria-hidden="true"
+ >
{icon}
</span>
)}
- <span className="shrink-0 text-xs text-slate-300">{label}</span>
+ <span className="shrink-0 text-xs text-neutral-700 dark:text-slate-300">
+ {label}
+ </span>
<span
className={cn(
- "min-w-0 flex-1 truncate text-xs text-slate-200",
+ "min-w-0 flex-1 truncate text-xs text-neutral-800 dark:text-slate-200",
reasoningPreview.length === 0 && "invisible",
)}
>
@@ -144,7 +150,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-slate-400 outline-none hover:bg-slate-elevation3 hover:text-slate-200 focus-visible:ring-1 focus-visible:ring-white/40"
+ className="mr-2 shrink-0 rounded p-0.5 text-neutral-500 outline-none hover:bg-neutral-200 hover:text-neutral-900 focus-visible:ring-1 focus-visible:ring-neutral-500/45 dark:text-slate-400 dark:hover:bg-slate-elevation3 dark:hover:text-slate-200 dark:focus-visible:ring-white/40"
>
{expanded ? (
<ChevronDownIcon className="h-4 w-4" />
@@ -153,33 +159,33 @@ function ActionCardCompact({
)}
</button>
</div>
- <CollapsibleContent className="space-y-2 px-3 pb-3 pt-1 text-xs text-slate-400">
+ <CollapsibleContent className="space-y-2 px-3 pb-3 pt-1 text-xs text-neutral-600 dark:text-slate-400">
{action.reasoning && (
- <div className="rounded bg-slate-elevation5 p-2">
- <div className="mb-1 text-[10px] uppercase tracking-wide text-slate-500">
+ <div className="rounded bg-neutral-200/80 p-2 dark:bg-slate-elevation5">
+ <div className="mb-1 text-[10px] uppercase tracking-wide text-neutral-500 dark:text-slate-500">
Reasoning
</div>
- <div className="whitespace-pre-wrap break-words text-slate-300">
+ <div className="whitespace-pre-wrap break-words text-neutral-700 dark: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-slate-500">
+ <div className="rounded bg-neutral-200/80 p-2 dark:bg-slate-elevation5">
+ <div className="mb-1 text-[10px] uppercase tracking-wide text-neutral-500 dark:text-slate-500">
Input
</div>
- <div className="whitespace-pre-wrap break-words font-mono text-slate-300">
+ <div className="whitespace-pre-wrap break-words font-mono text-neutral-700 dark:text-slate-300">
{inputValue}
</div>
</div>
)}
{confidencePct != null && (
<div className="flex items-center gap-2">
- <span className="text-[10px] uppercase tracking-wide text-slate-500">
+ <span className="text-[10px] uppercase tracking-wide text-neutral-500 dark:text-slate-500">
Confidence
</span>
- <span className="tabular-nums text-slate-300">
+ <span className="tabular-nums text-neutral-700 dark:text-slate-300">
{confidencePct}%
</span>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/ImportWorkflowButton.tsx b/skyvern-frontend/src/routes/workflows/ImportWorkflowButton.tsx
index 9bc5f8052..785348a2b 100644
--- a/skyvern-frontend/src/routes/workflows/ImportWorkflowButton.tsx
+++ b/skyvern-frontend/src/routes/workflows/ImportWorkflowButton.tsx
@@ -116,7 +116,7 @@ function ImportWorkflowButton({
toast({
variant: "destructive",
title: `Error importing ${fileName}`,
- description: getErrorMessage(error, "Failed to import workflow"),
+ description: getErrorMessage(error, "Failed to import agent"),
});
return false;
}
@@ -194,12 +194,12 @@ function ImportWorkflowButton({
variant: "success",
title:
successCount === 1
- ? "Workflow imported"
- : `${successCount} workflows imported`,
+ ? "Agent imported"
+ : `${successCount} agents imported`,
description:
successCount === files.length
- ? "Successfully imported all workflows"
- : `${successCount} of ${files.length} workflows imported successfully`,
+ ? "Successfully imported all agents"
+ : `${successCount} of ${files.length} agents imported successfully`,
});
}
};
@@ -277,7 +277,7 @@ function ImportWorkflowButton({
? "Could not verify duplicate"
: `Could not verify ${checkFailed.length} duplicates`,
description:
- "Network error checking if these workflows already exist. Review before importing.",
+ "Network error checking if these agents already exist. Review before importing.",
});
}
@@ -371,7 +371,7 @@ function ImportWorkflowButton({
</Label>
</TooltipTrigger>
<TooltipContent>
- Import one or more workflows from YAML, JSON, or PDF files
+ Import one or more agents from YAML, JSON, or PDF files
</TooltipContent>
</Tooltip>
</TooltipProvider>
@@ -387,8 +387,8 @@ function ImportWorkflowButton({
<DialogHeader>
<DialogTitle>
{pendingDuplicates.length === 1
- ? "Duplicate workflow detected"
- : "Duplicate workflows detected"}
+ ? "Duplicate agent detected"
+ : "Duplicate agents detected"}
</DialogTitle>
<DialogDescription asChild>
<div className="space-y-3">
@@ -411,7 +411,7 @@ function ImportWorkflowButton({
</div>
<div className="text-xs text-muted-foreground">
{dup.duplicateReason?.kind === "existing" &&
- "A workflow with this title already exists"}
+ "An agent with this title already exists"}
{dup.duplicateReason?.kind === "intra-batch" &&
"Another selected file has the same title"}
{dup.duplicateReason?.kind === "check-failed" &&
diff --git a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx
index e01f77554..9950122cd 100644
--- a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx
+++ b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx
@@ -378,8 +378,8 @@ function RunWorkflowForm({
onSuccess: (response) => {
toast({
variant: "success",
- title: "Workflow run started",
- description: "The workflow run has been started successfully",
+ title: "Agent run started",
+ description: "The agent run has been started successfully",
});
queryClient.invalidateQueries({
queryKey: ["workflowRuns"],
@@ -397,7 +397,7 @@ function RunWorkflowForm({
const detail = (error.response?.data as { detail?: string })?.detail;
toast({
variant: "destructive",
- title: "Failed to start workflow run",
+ title: "Failed to start agent run",
description: detail ?? error.message,
});
},
@@ -558,7 +558,7 @@ function RunWorkflowForm({
};
if (!workflowPermanentId || !workflow) {
- return <div>Invalid workflow</div>;
+ return <div>Invalid agent</div>;
}
return (
@@ -574,7 +574,7 @@ function RunWorkflowForm({
</h1>
<h2 className="text-lg text-slate-400">
Fill the placeholder values that you have linked throughout your
- workflow.
+ agent.
</h2>
</div>
<div className="flex shrink-0 gap-2">
@@ -618,7 +618,7 @@ function RunWorkflowForm({
{!runWorkflowMutation.isPending && (
<PlayIcon className="mr-2 h-4 w-4" />
)}
- Run workflow
+ Run agent
</Button>
</div>
</header>
@@ -626,7 +626,7 @@ function RunWorkflowForm({
{hasLoginBlockValidationError && (
<Alert variant="destructive">
<ExclamationTriangleIcon className="h-4 w-4" />
- <AlertTitle>Cannot run workflow</AlertTitle>
+ <AlertTitle>Cannot run agent</AlertTitle>
<AlertDescription>
<p>
The following login block(s) need a credential selected before
@@ -790,7 +790,7 @@ function RunWorkflowForm({
);
})}
{workflowParameters.length === 0 && (
- <div>This workflow doesn't have any input parameters</div>
+ <div>This agent doesn't have any input parameters</div>
)}
</div>
@@ -828,7 +828,7 @@ function RunWorkflowForm({
</div>
<h2 className="text-sm text-slate-400">
The URL of a webhook endpoint to send the details of
- the workflow result.
+ the agent result.
</h2>
</div>
</FormLabel>
@@ -914,17 +914,16 @@ function RunWorkflowForm({
const descriptions: Record<string, ReactNode> = {
agent: hasCode ? (
<span>
- Run this workflow with AI. (Even though it has generated
- code.)
+ Run this agent with AI. (Even though it has generated code.)
</span>
) : (
- <span>Run this workflow with AI.</span>
+ <span>Run this agent with AI.</span>
),
code: hasCode ? (
- <span>Run this workflow with generated code.</span>
+ <span>Run this agent with generated code.</span>
) : (
<span>
- Run this workflow with generated code (after it is first
+ Run this agent with generated code (after it is first
generated).
</span>
),
@@ -1096,7 +1095,7 @@ function RunWorkflowForm({
</div>
<h2 className="text-sm text-slate-400">
The address of the Browser server to use for
- the workflow run.
+ the agent run.
</h2>
</div>
</FormLabel>
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowActions.tsx b/skyvern-frontend/src/routes/workflows/WorkflowActions.tsx
index 522285c75..ca628cbd9 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowActions.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowActions.tsx
@@ -97,7 +97,7 @@ function WorkflowActions({ workflow, onSuccessfullyDeleted }: Props) {
onError: (error: AxiosError) => {
toast({
variant: "destructive",
- title: "Failed to delete workflow",
+ title: "Failed to delete agent",
description: error.message,
});
},
@@ -166,7 +166,7 @@ function WorkflowActions({ workflow, onSuccessfullyDeleted }: Props) {
className="p-2"
>
<CopyIcon className="mr-2 h-4 w-4" />
- Clone Workflow
+ Clone Agent
</DropdownMenuItem>
<DropdownMenuItem
onSelect={() => {
@@ -215,7 +215,7 @@ function WorkflowActions({ workflow, onSuccessfullyDeleted }: Props) {
<DialogTrigger>
<DropdownMenuItem className="p-2">
<GarbageIcon className="mr-2 h-4 w-4 text-destructive" />
- Delete Workflow
+ Delete Agent
</DropdownMenuItem>
</DialogTrigger>
</DropdownMenuContent>
@@ -224,7 +224,7 @@ function WorkflowActions({ workflow, onSuccessfullyDeleted }: Props) {
<DialogHeader>
<DialogTitle>Are you sure?</DialogTitle>
<DialogDescription>
- The workflow{" "}
+ The agent{" "}
<span className="font-semibold text-primary">{workflow.title}</span>{" "}
will be deleted.
</DialogDescription>
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx b/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx
index 6fa1120a3..1a26c407e 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowPage.tsx
@@ -230,7 +230,7 @@ function WorkflowPage() {
</TableRow>
) : workflowRuns?.length === 0 ? (
<TableRow>
- <TableCell colSpan={5}>No workflow runs found</TableCell>
+ <TableCell colSpan={5}>No agent runs found</TableCell>
</TableRow>
) : (
workflowRuns?.map((workflowRun) => {
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
index 110b879c9..80f621e53 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
@@ -141,8 +141,8 @@ function WorkflowRun() {
});
toast({
variant: "success",
- title: "Workflow Canceled",
- description: "The workflow has been successfully canceled.",
+ title: "Agent Canceled",
+ description: "The agent has been successfully canceled.",
});
},
onError: (error) => {
@@ -375,12 +375,14 @@ function WorkflowRun() {
/>
) : null}
</div>
- <h2 className="text-2xl text-slate-400">{workflowRunId}</h2>
+ <h2 className="text-2xl text-neutral-600 dark: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-slate-400">
+ <div className="flex flex-wrap gap-x-4 gap-y-1 text-sm text-neutral-600 dark:text-slate-400">
{workflowRun.started_at && (
<span title={basicTimeFormat(workflowRun.started_at)}>
Started: {basicLocalTimeFormat(workflowRun.started_at)}
@@ -393,7 +395,7 @@ function WorkflowRun() {
)}
{isWorkflowDeleted && (
<span title={basicTimeFormat(workflow!.deleted_at!)}>
- Workflow deleted on{" "}
+ Agent deleted on{" "}
{basicLocalTimeFormat(workflow!.deleted_at!)}
</span>
)}
@@ -401,7 +403,7 @@ function WorkflowRun() {
)}
{workflowRun?.browser_session_id && (
<Link
- className="font-mono text-sm text-slate-400 hover:text-slate-200 hover:underline hover:underline-offset-2"
+ className="font-mono text-sm text-neutral-600 hover:text-neutral-950 hover:underline hover:underline-offset-2 dark:text-slate-400 dark:hover:text-slate-200"
to={`/browser-session/${workflowRun.browser_session_id}/stream`}
>
Browser Session: {workflowRun.browser_session_id}
@@ -409,7 +411,7 @@ function WorkflowRun() {
)}
{workflowRun?.browser_profile_id && (
<Link
- className="font-mono text-sm text-slate-400 hover:text-slate-200 hover:underline hover:underline-offset-2"
+ className="font-mono text-sm text-neutral-600 hover:text-neutral-950 hover:underline hover:underline-offset-2 dark:text-slate-400 dark:hover:text-slate-200"
to={`/browser-profiles/${workflowRun.browser_profile_id}`}
>
Browser Profile: {workflowRun.browser_profile_id}
@@ -481,7 +483,7 @@ function WorkflowRun() {
<DialogHeader>
<DialogTitle>Are you sure?</DialogTitle>
<DialogDescription>
- Are you sure you want to cancel this workflow run?
+ Are you sure you want to cancel this agent run?
</DialogDescription>
</DialogHeader>
<DialogFooter>
@@ -498,7 +500,7 @@ function WorkflowRun() {
{cancelWorkflowMutation.isPending && (
<ReloadIcon className="mr-2 h-4 w-4 animate-spin" />
)}
- Cancel Workflow Run
+ Cancel Agent Run
</Button>
</DialogFooter>
</DialogContent>
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx
index 54750b164..ba0cf7404 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx
@@ -66,7 +66,7 @@ function WorkflowRunParameters() {
<h1 className="text-3xl">Parameters</h1>
<h2 className="text-lg text-slate-400">
Fill the placeholder values that you have linked throughout your
- workflow.
+ agent.
</h2>
</header>
<Skeleton className="h-96 w-full" />
@@ -75,7 +75,7 @@ function WorkflowRunParameters() {
}
if (!workflow || !workflowParameters || !initialValues) {
- return <div>Workflow not found</div>;
+ return <div>Agent not found</div>;
}
return (
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowScriptsPage.tsx b/skyvern-frontend/src/routes/workflows/WorkflowScriptsPage.tsx
index b93acf33e..8fe76ce94 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowScriptsPage.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowScriptsPage.tsx
@@ -220,8 +220,8 @@ function ClearAllScriptsButton({
<DialogHeader>
<DialogTitle>Clear all scripts?</DialogTitle>
<DialogDescription>
- This will delete all cached scripts for this workflow. Scripts will
- be regenerated on the next run. This action cannot be undone.
+ This will delete all cached scripts for this agent. Scripts will be
+ regenerated on the next run. This action cannot be undone.
</DialogDescription>
</DialogHeader>
<DialogFooter>
@@ -290,8 +290,8 @@ function ScriptsTableRows({
<div className="flex flex-col items-center gap-2 py-12 text-center">
<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.
+ No scripts yet. Scripts are created automatically when this agent
+ runs with Code mode enabled.
</p>
</div>
</TableCell>
diff --git a/skyvern-frontend/src/routes/workflows/Workflows.tsx b/skyvern-frontend/src/routes/workflows/Workflows.tsx
index b1c867179..2e4ab5c68 100644
--- a/skyvern-frontend/src/routes/workflows/Workflows.tsx
+++ b/skyvern-frontend/src/routes/workflows/Workflows.tsx
@@ -60,7 +60,6 @@ import { useActiveImportsPolling } from "./hooks/useActiveImportsPolling";
import { ImportWorkflowButton } from "./ImportWorkflowButton";
import { convert } from "./editor/workflowEditorUtils";
import { WorkflowApiResponse } from "./types/workflowTypes";
-import { WorkflowCreateYAMLRequest } from "./types/workflowYamlTypes";
import { WorkflowActions } from "./WorkflowActions";
import { WorkflowTemplates } from "../discover/WorkflowTemplates";
import { Skeleton } from "@/components/ui/skeleton";
@@ -69,6 +68,7 @@ import { ParameterDisplayInline } from "./components/ParameterDisplayInline";
import { useKeywordSearch } from "./hooks/useKeywordSearch";
import { useParameterExpansion } from "./hooks/useParameterExpansion";
import { Folder } from "./types/folderTypes";
+import { defaultWorkflowRequest } from "./defaultWorkflowRequest";
// Utility function to create URL-safe folder slugs from folder names
function slugifyFolderName(name: string): string {
@@ -108,19 +108,6 @@ function getUniqueSlugForFolder(folder: Folder, allFolders: Folder[]): string {
// First folder (oldest) gets the base slug, others get numbered suffixes
return index === 0 ? baseSlug : `${baseSlug}-${index + 1}`;
}
-const emptyWorkflowRequest: WorkflowCreateYAMLRequest = {
- title: "New Workflow",
- description: "",
- ai_fallback: true,
- code_version: 2,
- run_with: "agent",
- workflow_definition: {
- version: 2,
- blocks: [],
- parameters: [],
- },
-};
-
function Workflows() {
const credentialGetter = useCredentialGetter();
const navigate = useNavigate();
@@ -373,7 +360,7 @@ function Workflows() {
setParamPatch({ page: String(page + 1) });
}
- // Show importing workflows from polling hook (only on page 1)
+ // Show importing agents from polling hook (only on page 1)
const displayWorkflows = useMemo(() => {
const importingOnly = activeImports.filter(
(imp) => imp.status === "importing",
@@ -391,10 +378,10 @@ function Workflows() {
<div className="space-y-5">
<div className="flex items-center gap-2">
<LightningBoltIcon className="size-6" />
- <h1 className="text-2xl">Workflows</h1>
+ <h1 className="text-2xl">Agents</h1>
</div>
- <p className="text-slate-300">
- Create your own complex workflows by connecting web agents together.
+ <p className="text-sm leading-6 text-muted-foreground">
+ Create your own complex agents by connecting web agents together.
Define a series of actions, set it, and forget it.
</p>
</div>
@@ -462,12 +449,12 @@ function Workflows() {
<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-slate-900 dark:text-slate-100">
- Organize Your Workflows with Folders
+ Organize Your Agents with Folders
</h3>
<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.
+ Keep your agents organized by creating folders. Group related
+ agents together by project, team, or agent type for easier
+ management.
</p>
<Button
variant="link"
@@ -483,9 +470,9 @@ function Workflows() {
)}
</div>
- {/* Workflows Section */}
+ {/* Agents Section */}
<header className="flex items-center justify-between">
- <h1 className="text-xl">My Flows</h1>
+ <h1 className="text-xl">My Agents</h1>
{selectedFolderId && (
<Button
variant="link"
@@ -493,7 +480,7 @@ function Workflows() {
className="h-auto p-0 text-blue-600 dark:text-blue-400"
onClick={() => setSelectedFolderId(null)}
>
- View all workflows
+ View all agents
</Button>
)}
</header>
@@ -510,7 +497,7 @@ function Workflows() {
<div className="flex items-center gap-4">
<Link
to="/discover"
- className="text-sm text-slate-400 hover:text-slate-200"
+ className="text-sm text-muted-foreground hover:text-foreground"
>
Or start from a description →
</Link>
@@ -534,14 +521,14 @@ function Workflows() {
<DropdownMenuItem
onSelect={() => {
createWorkflowMutation.mutate({
- ...emptyWorkflowRequest,
+ ...defaultWorkflowRequest,
folder_id: selectedFolderId,
_via: "blank",
});
}}
>
<PlusIcon className="mr-2 h-4 w-4" />
- Blank Workflow
+ Blank Agent
</DropdownMenuItem>
<DropdownMenuItem
onSelect={() => setIsTemplateDialogOpen(true)}
@@ -599,7 +586,7 @@ function Workflows() {
))
) : displayWorkflows?.length === 0 ? (
<TableRow>
- <TableCell colSpan={5}>No workflows found</TableCell>
+ <TableCell colSpan={5}>No agents found</TableCell>
</TableRow>
) : (
displayWorkflows?.map((workflow) => {
@@ -617,7 +604,7 @@ function Workflows() {
const isExpanded = expandedRows.has(
workflow.workflow_permanent_id,
);
- // Check if this is an importing workflow
+ // Check if this is an importing agent
const isUploading = workflow.status === "importing";
return (
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowsPageBanner.tsx b/skyvern-frontend/src/routes/workflows/WorkflowsPageBanner.tsx
index bce52b357..2bb40be7f 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowsPageBanner.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowsPageBanner.tsx
@@ -2,20 +2,7 @@ import { Button } from "@/components/ui/button";
import { PlusIcon, ReloadIcon } from "@radix-ui/react-icons";
import { useCreateWorkflowMutation } from "./hooks/useCreateWorkflowMutation";
import { ImportWorkflowButton } from "./ImportWorkflowButton";
-import { WorkflowCreateYAMLRequest } from "./types/workflowYamlTypes";
-
-const emptyWorkflowRequest: WorkflowCreateYAMLRequest = {
- title: "New Workflow",
- description: "",
- ai_fallback: true,
- code_version: 2,
- run_with: "agent",
- workflow_definition: {
- version: 2,
- blocks: [],
- parameters: [],
- },
-};
+import { defaultWorkflowRequest } from "./defaultWorkflowRequest";
function WorkflowsPageBanner() {
const createNewWorkflowMutation = useCreateWorkflowMutation();
@@ -23,14 +10,14 @@ function WorkflowsPageBanner() {
return (
<div className="space-y-8 bg-slate-elevation1 p-12">
<div className="flex justify-center text-3xl font-bold">
- <h1>Workflows</h1>
+ <h1>Agents</h1>
</div>
<div className="flex justify-center gap-4">
<ImportWorkflowButton />
<Button
disabled={createNewWorkflowMutation.isPending}
onClick={() => {
- createNewWorkflowMutation.mutate(emptyWorkflowRequest);
+ createNewWorkflowMutation.mutate(defaultWorkflowRequest);
}}
>
{createNewWorkflowMutation.isPending ? (
@@ -38,22 +25,22 @@ function WorkflowsPageBanner() {
) : (
<PlusIcon className="mr-2 h-4 w-4" />
)}
- Create Workflow
+ Create Agent
</Button>
</div>
<div className="flex">
<div className="mx-auto flex flex-col gap-3">
<div className="font-bold">
- Workflows let you create complex web-agents that can:
+ Agents let you create complex web-agents that can:
</div>
<div className="flex gap-2">
- <div className="flex size-6 items-center justify-center rounded-full bg-primary text-primary-foreground">
+ <div className="flex size-6 items-center justify-center rounded-full border border-neutral-300 bg-neutral-200 text-xs font-semibold text-neutral-700 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-200">
1
</div>
<div>Save browser sessions and re-use them in subsequent runs</div>
</div>
<div className="flex gap-2">
- <div className="flex size-6 items-center justify-center rounded-full bg-primary text-primary-foreground">
+ <div className="flex size-6 items-center justify-center rounded-full border border-neutral-300 bg-neutral-200 text-xs font-semibold text-neutral-700 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-200">
2
</div>
<div>
@@ -61,7 +48,7 @@ function WorkflowsPageBanner() {
</div>
</div>
<div className="flex gap-2">
- <div className="flex size-6 items-center justify-center rounded-full bg-primary text-primary-foreground">
+ <div className="flex size-6 items-center justify-center rounded-full border border-neutral-300 bg-neutral-200 text-xs font-semibold text-neutral-700 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-200">
3
</div>
<div>
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowsPageLayout.tsx b/skyvern-frontend/src/routes/workflows/WorkflowsPageLayout.tsx
index 0f6d4019c..ea9dfb694 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowsPageLayout.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowsPageLayout.tsx
@@ -4,10 +4,21 @@ import { Outlet, useMatch, useSearchParams } from "react-router-dom";
function WorkflowsPageLayout() {
const [searchParams] = useSearchParams();
const embed = searchParams.get("embed");
+ const workflowEditMatch = useMatch("/workflows/:workflowPermanentId/edit");
+ const workflowBuildMatch = useMatch("/workflows/:workflowPermanentId/build");
+ const workflowBlockBuildMatch = useMatch(
+ "/workflows/:workflowPermanentId/:workflowRunId/:blockLabel/build",
+ );
+ const workflowDebugMatch = useMatch("/workflows/:workflowPermanentId/debug");
+ const workflowBlockDebugMatch = useMatch(
+ "/workflows/:workflowPermanentId/:workflowRunId/:blockLabel/debug",
+ );
const match =
- useMatch("/workflows/:workflowPermanentId/edit") ||
- location.pathname.includes("build") ||
- location.pathname.includes("debug") ||
+ workflowEditMatch ||
+ workflowBuildMatch ||
+ workflowBlockBuildMatch ||
+ workflowDebugMatch ||
+ workflowBlockDebugMatch ||
embed === "true";
return (
<main
diff --git a/skyvern-frontend/src/routes/workflows/components/CreateFolderDialog.tsx b/skyvern-frontend/src/routes/workflows/components/CreateFolderDialog.tsx
index f94a534d6..66b84c776 100644
--- a/skyvern-frontend/src/routes/workflows/components/CreateFolderDialog.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/CreateFolderDialog.tsx
@@ -51,7 +51,7 @@ function CreateFolderDialog({ open, onOpenChange }: CreateFolderDialogProps) {
<DialogHeader>
<DialogTitle>Create New Folder</DialogTitle>
<DialogDescription>
- Create a folder to organize your workflows.
+ Create a folder to organize your agents.
</DialogDescription>
</DialogHeader>
<form onSubmit={handleSubmit}>
@@ -62,7 +62,7 @@ function CreateFolderDialog({ open, onOpenChange }: CreateFolderDialogProps) {
id="folder-title"
value={title}
onChange={(e) => setTitle(e.target.value)}
- placeholder="e.g., Production Workflows"
+ placeholder="e.g., Production Agents"
autoFocus
/>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/components/CreateFromTemplateDialog.tsx b/skyvern-frontend/src/routes/workflows/components/CreateFromTemplateDialog.tsx
index ceb330cc0..63ff6c657 100644
--- a/skyvern-frontend/src/routes/workflows/components/CreateFromTemplateDialog.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/CreateFromTemplateDialog.tsx
@@ -51,7 +51,7 @@ function CreateFromTemplateDialog({
<DialogHeader>
<DialogTitle>Create from Template</DialogTitle>
<DialogDescription>
- Select a template to create a new workflow with pre-filled blocks.
+ Select a template to create a new agent with pre-filled blocks.
</DialogDescription>
</DialogHeader>
<div className="space-y-4">
@@ -81,7 +81,7 @@ function CreateFromTemplateDialog({
No templates yet
</p>
<p className="text-sm text-slate-400">
- Save a workflow as a template to see it here.
+ Save an agent as a template to see it here.
</p>
</>
) : (
diff --git a/skyvern-frontend/src/routes/workflows/components/DeleteFolderButton.tsx b/skyvern-frontend/src/routes/workflows/components/DeleteFolderButton.tsx
index db984bfb9..681cf235b 100644
--- a/skyvern-frontend/src/routes/workflows/components/DeleteFolderButton.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/DeleteFolderButton.tsx
@@ -82,7 +82,7 @@ function DeleteFolderButton({ folderId, folderTitle }: Props) {
<div className="flex items-center space-x-2">
<RadioGroupItem value="folder_only" id="folder_only" />
<Label htmlFor="folder_only" className="font-normal">
- Delete folder only (workflows will be unassigned)
+ Delete folder only (agents will be unassigned)
</Label>
</div>
<div className="flex items-center space-x-2">
@@ -91,7 +91,7 @@ function DeleteFolderButton({ folderId, folderTitle }: Props) {
id="folder_and_workflows"
/>
<Label htmlFor="folder_and_workflows" className="font-normal">
- Delete folder and all workflows inside it
+ Delete folder and all agents inside it
</Label>
</div>
</RadioGroup>
diff --git a/skyvern-frontend/src/routes/workflows/components/EditFolderDialog.tsx b/skyvern-frontend/src/routes/workflows/components/EditFolderDialog.tsx
index 561861ac4..1fba5c3e4 100644
--- a/skyvern-frontend/src/routes/workflows/components/EditFolderDialog.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/EditFolderDialog.tsx
@@ -69,7 +69,7 @@ function EditFolderDialog({
id="edit-folder-title"
value={title}
onChange={(e) => setTitle(e.target.value)}
- placeholder="e.g., Production Workflows"
+ placeholder="e.g., Production Agents"
autoFocus
/>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/components/FolderCard.tsx b/skyvern-frontend/src/routes/workflows/components/FolderCard.tsx
index 7846f8d5a..6febc24eb 100644
--- a/skyvern-frontend/src/routes/workflows/components/FolderCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/FolderCard.tsx
@@ -73,7 +73,7 @@ function FolderCard({ folder, isSelected, onClick }: FolderCardProps) {
</div>
<p className="text-xs text-slate-500 dark:text-slate-400">
{folder.workflow_count}{" "}
- {folder.workflow_count === 1 ? "workflow" : "workflows"}
+ {folder.workflow_count === 1 ? "agent" : "agents"}
</p>
</div>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/components/ScheduleParametersSection.tsx b/skyvern-frontend/src/routes/workflows/components/ScheduleParametersSection.tsx
index 8a9b5327c..6b23d8bd5 100644
--- a/skyvern-frontend/src/routes/workflows/components/ScheduleParametersSection.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/ScheduleParametersSection.tsx
@@ -32,7 +32,7 @@ function ScheduleParametersSection({
return (
<div className="space-y-2">
<div className="space-y-1">
- <Label>Workflow Parameters</Label>
+ <Label>Agent Parameters</Label>
<p className="text-xs text-slate-500">
Values supplied here are used every time this schedule runs.
</p>
diff --git a/skyvern-frontend/src/routes/workflows/components/header/NarrativeCard.tsx b/skyvern-frontend/src/routes/workflows/components/header/NarrativeCard.tsx
index 89a46e331..480323f00 100644
--- a/skyvern-frontend/src/routes/workflows/components/header/NarrativeCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/components/header/NarrativeCard.tsx
@@ -6,10 +6,12 @@ type Props = {
function NarrativeCard({ index, description }: Props) {
return (
<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">
+ <div className="flex size-6 items-center justify-center rounded-full border border-neutral-300 bg-neutral-200 text-xs font-semibold text-neutral-700 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-200">
{index}
</div>
- <div className="text-sm text-slate-300">{description}</div>
+ <div className="text-sm leading-5 text-muted-foreground">
+ {description}
+ </div>
</div>
);
}
diff --git a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotButton.tsx b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotButton.tsx
index 030a1d1cc..ed85d20fe 100644
--- a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotButton.tsx
+++ b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotButton.tsx
@@ -14,13 +14,13 @@ export const WorkflowCopilotButton = forwardRef<
<button
ref={ref}
onClick={onClick}
- className="flex items-center gap-2"
- title="Open Workflow Copilot"
+ className="flex items-center gap-2 text-neutral-700 transition-colors hover:text-neutral-950 dark:text-neutral-300 dark:hover:text-white"
+ title="Open Agent Copilot"
>
<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-blue-600 text-xs font-bold text-white">
+ <span className="flex h-5 w-5 items-center justify-center rounded-full bg-neutral-200 text-xs font-bold text-neutral-950 ring-1 ring-neutral-300/80 dark:bg-neutral-100 dark:ring-0">
{messageCount}
</span>
)}
diff --git a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx
index ec11e563d..cdb92554d 100644
--- a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx
+++ b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx
@@ -16,6 +16,7 @@ import { WorkflowCreateYAMLRequest } from "@/routes/workflows/types/workflowYaml
import { WorkflowApiResponse } from "@/routes/workflows/types/workflowTypes";
import { toast } from "@/components/ui/use-toast";
import { getSseClient } from "@/api/sse";
+import { cn } from "@/util/utils";
import {
WorkflowCopilotCancelRequest,
WorkflowCopilotChatHistoryResponse,
@@ -73,7 +74,7 @@ type WorkflowCopilotSsePayload =
| WorkflowCopilotBlockProgressUpdate;
const TOOL_DISPLAY_NAMES: Record<string, string> = {
- update_workflow: "Updating workflow",
+ update_workflow: "Updating agent",
update_and_run_blocks: "Updating & running blocks",
list_credentials: "Listing credentials",
get_block_schema: "Looking up block schema",
@@ -111,19 +112,22 @@ 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-white ${
- message.sender === "ai" ? "bg-blue-600" : "bg-purple-600"
- }`}
+ className={cn(
+ "flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
+ message.sender === "ai"
+ ? "bg-neutral-950 text-white dark:bg-neutral-100 dark:text-neutral-950"
+ : "bg-neutral-200 text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100",
+ )}
>
{message.sender === "ai" ? "AI" : "U"}
</div>
- <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">
+ <div className="relative flex-1 rounded-lg bg-neutral-100 p-3 pr-12 dark:bg-neutral-900">
+ <p className="whitespace-pre-wrap pr-3 text-sm text-neutral-900 dark:text-neutral-100">
{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-900/70 px-1.5 py-0.5 text-[10px] text-slate-400">
+ <span className="pointer-events-none absolute bottom-2 right-2 rounded bg-white/80 px-1.5 py-0.5 text-[10px] text-neutral-500 dark:bg-neutral-950/70 dark:text-neutral-500">
{formatChatTimestamp(message.timestamp)}
</span>
) : null}
@@ -337,7 +341,7 @@ export function WorkflowCopilotChat({
console.error("Failed to update workflow:", updateError);
toast({
title: "Update failed",
- description: "Failed to apply workflow changes. Please try again.",
+ description: "Failed to apply agent changes. Please try again.",
variant: "destructive",
});
return false;
@@ -404,8 +408,7 @@ export function WorkflowCopilotChat({
if (!applyWorkflowUpdate(workflow)) {
toast({
title: "Accept failed",
- description:
- "Could not apply the proposed workflow. Please try again.",
+ description: "Could not apply the proposed agent. Please try again.",
variant: "destructive",
});
return;
@@ -492,7 +495,7 @@ export function WorkflowCopilotChat({
toast({
title: "Copilot update failed",
description: autoAcceptValue
- ? "Workflow was applied, but auto-accept did not update."
+ ? "Agent was applied, but auto-accept did not update."
: "Failed to clear copilot proposal. Please try again.",
variant: "destructive",
});
@@ -684,8 +687,8 @@ export function WorkflowCopilotChat({
return;
if (!workflowPermanentId) {
toast({
- title: "Missing workflow",
- description: "Workflow permanent ID is required to chat.",
+ title: "Missing agent",
+ description: "Agent permanent ID is required to chat.",
variant: "destructive",
});
return;
@@ -758,8 +761,8 @@ export function WorkflowCopilotChat({
if (!workflowId) {
toast({
- title: "Missing workflow",
- description: "Workflow ID is required to chat.",
+ title: "Missing agent",
+ description: "Agent ID is required to chat.",
variant: "destructive",
});
return;
@@ -1256,7 +1259,7 @@ export function WorkflowCopilotChat({
return (
<div
- className="fixed z-50 flex flex-col rounded-lg border border-slate-700 bg-slate-900 shadow-2xl"
+ className="fixed z-50 flex flex-col rounded-lg border border-neutral-200 bg-white text-neutral-900 shadow-2xl dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-100"
style={{
left: `${position.x}px`,
top: `${position.y}px`,
@@ -1266,28 +1269,30 @@ export function WorkflowCopilotChat({
>
{/* Header */}
<div
- className="flex cursor-move items-center justify-between border-b border-slate-700 px-4 py-2"
+ className="flex cursor-move items-center justify-between border-b border-neutral-200 px-4 py-2 dark:border-neutral-800"
onMouseDown={handleMouseDown}
>
- <h3 className="text-sm font-semibold text-slate-200">
- Workflow Copilot (Beta)
+ <h3 className="text-sm font-semibold text-neutral-900 dark:text-neutral-100">
+ Agent Copilot (Beta)
</h3>
<div className="flex items-center gap-2">
<button
type="button"
onClick={handleNewChat}
onMouseDown={(e) => e.stopPropagation()}
- className="rounded border border-slate-700 px-2 py-1 text-xs text-slate-300 hover:bg-slate-800"
+ className="rounded border border-neutral-300 px-2 py-1 text-xs text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-900"
>
New chat
</button>
<div className="h-2 w-2 rounded-full bg-green-500"></div>
- <span className="text-xs text-slate-400">Active</span>
+ <span className="text-xs text-neutral-500 dark:text-neutral-400">
+ Active
+ </span>
<button
type="button"
onClick={() => onClose?.()}
onMouseDown={(e) => e.stopPropagation()}
- className="ml-2 rounded p-1 text-slate-400 hover:bg-slate-800 hover:text-slate-200"
+ className="ml-2 rounded p-1 text-neutral-500 hover:bg-neutral-100 hover:text-neutral-900 dark:text-neutral-400 dark:hover:bg-neutral-900 dark:hover:text-neutral-100"
title="Close"
>
<Cross2Icon className="h-4 w-4" />
@@ -1299,14 +1304,16 @@ 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-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.
+ <div className="rounded-lg border border-neutral-200 bg-neutral-50 p-4 text-sm text-neutral-700 dark:border-neutral-800 dark:bg-neutral-900/60 dark:text-neutral-300">
+ <p className="font-semibold text-neutral-900 dark:text-neutral-100">
+ Start a new chat
+ </p>
+ <p className="mt-2 text-neutral-500 dark:text-neutral-400">
+ Ask the copilot to draft or edit your agent. Provide a goal, the
+ target site, and any credentials it should use.
</p>
- <p className="mt-2 text-slate-400">
- Example: "Build workflow to find the top post on hackernews
+ <p className="mt-2 text-neutral-500 dark:text-neutral-400">
+ Example: "Build an agent to find the top post on hackernews
today"
</p>
</div>
@@ -1322,7 +1329,7 @@ export function WorkflowCopilotChat({
message={message}
footer={
showQueuedFooter ? (
- <div className="flex items-center gap-2 text-xs text-slate-400">
+ <div className="flex items-center gap-2 text-xs text-neutral-500 dark:text-neutral-400">
<ReloadIcon className="h-3 w-3 animate-spin" />
<span>{queuedPromptWaitingStatus}</span>
</div>
@@ -1331,7 +1338,7 @@ export function WorkflowCopilotChat({
<button
type="button"
onClick={() => handleReviewWorkflow(proposedWorkflow)}
- 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"
+ className="rounded border border-neutral-300 bg-white px-3 py-1 text-xs text-neutral-900 hover:bg-neutral-50 dark:border-neutral-700 dark:bg-neutral-950 dark:text-neutral-100 dark:hover:bg-neutral-900"
>
Review
</button>
@@ -1366,11 +1373,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-blue-600 text-xs font-bold text-white">
+ <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-neutral-950 text-xs font-bold text-white dark:bg-neutral-100 dark:text-neutral-950">
AI
</div>
- <div className="flex-1 rounded-lg bg-slate-800 p-3">
- <div className="flex items-center gap-2 text-sm text-slate-300">
+ <div className="flex-1 rounded-lg bg-neutral-100 p-3 dark:bg-neutral-900">
+ <div className="flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300">
<ReloadIcon className="h-4 w-4 animate-spin" />
<span>
{isQueuedPromptWaiting
@@ -1379,7 +1386,7 @@ export function WorkflowCopilotChat({
</span>
</div>
{isQueuedPromptWaiting ? (
- <div className="mt-2 text-xs text-slate-500">
+ <div className="mt-2 text-xs text-neutral-500">
Copilot will start automatically once the browser is ready.
</div>
) : null}
@@ -1393,11 +1400,11 @@ 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-slate-500${
- activity.linkedRecovery
- ? " border-l border-amber-400/40 pl-2"
- : ""
- }`;
+ const containerClass = cn(
+ "flex items-start gap-1.5 text-xs text-neutral-500 dark:text-neutral-400",
+ activity.linkedRecovery &&
+ "border-l border-amber-400/40 pl-2",
+ );
return (
<div
key={activity.tool_call_id}
@@ -1427,9 +1434,11 @@ export function WorkflowCopilotChat({
</div>
{/* Input */}
- <div className="border-t border-slate-700 p-3">
+ <div className="border-t border-neutral-200 p-3 dark:border-neutral-800">
{browserStatusText ? (
- <div className="mb-2 text-xs text-slate-400">{browserStatusText}</div>
+ <div className="mb-2 text-xs text-neutral-500 dark:text-neutral-400">
+ {browserStatusText}
+ </div>
) : null}
<div className="flex items-end gap-2">
<textarea
@@ -1446,7 +1455,7 @@ export function WorkflowCopilotChat({
onKeyDown={handleKeyPress}
disabled={inputDisabled}
rows={1}
- 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"
+ className="flex-1 resize-none rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm text-neutral-900 placeholder-neutral-400 focus:border-neutral-700 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 dark:placeholder-neutral-500 dark:focus:border-neutral-400"
style={{
minHeight: "38px",
maxHeight: "150px",
@@ -1464,7 +1473,7 @@ export function WorkflowCopilotChat({
) : (
<button
onClick={() => handleSend()}
- className="rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700"
+ className="rounded-md bg-neutral-950 px-4 py-2 text-sm font-medium text-white hover:bg-neutral-800 dark:bg-neutral-100 dark:text-neutral-950 dark:hover:bg-neutral-300"
>
Send
</button>
diff --git a/skyvern-frontend/src/routes/workflows/copilot/toolActivity.ts b/skyvern-frontend/src/routes/workflows/copilot/toolActivity.ts
index 27c7a02cd..1c875511c 100644
--- a/skyvern-frontend/src/routes/workflows/copilot/toolActivity.ts
+++ b/skyvern-frontend/src/routes/workflows/copilot/toolActivity.ts
@@ -18,7 +18,7 @@ export interface ToolActivity {
export function getActivityDotClass(activity: ToolActivity): string {
if (activity.status === "running") {
- return "animate-pulse bg-blue-400";
+ return "animate-pulse bg-neutral-400 dark:bg-neutral-500";
}
if (activity.status === "success") {
return "bg-green-400";
diff --git a/skyvern-frontend/src/routes/workflows/debugger/DebuggerBlockRuns.tsx b/skyvern-frontend/src/routes/workflows/debugger/DebuggerBlockRuns.tsx
index 5a16f9e32..7d26ed759 100644
--- a/skyvern-frontend/src/routes/workflows/debugger/DebuggerBlockRuns.tsx
+++ b/skyvern-frontend/src/routes/workflows/debugger/DebuggerBlockRuns.tsx
@@ -91,7 +91,7 @@ function DebuggerBlockRuns() {
<div className="relative flex items-center justify-center gap-2 opacity-80 hover:opacity-100">
<div
ref={scrollContainerRef}
- className="flex max-w-[7rem] gap-2 overflow-x-auto rounded-full bg-[#020617] p-2 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
+ className="flex max-w-[7rem] gap-2 overflow-x-auto rounded-full bg-[#050505] p-2 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
>
{[...(debugSessionRuns?.runs ?? [])].reverse().map((run) => {
const dt = toDate(run.created_at ?? "", null);
diff --git a/skyvern-frontend/src/routes/workflows/defaultWorkflowRequest.ts b/skyvern-frontend/src/routes/workflows/defaultWorkflowRequest.ts
new file mode 100644
index 000000000..1b2189f40
--- /dev/null
+++ b/skyvern-frontend/src/routes/workflows/defaultWorkflowRequest.ts
@@ -0,0 +1,16 @@
+import type { WorkflowCreateYAMLRequest } from "./types/workflowYamlTypes";
+
+const defaultWorkflowRequest: WorkflowCreateYAMLRequest = {
+ title: "New Agent",
+ description: "",
+ ai_fallback: true,
+ code_version: 2,
+ run_with: "agent",
+ workflow_definition: {
+ version: 2,
+ blocks: [],
+ parameters: [],
+ },
+};
+
+export { defaultWorkflowRequest };
diff --git a/skyvern-frontend/src/routes/workflows/editor/DeleteWorkflowButton.tsx b/skyvern-frontend/src/routes/workflows/editor/DeleteWorkflowButton.tsx
index 6136adf9c..d2e4d2540 100644
--- a/skyvern-frontend/src/routes/workflows/editor/DeleteWorkflowButton.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/DeleteWorkflowButton.tsx
@@ -47,7 +47,7 @@ function DeleteWorkflowButton({ id }: Props) {
onError: (error: AxiosError) => {
toast({
variant: "destructive",
- title: "Failed to delete workflow",
+ title: "Failed to delete agent",
description: error.message,
});
},
@@ -64,13 +64,13 @@ function DeleteWorkflowButton({ id }: Props) {
</Button>
</DialogTrigger>
</TooltipTrigger>
- <TooltipContent>Delete Workflow</TooltipContent>
+ <TooltipContent>Delete Agent</TooltipContent>
</Tooltip>
</TooltipProvider>
<DialogContent onCloseAutoFocus={(e) => e.preventDefault()}>
<DialogHeader>
<DialogTitle>Are you sure?</DialogTitle>
- <DialogDescription>This workflow will be deleted.</DialogDescription>
+ <DialogDescription>This agent will be deleted.</DialogDescription>
</DialogHeader>
<DialogFooter>
<DialogClose asChild>
diff --git a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
index 63ffa0503..c414f5172 100644
--- a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
@@ -1570,7 +1570,7 @@ function FlowRenderer({
return (
<WorkflowScopeContext.Provider value={workflowScopeValue}>
<div
- className={cn("relative h-full w-full", {
+ className={cn("workflow-editor-shell relative h-full w-full", {
"react-flow--pre-layout": layoutPhase === "pre-layout",
"react-flow--initial-load":
layoutPhase === "initial-load" || layoutPhase === "pre-layout",
@@ -1814,7 +1814,7 @@ function FlowRenderer({
{!hideBackground && (
<Background
variant={BackgroundVariant.Dots}
- bgColor="#020617"
+ bgColor="hsl(var(--background))"
/>
)}
{!readOnly && (
diff --git a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
index fd127a392..d12ed60ce 100644
--- a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
@@ -172,7 +172,9 @@ function bash(text: string, alternateText?: string) {
return (
<div className="flex items-center justify-start gap-1">
<CopyText className="min-w-[2.25rem]" text={alternateText ?? text} />
- <code className="text-xs text-[lightblue]">{text}</code>
+ <code className="text-xs text-neutral-600 dark:text-neutral-300">
+ {text}
+ </code>
</div>
);
}
@@ -1746,7 +1748,6 @@ function Workspace({
})}
>
<FlowRenderer
- hideBackground={true}
showZoomControls={false}
nodes={nodes}
edges={edges}
@@ -1777,7 +1778,7 @@ function Workspace({
</div>
</div>
- <div className="skyvern-split-right relative flex h-full items-end justify-center bg-[#020617] p-4 pl-6">
+ <div className="skyvern-split-right relative flex h-full items-end justify-center bg-neutral-50 p-4 pl-6 dark:bg-background">
{/* node library sub panel */}
{/* browser & timeline */}
<div className="flex h-[calc(100%_-_8rem)] w-full gap-6">
@@ -1790,8 +1791,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-slate-700 bg-slate-900 p-8 text-center">
- <p className="text-sm text-slate-300">
+ <div className="flex max-w-md flex-col items-center justify-center gap-4 rounded-md border border-neutral-200 bg-white p-8 text-center dark:border-neutral-800 dark:bg-neutral-950">
+ <p className="text-sm text-neutral-600 dark:text-neutral-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
@@ -1828,13 +1829,13 @@ function Workspace({
) : null}
</div>
)}
- <footer className="flex h-[2rem] w-full items-center justify-start gap-4">
+ <footer className="flex h-[2rem] w-full items-center justify-start gap-4 text-neutral-700 dark:text-neutral-300">
<WorkflowCopilotButton
ref={copilotButtonRef}
messageCount={copilotMessageCount}
onClick={() => setIsCopilotOpen((prev) => !prev)}
/>
- <div className="flex items-center gap-2">
+ <div className="flex items-center gap-2 text-neutral-700 dark:text-neutral-300">
<GlobeIcon /> Live Browser
<StreamModeBadge mode="vnc" />
</div>
@@ -1882,13 +1883,13 @@ function Workspace({
/>
) : null}
</div>
- <footer className="flex h-[2rem] w-full items-center justify-start gap-4">
+ <footer className="flex h-[2rem] w-full items-center justify-start gap-4 text-neutral-700 dark:text-neutral-300">
<WorkflowCopilotButton
ref={copilotButtonRef}
messageCount={copilotMessageCount}
onClick={() => setIsCopilotOpen((prev) => !prev)}
/>
- <div className="flex items-center gap-2">
+ <div className="flex items-center gap-2 text-neutral-700 dark:text-neutral-300">
<GlobeIcon /> Live Browser
<StreamModeBadge mode="cdp" />
</div>
@@ -1949,7 +1950,7 @@ function Workspace({
>
<div
className={cn(
- "group relative h-full w-[25rem] translate-x-[-20.5rem] bg-[#020617] transition-all",
+ "group relative h-full w-[25rem] translate-x-[-20.5rem] bg-neutral-50 transition-all dark:bg-background",
{
"translate-x-[0rem]": timelineMode === "narrow",
group: timelineMode === "narrow",
@@ -1972,7 +1973,7 @@ function Workspace({
>
<div
className={cn(
- "pointer-events-none relative flex h-full w-full flex-col items-start overflow-hidden bg-[#020617]",
+ "pointer-events-none relative flex h-full w-full flex-col items-start overflow-hidden bg-neutral-50 dark:bg-background",
{ "pointer-events-auto": timelineMode === "wide" },
)}
>
@@ -2028,7 +2029,7 @@ function Workspace({
)}
<WorkflowCopilotChat
- isOpen={isCopilotOpen}
+ isOpen={showBrowser && isCopilotOpen}
onClose={() => setIsCopilotOpen(false)}
onMessageCountChange={setCopilotMessageCount}
buttonRef={copilotButtonRef}
@@ -2151,14 +2152,14 @@ function Workspace({
applyWorkflowUpdate(pendingWorkflow);
} catch (error) {
console.error(
- "Failed to apply copilot workflow",
+ "Failed to apply copilot agent",
error,
pendingWorkflow,
);
toast({
title: "Update failed",
description:
- "Failed to apply workflow update. Please try again.",
+ "Failed to apply agent update. Please try again.",
variant: "destructive",
});
}
@@ -2196,11 +2197,11 @@ function Workspace({
},
});
} catch (error) {
- console.error("Failed to prepare workflow comparison", error);
+ console.error("Failed to prepare agent comparison", error);
toast({
title: "Comparison failed",
description:
- "Failed to prepare workflow for comparison. Please try again.",
+ "Failed to prepare agent for comparison. Please try again.",
variant: "destructive",
});
}
@@ -2210,13 +2211,13 @@ function Workspace({
applyWorkflowUpdate(workflowData, options);
} catch (error) {
console.error(
- "Failed to parse and apply workflow",
+ "Failed to parse and apply agent",
error,
workflowData,
);
toast({
title: "Update failed",
- description: "Failed to apply workflow update. Please try again.",
+ description: "Failed to apply agent update. Please try again.",
variant: "destructive",
});
}
diff --git a/skyvern-frontend/src/routes/workflows/editor/constants.ts b/skyvern-frontend/src/routes/workflows/editor/constants.ts
index c8eec497c..1134585b2 100644
--- a/skyvern-frontend/src/routes/workflows/editor/constants.ts
+++ b/skyvern-frontend/src/routes/workflows/editor/constants.ts
@@ -35,12 +35,12 @@ export const GLOBAL_RESERVED_PARAMETERS = [
description: "Merged summary of all block outputs",
},
{ key: "workflow_run_id", description: "Unique ID of the current run" },
- { key: "workflow_id", description: "The workflow's ID" },
+ { key: "workflow_id", description: "The agent's ID" },
{
key: "workflow_permanent_id",
- description: "The workflow's permanent ID",
+ description: "The agent's permanent ID",
},
- { key: "workflow_title", description: "The workflow's title" },
+ { key: "workflow_title", description: "The agent's title" },
] as const;
// Reserved parameters only available inside loop blocks
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 8f6ee3a6e..237de5ebd 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionEditor.tsx
@@ -114,7 +114,7 @@ function ActionEditorBody({
/>
</div>
{!hasInteracted && (
- <div className="rounded-md bg-slate-800 p-2">
+ <div className="workflow-editor-tip rounded-md bg-slate-800 p-2">
<div className="space-y-1 text-xs text-slate-400">
Tip: While executing the action block, Skyvern will only take one
action.
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 c0594318b..d7102c87d 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadEditor.tsx
@@ -156,7 +156,7 @@ function FileDownloadEditorBody({
</div>
</div>
{!hasInteracted && (
- <div className="rounded-md bg-slate-800 p-2 text-xs text-slate-400">
+ <div className="workflow-editor-tip rounded-md bg-slate-800 p-2 text-xs text-slate-400">
Once the file is downloaded, this block will complete.
</div>
)}
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpRequestEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpRequestEditor.tsx
index a0278eedd..1a30ab37b 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpRequestEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpRequestEditor.tsx
@@ -447,7 +447,7 @@ function HttpRequestEditorBody({
</Accordion>
{!hasInteracted && (
- <div className="rounded-md bg-slate-800/50 p-3">
+ <div className="workflow-editor-tip rounded-md bg-slate-800/50 p-3">
<div className="space-y-2 text-xs text-slate-400">
<div className="flex items-center gap-2">
<MagicWandIcon className="h-3 w-3" />
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/HumanInteractionEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/HumanInteractionEditor.tsx
index 4d184d392..a8ff3c76b 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/HumanInteractionEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/HumanInteractionEditor.tsx
@@ -77,7 +77,7 @@ function HumanInteractionEditorBody({
nodeId={blockId}
onChange={(next) => update({ instructions: next })}
value={instructions}
- placeholder="Please review and approve or reject to continue the workflow."
+ placeholder="Please review and approve or reject to continue the agent."
className="nopan text-xs"
/>
</div>
@@ -97,12 +97,13 @@ function HumanInteractionEditorBody({
}}
/>
</div>
- <div className="flex items-center justify-center gap-2 rounded-md bg-slate-800 p-2">
- <span className="rounded bg-slate-700 p-1 text-lg">💡</span>
+ <div className="workflow-editor-tip flex items-center justify-center gap-2 rounded-md bg-slate-800 p-2">
+ <span className="workflow-editor-tip-icon rounded bg-slate-700 p-1 text-lg">
+ 💡
+ </span>
<div className="space-y-1 text-xs text-slate-400">
- The workflow will pause and send an email notification to the
- recipients. The workflow continues or terminates based on the user's
- response.
+ The agent will pause and send an email notification to the recipients.
+ The agent continues or terminates based on the user's response.
</div>
</div>
<div className="space-y-4 rounded-md bg-slate-800 p-4">
@@ -123,7 +124,7 @@ function HumanInteractionEditorBody({
nodeId={blockId}
onChange={(next) => update({ subject: next })}
value={subject}
- placeholder="Human interaction required for workflow run"
+ placeholder="Human interaction required for agent run"
className="nopan text-xs"
/>
</div>
@@ -134,7 +135,7 @@ function HumanInteractionEditorBody({
nodeId={blockId}
onChange={(next) => update({ body: next })}
value={body}
- placeholder="Your interaction is required for a workflow run!"
+ placeholder="Your interaction is required for an agent run!"
className="nopan text-xs"
/>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/types.ts
index 82b712b68..44475aaa4 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/types.ts
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/types.ts
@@ -31,13 +31,13 @@ export type HumanInteractionNode = Node<
export const humanInteractionNodeDefaultData: HumanInteractionNodeData = {
debuggable: debuggableWorkflowBlockTypes.has("human_interaction"),
- instructions: "Please review and approve or reject to continue the workflow.",
+ instructions: "Please review and approve or reject to continue the agent.",
positiveDescriptor: "Approve",
negativeDescriptor: "Reject",
timeoutSeconds: 60 * 60 * 2, // two hours
recipients: "",
- subject: "Human interaction required for workflow run",
- body: "Your interaction is required for a workflow run!",
+ subject: "Human interaction required for agent run",
+ body: "Your interaction is required for an agent run!",
editable: true,
label: "",
sender: EMAIL_BLOCK_SENDER,
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/IgnoreWorkflowSystemPrompt.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/IgnoreWorkflowSystemPrompt.tsx
index 2301a536c..e25874d8c 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/IgnoreWorkflowSystemPrompt.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/IgnoreWorkflowSystemPrompt.tsx
@@ -17,7 +17,7 @@ function IgnoreWorkflowSystemPrompt({
<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." />
+ <HelpTooltip content="When checked, this block ignores the agent-level system prompt. Only relevant when the agent has an agent system prompt set." />
</div>
<div className="w-52 shrink-0">
<Switch
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 bcfd4199c..61943b5ab 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationEditor.tsx
@@ -282,8 +282,8 @@ function NavigationEditorBody({
/>
</div>
{!hasInteracted && (
- <div className="rounded-md bg-slate-800 p-2">
- <div className="space-y-1 text-xs text-slate-400">
+ <div className="rounded-md border border-neutral-200 bg-neutral-100 p-2 dark:border-slate-700/50 dark:bg-slate-800">
+ <div className="space-y-1 text-xs text-neutral-600 dark:text-slate-400">
Tip: Try to phrase your prompt as a goal with an explicit
completion criteria. While executing, Skyvern will take as many
actions as necessary to accomplish the goal. Use words like
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 0b9987d40..bb9df5133 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/StartNode.tsx
@@ -197,8 +197,10 @@ function StartNode({ id, data, parentId }: NodeProps<StartNode>) {
<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-800 p-3 normal-case tracking-normal">
- <span className="rounded bg-slate-700 p-1 text-lg">💡</span>
+ <div className="workflow-editor-tip mt-4 flex gap-3 rounded-md bg-slate-800 p-3 normal-case tracking-normal">
+ <span className="workflow-editor-tip-icon 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" ? (
<>
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/WorkflowSettingsEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/WorkflowSettingsEditor.tsx
index ea10ead03..68621304b 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/WorkflowSettingsEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/WorkflowSettingsEditor.tsx
@@ -52,10 +52,10 @@ import {
} from "./types";
const PREVENT_OVERLAPPING_RUNS_TOOLTIP =
- "Queues new runs of this workflow until any in-progress run finishes. Does not affect block ordering inside a single run; blocks always execute in declared order. Use this when concurrent runs would collide on shared state, such as the same credentials, browser session, or downstream account.";
+ "Queues new runs of this agent until any in-progress run finishes. Does not affect block ordering inside a single run; blocks always execute in declared order. Use this when concurrent runs would collide on shared state, such as the same credentials, browser session, or downstream account.";
const SEQUENTIAL_KEY_TOOLTIP =
- "Scope the run queue. Runs with the same key are queued together; runs with different keys can still execute in parallel. Templated against workflow parameters, for example {{ account_id }} to serialize per account.";
+ "Scope the run queue. Runs with the same key are queued together; runs with different keys can still execute in parallel. Templated against agent parameters, for example {{ account_id }} to serialize per account.";
function WorkflowSettingsEditor({ blockId }: { blockId: string }) {
// Subscribe to the start node's data slice. The sidebar mount lives
@@ -132,7 +132,7 @@ function WorkflowSettingsEditorBody({
<div className="space-y-2">
<div className="flex gap-2">
<Label>Model</Label>
- <HelpTooltip content="The default LLM used for every block in this workflow that doesn't override it." />
+ <HelpTooltip content="The default LLM used for every block in this agent that doesn't override it." />
</div>
<ModelSelector
className="nopan w-52 text-xs"
@@ -143,13 +143,13 @@ function WorkflowSettingsEditorBody({
<Accordion type="single" collapsible>
<AccordionItem value="systemPrompt" className="border-b-0">
<AccordionTrigger className="py-0 text-xs text-slate-300">
- Workflow System Prompt
+ Agent System Prompt
</AccordionTrigger>
<AccordionContent className="pt-2">
<div className="space-y-2">
<div className="flex items-center gap-2">
- <Label>Workflow System Prompt</Label>
- <HelpTooltip content="Applied to every LLM call in this workflow, including any sub-agents." />
+ <Label>Agent System Prompt</Label>
+ <HelpTooltip content="Applied to every LLM call in this agent, including any sub-agents." />
</div>
<WorkflowBlockInputTextarea
nodeId={blockId}
@@ -169,7 +169,7 @@ function WorkflowSettingsEditorBody({
<div className="space-y-2">
<div className="flex gap-2">
<Label>Webhook Callback URL</Label>
- <HelpTooltip content="The URL of a webhook endpoint to send the workflow results" />
+ <HelpTooltip content="The URL of a webhook endpoint to send the agent results" />
</div>
<div className="flex flex-col gap-2">
<Input
@@ -214,7 +214,7 @@ function WorkflowSettingsEditorBody({
<div className="flex justify-between">
<div className="flex items-center gap-2">
<Label>Run With</Label>
- <HelpTooltip content="If code has been generated and saved from a previously successful run, set this to 'Code' to use that code when executing the workflow. To avoid using code, set this to 'Skyvern Agent'." />
+ <HelpTooltip content="If code has been generated and saved from a previously successful run, set this to 'Code' to use that code when executing the agent. To avoid using code, set this to 'Skyvern Agent'." />
</div>
<Select
value={data.runWith || "agent"}
@@ -299,7 +299,7 @@ function WorkflowSettingsEditorBody({
<div className="space-y-2">
<div className="flex items-center gap-2">
<Label>Save &amp; Reuse Session</Label>
- <HelpTooltip content="Persist session information across workflow runs" />
+ <HelpTooltip content="Persist session information across agent runs" />
<Switch
className="ml-auto"
checked={data.persistBrowserSession}
@@ -328,9 +328,9 @@ function WorkflowSettingsEditorBody({
<DialogHeader>
<DialogTitle>Reset saved profile?</DialogTitle>
<DialogDescription>
- Clears the saved browser profile for this workflow. The next
- run will start from a fresh browser state. Use this if the
- saved profile is stuck or producing errors.
+ Clears the saved browser profile for this agent. The next run
+ will start from a fresh browser state. Use this if the saved
+ profile is stuck or producing errors.
</DialogDescription>
</DialogHeader>
<DialogFooter>
@@ -355,7 +355,7 @@ function WorkflowSettingsEditorBody({
<div className="space-y-2">
<div className="flex items-center gap-2">
<Label>Default Browser Profile</Label>
- <HelpTooltip content="The default browser profile used when running this workflow. Can be overridden per run." />
+ <HelpTooltip content="The default browser profile used when running this agent. Can be overridden per run." />
</div>
<BrowserProfileSelector
value={data.browserProfileId}
@@ -410,7 +410,7 @@ function WorkflowSettingsEditorBody({
<div className="space-y-2">
<div className="flex items-center gap-2">
<Label>Execute on Any Outcome</Label>
- <HelpTooltip content="Select a block that will always run after the workflow completes, whether it succeeds, fails, or terminates early. Useful for cleanup tasks like logging out." />
+ <HelpTooltip content="Select a block that will always run after the agent completes, whether it succeeds, fails, or terminates early. Useful for cleanup tasks like logging out." />
</div>
<Select
value={data.finallyBlockLabel ?? "none"}
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 7d713b98a..90daa78c6 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/PayloadParameterFields.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/PayloadParameterFields.tsx
@@ -133,7 +133,7 @@ function PayloadParameterFields({
if (parameters.length === 0 && staleKeys.length === 0) {
return (
<p className="text-xs text-slate-500">
- This workflow has no input parameters.
+ This agent has no input parameters.
</p>
);
}
@@ -142,7 +142,7 @@ function PayloadParameterFields({
<div className="space-y-3">
{parameters.length === 0 && (
<p className="text-xs text-slate-500">
- This workflow has no input parameters.
+ This agent has no input parameters.
</p>
)}
{parameters.map((param) => {
@@ -212,10 +212,9 @@ function PayloadParameterFields({
Dormant payload entries
</p>
<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
- target.
+ The target agent 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 target.
</p>
{staleKeys.map((key) => (
<div key={key} className="flex items-center gap-2">
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 ac0c71929..776ae15eb 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/WorkflowSelector.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/WorkflowSelector.tsx
@@ -138,7 +138,7 @@ function WorkflowSelector({
<span className="text-slate-300">{value}</span>
) : (
<span className="text-muted-foreground">
- Select a workflow to trigger...
+ Select an agent to trigger...
</span>
)}
</div>
@@ -189,7 +189,7 @@ function WorkflowSelector({
type="text"
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
- placeholder="Search workflows..."
+ placeholder="Search agents..."
className="w-full bg-transparent text-xs text-slate-300 placeholder:text-muted-foreground focus-visible:outline-none"
/>
</div>
@@ -219,7 +219,7 @@ function WorkflowSelector({
</>
) : workflows.length === 0 ? (
<div className="px-3 py-3 text-xs text-slate-500">
- No workflows found.
+ No agents found.
</div>
) : (
<>
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/WorkflowTriggerEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/WorkflowTriggerEditor.tsx
index 7a25104ab..c7f7f7e64 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/WorkflowTriggerEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowTriggerNode/WorkflowTriggerEditor.tsx
@@ -40,13 +40,13 @@ import {
} from "../../workflowEditorUtils";
const workflowPermanentIdTooltip =
- "Select the workflow to trigger when this block runs.";
+ "Select the agent to trigger when this block runs.";
const payloadTooltip =
- "Parameters to pass to the triggered workflow. Values support Jinja2 templates like {{ some_parameter }}.";
+ "Parameters to pass to the triggered agent. Values support Jinja2 templates like {{ some_parameter }}.";
const waitForCompletionTooltip =
- "If enabled, this block will wait for the triggered workflow to complete before continuing to the next block. If disabled, the workflow is triggered asynchronously and the parent continues immediately. When disabled, the triggered workflow cannot continue in the same session because the parent may close it before the child finishes.";
+ "If enabled, this block will wait for the triggered agent to complete before continuing to the next block. If disabled, the agent is triggered asynchronously and the parent continues immediately. When disabled, the triggered agent cannot continue in the same session because the parent may close it before the child finishes.";
const browserSessionTooltip =
- "Choose which browser session the triggered workflow should use. Continuing in the same session shares tabs, cookies, and login state. Creating a new browser gives the triggered workflow a fresh browser.";
+ "Choose which browser session the triggered agent should use. Continuing in the same session shares tabs, cookies, and login state. Creating a new browser gives the triggered agent a fresh browser.";
function WorkflowTriggerEditor({ blockId }: { blockId: string }) {
// Subscribe to the node's data slice. The sidebar mount lives outside
@@ -177,7 +177,7 @@ function WorkflowTriggerEditorBody({
<div data-testid="workflow-trigger-block-form" className="space-y-4">
<div className="space-y-2">
<div className="flex gap-2">
- <Label className="text-xs text-slate-300">Target Workflow</Label>
+ <Label className="text-xs text-slate-300">Target Agent</Label>
<HelpTooltip content={workflowPermanentIdTooltip} />
</div>
<WorkflowSelector
@@ -208,7 +208,7 @@ function WorkflowTriggerEditorBody({
/>
) : (
<p className="text-xs text-slate-500">
- Select a target workflow to configure its input parameters here.
+ Select a target agent to configure its input parameters here.
</p>
)}
</div>
@@ -272,7 +272,7 @@ function WorkflowTriggerEditorBody({
{!waitForCompletion && !useDynamicBrowserSession && (
<p className="text-xs text-slate-400">
&quot;Continue in the same session&quot; is disabled because the
- parent workflow may close its browser before the triggered workflow
+ parent agent may close its browser before the triggered agent
finishes.
</p>
)}
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 badbf6084..bc2c9f108 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeHeader.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeHeader.tsx
@@ -338,13 +338,13 @@ function NodeHeader({
if (statusIsAFailureType(workflowRun)) {
toast({
variant: "destructive",
- title: `Workflow Block ${urlBlockLabel}: ${workflowRun.status}`,
+ title: `Agent Block ${urlBlockLabel}: ${workflowRun.status}`,
description: `Reason: ${workflowRun.failure_reason}`,
});
} else if (statusIsFinalized(workflowRun)) {
toast({
variant: "success",
- title: `Workflow Block ${urlBlockLabel}: ${workflowRun.status}`,
+ title: `Agent Block ${urlBlockLabel}: ${workflowRun.status}`,
});
}
}
@@ -397,7 +397,7 @@ function NodeHeader({
log.error("Run block: there is no workflowPermanentId");
toast({
variant: "destructive",
- title: "Failed to start workflow block run",
+ title: "Failed to start agent block run",
description: "There is no workflowPermanentId",
});
return;
@@ -411,7 +411,7 @@ function NodeHeader({
log.error("Run block: there is no debug session, yet");
toast({
variant: "destructive",
- title: "Failed to start workflow block run",
+ title: "Failed to start agent block run",
description: "There is no debug session, yet",
});
return;
@@ -474,7 +474,7 @@ function NodeHeader({
});
toast({
variant: "destructive",
- title: "Failed to start workflow block run",
+ title: "Failed to start agent block run",
description: "Could not construct run payload",
});
return;
@@ -502,7 +502,7 @@ function NodeHeader({
});
toast({
variant: "destructive",
- title: "Failed to start workflow block run",
+ title: "Failed to start agent block run",
description: "No response",
});
return;
@@ -518,8 +518,8 @@ function NodeHeader({
toast({
variant: "success",
- title: "Workflow block run started",
- description: "The workflow block run has been started successfully",
+ title: "Agent block run started",
+ description: "The agent block run has been started successfully",
});
navigate(
@@ -543,7 +543,7 @@ function NodeHeader({
});
toast({
variant: "destructive",
- title: "Failed to start workflow block run",
+ title: "Failed to start agent block run",
description: detail ?? error.message,
});
},
@@ -558,7 +558,7 @@ function NodeHeader({
});
toast({
variant: "destructive",
- title: "Failed to cancel workflow block run",
+ title: "Failed to cancel agent block run",
description: "Missing debug session",
});
return;
@@ -579,8 +579,8 @@ function NodeHeader({
});
toast({
variant: "success",
- title: "Workflow Canceled",
- description: "The workflow has been successfully canceled.",
+ title: "Agent Canceled",
+ description: "The agent has been successfully canceled.",
});
},
onError: (error: AxiosError) => {
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/types.ts
index e45ceb111..eb9641344 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/types.ts
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/types.ts
@@ -71,7 +71,7 @@ export const workflowBlockTitle: {
goto_url: "Go to URL",
http_request: "HTTP Request",
print_page: "Print Page",
- workflow_trigger: "Workflow Trigger",
+ workflow_trigger: "Agent Trigger",
google_sheets_read: "Google Sheets Read",
google_sheets_write: "Google Sheets Write",
};
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/HumanInteractionBlockForm.test.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/HumanInteractionBlockForm.test.tsx
index be60f69d0..82b3599f7 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/HumanInteractionBlockForm.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/HumanInteractionBlockForm.test.tsx
@@ -130,13 +130,11 @@ function setHumanInteractionNode(
data: {
instructions:
overrides.instructions ??
- "Please review and approve or reject to continue the workflow.",
+ "Please review and approve or reject to continue the agent.",
timeoutSeconds: overrides.timeoutSeconds ?? 7200,
recipients: overrides.recipients ?? "",
- subject:
- overrides.subject ?? "Human interaction required for workflow run",
- body:
- overrides.body ?? "Your interaction is required for a workflow run!",
+ subject: overrides.subject ?? "Human interaction required for agent run",
+ body: overrides.body ?? "Your interaction is required for an agent run!",
negativeDescriptor: overrides.negativeDescriptor ?? "Reject",
positiveDescriptor: overrides.positiveDescriptor ?? "Approve",
editable: overrides.editable ?? true,
@@ -187,7 +185,7 @@ describe("HumanInteractionBlockForm (SKY-9361)", () => {
expect(
(
screen.getByPlaceholderText(
- "Please review and approve or reject to continue the workflow.",
+ "Please review and approve or reject to continue the agent.",
) as HTMLInputElement
).value,
).toBe("Please confirm.");
@@ -204,14 +202,14 @@ describe("HumanInteractionBlockForm (SKY-9361)", () => {
expect(
(
screen.getByPlaceholderText(
- "Human interaction required for workflow run",
+ "Human interaction required for agent run",
) as HTMLInputElement
).value,
).toBe("Hi");
expect(
(
screen.getByPlaceholderText(
- "Your interaction is required for a workflow run!",
+ "Your interaction is required for an agent run!",
) as HTMLTextAreaElement
).value,
).toBe("Body content");
@@ -229,7 +227,7 @@ describe("HumanInteractionBlockForm (SKY-9361)", () => {
fireEvent.change(
screen.getByPlaceholderText(
- "Please review and approve or reject to continue the workflow.",
+ "Please review and approve or reject to continue the agent.",
),
{ target: { value: "Please double-check." } },
);
@@ -271,9 +269,7 @@ describe("HumanInteractionBlockForm (SKY-9361)", () => {
render(<HumanInteractionBlockForm blockId="h1" />);
fireEvent.change(
- screen.getByPlaceholderText(
- "Human interaction required for workflow run",
- ),
+ screen.getByPlaceholderText("Human interaction required for agent run"),
{ target: { value: "New subject" } },
);
@@ -288,7 +284,7 @@ describe("HumanInteractionBlockForm (SKY-9361)", () => {
fireEvent.change(
screen.getByPlaceholderText(
- "Your interaction is required for a workflow run!",
+ "Your interaction is required for an agent run!",
),
{ target: { value: "Updated body" } },
);
@@ -333,7 +329,7 @@ describe("HumanInteractionBlockForm (SKY-9361)", () => {
});
fireEvent.change(
screen.getByPlaceholderText(
- "Please review and approve or reject to continue the workflow.",
+ "Please review and approve or reject to continue the agent.",
),
{ target: { value: "blocked" } },
);
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/WorkflowTriggerBlockForm.test.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/WorkflowTriggerBlockForm.test.tsx
index 9afd80cec..2cb872dad 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/WorkflowTriggerBlockForm.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigForm/WorkflowTriggerBlockForm.test.tsx
@@ -320,21 +320,21 @@ describe("WorkflowTriggerBlockForm (SKY-9361)", () => {
expect(container.firstChild).toBeNull();
});
- test("renders WorkflowSelector + payload placeholder when no workflow selected", () => {
+ test("renders WorkflowSelector + payload placeholder when no agent selected", () => {
setWorkflowTriggerNode("w1", { workflowPermanentId: "" });
render(<WorkflowTriggerBlockForm blockId="w1" />);
- expect(screen.getByText("Target Workflow")).toBeDefined();
+ expect(screen.getByText("Target Agent")).toBeDefined();
expect(screen.getByTestId("workflow-selector")).toBeDefined();
expect(
screen.getByText(
- "Select a target workflow to configure its input parameters here.",
+ "Select a target agent to configure its input parameters here.",
),
).toBeDefined();
expect(screen.queryByTestId("payload-parameter-fields")).toBeNull();
});
- test("renders WorkflowSelector + PayloadParameterFields when workflow selected", () => {
+ test("renders WorkflowSelector + PayloadParameterFields when agent selected", () => {
setWorkflowTriggerNode("w1", {
workflowPermanentId: "wpid_target",
payload: '{"foo":"bar"}',
@@ -344,7 +344,7 @@ describe("WorkflowTriggerBlockForm (SKY-9361)", () => {
expect(screen.getByTestId("payload-parameter-fields")).toBeDefined();
expect(
screen.queryByText(
- "Select a target workflow to configure its input parameters here.",
+ "Select a target agent to configure its input parameters here.",
),
).toBeNull();
const payloadValue = screen.getByTestId("payload-value");
@@ -487,7 +487,7 @@ describe("WorkflowTriggerBlockForm (SKY-9361)", () => {
expect(
screen.getByText(
- /Continue in the same session.*disabled because the parent workflow may close its browser/i,
+ /Continue in the same session.*disabled because the parent agent may close its browser/i,
),
).toBeDefined();
});
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.tsx
index dfdc9e87a..257644e76 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.tsx
@@ -139,7 +139,7 @@ function BlockConfigSidebarBody({
const isStart = node ? isStartNode(node) : false;
const blockType = node ? getBlockTypeFromNode(node) : null;
const label = isStart
- ? "Workflow Settings"
+ ? "Agent Settings"
: typeof node?.data?.label === "string" && node.data.label.length > 0
? node.data.label
: blockType
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowHistoryPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowHistoryPanel.tsx
index fd89cf50c..9f89afd75 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowHistoryPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowHistoryPanel.tsx
@@ -100,7 +100,7 @@ function WorkflowHistoryPanel({
{/* Header */}
<div className="flex-shrink-0 p-4 pb-3">
<div className="flex items-center justify-between">
- <h2 className="text-lg font-semibold">Workflow History</h2>
+ <h2 className="text-lg font-semibold">Agent History</h2>
<div className="flex items-center gap-2">
<div className="text-sm text-muted-foreground">
{selectedVersions.size}/2 selected
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx
index 98358fb8b..5cf658624 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx
@@ -81,7 +81,7 @@ const nodeLibraryItems: Array<{
/>
),
title: "Human Interaction Block",
- description: "Pause workflow for human review and approval",
+ description: "Pause agent for human review and approval",
},
// {
// nodeType: "task",
@@ -266,8 +266,8 @@ const nodeLibraryItems: Array<{
className="size-6"
/>
),
- title: "Workflow Trigger Block",
- description: "Trigger another workflow",
+ title: "Agent Trigger Block",
+ description: "Trigger another agent",
},
{
nodeType: "googleSheetsRead",
@@ -410,7 +410,7 @@ function WorkflowNodeLibraryPanel({ onNodeClick }: Props) {
<span className="max-w-64 truncate text-base">
{item.title}
</span>
- <span className="text-xs text-slate-400">
+ <span className="text-xs text-slate-600 dark:text-slate-400">
{item.description}
</span>
</div>
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterEditPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterEditPanel.tsx
index c55d88a1c..68c553062 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterEditPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterEditPanel.tsx
@@ -540,7 +540,7 @@ function WorkflowParameterEditPanel({
<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." />
+ <HelpTooltip content="Optional. The agent parameter key that holds the URL. If provided, Skyvern will match the credential based on this URL." />
</div>
<Input
value={urlParameterKey}
@@ -552,7 +552,7 @@ function WorkflowParameterEditPanel({
<Label className="text-xs text-slate-300">
Bitwarden Collection ID
</Label>
- <HelpTooltip content="Find in the Bitwarden collection URL. Supports workflow parameters." />
+ <HelpTooltip content="Find in the Bitwarden collection URL. Supports agent parameters." />
</div>
<Input
value={bitwardenCollectionId}
@@ -564,7 +564,7 @@ function WorkflowParameterEditPanel({
<Label className="text-xs text-slate-300">
Bitwarden Item ID
</Label>
- <HelpTooltip content="Find in /#/vault?itemId=[ITEM_ID]. Supports workflow parameters." />
+ <HelpTooltip content="Find in /#/vault?itemId=[ITEM_ID]. Supports agent parameters." />
</div>
<Input
value={bitwardenLoginCredentialItemId}
@@ -625,7 +625,7 @@ function WorkflowParameterEditPanel({
<Label className="text-xs text-slate-300">
Bitwarden Collection ID
</Label>
- <HelpTooltip content="Collection containing the credit card. Supports workflow parameters." />
+ <HelpTooltip content="Collection containing the credit card. Supports agent parameters." />
</div>
<Input
value={bitwardenCollectionId}
@@ -637,7 +637,7 @@ function WorkflowParameterEditPanel({
<Label className="text-xs text-slate-300">
Bitwarden Item ID
</Label>
- <HelpTooltip content="Credit card item ID. Supports workflow parameters." />
+ <HelpTooltip content="Credit card item ID. Supports agent parameters." />
</div>
<Input
value={sensitiveInformationItemId}
@@ -657,7 +657,7 @@ function WorkflowParameterEditPanel({
<Label className="text-xs text-slate-300">
1Password Vault ID
</Label>
- <HelpTooltip content="Find this in the 1Password vault URL. Supports workflow parameters." />
+ <HelpTooltip content="Find this in the 1Password vault URL. Supports agent parameters." />
</div>
<Input
value={opVaultId}
@@ -669,7 +669,7 @@ function WorkflowParameterEditPanel({
<Label className="text-xs text-slate-300">
1Password Item ID
</Label>
- <HelpTooltip content="Find this in the 1Password item URL. Supports workflow parameters." />
+ <HelpTooltip content="Find this in the 1Password item URL. Supports agent parameters." />
</div>
<Input
value={opItemId}
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParametersPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParametersPanel.tsx
index 8bdf6ba3c..966ceea09 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParametersPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParametersPanel.tsx
@@ -101,7 +101,7 @@ function WorkflowParametersPanel({ onMouseDownCapture }: Props) {
<h1 className="text-lg">Parameters</h1>
<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.
+ prompted to fill them in before running your agent.
</span>
</header>
<Button
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 3374d2f93..d699d7313 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/CreateScheduleDialog.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/schedulePanel/CreateScheduleDialog.tsx
@@ -125,7 +125,7 @@ function CreateScheduleDialog({
<DialogHeader>
<DialogTitle>Create Schedule</DialogTitle>
<DialogDescription>
- Configure when this workflow should run automatically.
+ Configure when this agent should run automatically.
</DialogDescription>
</DialogHeader>
diff --git a/skyvern-frontend/src/routes/workflows/editor/reactFlowOverrideStyles.css b/skyvern-frontend/src/routes/workflows/editor/reactFlowOverrideStyles.css
index 6756ced11..a2689b896 100644
--- a/skyvern-frontend/src/routes/workflows/editor/reactFlowOverrideStyles.css
+++ b/skyvern-frontend/src/routes/workflows/editor/reactFlowOverrideStyles.css
@@ -78,8 +78,10 @@
}
.react-flow__attribution {
- background-color: rgb(2 6 23);
- color: white;
+ background-color: hsl(var(--background));
+ border: 1px solid hsl(var(--border));
+ border-radius: 4px;
+ color: hsl(var(--muted-foreground));
}
/* TooltipTrigger wraps each ControlButton in a <div> that defaults to
@@ -90,6 +92,58 @@
display: flex;
}
+.dark .react-flow__attribution {
+ background-color: hsl(var(--slate-elevation-2));
+ color: hsl(var(--foreground));
+}
+
+html:not(.dark) .workflow-editor-shell .text-slate-300 {
+ color: rgb(51 65 85);
+}
+
+html:not(.dark) .workflow-editor-shell .text-slate-400 {
+ color: rgb(71 85 105);
+}
+
+html:not(.dark)
+ .workflow-editor-shell
+ :is(
+ .bg-slate-800,
+ .bg-slate-800\/50,
+ .bg-slate-900\/30,
+ .bg-slate-900\/40
+ ):not(.workflow-editor-tip)
+ .text-slate-300 {
+ color: rgb(203 213 225);
+}
+
+html:not(.dark)
+ .workflow-editor-shell
+ :is(
+ .bg-slate-800,
+ .bg-slate-800\/50,
+ .bg-slate-900\/30,
+ .bg-slate-900\/40
+ ):not(.workflow-editor-tip)
+ .text-slate-400 {
+ color: rgb(148 163 184);
+}
+
+html:not(.dark) .workflow-editor-shell .workflow-editor-tip {
+ background-color: rgb(248 250 252);
+ border: 1px solid rgb(226 232 240);
+ color: rgb(71 85 105);
+}
+
+html:not(.dark) .workflow-editor-shell .workflow-editor-tip-icon {
+ background-color: rgb(226 232 240);
+ color: rgb(51 65 85);
+}
+
+html:not(.dark) .workflow-editor-shell .workflow-editor-tip code {
+ color: rgb(15 23 42);
+}
+
/* Restore xyflow's between-button divider when a ControlButton is wrapped in a
<TooltipTrigger asChild> div, since the wrapper makes the button :last-child
of its parent and xyflow's default `:last-child { border-bottom: none }` zeros
@@ -113,7 +167,7 @@
to --muted instead of xyflow's near-white default. */
.react-flow__controls .react-flow__controls-button {
--xy-controls-button-background-color: hsl(var(--slate-elevation-3));
- --xy-controls-button-color: theme("colors.slate.400");
+ --xy-controls-button-color: hsl(var(--muted-foreground));
--xy-controls-button-background-color-hover: hsl(var(--muted));
- --xy-controls-button-color-hover: theme("colors.slate.200");
+ --xy-controls-button-color-hover: hsl(var(--foreground));
}
diff --git a/skyvern-frontend/src/routes/workflows/editor/workspace-styles.css b/skyvern-frontend/src/routes/workflows/editor/workspace-styles.css
index 0d078204b..8218a1954 100644
--- a/skyvern-frontend/src/routes/workflows/editor/workspace-styles.css
+++ b/skyvern-frontend/src/routes/workflows/editor/workspace-styles.css
@@ -2,9 +2,9 @@
background: linear-gradient(
to bottom,
transparent 0%,
- rgba(51, 65, 85, 0.1) 20%,
- rgba(51, 65, 85, 0.5) 50%,
- rgba(51, 65, 85, 0.1) 80%,
+ rgba(115, 115, 115, 0.1) 20%,
+ rgba(115, 115, 115, 0.5) 50%,
+ rgba(115, 115, 115, 0.1) 80%,
transparent 100%
);
}
@@ -13,9 +13,9 @@
background: linear-gradient(
to bottom,
transparent 0%,
- rgba(51, 65, 85, 0.3) 20%,
- rgba(51, 65, 85, 1) 50%,
- rgba(51, 65, 85, 0.3) 80%,
+ rgba(115, 115, 115, 0.3) 20%,
+ rgba(115, 115, 115, 1) 50%,
+ rgba(115, 115, 115, 0.3) 80%,
transparent 100%
);
}
diff --git a/skyvern-frontend/src/routes/workflows/hooks/useCreateWorkflowMutation.ts b/skyvern-frontend/src/routes/workflows/hooks/useCreateWorkflowMutation.ts
index 0d53168dd..3094db026 100644
--- a/skyvern-frontend/src/routes/workflows/hooks/useCreateWorkflowMutation.ts
+++ b/skyvern-frontend/src/routes/workflows/hooks/useCreateWorkflowMutation.ts
@@ -5,9 +5,27 @@ import { getClient } from "@/api/AxiosClient";
import { useNavigate } from "react-router-dom";
import { stringify as convertToYAML } from "yaml";
import { WorkflowApiResponse } from "../types/workflowTypes";
+import { toast } from "@/components/ui/use-toast";
+import axios from "axios";
type CreateWorkflowInput = WorkflowCreateYAMLRequest & { _via?: string };
+function getCreateWorkflowErrorMessage(error: unknown) {
+ if (axios.isAxiosError(error)) {
+ const detail = error.response?.data?.detail;
+ if (typeof detail === "string") {
+ return detail;
+ }
+ return error.message;
+ }
+
+ if (error instanceof Error) {
+ return error.message;
+ }
+
+ return "Please try again.";
+}
+
function useCreateWorkflowMutation() {
const queryClient = useQueryClient();
const credentialGetter = useCredentialGetter();
@@ -41,6 +59,13 @@ function useCreateWorkflowMutation() {
`/workflows/${response.data.workflow_permanent_id}/build${search}`,
);
},
+ onError: (error) => {
+ toast({
+ variant: "destructive",
+ title: "Could not create agent",
+ description: getCreateWorkflowErrorMessage(error),
+ });
+ },
});
}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx
index 01509753f..3d8ecf49b 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-slate-400">
+ <div className="break-words text-xs text-neutral-600 dark:text-slate-400">
{action.reasoning}
</div>
{action.action_type === ActionTypes.InputText && (
<>
<Separator />
- <div className="text-xs text-slate-400">
+ <div className="text-xs text-neutral-600 dark:text-slate-400">
Input:{" "}
{action.action_type === "input_text"
? (action.text ?? action.response)
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/RunCard.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/RunCard.tsx
index 35788c8ba..f59a31ea4 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/RunCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/RunCard.tsx
@@ -36,10 +36,12 @@ function RunCard({
"rounded-lg bg-slate-elevation4 ring-1 ring-transparent transition-all duration-200",
status != null && "border-l-2 border-l-transparent",
{
- "cursor-pointer hover:ring-white/25": !!onClick,
+ "cursor-pointer hover:ring-neutral-400/40 dark:hover:ring-white/25":
+ !!onClick,
"border-l-destructive": status === "failure" && !active,
"border-l-success": status === "success" && !active,
- "ring-2 ring-white/55 hover:ring-white/55": active,
+ "ring-2 ring-neutral-500/45 hover:ring-neutral-500/45 dark:ring-white/55 dark:hover:ring-white/55":
+ active,
},
className,
)}
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ThoughtCard.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ThoughtCard.tsx
index 4c1ebb761..dc6b8fae7 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-slate-400">
+ <div className="break-words text-xs text-neutral-600 dark: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 860b1ddde..06b542bb7 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx
@@ -349,7 +349,7 @@ function WorkflowPostRunParameters() {
) : null}
<div className="rounded bg-slate-elevation2 p-6">
<div className="space-y-4">
- <h1 className="text-lg font-bold">Workflow Input Parameters</h1>
+ <h1 className="text-lg font-bold">Agent Input Parameters</h1>
{getOrderedRunParameters(
workflow?.workflow_definition.parameters,
parameters,
@@ -377,9 +377,9 @@ function WorkflowPostRunParameters() {
);
})}
{Object.keys(parameters).length === 0 ? (
- <div>No input parameters found for this workflow</div>
+ <div>No input parameters found for this agent</div>
) : null}
- <h1 className="text-lg font-bold">Other Workflow Parameters</h1>
+ <h1 className="text-lg font-bold">Other Agent Parameters</h1>
<div className="flex gap-16">
<div className="w-80">
<h1 className="text-lg">Webhook Callback URL</h1>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx
index 4aef52f3f..aaecc086a 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx
@@ -300,7 +300,7 @@ function WorkflowRunOutput() {
<div className="rounded bg-slate-elevation2 p-6">
<div className="space-y-4">
<div className="flex items-center justify-between">
- <h1 className="text-lg font-bold">Workflow Run Outputs</h1>
+ <h1 className="text-lg font-bold">Agent Run Outputs</h1>
{outputs && (
<SummarizeOutput
key={runContextKey}
@@ -338,7 +338,7 @@ function WorkflowRunOutput() {
<h1 className="text-lg font-bold">
{showBlockFiles
? "Block Downloaded Files"
- : "Workflow Run Downloaded Files"}
+ : "Agent Run Downloaded Files"}
</h1>
{userSelectedBlock ? (
<Button
@@ -349,7 +349,7 @@ function WorkflowRunOutput() {
>
{showAllFilesOverride
? "Show block files"
- : "Show all workflow files"}
+ : "Show all agent files"}
</Button>
) : null}
</div>
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
index d6955906c..6df7f3cf4 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
@@ -31,7 +31,7 @@ function WorkflowRunRecording() {
</div>
);
}
- return <div>No recording available for this workflow</div>;
+ return <div>No recording available for this agent</div>;
}
const run = workflowRun;
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStatusAlert.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStatusAlert.tsx
index f6166efdd..493bac313 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStatusAlert.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStatusAlert.tsx
@@ -102,9 +102,9 @@ function WorkflowRunStatusAlert({ status, title, visible }: Props) {
if (Notification.permission === "granted") {
try {
const notification = new Notification(
- `Workflow Run Status Change: ${status}`,
+ `Agent Run Status Change: ${status}`,
{
- body: `The workflow run "${title ?? "unknown"}" has changed to status: ${status}`,
+ body: `The agent run "${title ?? "unknown"}" has changed to status: ${status}`,
icon: "/favicon.png",
tag: `workflow-${title ?? "unknown"}-${status}`,
requireInteraction: false,
@@ -258,7 +258,7 @@ function WorkflowRunStatusAlert({ status, title, visible }: Props) {
</div>
)}
</Button>
- <HelpTooltip content="When this workflow changes to a particular status, notify me via OS notifications and a sound." />
+ <HelpTooltip content="When this agent changes to a particular status, notify me via OS notifications and a sound." />
</div>
</div>
);
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx
index 2151dbd54..78e6a0ca5 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx
@@ -34,9 +34,9 @@ function diagnosticForStatus(status: string): StreamDiagnostic {
switch (status) {
case "not_found":
return {
- title: "Workflow run not found",
+ title: "Agent run not found",
detail:
- "The backend could not find this workflow run for the current organization.",
+ "The backend could not find this agent run for the current organization.",
};
case "timeout":
return {
@@ -49,8 +49,8 @@ function diagnosticForStatus(status: string): StreamDiagnostic {
case "failed":
case "terminated":
return {
- title: "Workflow run is no longer live",
- detail: `The workflow run status is ${status}.`,
+ title: "Agent run is no longer live",
+ detail: `The agent run status is ${status}.`,
};
default:
return {
@@ -200,13 +200,13 @@ function WorkflowRunStream({
) {
toast({
title: "Run Failed",
- description: "The workflow run has failed.",
+ description: "The agent run has failed.",
variant: "destructive",
});
} else if (message.status === "completed") {
toast({
title: "Run Completed",
- description: "The workflow run has been completed.",
+ description: "The agent run has been completed.",
variant: "success",
});
}
@@ -259,16 +259,16 @@ 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-900 py-8 text-lg">
- <span>Workflow has been created.</span>
- <span>Stream will start when the workflow is running.</span>
+ <span>Agent has been created.</span>
+ <span>Stream will start when the agent is running.</span>
</div>
);
}
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-900 py-8 text-lg">
- <span>Your workflow run is queued.</span>
- <span>Stream will start when the workflow is running.</span>
+ <span>Your agent run is queued.</span>
+ <span>Stream will start when the agent 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 a150c537b..d5ace5c87 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimeline.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimeline.tsx
@@ -81,16 +81,16 @@ function WorkflowRunTimeline({
const numberOfActions = countActionsInTimeline(workflowRunTimeline);
return (
- <div className="min-w-0 space-y-4 overflow-hidden rounded bg-slate-elevation1 p-4">
+ <div className="min-w-0 space-y-4 overflow-hidden rounded bg-slate-elevation1 p-4 text-neutral-900 dark:text-foreground">
<div className="grid grid-cols-3 gap-2">
- <div className="flex items-center justify-center rounded bg-slate-elevation3 px-4 py-3 text-xs">
+ <div className="flex items-center justify-center rounded bg-slate-elevation3 px-4 py-3 text-xs text-neutral-800 dark:text-foreground">
Actions: {numberOfActions}
</div>
- <div className="flex items-center justify-center rounded bg-slate-elevation3 px-4 py-3 text-xs">
+ <div className="flex items-center justify-center rounded bg-slate-elevation3 px-4 py-3 text-xs text-neutral-800 dark:text-foreground">
Steps: {workflowRun.total_steps ?? 0}
</div>
<div
- className="flex items-center justify-center rounded bg-slate-elevation3 px-4 py-3 text-xs"
+ className="flex items-center justify-center rounded bg-slate-elevation3 px-4 py-3 text-xs text-neutral-800 dark:text-foreground"
title="Credits consumed by this run (live + cached)"
>
Credits:{" "}
@@ -107,7 +107,7 @@ function WorkflowRunTimeline({
<div
key="stream"
className={cn(
- "flex cursor-pointer items-center gap-2 rounded-lg bg-gradient-to-r from-red-500/10 to-slate-elevation3 px-3 py-2 text-sm transition-colors duration-150 hover:from-red-500/20",
+ "flex cursor-pointer items-center gap-2 rounded-lg bg-gradient-to-r from-red-500/10 to-slate-elevation3 px-3 py-2 text-sm text-neutral-800 transition-colors duration-150 hover:from-red-500/20 dark:text-foreground",
{
"bg-slate-elevation5 from-red-500/20":
activeItem === "stream",
@@ -120,12 +120,12 @@ function WorkflowRunTimeline({
</div>
)}
{workflowRunIsNotFinalized && workflowRunTimeline.length === 0 && (
- <div className="flex items-center justify-center py-8 text-sm text-slate-400">
+ <div className="flex items-center justify-center py-8 text-sm text-neutral-500 dark:text-slate-400">
Formulating actions...
</div>
)}
{workflowRunIsFinalized && workflowRunTimeline.length === 0 && (
- <div>Workflow timeline is empty</div>
+ <div>Agent timeline is empty</div>
)}
{workflowRunTimeline?.map((timelineItem) => {
const itemId = isBlockItem(timelineItem)
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx
index 4b2bcfa67..ffb26c233 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-slate-300"
+ className="line-clamp-2 block min-w-0 break-all rounded bg-white px-1 py-0.5 font-mono text-neutral-700 dark:bg-slate-elevation1 dark:text-slate-300"
>
{collapsed}
</code>
@@ -471,16 +471,16 @@ function WorkflowRunTimelineBlockItem({
<div
className={cn("min-w-0", {
"ml-3 pl-3": depth > 0,
- "border-l border-slate-700": depth > 0,
+ "border-l border-neutral-300 dark:border-slate-700": depth > 0,
})}
>
<div
data-slot="block-item"
className={cn(
- "cursor-pointer rounded-lg ring-1 ring-transparent transition-all duration-200 [&:hover:not(:has([data-slot=runcard]:hover,[data-slot=block-item]:hover))]:ring-white/30",
+ "cursor-pointer rounded-lg ring-1 ring-transparent transition-all duration-200 [&:hover:not(:has([data-slot=runcard]:hover,[data-slot=block-item]:hover))]:ring-neutral-400/40 dark:[&:hover:not(:has([data-slot=runcard]:hover,[data-slot=block-item]:hover))]:ring-white/30",
getBlockElevation(depth),
{
- "ring-2 ring-white/55 [&:hover:not(:has([data-slot=runcard]:hover,[data-slot=block-item]:hover))]:ring-white/55":
+ "ring-2 ring-neutral-500/45 dark:ring-white/55 [&:hover:not(:has([data-slot=runcard]:hover,[data-slot=block-item]:hover))]:ring-neutral-500/45 dark:[&:hover:not(:has([data-slot=runcard]:hover,[data-slot=block-item]:hover))]:ring-white/55":
isWorkflowRunBlock(activeItem) &&
activeItem.workflow_run_block_id === block.workflow_run_block_id,
},
@@ -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-800 p-2">
+ <div className="relative rounded border border-slate-300 bg-slate-50 p-2 text-slate-900 shadow-sm dark:border-0 dark:bg-slate-800 dark:text-foreground dark:shadow-none">
<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-slate-400" />
+ <div className="absolute -bottom-1 -left-1 rounded-full bg-white p-0.5 dark:bg-slate-elevation3">
+ <ReloadIcon className="size-3 animate-spin text-slate-600 dark:text-slate-400" />
</div>
)}
</div>
@@ -513,7 +513,7 @@ function WorkflowRunTimelineBlockItem({
</span>
<span
ref={shimmerLabelRef}
- className="flex gap-2 text-xs text-slate-400"
+ className="flex gap-2 text-xs text-neutral-600 dark:text-slate-400"
>
{block.label}
</span>
@@ -526,17 +526,17 @@ function WorkflowRunTimelineBlockItem({
</div>
<div className="flex gap-2">
{showFailureIndicator && (
- <div className="self-start rounded bg-slate-elevation5 px-2 py-1">
+ <div className="self-start rounded bg-neutral-200 px-2 py-1 dark:bg-slate-elevation5">
<CrossCircledIcon className="size-4 text-destructive" />
</div>
)}
{showSuccessIndicator && (
- <div className="self-start rounded bg-slate-elevation5 px-2 py-1">
+ <div className="self-start rounded bg-neutral-200 px-2 py-1 dark:bg-slate-elevation5">
<CheckCircledIcon className="size-4 text-success" />
</div>
)}
<div className="flex flex-col items-end gap-[1px]">
- <div className="flex gap-1 self-start rounded bg-slate-elevation5 px-2 py-1">
+ <div className="flex gap-1 self-start rounded bg-neutral-200 px-2 py-1 text-neutral-800 dark:bg-slate-elevation5 dark:text-foreground">
{showDiagnosticLink ? (
<Link
to={`/tasks/${block.task_id}/diagnostics`}
@@ -563,15 +563,15 @@ function WorkflowRunTimelineBlockItem({
</div>
</div>
{block.description ? (
- <div className="break-words text-xs text-slate-400">
+ <div className="break-words text-xs text-neutral-600 dark: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-slate-300">
+ <div className="min-w-0 space-y-2 rounded bg-neutral-200/80 px-3 py-2 text-xs dark:bg-slate-elevation5">
+ <div className="text-neutral-600 dark:text-slate-300">
Iterable values:{" "}
- <span className="font-medium text-slate-200">
+ <span className="font-medium text-neutral-800 dark: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-slate-400"
+ className="flex min-w-0 break-words text-neutral-700 dark:text-slate-400"
>
- <span className="mr-1 shrink-0 text-slate-500">
+ <span className="mr-1 shrink-0 text-neutral-500 dark:text-slate-500">
[{index}]
</span>
<LoopValueCode
@@ -600,15 +600,15 @@ function WorkflowRunTimelineBlockItem({
</div>
)}
{isWhileLoopBlock && (
- <div className="min-w-0 rounded bg-slate-elevation5 px-3 py-2 text-xs text-slate-300">
+ <div className="min-w-0 rounded bg-neutral-200/80 px-3 py-2 text-xs text-neutral-600 dark:bg-slate-elevation5 dark:text-slate-300">
Iterations run:{" "}
- <span className="font-medium text-slate-200">
+ <span className="font-medium text-neutral-800 dark:text-slate-200">
{loopIterationGroups.length}
</span>
</div>
)}
{block.block_type === "conditional" && block.executed_branch_id && (
- <div className="space-y-2 rounded bg-slate-elevation5 px-3 py-2 text-xs">
+ <div className="space-y-2 rounded bg-neutral-200/80 px-3 py-2 text-xs dark:bg-slate-elevation5">
{hasEvaluations(block.output) && block.output.evaluations ? (
// New format: show all branch evaluations
<div className="space-y-2">
@@ -619,11 +619,11 @@ function WorkflowRunTimelineBlockItem({
"rounded border px-2 py-1.5",
evaluation.is_matched
? "border-success/50 bg-success/10"
- : "border-slate-600 bg-slate-elevation3",
+ : "border-neutral-300 bg-slate-elevation3 dark:border-slate-600",
)}
>
{evaluation.is_default ? (
- <div className="text-slate-300">
+ <div className="text-neutral-700 dark: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-slate-400">
- <code className="break-all rounded bg-slate-elevation1 px-1 py-0.5 font-mono text-slate-300">
+ <div className="text-neutral-600 dark:text-slate-400">
+ <code className="break-all rounded bg-white px-1 py-0.5 font-mono text-neutral-700 dark:bg-slate-elevation1 dark:text-slate-300">
{evaluation.original_expression}
</code>
</div>
{evaluation.rendered_expression &&
evaluation.rendered_expression !==
evaluation.original_expression && (
- <div className="text-slate-400">
+ <div className="text-neutral-600 dark:text-slate-400">
→ rendered to{" "}
- <code className="break-all rounded bg-slate-elevation1 px-1 py-0.5 font-mono text-slate-200">
+ <code className="break-all rounded bg-white px-1 py-0.5 font-mono text-neutral-800 dark:bg-slate-elevation1 dark:text-slate-200">
{evaluation.rendered_expression}
</code>
</div>
)}
<div className="flex items-center gap-2">
- <span className="text-slate-400">
+ <span className="text-neutral-600 dark: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-slate-400">
+ <div className="mt-1 text-neutral-600 dark:text-slate-400">
→ Executing next block:{" "}
- <span className="font-medium text-slate-300">
+ <span className="font-medium text-neutral-700 dark: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-slate-300">
+ <div className="text-neutral-700 dark:text-slate-300">
Condition{" "}
- <code className="break-all rounded bg-slate-elevation3 px-1.5 py-0.5 font-mono text-slate-200">
+ <code className="break-all rounded bg-slate-elevation3 px-1.5 py-0.5 font-mono text-neutral-800 dark:text-slate-200">
{block.executed_branch_expression}
</code>{" "}
evaluated to{" "}
<span className="font-medium text-success">True</span>
</div>
) : (
- <div className="text-slate-300">
+ <div className="text-neutral-700 dark:text-slate-300">
No conditions matched, executing default branch
</div>
)}
{block.executed_branch_next_block && (
- <div className="text-slate-400">
+ <div className="text-neutral-600 dark:text-slate-400">
→ Executing next block:{" "}
- <span className="font-medium text-slate-300">
+ <span className="font-medium text-neutral-700 dark:text-slate-300">
{block.executed_branch_next_block}
</span>
</div>
@@ -799,21 +799,21 @@ function WorkflowRunTimelineBlockItem({
});
}}
>
- <div className="rounded border border-slate-700 bg-slate-elevation4">
+ <div className="rounded border border-neutral-300 bg-neutral-100 dark:border-slate-700 dark: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-slate-300 transition-transform group-data-[state=open]:rotate-90" />
- <span className="text-xs text-slate-200">{`Iteration ${iterationNumber}`}</span>
+ <ChevronRightIcon className="size-4 text-neutral-600 transition-transform group-data-[state=open]:rotate-90 dark:text-slate-300" />
+ <span className="text-xs text-neutral-800 dark: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-slate-300">
+ <code className="min-w-0 truncate rounded bg-white px-1 py-0.5 text-[11px] text-neutral-700 dark:bg-slate-elevation1 dark: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-slate-300">
+ <code className="min-w-0 truncate rounded bg-white px-1 py-0.5 text-[11px] text-neutral-700 dark:bg-slate-elevation1 dark: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-slate-700 bg-slate-elevation4 px-2 py-1.5">
+ <div className="rounded border border-neutral-300 bg-neutral-100 px-2 py-1.5 dark:border-slate-700 dark:bg-slate-elevation4">
<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-slate-200">
+ <div className="flex items-center gap-1.5 text-xs text-neutral-800 dark: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-slate-400">
+ <span className="text-[11px] text-neutral-600 dark:text-slate-400">
next: {block.executed_branch_next_block}
</span>
)}
diff --git a/skyvern-frontend/src/store/DebugStoreContext.tsx b/skyvern-frontend/src/store/DebugStoreContext.tsx
index fdcc97e57..87924fb98 100644
--- a/skyvern-frontend/src/store/DebugStoreContext.tsx
+++ b/skyvern-frontend/src/store/DebugStoreContext.tsx
@@ -1,11 +1,14 @@
import React, { createContext, useMemo } from "react";
-import { useLocation } from "react-router-dom";
+import { useMatch } from "react-router-dom";
function useIsDebugMode() {
- const location = useLocation();
+ const workflowBuildMatch = useMatch("/workflows/:workflowPermanentId/build");
+ const workflowBlockBuildMatch = useMatch(
+ "/workflows/:workflowPermanentId/:workflowRunId/:blockLabel/build",
+ );
return useMemo(
- () => location.pathname.includes("build"),
- [location.pathname],
+ () => Boolean(workflowBuildMatch || workflowBlockBuildMatch),
+ [workflowBuildMatch, workflowBlockBuildMatch],
);
}
diff --git a/skyvern-frontend/src/store/SidebarStore.ts b/skyvern-frontend/src/store/SidebarStore.ts
index 450b23d3a..eacf5b01c 100644
--- a/skyvern-frontend/src/store/SidebarStore.ts
+++ b/skyvern-frontend/src/store/SidebarStore.ts
@@ -5,10 +5,43 @@ type SidebarStore = {
setCollapsed: (collapsed: boolean) => void;
};
+const SIDEBAR_COLLAPSED_STORAGE_KEY = "skyvern-sidebar-collapsed";
+
+function getInitialCollapsed() {
+ try {
+ if (typeof window === "undefined") {
+ return false;
+ }
+ return (
+ window.localStorage.getItem(SIDEBAR_COLLAPSED_STORAGE_KEY) === "true"
+ );
+ } catch {
+ return false;
+ }
+}
+
+function persistCollapsed(collapsed: boolean) {
+ try {
+ if (typeof window === "undefined") {
+ return;
+ }
+ window.localStorage.setItem(
+ SIDEBAR_COLLAPSED_STORAGE_KEY,
+ String(collapsed),
+ );
+ } catch {
+ // Persistence is cosmetic; keep the in-memory collapse state if storage
+ // is blocked.
+ }
+}
+
const useSidebarStore = create<SidebarStore>((set) => {
return {
- collapsed: false,
- setCollapsed: (collapsed: boolean) => set({ collapsed }),
+ collapsed: getInitialCollapsed(),
+ setCollapsed: (collapsed: boolean) => {
+ persistCollapsed(collapsed);
+ set({ collapsed });
+ },
};
});
diff --git a/skyvern-frontend/src/store/WorkflowHasChangesStore.ts b/skyvern-frontend/src/store/WorkflowHasChangesStore.ts
index b9899bff0..2916eb385 100644
--- a/skyvern-frontend/src/store/WorkflowHasChangesStore.ts
+++ b/skyvern-frontend/src/store/WorkflowHasChangesStore.ts
@@ -296,11 +296,11 @@ const useWorkflowSave = (opts?: WorkflowSaveOpts) => {
.join("; ");
} else {
description =
- "Failed to save workflow. Please check your workflow configuration and try again.";
+ "Failed to save agent. Please check your agent configuration and try again.";
}
toast({
- title: "Failed to save workflow",
+ title: "Failed to save agent",
description,
variant: "destructive",
});
diff --git a/skyvern-frontend/src/store/WorkflowTitleStore.ts b/skyvern-frontend/src/store/WorkflowTitleStore.ts
index 16bdd2fcb..167b75e1f 100644
--- a/skyvern-frontend/src/store/WorkflowTitleStore.ts
+++ b/skyvern-frontend/src/store/WorkflowTitleStore.ts
@@ -1,6 +1,6 @@
import { create } from "zustand";
-const DEFAULT_WORKFLOW_TITLE = "New Workflow" as const;
+const DEFAULT_WORKFLOW_TITLE = "New Agent" as const;
type WorkflowTitleStore = {
title: string;