Make task time estimate optional

close #38

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-19 13:08:27 +01:00
parent 84c634cac3
commit 7efae81113
10 changed files with 39 additions and 54 deletions

View File

@@ -625,7 +625,6 @@ function ControlOverviewPageContent({
});
return;
}
// Convert the time estimate components to ISO 8601 format
const isoTimeEstimate = convertToISODuration();
@@ -636,7 +635,7 @@ function ControlOverviewPageContent({
controlId: data.control.id,
name: newTaskName,
description: newTaskDescription,
timeEstimate: isoTimeEstimate,
timeEstimate: isoTimeEstimate === "" ? null : isoTimeEstimate,
},
},
onCompleted: () => {

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<f972be1746bd5bb9d5100845096188f8>>
* @generated SignedSource<<318d80720efe2f6e610353e3a640d786>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -15,7 +15,7 @@ export type CreateTaskInput = {
controlId: string;
description: string;
name: string;
timeEstimate: any;
timeEstimate?: any | null | undefined;
};
export type ControlOverviewPageCreateTaskMutation$variables = {
connections: ReadonlyArray<string>;
@@ -34,7 +34,7 @@ export type ControlOverviewPageCreateTaskMutation$data = {
readonly id: string;
readonly name: string;
readonly state: TaskState;
readonly timeEstimate: any;
readonly timeEstimate: any | null | undefined;
readonly version: number;
};
};

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<84b34aa7e582728a8386d1fe1ef3fb58>>
* @generated SignedSource<<084485ae03f7089bfdee310d631b01eb>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -50,7 +50,7 @@ export type ControlOverviewPageQuery$data = {
readonly id: string;
readonly name: string;
readonly state: TaskState;
readonly timeEstimate: any;
readonly timeEstimate: any | null | undefined;
readonly version: number;
};
}>;