Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
added parameter picker to conditional block (#4326)
Celal Zamanoglud4a9e09fd63d
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/ConditionalNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/ConditionalNode.tsxindex 3c8f27cbf..5f0da9bc4 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/ConditionalNode.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ConditionalNode/ConditionalNode.tsx@@ -14,7 +14,6 @@ import {import type { Node } from "@xyflow/react";import { Button } from "@/components/ui/button";-import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";import {DropdownMenu,@@ -39,6 +38,7 @@ import {} from "./types";import type { BranchCondition } from "../../../types/workflowTypes";import { HelpTooltip } from "@/components/HelpTooltip";+import { WorkflowBlockInput } from "@/components/WorkflowBlockInput";function ConditionalNodeComponent({ id, data }: NodeProps<ConditionalNode>) {const nodes = useNodes<AppNode>();@@ -686,15 +686,16 @@ function ConditionalNodeComponent({ id, data }: NodeProps<ConditionalNode>) {/>)}</div>- <Input+ <WorkflowBlockInput+ nodeId={id}value={activeBranch.is_default? "Executed when no other condition matches": activeBranch.criteria?.expression ?? ""}disabled={!data.editable || activeBranch.is_default}- onChange={(event) => {- handleExpressionChange(event.target.value);+ onChange={(value) => {+ handleExpressionChange(value);}}placeholder="Enter condition to evaluate (Jinja or natural language)"/>