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:
Thomas Trompette
2025-09-18 15:07:23 +02:00
committed by GitHub
parent 235eef32f6
commit 3fbc257c06
32 changed files with 88 additions and 2184 deletions
@@ -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>
);
};