App logic function as step (#17525)

- Add logic function as step
- Rename previous one as Code

<img width="494" height="573" alt="Capture d’écran 2026-01-28 à 16 15
29"
src="https://github.com/user-attachments/assets/82f7e720-20da-4926-b5bc-94a33cd1f53a"
/>
<img width="494" height="264" alt="Capture d’écran 2026-01-28 à 16 15
39"
src="https://github.com/user-attachments/assets/a0444ae9-8c50-418d-8c5f-68c4da08fce7"
/>
<img width="494" height="264" alt="Capture d’écran 2026-01-28 à 16 15
58"
src="https://github.com/user-attachments/assets/3025db09-4e59-421e-8dc5-f3a7a7326554"
/>

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Thomas Trompette
2026-01-29 11:59:24 +01:00
committed by GitHub
parent 22c7e207e3
commit 3ad7a9ac94
42 changed files with 551 additions and 90 deletions
@@ -36,6 +36,8 @@ export const useCreateStep = () => {
connectionOptions,
shouldSelectNode = true,
workflowVersionId: providedWorkflowVersionId,
logicFunctionId,
name,
}: {
newStepType: WorkflowActionType;
parentStepId: string | undefined;
@@ -44,6 +46,8 @@ export const useCreateStep = () => {
connectionOptions?: WorkflowStepConnectionOptions;
shouldSelectNode?: boolean;
workflowVersionId?: string;
logicFunctionId?: string;
name?: string;
}) => {
if (isLoading === true) {
return;
@@ -65,6 +69,8 @@ export const useCreateStep = () => {
nextStepId,
position,
parentStepConnectionOptions: connectionOptions,
logicFunctionId,
name,
})
)?.data?.createWorkflowVersionStep;