From 412975c887bfe8ba91d66787cb8bade5cfae8114 Mon Sep 17 00:00:00 2001 From: Mohamed Khelif Date: Tue, 5 Sep 2023 16:55:03 -0400 Subject: [PATCH 1/2] Create task blocked event --- src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx | 3 +++ src/types/task.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx b/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx index 840e1e9597..ecb2e113e3 100644 --- a/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx +++ b/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx @@ -17,6 +17,9 @@ export const TaskEventLogLine: React.FC = ({ const containerOrHostCopy = podId ? "container" : "host"; let message: JSX.Element; switch (eventType) { + case TaskEventType.TaskBlocked: + message = <>This task is blocked.; + break; case TaskEventType.TaskFinished: message = ( <> diff --git a/src/types/task.ts b/src/types/task.ts index da7d39d739..2cb2ecca36 100644 --- a/src/types/task.ts +++ b/src/types/task.ts @@ -106,6 +106,7 @@ export enum TaskEventType { TaskFinished = "TASK_FINISHED", TaskStarted = "TASK_STARTED", TaskDispatched = "TASK_DISPATCHED", + TaskBlocked = "TASK_BLOCKED", TaskUndispatched = "TASK_UNDISPATCHED", TaskCreated = "TASK_CREATED", TaskRestarted = "TASK_RESTARTED", From a41c35be1362ba281fb6b6b998ec285c63da2247 Mon Sep 17 00:00:00 2001 From: Mohamed Khelif Date: Tue, 5 Sep 2023 17:17:54 -0400 Subject: [PATCH 2/2] Update copy --- src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx b/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx index ecb2e113e3..03ef99987b 100644 --- a/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx +++ b/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx @@ -18,7 +18,7 @@ export const TaskEventLogLine: React.FC = ({ let message: JSX.Element; switch (eventType) { case TaskEventType.TaskBlocked: - message = <>This task is blocked.; + message = <>Task is blocked.; break; case TaskEventType.TaskFinished: message = (