Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Polish Workflow Studio top bar spacing, grouping, and sizing (#6914)
Aaron Perez1451bd491f8c
diff --git a/skyvern-frontend/src/routes/workflows/editor/header/EditorOverflowMenu.tsx b/skyvern-frontend/src/routes/workflows/editor/header/EditorOverflowMenu.tsxindex 578d32ba5..1906f1939 100644--- a/skyvern-frontend/src/routes/workflows/editor/header/EditorOverflowMenu.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/header/EditorOverflowMenu.tsx@@ -34,7 +34,11 @@ import { useSaveWorkflow } from "../hooks/useSaveWorkflow";import { useToggleHistoryPanel } from "../hooks/useToggleHistoryPanel";import { CodeSubmenu } from "./CodeSubmenu";-export function EditorOverflowMenu() {+export function EditorOverflowMenu({+ triggerClassName = "size-10 min-w-[2.5rem]",+}: {+ triggerClassName?: string;+} = {}) {const { workflowPermanentId } = useParams();const { data: workflow } = useWorkflowQuery({ workflowPermanentId });const { data: workflowRun } = useWorkflowRunQuery();@@ -99,7 +103,7 @@ export function EditorOverflowMenu() {disabled={isRecording}size="icon"variant="tertiary"- className="size-10 min-w-[2.5rem]"+ className={triggerClassName}aria-label="More actions"><DotsHorizontalIcon className="size-5" />diff --git a/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsx b/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsxindex e1632d116..f28ff3ba2 100644--- a/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsx@@ -80,7 +80,7 @@ function GeneratingCodeIndicator() {return (<span- className="inline-flex items-center gap-2 rounded-md bg-slate-elevation3 px-3 py-1.5 text-sm font-medium text-muted-foreground"+ className="inline-flex h-9 items-center gap-2 rounded-md bg-slate-elevation3 px-3 text-sm font-medium text-muted-foreground"title="Generating cached code for this run"><ReloadIcon className="size-4 animate-spin" />@@ -245,9 +245,13 @@ function PanelToggle({return (<Buttonvariant="tertiary"- size={icon ? "icon" : "lg"}- className={icon ? "size-9" : undefined}+ size={icon ? "icon" : "default"}disabled={isRecording}+ aria-pressed={isOpen}+ className={cn(+ isOpen &&+ "border-studio-accent/40 bg-studio-accent/15 text-foreground hover:bg-studio-accent/20",+ )}onClick={() => (isOpen ? close() : setState({ active: true, content }))}title={label}aria-label={label}@@ -304,7 +308,7 @@ function RunStopButton() {<DialogTrigger asChild><Buttonvariant="destructive"- size="lg"+ size="default"disabled={cancelRun.isPending || isRecording}>{cancelRun.isPending ? (@@ -339,7 +343,7 @@ function RunStopButton() {}return (<Button- size="lg"+ size="default"disabled={isRecording}onClick={() => navigate(`/workflows/${workflowPermanentId}/run`)}>@@ -353,23 +357,28 @@ export function StudioTopBar() {return (<div className="flex h-14 shrink-0 items-center gap-3 border-b border-border bg-slate-elevation2 px-4"><TitleSection editable={!isGlobalWorkflow} />+ <div className="h-6 w-px bg-border" aria-hidden /><StudioTabs /><div className="flex-1" /><GeneratingCodeIndicator />{isGlobalWorkflow ? (<MakeACopyButton />) : (- <div data-tour="editor-actions" className="flex items-center gap-3">- <SaveButton />- <PanelToggle- content="schedules"- label="Schedule"- icon={<CalendarIcon className="size-5" />}- />- <EditorOverflowMenu />- <div className="mx-1 h-6 w-px bg-border" />- <PanelToggle content="parameters" label="Inputs" />- <RunStopButton />+ <div data-tour="editor-actions" className="flex items-center gap-2">+ <div className="flex items-center gap-1">+ <SaveButton />+ <PanelToggle+ content="schedules"+ label="Schedule"+ icon={<CalendarIcon className="size-5" />}+ />+ <EditorOverflowMenu triggerClassName="size-9" />+ </div>+ <div className="h-6 w-px bg-border" aria-hidden />+ <div className="flex items-center gap-2">+ <PanelToggle content="parameters" label="Inputs" />+ <RunStopButton />+ </div></div>)}</div>