Make order URL/Prompt consistent for TaskV2 (#3758)

This commit is contained in:
Stanislav Novosad
2025-10-17 18:19:56 -06:00
committed by GitHub
parent 20e0a25ede
commit 2843528a9c

View File

@@ -84,6 +84,19 @@ function Taskv2Node({ id, data, type }: NodeProps<Taskv2Node>) {
type="task_v2" // sic: the naming is not consistent
/>
<div className="space-y-4">
<div className="space-y-2">
<Label className="text-xs text-slate-300">URL</Label>
<WorkflowBlockInputTextarea
canWriteTitle={true}
nodeId={id}
onChange={(value) => {
update({ url: value });
}}
value={data.url}
placeholder={placeholders[type]["url"]}
className="nopan text-xs"
/>
</div>
<div className="space-y-2">
<div className="flex justify-between">
<Label className="text-xs text-slate-300">Prompt</Label>
@@ -103,19 +116,6 @@ function Taskv2Node({ id, data, type }: NodeProps<Taskv2Node>) {
className="nopan text-xs"
/>
</div>
<div className="space-y-2">
<Label className="text-xs text-slate-300">URL</Label>
<WorkflowBlockInputTextarea
canWriteTitle={true}
nodeId={id}
onChange={(value) => {
update({ url: value });
}}
value={data.url}
placeholder={placeholders[type]["url"]}
className="nopan text-xs"
/>
</div>
</div>
<Separator />
<Accordion