From 6734e9b83a97101f6a400492614fe0832bb24631 Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Mon, 23 Feb 2026 23:12:39 +0000 Subject: [PATCH] Moved the duration field into the ITask, and made it part of every task --- .../components/CapabilityEditors/TaskCoreEditor.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/modules/manager/workflowTemplates/components/CapabilityEditors/TaskCoreEditor.tsx b/src/modules/manager/workflowTemplates/components/CapabilityEditors/TaskCoreEditor.tsx index 4428d70..dda1829 100644 --- a/src/modules/manager/workflowTemplates/components/CapabilityEditors/TaskCoreEditor.tsx +++ b/src/modules/manager/workflowTemplates/components/CapabilityEditors/TaskCoreEditor.tsx @@ -88,6 +88,15 @@ export const TaskCoreEditor: React.FC = (props) => { InputType.textarea, fieldErrors, )} + + {renderTaskField( + task, + onChange, + "duration", + "Duration", + InputType.time, + fieldErrors, + )} {renderTaskField( task, onChange, @@ -162,6 +171,7 @@ export function defaultsAssignment( ctx.tTaskType, ); task.config.description = ""; + task.config.duration = "01:00"; task.config.predecessors = setDefaultPredecessors(task, tasks); }