-
Notifications
You must be signed in to change notification settings - Fork 777
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔄 synced local 'skyvern-frontend/src/' with remote 'skyvern-frontend/…
…src/' <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add new components for enhanced parameter handling in workflow nodes, replacing existing components and improving functionality across various node files. > > - **Components**: > - Add `WorkflowBlockInput`, `WorkflowBlockInputTextarea`, and `WorkflowBlockParameterSelect` for parameter handling. > - **Integration**: > - Replace `AutoResizingTextarea` with `WorkflowBlockInputTextarea` in `ActionNode.tsx`, `ExtractionNode.tsx`, and `FileDownloadNode.tsx`. > - Add parameter selection in `NavigationNode.tsx` and `TaskNode.tsx` using `WorkflowBlockParameterSelect`. > - **State Management**: > - Use `useWorkflowParametersState` in `TaskNode.tsx` for managing workflow parameters. > - **Misc**: > - Add `parameterInputOptions` in `TaskNode.tsx` to combine workflow and output parameters. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for d951eeb248f89efd7c6d78de0f77c5e96cab3000. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
1 parent
5830758
commit 3500b2d
Showing
10 changed files
with
430 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { PlusIcon } from "@radix-ui/react-icons"; | ||
import { cn } from "@/util/utils"; | ||
import { Input } from "./ui/input"; | ||
|
||
type Props = React.ComponentProps<typeof Input> & { | ||
onIconClick: () => void; | ||
}; | ||
|
||
function WorkflowBlockInput(props: Props) { | ||
return ( | ||
<div className="relative"> | ||
<Input {...props} className={cn("pr-9", props.className)} /> | ||
<div className="absolute right-0 top-0 flex size-9 cursor-pointer items-center justify-center"> | ||
<div className="rounded p-1 hover:bg-muted" onClick={props.onIconClick}> | ||
<PlusIcon className="size-4" /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export { WorkflowBlockInput }; |
25 changes: 25 additions & 0 deletions
25
skyvern-frontend/src/components/WorkflowBlockInputTextarea.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { PlusIcon } from "@radix-ui/react-icons"; | ||
import { cn } from "@/util/utils"; | ||
import { AutoResizingTextarea } from "./AutoResizingTextarea/AutoResizingTextarea"; | ||
|
||
type Props = React.ComponentProps<typeof AutoResizingTextarea> & { | ||
onIconClick: () => void; | ||
}; | ||
|
||
function WorkflowBlockInputTextarea(props: Props) { | ||
return ( | ||
<div className="relative"> | ||
<AutoResizingTextarea | ||
{...props} | ||
className={cn("pr-9", props.className)} | ||
/> | ||
<div className="absolute right-0 top-0 flex size-9 cursor-pointer items-center justify-center"> | ||
<div className="rounded p-1 hover:bg-muted" onClick={props.onIconClick}> | ||
<PlusIcon className="size-4" /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export { WorkflowBlockInputTextarea }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.