feat: Add If/Else node (#16833)

Closes [#1265](https://github.com/twentyhq/core-team-issues/issues/1265)
This commit is contained in:
Abdul Rahman
2026-01-01 19:35:56 +05:30
committed by GitHub
parent 5d5fd5fca5
commit dff5e3cd7b
95 changed files with 1523 additions and 163 deletions
@@ -17,6 +17,9 @@ export const CommandMenuWorkflowSelectAction = ({
onActionSelected: (actionType: WorkflowActionType) => void;
}) => {
const isAiEnabled = useIsFeatureEnabled(FeatureFlagKey.IS_AI_ENABLED);
const isIfElseEnabled = useIsFeatureEnabled(
FeatureFlagKey.IS_IF_ELSE_ENABLED,
);
const { t } = useLingui();
@@ -46,7 +49,9 @@ export const CommandMenuWorkflowSelectAction = ({
{t`Flow`}
</RightDrawerWorkflowSelectStepTitle>
<WorkflowActionMenuItems
actions={FLOW_ACTIONS}
actions={FLOW_ACTIONS.filter(
(action) => action.type !== 'IF_ELSE' || isIfElseEnabled,
)}
onClick={onActionSelected}
/>