The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
feat: display specific action types in workflow side panel tooltips (#15013)
DipakHalkude8369168abebc
diff --git a/packages/twenty-front/src/modules/command-menu/components/SidePanelHeader.tsx b/packages/twenty-front/src/modules/command-menu/components/SidePanelHeader.tsxindex 5772f2f5c2d..b8c347c2855 100644--- a/packages/twenty-front/src/modules/command-menu/components/SidePanelHeader.tsx+++ b/packages/twenty-front/src/modules/command-menu/components/SidePanelHeader.tsx@@ -3,7 +3,7 @@ import { TitleInput } from '@/ui/input/components/TitleInput';import { useTheme } from '@emotion/react';import styled from '@emotion/styled';import { useState } from 'react';-import { type IconComponent } from 'twenty-ui/display';+import { AppTooltip, type IconComponent } from 'twenty-ui/display';const StyledHeader = styled.div`background-color: ${({ theme }) => theme.background.secondary};@@ -52,6 +52,7 @@ type SidePanelHeaderProps = {iconColor: string;initialTitle: string;headerType: string;+ iconTooltip?: string;} & (| {disabled: true;@@ -70,6 +71,7 @@ export const SidePanelHeader = ({headerType,disabled,onTitleChange,+ iconTooltip,}: SidePanelHeaderProps) => {const theme = useTheme();@@ -89,15 +91,24 @@ export const SidePanelHeader = ({});};+ const tooltipId = `side-panel-icon-tooltip-${headerType.replace(/\s+/g, '-')}`;+return (<StyledHeader data-testid="side-panel-header">- <StyledHeaderIconContainer>+ <StyledHeaderIconContainer id={tooltipId}><Iconcolor={iconColor}stroke={theme.icon.stroke.sm}size={theme.icon.size.lg}/></StyledHeaderIconContainer>+ {iconTooltip && (+ <AppTooltip+ anchorSelect={`#${tooltipId}`}+ content={iconTooltip}+ place="top"+ />+ )}<StyledHeaderInfo><StyledHeaderTitle><TitleInputdiff --git a/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/WorkflowActionMenuItems.tsx b/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/WorkflowActionMenuItems.tsxindex 45d5f002ac2..5a408c20e46 100644--- a/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/WorkflowActionMenuItems.tsx+++ b/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/WorkflowActionMenuItems.tsx@@ -4,7 +4,11 @@ import { useTheme } from '@emotion/react';import { useIcons } from 'twenty-ui/display';import { MenuItem } from 'twenty-ui/navigation';-type Action = { type: WorkflowActionType; label: string; icon: string };+type Action = {+ defaultLabel: string;+ type: WorkflowActionType;+ icon: string;+};export const WorkflowActionMenuItems = ({actions,@@ -34,7 +38,7 @@ export const WorkflowActionMenuItems = ({size={16}/>)}- text={action.label}+ text={action.defaultLabel}onClick={() => onClick(action.type)}/>);diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowEditActionAiAgent.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowEditActionAiAgent.tsxindex 8adc346106f..3ab3eff9665 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowEditActionAiAgent.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowEditActionAiAgent.tsx@@ -6,6 +6,7 @@ import { Select } from '@/ui/input/components/Select';import { type WorkflowAiAgentAction } from '@/workflow/types/Workflow';import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';+import { AI_AGENT_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/AiAgentAction';import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { WorkflowVariablePicker } from '@/workflow/workflow-variables/components/WorkflowVariablePicker';import { type AiAgentOutputSchema } from '@/workflow/workflow-variables/types/AiAgentOutputSchema';@@ -44,7 +45,7 @@ export const WorkflowEditActionAiAgent = ({const { headerTitle, headerIcon, headerIconColor, headerType } =useWorkflowActionHeader({action,- defaultTitle: 'AI Agent',+ defaultTitle: AI_AGENT_ACTION.defaultLabel,});const { handleOutputSchemaChange, outputFields } = useAiAgentOutputSchema(@@ -111,6 +112,7 @@ export const WorkflowEditActionAiAgent = ({initialTitle={headerTitle}headerType={headerType}disabled={actionOptions.readonly}+ iconTooltip={AI_AGENT_ACTION.defaultLabel}/><WorkflowStepBody><div>diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionServerlessFunction.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionServerlessFunction.tsxindex d37bc841989..a8f7d4b24dd 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionServerlessFunction.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionServerlessFunction.tsx@@ -40,6 +40,7 @@ import { useLingui } from '@lingui/react/macro';import { SOURCE_FOLDER_NAME } from '@/serverless-functions/constants/SourceFolderName';import { computeNewSources } from '@/serverless-functions/utils/computeNewSources';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';+import { CODE_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/CodeAction';import { type Monaco } from '@monaco-editor/react';import { type editor } from 'monaco-editor';import { AutoTypings } from 'monaco-editor-auto-typings';@@ -326,7 +327,7 @@ export const WorkflowEditActionServerlessFunction = ({const headerTitle = isDefined(action.name)? action.name- : 'Code - Serverless Function';+ : CODE_ACTION.defaultLabel;const headerIcon = getActionIcon(action.type);const headerIconColor = useActionIconColorOrThrow(action.type);const headerType = useActionHeaderTypeOrThrow(action.type);@@ -431,6 +432,7 @@ export const WorkflowEditActionServerlessFunction = ({initialTitle={headerTitle}headerType={headerType}disabled={actionOptions.readonly}+ iconTooltip={CODE_ACTION.defaultLabel}/><WorkflowStepBody>{activeTabId === WorkflowServerlessFunctionTabId.CODE && (diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionCreateRecord.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionCreateRecord.tsxindex 2d8e8eadac3..b750869bd54 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionCreateRecord.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionCreateRecord.tsx@@ -10,6 +10,7 @@ import { useViewOrDefaultViewFromPrefetchedViews } from '@/views/hooks/useViewOrimport { type WorkflowCreateRecordAction } from '@/workflow/types/Workflow';import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';+import { CREATE_RECORD_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/CreateRecordAction';import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { shouldDisplayFormField } from '@/workflow/workflow-steps/workflow-actions/utils/shouldDisplayFormField';import { WorkflowVariablePicker } from '@/workflow/workflow-variables/components/WorkflowVariablePicker';@@ -198,7 +199,7 @@ export const WorkflowEditActionCreateRecord = ({const { headerTitle, headerIcon, headerIconColor, headerType } =useWorkflowActionHeader({action,- defaultTitle: 'Create Record',+ defaultTitle: CREATE_RECORD_ACTION.defaultLabel,});return (@@ -219,6 +220,7 @@ export const WorkflowEditActionCreateRecord = ({initialTitle={headerTitle}headerType={headerType}disabled={isFormDisabled}+ iconTooltip={CREATE_RECORD_ACTION.defaultLabel}/><WorkflowStepBody><Selectdiff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionDeleteRecord.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionDeleteRecord.tsxindex 2fc76311ce2..3e4227fb764 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionDeleteRecord.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionDeleteRecord.tsx@@ -8,6 +8,7 @@ import { useEffect, useState } from 'react';import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';+import { DELETE_RECORD_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/DeleteRecordAction';import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { WorkflowVariablePicker } from '@/workflow/workflow-variables/components/WorkflowVariablePicker';import { useTheme } from '@emotion/react';@@ -118,7 +119,7 @@ export const WorkflowEditActionDeleteRecord = ({const { headerTitle, headerIcon, headerIconColor, headerType } =useWorkflowActionHeader({action,- defaultTitle: 'Delete Record',+ defaultTitle: DELETE_RECORD_ACTION.defaultLabel,});return (@@ -139,6 +140,7 @@ export const WorkflowEditActionDeleteRecord = ({initialTitle={headerTitle}headerType={headerType}disabled={isFormDisabled}+ iconTooltip={DELETE_RECORD_ACTION.defaultLabel}/><WorkflowStepBody><Selectdiff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionSendEmail.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionSendEmail.tsxindex bd66b323ed5..81db9b1df70 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionSendEmail.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionSendEmail.tsx@@ -19,6 +19,7 @@ import { workflowVisualizerWorkflowIdComponentState } from '@/workflow/states/woimport { type WorkflowSendEmailAction } from '@/workflow/types/Workflow';import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';+import { SEND_EMAIL_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/SendEmailAction';import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { WorkflowVariablePicker } from '@/workflow/workflow-variables/components/WorkflowVariablePicker';import { useTheme } from '@emotion/react';@@ -246,7 +247,7 @@ export const WorkflowEditActionSendEmail = ({const { headerTitle, headerIcon, headerIconColor, headerType } =useWorkflowActionHeader({action,- defaultTitle: 'Send Email',+ defaultTitle: SEND_EMAIL_ACTION.defaultLabel,});const navigate = useNavigateSettings();@@ -272,6 +273,7 @@ export const WorkflowEditActionSendEmail = ({initialTitle={headerTitle}headerType={headerType}disabled={actionOptions.readonly}+ iconTooltip={SEND_EMAIL_ACTION.defaultLabel}/><WorkflowStepBody><Selectdiff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpdateRecord.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpdateRecord.tsxindex 13ebf67e9d6..b194863278f 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpdateRecord.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpdateRecord.tsx@@ -3,6 +3,7 @@ import { type WorkflowUpdateRecordAction } from '@/workflow/types/Workflow';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';import { WorkflowUpdateRecordBody } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowUpdateRecordBody';+import { UPDATE_RECORD_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/UpdateRecordAction';import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { type UpdateRecordFormData } from '@/workflow/workflow-steps/workflow-actions/types/update-record-form-data.type';import { useIcons } from 'twenty-ui/display';@@ -26,7 +27,7 @@ export const WorkflowEditActionUpdateRecord = ({const { headerTitle, headerIcon, headerIconColor, headerType } =useWorkflowActionHeader({action,- defaultTitle: 'Update Record',+ defaultTitle: UPDATE_RECORD_ACTION.defaultLabel,});const { getIcon } = useIcons();@@ -70,6 +71,7 @@ export const WorkflowEditActionUpdateRecord = ({initialTitle={headerTitle}headerType={headerType}disabled={isFormDisabled}+ iconTooltip={UPDATE_RECORD_ACTION.defaultLabel}/><WorkflowUpdateRecordBodydefaultObjectNameSingular={action.settings.input.objectName}diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpsertRecord.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpsertRecord.tsxindex 0cd503ed509..4f9b36462ec 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpsertRecord.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowEditActionUpsertRecord.tsx@@ -3,6 +3,7 @@ import { type WorkflowUpsertRecordAction } from '@/workflow/types/Workflow';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';import { WorkflowUpdateRecordBody } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowUpdateRecordBody';+import { UPSERT_RECORD_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/UpsertRecordAction';import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { type UpdateRecordFormData } from '@/workflow/workflow-steps/workflow-actions/types/update-record-form-data.type';import { useIcons } from 'twenty-ui/display';@@ -26,7 +27,7 @@ export const WorkflowEditActionUpsertRecord = ({const { headerTitle, headerIcon, headerIconColor, headerType } =useWorkflowActionHeader({action,- defaultTitle: 'Create or Update Record',+ defaultTitle: UPSERT_RECORD_ACTION.defaultLabel,});const { getIcon } = useIcons();@@ -69,6 +70,7 @@ export const WorkflowEditActionUpsertRecord = ({initialTitle={headerTitle}headerType={headerType}disabled={isFormDisabled}+ iconTooltip={UPSERT_RECORD_ACTION.defaultLabel}/><WorkflowUpdateRecordBodydefaultObjectNameSingular={action.settings.input.objectName}diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/AiActions.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/AiActions.tsindex 537c66fee67..cce5e2cd182 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/AiActions.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/AiActions.ts@@ -1,13 +1,8 @@import { type WorkflowActionType } from '@/workflow/types/Workflow';+import { AI_AGENT_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/AiAgentAction';export const AI_ACTIONS: Array<{- label: string;+ defaultLabel: string;type: Extract<WorkflowActionType, 'AI_AGENT'>;icon: string;-}> = [- {- label: 'AI Agent',- type: 'AI_AGENT',- icon: 'IconBrain',- },-];+}> = [AI_AGENT_ACTION];diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/CoreActions.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/CoreActions.tsindex e7179f89e17..6ab6ee96190 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/CoreActions.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/CoreActions.ts@@ -1,23 +1,10 @@import { type WorkflowActionType } from '@/workflow/types/Workflow';+import { CODE_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/CodeAction';+import { HTTP_REQUEST_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/HttpRequestAction';+import { SEND_EMAIL_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/SendEmailAction';export const CORE_ACTIONS: Array<{- label: string;+ defaultLabel: string;type: Extract<WorkflowActionType, 'CODE' | 'SEND_EMAIL' | 'HTTP_REQUEST'>;icon: string;-}> = [- {- label: 'Send Email',- type: 'SEND_EMAIL',- icon: 'IconSend',- },- {- label: 'Code',- type: 'CODE',- icon: 'IconCode',- },- {- label: 'HTTP Request',- type: 'HTTP_REQUEST',- icon: 'IconWorld',- },-];+}> = [SEND_EMAIL_ACTION, CODE_ACTION, HTTP_REQUEST_ACTION];diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/FlowActions.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/FlowActions.tsindex 1c57657c8bd..cecc39305d1 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/FlowActions.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/FlowActions.ts@@ -1,23 +1,10 @@import { type WorkflowActionType } from '@/workflow/types/Workflow';+import { DELAY_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/DelayAction';+import { FILTER_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/FilterAction';+import { ITERATOR_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/IteratorAction';export const FLOW_ACTIONS: Array<{- label: string;+ defaultLabel: string;type: Extract<WorkflowActionType, 'ITERATOR' | 'FILTER' | 'DELAY'>;icon: string;-}> = [- {- label: 'Iterator',- type: 'ITERATOR',- icon: 'IconRepeat',- },- {- label: 'Filter',- type: 'FILTER',- icon: 'IconFilter',- },- {- label: 'Delay',- type: 'DELAY',- icon: 'IconPlayerPause',- },-];+}> = [ITERATOR_ACTION, FILTER_ACTION, DELAY_ACTION];diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/HumanInputActions.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/HumanInputActions.tsindex ca7cc7722ed..78cc038f0fc 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/HumanInputActions.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/HumanInputActions.ts@@ -1,13 +1,8 @@import { type WorkflowActionType } from '@/workflow/types/Workflow';+import { FORM_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/FormAction';export const HUMAN_INPUT_ACTIONS: Array<{- label: string;+ defaultLabel: string;type: Extract<WorkflowActionType, 'FORM'>;icon: string;-}> = [- {- label: 'Form',- type: 'FORM',- icon: 'IconForms',- },-];+}> = [FORM_ACTION];diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/RecordActions.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/RecordActions.tsindex a920ea9e9b7..3196e00b478 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/RecordActions.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/RecordActions.ts@@ -1,7 +1,12 @@import { type WorkflowActionType } from '@/workflow/types/Workflow';+import { CREATE_RECORD_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/CreateRecordAction';+import { DELETE_RECORD_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/DeleteRecordAction';+import { FIND_RECORDS_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/FindRecordsAction';+import { UPDATE_RECORD_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/UpdateRecordAction';+import { UPSERT_RECORD_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/UpsertRecordAction';export const RECORD_ACTIONS: Array<{- label: string;+ defaultLabel: string;type: Extract<WorkflowActionType,| 'CREATE_RECORD'@@ -12,29 +17,9 @@ export const RECORD_ACTIONS: Array<{>;icon: string;}> = [- {- label: 'Create Record',- type: 'CREATE_RECORD',- icon: 'IconPlus',- },- {- label: 'Update Record',- type: 'UPDATE_RECORD',- icon: 'IconReload',- },- {- label: 'Delete Record',- type: 'DELETE_RECORD',- icon: 'IconTrash',- },- {- label: 'Search Records',- type: 'FIND_RECORDS',- icon: 'IconSearch',- },- {- label: 'Create or Update Record',- type: 'UPSERT_RECORD',- icon: 'IconPencilPlus',- },+ CREATE_RECORD_ACTION,+ UPDATE_RECORD_ACTION,+ DELETE_RECORD_ACTION,+ FIND_RECORDS_ACTION,+ UPSERT_RECORD_ACTION,];diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/AiAgentAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/AiAgentAction.tsnew file mode 100644index 00000000000..4b408a925d9--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/AiAgentAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const AI_AGENT_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'AI_AGENT'>;+ icon: string;+} = {+ defaultLabel: 'AI Agent',+ type: 'AI_AGENT',+ icon: 'IconBrain',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/CodeAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/CodeAction.tsnew file mode 100644index 00000000000..b121dd4ef35--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/CodeAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const CODE_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'CODE'>;+ icon: string;+} = {+ defaultLabel: 'Code - Serverless Function',+ type: 'CODE',+ icon: 'IconCode',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/CreateRecordAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/CreateRecordAction.tsnew file mode 100644index 00000000000..c15178ab848--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/CreateRecordAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const CREATE_RECORD_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'CREATE_RECORD'>;+ icon: string;+} = {+ defaultLabel: 'Create Record',+ type: 'CREATE_RECORD',+ icon: 'IconPlus',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/DelayAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/DelayAction.tsnew file mode 100644index 00000000000..c0af6983893--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/DelayAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const DELAY_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'DELAY'>;+ icon: string;+} = {+ defaultLabel: 'Delay',+ type: 'DELAY',+ icon: 'IconPlayerPause',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/DeleteRecordAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/DeleteRecordAction.tsnew file mode 100644index 00000000000..c916d2011c1--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/DeleteRecordAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const DELETE_RECORD_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'DELETE_RECORD'>;+ icon: string;+} = {+ defaultLabel: 'Delete Record',+ type: 'DELETE_RECORD',+ icon: 'IconTrash',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/FilterAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/FilterAction.tsnew file mode 100644index 00000000000..b85bb4e7ae6--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/FilterAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const FILTER_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'FILTER'>;+ icon: string;+} = {+ defaultLabel: 'Filter',+ type: 'FILTER',+ icon: 'IconFilter',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/FindRecordsAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/FindRecordsAction.tsnew file mode 100644index 00000000000..69ece3f9f05--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/FindRecordsAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const FIND_RECORDS_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'FIND_RECORDS'>;+ icon: string;+} = {+ defaultLabel: 'Search Records',+ type: 'FIND_RECORDS',+ icon: 'IconSearch',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/FormAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/FormAction.tsnew file mode 100644index 00000000000..94ee7774209--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/FormAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const FORM_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'FORM'>;+ icon: string;+} = {+ defaultLabel: 'Form',+ type: 'FORM',+ icon: 'IconForms',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/HttpRequestAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/HttpRequestAction.tsnew file mode 100644index 00000000000..15fd8df7618--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/HttpRequestAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const HTTP_REQUEST_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'HTTP_REQUEST'>;+ icon: string;+} = {+ defaultLabel: 'HTTP Request',+ type: 'HTTP_REQUEST',+ icon: 'IconWorld',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/IteratorAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/IteratorAction.tsnew file mode 100644index 00000000000..abd1b1cface--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/IteratorAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const ITERATOR_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'ITERATOR'>;+ icon: string;+} = {+ defaultLabel: 'Iterator',+ type: 'ITERATOR',+ icon: 'IconRepeat',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/SendEmailAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/SendEmailAction.tsnew file mode 100644index 00000000000..89bbe50cec8--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/SendEmailAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const SEND_EMAIL_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'SEND_EMAIL'>;+ icon: string;+} = {+ defaultLabel: 'Send Email',+ type: 'SEND_EMAIL',+ icon: 'IconSend',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/UpdateRecordAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/UpdateRecordAction.tsnew file mode 100644index 00000000000..070aef465fb--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/UpdateRecordAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const UPDATE_RECORD_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'UPDATE_RECORD'>;+ icon: string;+} = {+ defaultLabel: 'Update Record',+ type: 'UPDATE_RECORD',+ icon: 'IconReload',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/UpsertRecordAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/UpsertRecordAction.tsnew file mode 100644index 00000000000..1c0b1f33a39--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/UpsertRecordAction.ts@@ -0,0 +1,11 @@+import { type WorkflowActionType } from '@/workflow/types/Workflow';++export const UPSERT_RECORD_ACTION: {+ defaultLabel: string;+ type: Extract<WorkflowActionType, 'UPSERT_RECORD'>;+ icon: string;+} = {+ defaultLabel: 'Create or Update Record',+ type: 'UPSERT_RECORD',+ icon: 'IconPencilPlus',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/delay-actions/components/WorkflowEditActionDelay.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/delay-actions/components/WorkflowEditActionDelay.tsxindex d5306d9967d..1a08eef897e 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/delay-actions/components/WorkflowEditActionDelay.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/delay-actions/components/WorkflowEditActionDelay.tsx@@ -6,6 +6,7 @@ import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/Geneimport { type WorkflowDelayAction } from '@/workflow/types/Workflow';import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';+import { DELAY_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/DelayAction';import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { WorkflowVariablePicker } from '@/workflow/workflow-variables/components/WorkflowVariablePicker';import { t } from '@lingui/core/macro';@@ -34,7 +35,7 @@ export const WorkflowEditActionDelay = ({const { headerTitle, headerIcon, headerIconColor, headerType, getIcon } =useWorkflowActionHeader({action,- defaultTitle: 'Delay',+ defaultTitle: DELAY_ACTION.defaultLabel,});const delayOptions: Array<SelectOption<'SCHEDULED_DATE' | 'DURATION'>> = [@@ -157,6 +158,7 @@ export const WorkflowEditActionDelay = ({name: newTitle,});}}+ iconTooltip={DELAY_ACTION.defaultLabel}/><WorkflowStepBody>diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilter.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilter.tsxindex 4723ab470a1..5f69eb49580 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilter.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilter.tsx@@ -1,6 +1,7 @@import { SidePanelHeader } from '@/command-menu/components/SidePanelHeader';import { type WorkflowFilterAction } from '@/workflow/types/Workflow';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';+import { FILTER_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/FilterAction';import { WorkflowEditActionFilterBody } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilterBody';import { WorkflowEditActionFilterBodyEffect } from '@/workflow/workflow-steps/workflow-actions/filter-action/components/WorkflowEditActionFilterBodyEffect';import { StepFilterGroupsComponentInstanceContext } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/context/StepFilterGroupsComponentInstanceContext';@@ -33,7 +34,7 @@ export const WorkflowEditActionFilter = ({const { headerTitle, headerIcon, headerIconColor, headerType } =useWorkflowActionHeader({action,- defaultTitle: 'Filter',+ defaultTitle: FILTER_ACTION.defaultLabel,});const { getIcon } = useIcons();@@ -56,6 +57,7 @@ export const WorkflowEditActionFilter = ({initialTitle={headerTitle}headerType={headerType}disabled={actionOptions.readonly}+ iconTooltip={FILTER_ACTION.defaultLabel}/><StepFiltersComponentInstanceContext.Providervalue={{diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowEditActionFindRecords.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowEditActionFindRecords.tsxindex d677ad3e720..913fe708046 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowEditActionFindRecords.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowEditActionFindRecords.tsx@@ -15,6 +15,7 @@ import { useRecordIndexFieldMetadataDerivedStates } from '@/object-record/recordimport { InputLabel } from '@/ui/input/components/InputLabel';import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';+import { FIND_RECORDS_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/FindRecordsAction';import { WorkflowFindRecordsFilters } from '@/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsFilters';import { WorkflowFindRecordsFiltersEffect } from '@/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsFiltersEffect';import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';@@ -130,7 +131,7 @@ export const WorkflowEditActionFindRecords = ({const { headerTitle, headerIcon, headerIconColor, headerType } =useWorkflowActionHeader({action,- defaultTitle: 'Search Records',+ defaultTitle: FIND_RECORDS_ACTION.defaultLabel,});return (@@ -151,6 +152,7 @@ export const WorkflowEditActionFindRecords = ({initialTitle={headerTitle}headerType={headerType}disabled={isFormDisabled}+ iconTooltip={FIND_RECORDS_ACTION.defaultLabel}/><WorkflowStepBody><Selectdiff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormBuilder.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormBuilder.tsxindex fb90dfa4650..84f08edb585 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormBuilder.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormBuilder.tsx@@ -9,13 +9,12 @@ import { DraggableList } from '@/ui/layout/draggable-list/components/DraggableLiimport { type WorkflowFormAction } from '@/workflow/types/Workflow';import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';+import { FORM_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/FormAction';import { WorkflowEditActionFormFieldSettings } from '@/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormFieldSettings';import { WorkflowFormEmptyMessage } from '@/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowFormEmptyMessage';import { type WorkflowFormActionField } from '@/workflow/workflow-steps/workflow-actions/form-action/types/WorkflowFormActionField';import { getDefaultFormFieldSettings } from '@/workflow/workflow-steps/workflow-actions/form-action/utils/getDefaultFormFieldSettings';-import { useActionHeaderTypeOrThrow } from '@/workflow/workflow-steps/workflow-actions/hooks/useActionHeaderTypeOrThrow';-import { useActionIconColorOrThrow } from '@/workflow/workflow-steps/workflow-actions/hooks/useActionIconColorOrThrow';-import { getActionIcon } from '@/workflow/workflow-steps/workflow-actions/utils/getActionIcon';+import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { css, useTheme } from '@emotion/react';import styled from '@emotion/styled';import { type OnDragEndResponder } from '@hello-pangea/dnd';@@ -142,10 +141,11 @@ export const WorkflowEditActionFormBuilder = ({const [formData, setFormData] = useState<FormData>(action.settings.input);- const headerTitle = isDefined(action.name) ? action.name : `Form`;- const headerIcon = getActionIcon(action.type);- const headerIconColor = useActionIconColorOrThrow(action.type);- const headerType = useActionHeaderTypeOrThrow(action.type);+ const { headerTitle, headerIcon, headerIconColor, headerType } =+ useWorkflowActionHeader({+ action,+ defaultTitle: FORM_ACTION.defaultLabel,+ });const [selectedField, setSelectedField] = useState<string | null>(null);const [hoveredField, setHoveredField] = useState<string | null>(null);@@ -239,6 +239,7 @@ export const WorkflowEditActionFormBuilder = ({initialTitle={headerTitle}headerType={headerType}disabled={actionOptions.readonly}+ iconTooltip={FORM_ACTION.defaultLabel}/><StyledWorkflowStepBody>{formData.length === 0 && (diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormFiller.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormFiller.tsxindex 590061e221c..a55ec8ae94e 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormFiller.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/components/WorkflowEditActionFormFiller.tsx@@ -10,11 +10,11 @@ import { type WorkflowFormAction } from '@/workflow/types/Workflow';import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';import { useUpdateWorkflowRunStep } from '@/workflow/workflow-steps/hooks/useUpdateWorkflowRunStep';import { WorkflowFormFieldInput } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowFormFieldInput';+import { FORM_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/FormAction';import { useSubmitFormStep } from '@/workflow/workflow-steps/workflow-actions/form-action/hooks/useSubmitFormStep';import { type WorkflowFormActionField } from '@/workflow/workflow-steps/workflow-actions/form-action/types/WorkflowFormActionField';import { getDefaultFormFieldSettings } from '@/workflow/workflow-steps/workflow-actions/form-action/utils/getDefaultFormFieldSettings';-import { getActionIcon } from '@/workflow/workflow-steps/workflow-actions/utils/getActionIcon';-import { useTheme } from '@emotion/react';+import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { useEffect, useState } from 'react';import { isDefined } from 'twenty-shared/utils';import { useIcons } from 'twenty-ui/display';@@ -33,7 +33,6 @@ export const WorkflowEditActionFormFiller = ({action,actionOptions,}: WorkflowEditActionFormFillerProps) => {- const theme = useTheme();const { getIcon } = useIcons();const { submitFormStep } = useSubmitFormStep();const [formData, setFormData] = useState<FormData>(action.settings.input);@@ -43,8 +42,12 @@ export const WorkflowEditActionFormFiller = ({const [error, setError] = useState<string | undefined>(undefined);const canSubmit = !actionOptions.readonly && !isDefined(error);- const headerTitle = isDefined(action.name) ? action.name : `Form`;- const headerIcon = getActionIcon(action.type);++ const { headerTitle, headerIcon, headerIconColor, headerType } =+ useWorkflowActionHeader({+ action,+ defaultTitle: FORM_ACTION.defaultLabel,+ });const onFieldUpdate = ({fieldId,@@ -108,10 +111,11 @@ export const WorkflowEditActionFormFiller = ({<><SidePanelHeaderIcon={getIcon(headerIcon)}- iconColor={theme.font.color.tertiary}+ iconColor={headerIconColor}initialTitle={headerTitle}- headerType="Action"+ headerType={headerType}disabled+ iconTooltip={FORM_ACTION.defaultLabel}/><WorkflowStepBody>{formData.map((field) => {diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/WorkflowEditActionHttpRequest.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/WorkflowEditActionHttpRequest.tsxindex 0e10d59a2e4..be2b8fbd698 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/WorkflowEditActionHttpRequest.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/WorkflowEditActionHttpRequest.tsx@@ -4,6 +4,7 @@ import { FormTextFieldInput } from '@/object-record/record-field/ui/form-types/cimport { Select } from '@/ui/input/components/Select';import { type WorkflowHttpRequestAction } from '@/workflow/types/Workflow';import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';+import { HTTP_REQUEST_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/HttpRequestAction';import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { CmdEnterActionButton } from '@/action-menu/components/CmdEnterActionButton';@@ -98,7 +99,7 @@ export const WorkflowEditActionHttpRequest = ({const { headerTitle, headerIcon, headerIconColor, headerType } =useWorkflowActionHeader({action,- defaultTitle: 'HTTP Request',+ defaultTitle: HTTP_REQUEST_ACTION.defaultLabel,});const { formData, handleFieldChange, saveAction } = useHttpRequestForm({@@ -152,6 +153,7 @@ export const WorkflowEditActionHttpRequest = ({initialTitle={headerTitle}headerType={headerType}disabled={actionOptions.readonly}+ iconTooltip={HTTP_REQUEST_ACTION.defaultLabel}/><WorkflowStepBody>{activeTabId === WorkflowHttpRequestTabId.CONFIGURATION && (diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/iterator-action/components/WorkflowEditActionIterator.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/iterator-action/components/WorkflowEditActionIterator.tsxindex 6cec7230605..dd0864ebdf5 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/iterator-action/components/WorkflowEditActionIterator.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/iterator-action/components/WorkflowEditActionIterator.tsx@@ -5,6 +5,7 @@ import { type WorkflowIteratorAction } from '@/workflow/types/Workflow';import { isStandaloneVariableString } from '@/workflow/utils/isStandaloneVariableString';import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';+import { ITERATOR_ACTION } from '@/workflow/workflow-steps/workflow-actions/constants/actions/IteratorAction';import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';import { WorkflowVariablePicker } from '@/workflow/workflow-variables/components/WorkflowVariablePicker';import { useLingui } from '@lingui/react/macro';@@ -46,7 +47,7 @@ export const WorkflowEditActionIterator = ({const { headerTitle, headerIcon, headerIconColor, headerType, getIcon } =useWorkflowActionHeader({action,- defaultTitle: 'Iterator',+ defaultTitle: ITERATOR_ACTION.defaultLabel,});const { t } = useLingui();@@ -119,6 +120,7 @@ export const WorkflowEditActionIterator = ({initialTitle={headerTitle}headerType={headerType}disabled={actionOptions.readonly}+ iconTooltip={ITERATOR_ACTION.defaultLabel}/><WorkflowStepBody><FormArrayFieldInputdiff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/__tests__/getActionHeaderTypeOrThrow.test.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/__tests__/getActionHeaderTypeOrThrow.test.tsindex 26f7814ea2e..9e181fa06b7 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/__tests__/getActionHeaderTypeOrThrow.test.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/__tests__/getActionHeaderTypeOrThrow.test.ts@@ -1,11 +1,11 @@import { getActionHeaderTypeOrThrow } from '../getActionHeaderTypeOrThrow';describe('getActionHeaderTypeOrThrow', () => {- it('should return "Code" for CODE action type', () => {- expect(getActionHeaderTypeOrThrow('CODE').message).toBe('Code');+ it('should return "Core" for CODE action type', () => {+ expect(getActionHeaderTypeOrThrow('CODE').message).toBe('Core');});- it('should return "Action" for record-related action types', () => {+ it('should return "Record" for record-related action types', () => {const recordActionTypes = ['CREATE_RECORD','UPDATE_RECORD',@@ -14,28 +14,23 @@ describe('getActionHeaderTypeOrThrow', () => {] as const;recordActionTypes.forEach((type) => {- expect(getActionHeaderTypeOrThrow(type).message).toBe('Action');+ expect(getActionHeaderTypeOrThrow(type).message).toBe('Record');});});- it('should return "Action" for FORM action type', () => {- expect(getActionHeaderTypeOrThrow('FORM').message).toBe('Action');+ it('should return "Human Input" for FORM action type', () => {+ expect(getActionHeaderTypeOrThrow('FORM').message).toBe('Human Input');});- it('should return "Action" for SEND_EMAIL action type', () => {- expect(getActionHeaderTypeOrThrow('SEND_EMAIL').message).toBe('Action');+ it('should return "Core" for SEND_EMAIL action type', () => {+ expect(getActionHeaderTypeOrThrow('SEND_EMAIL').message).toBe('Core');});- it('should return "HTTP Request" for HTTP_REQUEST action type', () => {- expect(getActionHeaderTypeOrThrow('HTTP_REQUEST').message).toBe(- 'HTTP Request',- );+ it('should return "Core" for HTTP_REQUEST action type', () => {+ expect(getActionHeaderTypeOrThrow('HTTP_REQUEST').message).toBe('Core');});- it('should throw error for unknown action type', () => {- // @ts-expect-error Testing invalid action type- expect(() => getActionHeaderTypeOrThrow('UNKNOWN_ACTION')).toThrow(- 'Unsupported action type: UNKNOWN_ACTION',- );+ it('should return "AI" for AI_AGENT action type', () => {+ expect(getActionHeaderTypeOrThrow('AI_AGENT').message).toBe('AI');});});diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/getActionHeaderTypeOrThrow.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/getActionHeaderTypeOrThrow.tsindex 91ea50a3c0c..28b9d38b19b 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/getActionHeaderTypeOrThrow.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/getActionHeaderTypeOrThrow.ts@@ -1,34 +1,31 @@import { type WorkflowActionType } from '@/workflow/types/Workflow';+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 { RECORD_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/RecordActions';import { msg } from '@lingui/core/macro';-import { assertUnreachable } from 'twenty-shared/utils';export const getActionHeaderTypeOrThrow = (actionType: WorkflowActionType) => {- switch (actionType) {- case 'CODE':- return msg`Code`;- case 'CREATE_RECORD':- case 'UPDATE_RECORD':- case 'DELETE_RECORD':- case 'UPSERT_RECORD':- case 'FIND_RECORDS':- case 'FORM':- case 'SEND_EMAIL':- case 'DELAY':- return msg`Action`;- case 'HTTP_REQUEST':- return msg`HTTP Request`;- case 'AI_AGENT':- return msg`AI Agent`;- case 'FILTER': {- return msg`Filter`;- }- case 'ITERATOR': {- return msg`Iterator`;- }- case 'EMPTY': {- return msg`Add an Action`;- }- default:- assertUnreachable(actionType, `Unsupported action type: ${actionType}`);+ if (FLOW_ACTIONS.some((action) => action.type === actionType)) {+ return msg`Flow`;}++ if (CORE_ACTIONS.some((action) => action.type === actionType)) {+ return msg`Core`;+ }++ if (HUMAN_INPUT_ACTIONS.some((action) => action.type === actionType)) {+ return msg`Human Input`;+ }++ if (RECORD_ACTIONS.some((action) => action.type === actionType)) {+ return msg`Record`;+ }++ if (AI_ACTIONS.some((action) => action.type === actionType)) {+ return msg`AI`;+ }++ return msg`Action`;};diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerCronForm.tsx b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerCronForm.tsxindex 03e43a71a2d..97a479251bb 100644--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerCronForm.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerCronForm.tsx@@ -82,6 +82,7 @@ export const WorkflowEditTriggerCronForm = ({initialTitle={headerTitle}headerType={headerType}disabled={triggerOptions.readonly}+ iconTooltip={getTriggerDefaultLabel(trigger)}/><WorkflowStepBody><Selectdiff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerDatabaseEventForm.tsx b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerDatabaseEventForm.tsxindex d59114d30c8..6fb2efb715e 100644--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerDatabaseEventForm.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerDatabaseEventForm.tsx@@ -190,6 +190,7 @@ export const WorkflowEditTriggerDatabaseEventForm = ({initialTitle={defaultLabel}headerType={headerType}disabled={triggerOptions.readonly}+ iconTooltip={getTriggerDefaultLabel(trigger)}/><WorkflowStepBody><StyledRecordTypeSelectContainer fullWidth>diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerManual.tsx b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerManual.tsxindex 127f2105dea..58b9fc28cbe 100644--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerManual.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerManual.tsx@@ -104,6 +104,7 @@ export const WorkflowEditTriggerManual = ({initialTitle={headerTitle}headerType={headerType}disabled={triggerOptions.readonly}+ iconTooltip={getTriggerDefaultLabel(trigger)}/><WorkflowStepBody><Selectdiff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerWebhookForm.tsx b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerWebhookForm.tsxindex 8dfeb71aa0d..2f99efd6c49 100644--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerWebhookForm.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerWebhookForm.tsx@@ -105,6 +105,7 @@ export const WorkflowEditTriggerWebhookForm = ({initialTitle={headerTitle}headerType={headerType}disabled={triggerOptions.readonly}+ iconTooltip={getTriggerDefaultLabel(trigger)}/><WorkflowStepBody><TextInputdiff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/DatabaseTriggerTypes.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/DatabaseTriggerTypes.tsindex 1ca2efe1641..1e97bd2957e 100644--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/DatabaseTriggerTypes.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/DatabaseTriggerTypes.ts@@ -1,5 +1,9 @@import { type WorkflowTriggerType } from '@/workflow/types/Workflow';-import { DatabaseTriggerDefaultLabel } from '@/workflow/workflow-trigger/constants/DatabaseTriggerDefaultLabel';+import { type DatabaseTriggerDefaultLabel } from '@/workflow/workflow-trigger/constants/DatabaseTriggerDefaultLabel';+import { RECORD_IS_CREATED_TRIGGER } from '@/workflow/workflow-trigger/constants/triggers/RecordIsCreatedTrigger';+import { RECORD_IS_DELETED_TRIGGER } from '@/workflow/workflow-trigger/constants/triggers/RecordIsDeletedTrigger';+import { RECORD_IS_UPDATED_TRIGGER } from '@/workflow/workflow-trigger/constants/triggers/RecordIsUpdatedTrigger';+import { RECORD_UPSERTED_TRIGGER } from '@/workflow/workflow-trigger/constants/triggers/RecordUpsertedTrigger';export const DATABASE_TRIGGER_TYPES: Array<{defaultLabel: DatabaseTriggerDefaultLabel;@@ -7,28 +11,8 @@ export const DATABASE_TRIGGER_TYPES: Array<{icon: string;event: string;}> = [- {- defaultLabel: DatabaseTriggerDefaultLabel.RECORD_IS_CREATED,- type: 'DATABASE_EVENT',- icon: 'IconPlaylistAdd',- event: 'created',- },- {- defaultLabel: DatabaseTriggerDefaultLabel.RECORD_IS_UPDATED,- type: 'DATABASE_EVENT',- icon: 'IconRefreshDot',- event: 'updated',- },- {- defaultLabel: DatabaseTriggerDefaultLabel.RECORD_IS_DELETED,- type: 'DATABASE_EVENT',- icon: 'IconTrash',- event: 'deleted',- },- {- defaultLabel: DatabaseTriggerDefaultLabel.RECORD_UPSERTED,- type: 'DATABASE_EVENT',- icon: 'IconPencilPlus',- event: 'upserted',- },+ RECORD_IS_CREATED_TRIGGER,+ RECORD_IS_UPDATED_TRIGGER,+ RECORD_IS_DELETED_TRIGGER,+ RECORD_UPSERTED_TRIGGER,];diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/OtherTriggerTypes.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/OtherTriggerTypes.tsindex 0e1e9ad3950..b3e50b39333 100644--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/OtherTriggerTypes.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/OtherTriggerTypes.ts@@ -1,23 +1,10 @@import { type WorkflowTriggerType } from '@/workflow/types/Workflow';+import { CRON_TRIGGER } from '@/workflow/workflow-trigger/constants/triggers/CronTrigger';+import { MANUAL_TRIGGER } from '@/workflow/workflow-trigger/constants/triggers/ManualTrigger';+import { WEBHOOK_TRIGGER } from '@/workflow/workflow-trigger/constants/triggers/WebhookTrigger';export const OTHER_TRIGGER_TYPES: Array<{defaultLabel: string;type: WorkflowTriggerType;icon: string;-}> = [- {- defaultLabel: 'Launch manually',- type: 'MANUAL',- icon: 'IconHandMove',- },- {- defaultLabel: 'On a schedule',- type: 'CRON',- icon: 'IconClock',- },- {- defaultLabel: 'Webhook',- type: 'WEBHOOK',- icon: 'IconWebhook',- },-];+}> = [MANUAL_TRIGGER, CRON_TRIGGER, WEBHOOK_TRIGGER];diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/CronTrigger.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/CronTrigger.tsnew file mode 100644index 00000000000..eec33f65f4d--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/CronTrigger.ts@@ -0,0 +1,11 @@+import { type WorkflowTriggerType } from '@/workflow/types/Workflow';++export const CRON_TRIGGER: {+ defaultLabel: string;+ type: WorkflowTriggerType;+ icon: string;+} = {+ defaultLabel: 'On a schedule',+ type: 'CRON',+ icon: 'IconClock',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/ManualTrigger.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/ManualTrigger.tsnew file mode 100644index 00000000000..75fd4db7880--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/ManualTrigger.ts@@ -0,0 +1,11 @@+import { type WorkflowTriggerType } from '@/workflow/types/Workflow';++export const MANUAL_TRIGGER: {+ defaultLabel: string;+ type: WorkflowTriggerType;+ icon: string;+} = {+ defaultLabel: 'Launch manually',+ type: 'MANUAL',+ icon: 'IconHandMove',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordIsCreatedTrigger.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordIsCreatedTrigger.tsnew file mode 100644index 00000000000..3680580620f--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordIsCreatedTrigger.ts@@ -0,0 +1,14 @@+import { type WorkflowTriggerType } from '@/workflow/types/Workflow';+import { DatabaseTriggerDefaultLabel } from '@/workflow/workflow-trigger/constants/DatabaseTriggerDefaultLabel';++export const RECORD_IS_CREATED_TRIGGER: {+ defaultLabel: DatabaseTriggerDefaultLabel;+ type: WorkflowTriggerType;+ icon: string;+ event: string;+} = {+ defaultLabel: DatabaseTriggerDefaultLabel.RECORD_IS_CREATED,+ type: 'DATABASE_EVENT',+ icon: 'IconPlaylistAdd',+ event: 'created',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordIsDeletedTrigger.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordIsDeletedTrigger.tsnew file mode 100644index 00000000000..d0696a76ef4--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordIsDeletedTrigger.ts@@ -0,0 +1,14 @@+import { type WorkflowTriggerType } from '@/workflow/types/Workflow';+import { DatabaseTriggerDefaultLabel } from '@/workflow/workflow-trigger/constants/DatabaseTriggerDefaultLabel';++export const RECORD_IS_DELETED_TRIGGER: {+ defaultLabel: DatabaseTriggerDefaultLabel;+ type: WorkflowTriggerType;+ icon: string;+ event: string;+} = {+ defaultLabel: DatabaseTriggerDefaultLabel.RECORD_IS_DELETED,+ type: 'DATABASE_EVENT',+ icon: 'IconTrash',+ event: 'deleted',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordIsUpdatedTrigger.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordIsUpdatedTrigger.tsnew file mode 100644index 00000000000..c2563675a52--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordIsUpdatedTrigger.ts@@ -0,0 +1,14 @@+import { type WorkflowTriggerType } from '@/workflow/types/Workflow';+import { DatabaseTriggerDefaultLabel } from '@/workflow/workflow-trigger/constants/DatabaseTriggerDefaultLabel';++export const RECORD_IS_UPDATED_TRIGGER: {+ defaultLabel: DatabaseTriggerDefaultLabel;+ type: WorkflowTriggerType;+ icon: string;+ event: string;+} = {+ defaultLabel: DatabaseTriggerDefaultLabel.RECORD_IS_UPDATED,+ type: 'DATABASE_EVENT',+ icon: 'IconRefreshDot',+ event: 'updated',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordUpsertedTrigger.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordUpsertedTrigger.tsnew file mode 100644index 00000000000..757f30b240f--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/RecordUpsertedTrigger.ts@@ -0,0 +1,14 @@+import { type WorkflowTriggerType } from '@/workflow/types/Workflow';+import { DatabaseTriggerDefaultLabel } from '@/workflow/workflow-trigger/constants/DatabaseTriggerDefaultLabel';++export const RECORD_UPSERTED_TRIGGER: {+ defaultLabel: DatabaseTriggerDefaultLabel;+ type: WorkflowTriggerType;+ icon: string;+ event: string;+} = {+ defaultLabel: DatabaseTriggerDefaultLabel.RECORD_UPSERTED,+ type: 'DATABASE_EVENT',+ icon: 'IconPencilPlus',+ event: 'upserted',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/WebhookTrigger.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/WebhookTrigger.tsnew file mode 100644index 00000000000..82af499c782--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/triggers/WebhookTrigger.ts@@ -0,0 +1,11 @@+import { type WorkflowTriggerType } from '@/workflow/types/Workflow';++export const WEBHOOK_TRIGGER: {+ defaultLabel: string;+ type: WorkflowTriggerType;+ icon: string;+} = {+ defaultLabel: 'Webhook',+ type: 'WEBHOOK',+ icon: 'IconWebhook',+};diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/__tests__/getTriggerHeaderType.test.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/__tests__/getTriggerHeaderType.test.tsindex ddeb7025078..25b3b8f778e 100644--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/__tests__/getTriggerHeaderType.test.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/__tests__/getTriggerHeaderType.test.ts@@ -115,7 +115,7 @@ describe('getTriggerHeaderType', () => {const result = getTriggerHeaderType(trigger);- expect(result).toBe('Trigger');+ expect(result).toBe('Trigger · Cron');});it('returns "Trigger" for cron trigger with HOURS schedule', () => {@@ -134,7 +134,7 @@ describe('getTriggerHeaderType', () => {const result = getTriggerHeaderType(trigger);- expect(result).toBe('Trigger');+ expect(result).toBe('Trigger · Cron');});it('returns "Trigger" for cron trigger with MINUTES schedule', () => {@@ -152,7 +152,7 @@ describe('getTriggerHeaderType', () => {const result = getTriggerHeaderType(trigger);- expect(result).toBe('Trigger');+ expect(result).toBe('Trigger · Cron');});it('returns "Trigger" for cron trigger with CUSTOM schedule', () => {@@ -168,7 +168,7 @@ describe('getTriggerHeaderType', () => {const result = getTriggerHeaderType(trigger);- expect(result).toBe('Trigger');+ expect(result).toBe('Trigger · Cron');});});diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/getTriggerHeaderType.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/getTriggerHeaderType.tsindex 02cec7b04c0..ff4d53267cc 100644--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/getTriggerHeaderType.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/getTriggerHeaderType.ts@@ -5,7 +5,7 @@ import { assertUnreachable } from 'twenty-shared/utils';export const getTriggerHeaderType = (trigger: WorkflowTrigger) => {switch (trigger.type) {case 'CRON': {- return 'Trigger';+ return 'Trigger · Cron';}case 'WEBHOOK': {return 'Trigger · Webhook';