From a92a44ac882d7f46cda565867556358319cd5af5 Mon Sep 17 00:00:00 2001 From: Corbin Campbell <114195647+HankC138@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:37:00 -0400 Subject: [PATCH] assignments with no assignedUser can now input estHours --- app/components/newPersonForm.tsx | 1 - app/components/projectAssignment/workWeekInput.tsx | 2 -- app/gqlQueries.tsx | 12 ------------ 3 files changed, 15 deletions(-) diff --git a/app/components/newPersonForm.tsx b/app/components/newPersonForm.tsx index caa7d2e..73994d6 100644 --- a/app/components/newPersonForm.tsx +++ b/app/components/newPersonForm.tsx @@ -20,7 +20,6 @@ const NewPersonForm = ({ closeModal }: NewPersonFormProps) => { userEmail: values.userEmail, isAdmin: values.isAdmin }; - console.log('Form values:', newValues); closeModal() // Here will be logic for create new user }, diff --git a/app/components/projectAssignment/workWeekInput.tsx b/app/components/projectAssignment/workWeekInput.tsx index a0b7a9d..c579a5b 100644 --- a/app/components/projectAssignment/workWeekInput.tsx +++ b/app/components/projectAssignment/workWeekInput.tsx @@ -136,7 +136,6 @@ export const WorkWeekInput = ({ }, [months, rowIndex, inputRefs]); const upsertWorkWeekValues = (values: FormikValues) => { - const variables: WorkWeekValues = { assignmentId: values.assignmentId, cweek: values.cweek, @@ -226,7 +225,6 @@ export const WorkWeekInput = ({ } }} onFillForwardClick={() => onFillForwardClick(ESTIMATED_HOURS, cweek, year, values)} - disabled={isUserTBD} ref={(el: HTMLInputElement) => createEstimatedRef(el, rowIndex, cellIndex)} onKeyDown={(e: React.KeyboardEvent) => tabbingAndArrowNavigation(e, rowIndex, cellIndex, inputRefs, totalRows, false)} /> diff --git a/app/gqlQueries.tsx b/app/gqlQueries.tsx index b1a2764..a50c744 100644 --- a/app/gqlQueries.tsx +++ b/app/gqlQueries.tsx @@ -186,9 +186,6 @@ export const GET_ALL_CLIENTS_DATA = gql` estimatedHours cweek year - user { - name - } } } workWeeks { @@ -196,9 +193,6 @@ export const GET_ALL_CLIENTS_DATA = gql` estimatedHours cweek year - user { - name - } } } } @@ -237,9 +231,6 @@ export const GET_ALL_PROJECTS_DATA = gql` estimatedHours cweek year - user { - name - } } } client { @@ -252,9 +243,6 @@ export const GET_ALL_PROJECTS_DATA = gql` estimatedHours cweek year - user { - name - } } } }