Skip to content

Commit fe209e6

Browse files
committed
fix(pci-worklow): fix handling of canceled workflow status
ref: #TAPC-5375 Signed-off-by: Adrien Turmo <[email protected]>
1 parent 16c03b9 commit fe209e6

File tree

10 files changed

+10
-1
lines changed

10 files changed

+10
-1
lines changed

packages/manager/apps/pci-workflow/public/translations/listing/Messages_de_DE.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"pci_workflow_execution_status_SUCCESS": "Erfolgreich",
1616
"pci_workflow_execution_status_ERROR": "Fehler",
1717
"pci_workflow_execution_status_PAUSED": "Pause",
18+
"pci_workflow_execution_status_CANCELED": "Abgebrochen",
1819
"pci_workflow_executions_title": "Ausführungen des Workflows '{{ workflowName }}'",
1920
"pci_workflow_executions_empty": "Keine Ausführungen gefunden",
2021
"pci_workflow_executions_ececution_date": "Datum (UTC)",

packages/manager/apps/pci-workflow/public/translations/listing/Messages_en_GB.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"pci_workflow_execution_status_SUCCESS": "Success",
1616
"pci_workflow_execution_status_ERROR": "Error",
1717
"pci_workflow_execution_status_PAUSED": "Pause",
18+
"pci_workflow_execution_status_CANCELED": "Cancelled",
1819
"pci_workflow_executions_title": "'{{ workflowName }}' workflow execution",
1920
"pci_workflow_executions_empty": "No executions found",
2021
"pci_workflow_executions_ececution_date": "Date (UTC)",

packages/manager/apps/pci-workflow/public/translations/listing/Messages_es_ES.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"pci_workflow_execution_status_SUCCESS": "Realizado",
1616
"pci_workflow_execution_status_ERROR": "Error",
1717
"pci_workflow_execution_status_PAUSED": "Pausa",
18+
"pci_workflow_execution_status_CANCELED": "Cancelado",
1819
"pci_workflow_executions_title": "Ejecución del flujo de trabajo «{{ workflowName }}»",
1920
"pci_workflow_executions_empty": "No se ha encontrado ninguna ejecución.",
2021
"pci_workflow_executions_ececution_date": "Fecha (UTC)",

packages/manager/apps/pci-workflow/public/translations/listing/Messages_fr_CA.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"pci_workflow_execution_status_SUCCESS": "Succès",
2121
"pci_workflow_execution_status_ERROR": "Erreur",
2222
"pci_workflow_execution_status_PAUSED": "Pause",
23+
"pci_workflow_execution_status_CANCELED": "Annulé",
2324
"pci_workflow_executions_title": "Exécution du Workflow '{{ workflowName }}'",
2425
"pci_workflow_executions_empty": "Aucune exécution trouvée",
2526
"pci_workflow_executions_ececution_date": "Date (UTC)",

packages/manager/apps/pci-workflow/public/translations/listing/Messages_fr_FR.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"pci_workflow_execution_status_SUCCESS": "Succès",
2121
"pci_workflow_execution_status_ERROR": "Erreur",
2222
"pci_workflow_execution_status_PAUSED": "Pause",
23+
"pci_workflow_execution_status_CANCELED": "Annulé",
2324
"pci_workflow_executions_title": "Exécution du Workflow '{{ workflowName }}'",
2425
"pci_workflow_executions_empty": "Aucune exécution trouvée",
2526
"pci_workflow_executions_ececution_date": "Date (UTC)",

packages/manager/apps/pci-workflow/public/translations/listing/Messages_it_IT.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"pci_workflow_execution_status_SUCCESS": "Completato",
1616
"pci_workflow_execution_status_ERROR": "Errore",
1717
"pci_workflow_execution_status_PAUSED": "Pausa",
18+
"pci_workflow_execution_status_CANCELED": "Annullato",
1819
"pci_workflow_executions_title": "Esecuzione del workflow '{{ workflowName }}'",
1920
"pci_workflow_executions_empty": "Nessuna esecuzione trovata",
2021
"pci_workflow_executions_ececution_date": "Data (UTC)",

packages/manager/apps/pci-workflow/public/translations/listing/Messages_pl_PL.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"pci_workflow_execution_status_SUCCESS": "Operacja zakończona pomyślnie",
1616
"pci_workflow_execution_status_ERROR": "Błąd",
1717
"pci_workflow_execution_status_PAUSED": "Zatrzymany",
18+
"pci_workflow_execution_status_CANCELED": "Anulowane",
1819
"pci_workflow_executions_title": "Uruchomienie workflowu '{{ workflowName }}'",
1920
"pci_workflow_executions_empty": "Nie znaleziono żadnych wykonanych workflowów.",
2021
"pci_workflow_executions_ececution_date": "Data (UTC)",

packages/manager/apps/pci-workflow/public/translations/listing/Messages_pt_PT.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"pci_workflow_execution_status_SUCCESS": "Êxito",
1616
"pci_workflow_execution_status_ERROR": "Erro",
1717
"pci_workflow_execution_status_PAUSED": "Pausa",
18+
"pci_workflow_execution_status_CANCELED": "Anulado",
1819
"pci_workflow_executions_title": "Execução do fluxo de trabalho '{{ workflowName }}'",
1920
"pci_workflow_executions_empty": "Não foi encontrada nenhuma execução",
2021
"pci_workflow_executions_ececution_date": "Data (UTC)",

packages/manager/apps/pci-workflow/src/api/data/region-workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { v6 } from '@ovh-ux/manager-core-api';
22

3-
export type TExecutionState = 'SUCCESS' | 'PAUSED' | 'ERROR';
3+
export type TExecutionState = 'SUCCESS' | 'PAUSED' | 'ERROR' | 'CANCELED';
44

55
export type TWorkflowExecution = {
66
id: string;

packages/manager/apps/pci-workflow/src/components/execution-status.component.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default function ExecutionStatusComponent({
2424
case 'PAUSED':
2525
return ODS_THEME_COLOR_INTENT.warning;
2626
case 'ERROR':
27+
case 'CANCELED':
2728
return ODS_THEME_COLOR_INTENT.error;
2829
default:
2930
return ODS_THEME_COLOR_INTENT.info;

0 commit comments

Comments
 (0)