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

@ -15,10 +15,13 @@ export const useRunWorkflowVersion = () => {
client: apolloMetadataClient,
});
const runWorkflowVersion = async (
workflowVersionId: string,
payload?: Record<string, any>,
) => {
const runWorkflowVersion = async ({
workflowVersionId,
payload,
}: {
workflowVersionId: string;
payload?: Record<string, any>;
}) => {
await mutate({
variables: { input: { workflowVersionId, payload } },
});