Moved the duration field into the ITask, and made it part of every task

This commit is contained in:
Colin Dawson 2026-02-23 23:12:39 +00:00
parent fb09052476
commit 6734e9b83a

View File

@ -88,6 +88,15 @@ export const TaskCoreEditor: React.FC<CapabilityEditorProps> = (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);
}