| @@ -2,7 +2,7 @@ | |||
| "prettier.enable": false, | |||
| "editor.formatOnSave": true, | |||
| "editor.codeActionsOnSave": { | |||
| "source.fixAll.eslint": true | |||
| "source.fixAll.eslint": "explicit" | |||
| }, | |||
| "eslint.format.enable": true, | |||
| "[python]": { | |||
| @@ -152,7 +152,7 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({ | |||
| <PortalToFollowElem | |||
| open={open} | |||
| onOpenChange={setOpen} | |||
| placement='bottom-end' | |||
| placement='left' | |||
| offset={4} | |||
| > | |||
| <div className='relative'> | |||
| @@ -88,13 +88,13 @@ const Header: FC = () => { | |||
| const handleShowFeatures = useCallback(() => { | |||
| const { | |||
| showFeaturesPanel, | |||
| isRestoring, | |||
| setShowFeaturesPanel, | |||
| } = workflowStore.getState() | |||
| if (getNodesReadOnly() && !isRestoring) | |||
| return | |||
| setShowFeaturesPanel(true) | |||
| setShowFeaturesPanel(!showFeaturesPanel) | |||
| }, [workflowStore, getNodesReadOnly]) | |||
| const handleCancelRestore = useCallback(() => { | |||
| @@ -31,10 +31,10 @@ const Filed: FC<Props> = ({ | |||
| toggle: toggleFold, | |||
| }] = useBoolean(true) | |||
| return ( | |||
| <div className={cn(className, inline && 'flex justify-between items-center', supportFold && 'cursor-pointer')}> | |||
| <div className={cn(className, inline && 'flex justify-between items-center')}> | |||
| <div | |||
| onClick={() => supportFold && toggleFold()} | |||
| className='flex justify-between items-center'> | |||
| className={cn('flex justify-between items-center', supportFold && 'cursor-pointer')}> | |||
| <div className='flex items-center h-6'> | |||
| <div className='text-[13px] font-medium text-gray-700 uppercase'>{title}</div> | |||
| {tooltip && ( | |||
| @@ -50,7 +50,10 @@ type Props = { | |||
| canSetRoleName?: boolean | |||
| } | |||
| const MEMORY_DEFAULT: Memory = { window: { enabled: false, size: WINDOW_SIZE_DEFAULT } } | |||
| const MEMORY_DEFAULT: Memory = { | |||
| window: { enabled: false, size: WINDOW_SIZE_DEFAULT }, | |||
| query_prompt_template: '', | |||
| } | |||
| const MemoryConfig: FC<Props> = ({ | |||
| className, | |||