Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Add loader while workflow initially renders (#SKY-8059) (#4915)
Celal Zamanoğlud576912f7100
diff --git a/skyvern-frontend/src/routes/workflows/debugger/Debugger.tsx b/skyvern-frontend/src/routes/workflows/debugger/Debugger.tsxindex a4dfcf2dc..88e205e5a 100644--- a/skyvern-frontend/src/routes/workflows/debugger/Debugger.tsx+++ b/skyvern-frontend/src/routes/workflows/debugger/Debugger.tsx@@ -2,6 +2,7 @@ import { useEffect } from "react";import { useParams } from "react-router-dom";import { ReactFlowProvider } from "@xyflow/react";+import { LogoMinimized } from "@/components/LogoMinimized";import { useWorkflowQuery } from "../hooks/useWorkflowQuery";import { WorkflowSettings } from "../types/workflowTypes";import {@@ -16,7 +17,7 @@ import { useBlockOutputStore } from "@/store/BlockOutputStore";function Debugger() {const { workflowPermanentId } = useParams();- const { data: workflow } = useWorkflowQuery({+ const { data: workflow, isLoading } = useWorkflowQuery({workflowPermanentId,});const { data: outputParameters } = useDebugSessionBlockOutputsQuery({@@ -51,6 +52,16 @@ function Debugger() {setBlockOutputs(blockOutputs);}, [outputParameters, setBlockOutputs]);+ if (isLoading) {+ return (+ <div className="flex h-screen w-full items-center justify-center">+ <div className="animate-pulse">+ <LogoMinimized />+ </div>+ </div>+ );+ }+if (!workflow) {return null;}diff --git a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsxindex e864763ff..81ac66272 100644--- a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx@@ -1,3 +1,4 @@+import { LogoMinimized } from "@/components/LogoMinimized";import { Button } from "@/components/ui/button";import {Dialog,@@ -860,7 +861,7 @@ function FlowRenderer({return (<div- className={cn("h-full w-full", {+ className={cn("relative h-full w-full", {"react-flow--pre-layout": layoutPhase === "pre-layout","react-flow--initial-load":layoutPhase === "initial-load" || layoutPhase === "pre-layout",@@ -868,6 +869,13 @@ function FlowRenderer({style={{ zIndex }}onMouseDownCapture={() => onMouseDownCapture?.()}>+ {layoutPhase === "pre-layout" && (+ <div className="absolute inset-0 z-50 flex items-center justify-center bg-slate-950">+ <div className="animate-pulse">+ <LogoMinimized />+ </div>+ </div>+ )}<Dialogopen={blocker.state === "blocked"}onOpenChange={(open) => {diff --git a/skyvern-frontend/src/routes/workflows/editor/WorkflowEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/WorkflowEditor.tsxindex b938f8345..ebb964c40 100644--- a/skyvern-frontend/src/routes/workflows/editor/WorkflowEditor.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/WorkflowEditor.tsx@@ -42,7 +42,9 @@ function WorkflowEditor() {if (isLoading || isGlobalWorkflowsLoading) {return (<div className="flex h-screen w-full items-center justify-center">- <LogoMinimized />+ <div className="animate-pulse">+ <LogoMinimized />+ </div></div>);}