- Add the SAVE_EMAIL action. This action requires more setting parameters than the Serverless Function action. - Changed the way we computed the workflow diagram. It now preserves some properties, like the `selected` property. That's necessary to not close the right drawer when the workflow back-end data change. - Added the possibility to set a label to a TextArea. This uses a `<label>` HTML element and the `useId()` hook to create an id linking the label with the input.
20 lines
423 B
TypeScript
20 lines
423 B
TypeScript
import { WorkflowStepType } from '@/workflow/types/Workflow';
|
|
import { IconComponent, IconSettingsAutomation } from 'twenty-ui';
|
|
|
|
export const ACTIONS: Array<{
|
|
label: string;
|
|
type: WorkflowStepType;
|
|
icon: IconComponent;
|
|
}> = [
|
|
{
|
|
label: 'Serverless Function',
|
|
type: 'CODE',
|
|
icon: IconSettingsAutomation,
|
|
},
|
|
{
|
|
label: 'Send Email',
|
|
type: 'SEND_EMAIL',
|
|
icon: IconSettingsAutomation,
|
|
},
|
|
];
|