From 9c2c8321dedbc5069ee57a0a26a590f5c6747090 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Thu, 16 Apr 2026 17:49:48 -0400 Subject: [PATCH] Remove estimated hours and sync priority options to Sev 1-5 - Remove estimatedHours from form state, API mapping, and form UI - Replace Low/Medium/High/Urgent priority options with Sev 1 through Sev 5 - Adjust date row from 3 columns to 2 columns --- src/pages/workorders/api.js | 1 - .../workorders/form/WorkOrderFormPage.js | 33 +++++-------------- 2 files changed, 9 insertions(+), 25 deletions(-) diff --git a/src/pages/workorders/api.js b/src/pages/workorders/api.js index 57f899e0..0cc6d8d0 100644 --- a/src/pages/workorders/api.js +++ b/src/pages/workorders/api.js @@ -26,7 +26,6 @@ export const getWorkOrderById = async (id) => { description: wo.description ?? "", priority: wo.priority ?? "", status: wo.status ?? "Open", - estimatedHours: wo.estimatedHours ?? "", po: wo.po ?? "", tt: wo.tt ?? "", comments: wo.comments ?? [], diff --git a/src/pages/workorders/form/WorkOrderFormPage.js b/src/pages/workorders/form/WorkOrderFormPage.js index 318f35bd..e0644232 100644 --- a/src/pages/workorders/form/WorkOrderFormPage.js +++ b/src/pages/workorders/form/WorkOrderFormPage.js @@ -15,13 +15,12 @@ export default function WorkOrderFormPage() { workOrderNumber: "", title: "", locationId: "", - priority: "Medium", + priority: "", status: "Open", createdDate: new Date().toISOString().split("T")[0], dueDate: "", assignedTo: "", description: "", - estimatedHours: 1, }); const [loading, setLoading] = useState(false); @@ -204,7 +203,7 @@ export default function WorkOrderFormPage() {
-
+
-
+
-
-
- - -
-
@@ -262,10 +245,12 @@ export default function WorkOrderFormPage() { onChange={handleChange} required > - - - - + + + + + +