feat: Implement input field management panel

This commit is contained in:
twwu
2025-08-01 16:27:53 +08:00
parent ec501cf664
commit 44d569a7c1
35 changed files with 264 additions and 364 deletions

View File

@ -39,7 +39,7 @@ const Panel: FC<NodePanelProps<ToolNodeType>> = ({
const [collapsed, setCollapsed] = React.useState(false)
const pipelineId = useStore(s => s.pipelineId)
const setShowInputFieldDialog = useStore(s => s.setShowInputFieldDialog)
const setShowInputFieldPanel = useStore(s => s.setShowInputFieldPanel)
if (isLoading) {
return <div className='flex h-[200px] items-center justify-center'>
@ -65,7 +65,7 @@ const Panel: FC<NodePanelProps<ToolNodeType>> = ({
currentProvider={currCollection}
currentTool={currTool}
showManageInputField={!!pipelineId}
onManageInputField={() => setShowInputFieldDialog?.(true)}
onManageInputField={() => setShowInputFieldPanel?.(true)}
/>
</Field>
)}