Add base form action without logic (#10811)

<img width="1298" alt="Capture d’écran 2025-03-12 à 15 32 27"
src="https://github.com/user-attachments/assets/8a3140e5-e165-445e-a718-748aa76b525c"
/>
This commit is contained in:
Thomas Trompette
2025-03-12 18:05:31 +01:00
committed by GitHub
parent a4ef820f13
commit f4a362b53a
26 changed files with 385 additions and 132 deletions

View File

@ -4,7 +4,9 @@ import { RightDrawerWorkflowSelectStepTitle } from '@/workflow/workflow-steps/co
import { useCreateStep } from '@/workflow/workflow-steps/hooks/useCreateStep';
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 { MenuItemCommand, useIcons } from 'twenty-ui';
import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const CommandMenuWorkflowSelectActionContent = ({
workflow,
@ -15,6 +17,9 @@ export const CommandMenuWorkflowSelectActionContent = ({
const { createStep } = useCreateStep({
workflow,
});
const isWorkflowFormActionEnabled = useIsFeatureEnabled(
FeatureFlagKey.IsWorkflowFormActionEnabled,
);
return (
<RightDrawerStepListContainer>
@ -32,7 +37,9 @@ export const CommandMenuWorkflowSelectActionContent = ({
<RightDrawerWorkflowSelectStepTitle>
Other
</RightDrawerWorkflowSelectStepTitle>
{OTHER_ACTIONS.map((action) => (
{OTHER_ACTIONS.filter(
(action) => isWorkflowFormActionEnabled || action.type !== 'FORM',
).map((action) => (
<MenuItemCommand
key={action.type}
LeftIcon={getIcon(action.icon)}