Add test tab to tool step (#19760)

So we can use those as variables.
When the function input is updated, invalidate the input using an
effect.

<img width="770" height="635" alt="Capture d’écran 2026-04-16 à 14 45
41"
src="https://github.com/user-attachments/assets/cbf0b3e4-baad-424d-8f08-06eb1028abdb"
/>
This commit is contained in:
Thomas Trompette
2026-04-16 16:00:21 +02:00
committed by GitHub
parent c0fef0be08
commit cd31d9e0de
5 changed files with 192 additions and 20 deletions
@@ -224,9 +224,22 @@ export class WorkflowVersionStepOperationsWorkspaceService {
type: WorkflowActionType.LOGIC_FUNCTION,
settings: {
...BASE_STEP_DEFINITION,
outputSchema: {
link: {
isLeaf: true,
icon: 'IconVariable',
tab: 'test',
label: 'Generate Function Output',
},
_outputSchemaType: 'LINK',
},
input: {
logicFunctionId,
logicFunctionInput: {},
logicFunctionInput: isDefined(flatLogicFunction.toolInputSchema)
? (getFunctionInputFromInputSchema([
flatLogicFunction.toolInputSchema,
])[0] ?? {})
: {},
},
},
},