Make filters a regular step (#14586)
- Remove special design logic for filters and edge with filters - Remove backend logic to delete filters along with parent steps - Add filters to the node type picker https://github.com/user-attachments/assets/5b6ceda4-d86f-48a3-8c93-37a885398a8d
This commit is contained in:
+11
-13
@@ -4,8 +4,8 @@ import { RightDrawerStepListContainer } from '@/workflow/workflow-steps/componen
|
||||
import { RightDrawerWorkflowSelectStepTitle } from '@/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepTitle';
|
||||
import { AI_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/AiActions';
|
||||
import { CORE_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/CoreActions';
|
||||
import { FLOW_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/FlowActions';
|
||||
import { HUMAN_INPUT_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/HumanInputActions';
|
||||
import { OTHER_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/OtherActions';
|
||||
import { RECORD_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/RecordActions';
|
||||
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
@@ -45,6 +45,16 @@ export const CommandMenuWorkflowSelectAction = ({
|
||||
</>
|
||||
)}
|
||||
|
||||
<RightDrawerWorkflowSelectStepTitle>
|
||||
{t`Flow`}
|
||||
</RightDrawerWorkflowSelectStepTitle>
|
||||
<WorkflowActionMenuItems
|
||||
actions={FLOW_ACTIONS.filter(
|
||||
(action) => action.type !== 'ITERATOR' || isIteratorEnabled,
|
||||
)}
|
||||
onClick={onActionSelected}
|
||||
/>
|
||||
|
||||
<RightDrawerWorkflowSelectStepTitle>
|
||||
{t`Core`}
|
||||
</RightDrawerWorkflowSelectStepTitle>
|
||||
@@ -60,18 +70,6 @@ export const CommandMenuWorkflowSelectAction = ({
|
||||
actions={HUMAN_INPUT_ACTIONS}
|
||||
onClick={onActionSelected}
|
||||
/>
|
||||
|
||||
{isIteratorEnabled && (
|
||||
<>
|
||||
<RightDrawerWorkflowSelectStepTitle>
|
||||
{t`Others`}
|
||||
</RightDrawerWorkflowSelectStepTitle>
|
||||
<WorkflowActionMenuItems
|
||||
actions={OTHER_ACTIONS}
|
||||
onClick={onActionSelected}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</RightDrawerStepListContainer>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user