Enable workflow testing + fix header (#8512)

- clean execution header
- enable test on workflows + add snack bar
- display snack bar error if workflow cannot be tested

Behaviour still need to be validated by @Bonapara 
<img width="880" alt="Capture d’écran 2024-11-15 à 12 16 36"
src="https://github.com/user-attachments/assets/1dab0c3b-157c-449f-aee7-4c8cf2e369a6">
<img width="880" alt="Capture d’écran 2024-11-15 à 12 16 48"
src="https://github.com/user-attachments/assets/16279611-0a58-4fe6-b117-0192714a6d5c">
This commit is contained in:
Thomas Trompette
2024-11-15 18:38:39 +01:00
committed by GitHub
parent ac93d35538
commit 54b28ff7ed
9 changed files with 89 additions and 9 deletions

View File

@ -34,7 +34,9 @@ export const WorkflowRunActionEffect = () => {
position: index,
Icon: IconSettingsAutomation,
onClick: async () => {
await runWorkflowVersion(activeWorkflowVersion.id);
await runWorkflowVersion({
workflowVersionId: activeWorkflowVersion.id,
});
enqueueSnackBar('', {
variant: SnackBarVariant.Success,

View File

@ -65,7 +65,10 @@ export const WorkflowRunRecordActionEffect = ({
return;
}
await runWorkflowVersion(activeWorkflowVersion.id, selectedRecord);
await runWorkflowVersion({
workflowVersionId: activeWorkflowVersion.id,
payload: selectedRecord,
});
enqueueSnackBar('', {
variant: SnackBarVariant.Success,