From 90e0511e3dab268ebef5aa418053b71cb0a629e5 Mon Sep 17 00:00:00 2001 From: AngelaZQ1 Date: Tue, 27 Feb 2024 22:20:00 -0500 Subject: [PATCH] Add course modal ui tweaks --- .../AddCourseModal/AddCourseModal.tsx | 36 +++++++++++++------ .../AddCourseModal/NUPathCheckBox.tsx | 7 ++-- .../components/AddCourseModal/NUPathLabel.tsx | 2 +- .../AddCourseModal/SearchResult.tsx | 24 ++++++------- .../AddCourseModal/SelectedCourse.tsx | 8 ++--- .../frontend/components/Plan/ScheduleTerm.tsx | 1 + .../components/Plan/TransferCourses.tsx | 1 + .../ScheduleCourse/CourseDragIcon.tsx | 2 +- 8 files changed, 48 insertions(+), 33 deletions(-) diff --git a/packages/frontend/components/AddCourseModal/AddCourseModal.tsx b/packages/frontend/components/AddCourseModal/AddCourseModal.tsx index 7d9edc399..a08207846 100644 --- a/packages/frontend/components/AddCourseModal/AddCourseModal.tsx +++ b/packages/frontend/components/AddCourseModal/AddCourseModal.tsx @@ -32,6 +32,7 @@ import { SelectedCourse } from "./SelectedCourse"; interface AddCourseModalProps { isOpen: boolean; catalogYear?: number; + addTo: string; /** Function to close the modal UX, returned from the useDisclosure chakra hook */ closeModalDisplay: () => void; @@ -48,6 +49,7 @@ interface AddCourseModalProps { export const AddCourseModal: React.FC = ({ isOpen, catalogYear, + addTo, closeModalDisplay, isCourseAlreadyAdded, addSelectedClasses, @@ -124,13 +126,19 @@ export const AddCourseModal: React.FC = ({ - + Add Courses + + Select courses to add to{" "} + + {addTo} + + @@ -141,10 +149,11 @@ export const AddCourseModal: React.FC = ({ bg="neutral.50" paddingLeft="7" paddingY="9" - borderRight="2px" - borderColor="neutral.100" + borderRight="1px" + borderColor="neutral.200" + borderEndStartRadius="lg" > - + NUPath @@ -163,8 +172,9 @@ export const AddCourseModal: React.FC = ({ = ({ {!error && (!courses || courses.length === 0) && ( - - Search results will show up here. + + Search results will show up here... )} @@ -227,7 +241,7 @@ export const AddCourseModal: React.FC = ({ {/* Selected Courses Area */} - + Courses to Add: diff --git a/packages/frontend/components/AddCourseModal/NUPathCheckBox.tsx b/packages/frontend/components/AddCourseModal/NUPathCheckBox.tsx index d6bb134fc..2c28dc4a1 100644 --- a/packages/frontend/components/AddCourseModal/NUPathCheckBox.tsx +++ b/packages/frontend/components/AddCourseModal/NUPathCheckBox.tsx @@ -30,17 +30,18 @@ export const NUPathCheckBox: React.FC = ({ return ( - + {nuPath} diff --git a/packages/frontend/components/AddCourseModal/NUPathLabel.tsx b/packages/frontend/components/AddCourseModal/NUPathLabel.tsx index 53de46c05..9f417561c 100644 --- a/packages/frontend/components/AddCourseModal/NUPathLabel.tsx +++ b/packages/frontend/components/AddCourseModal/NUPathLabel.tsx @@ -61,7 +61,7 @@ export const NUPathLabel: React.FC = ({ = ({ alignItems="end" padding="1" paddingY="2" - borderBottom="2px" + borderBottom="1px" borderColor="neutral.100" > - - - + + + {getCourseDisplayString(course)} - + {course.name} - - - + + + = ({ borderColor="neutral.200" > - - + + {getCourseDisplayString(selectedCourse)} - - {selectedCourse.name} - + {selectedCourse.name} = ({ []) => diff --git a/packages/frontend/components/Plan/TransferCourses.tsx b/packages/frontend/components/Plan/TransferCourses.tsx index 0eb46b07f..f3658937a 100644 --- a/packages/frontend/components/Plan/TransferCourses.tsx +++ b/packages/frontend/components/Plan/TransferCourses.tsx @@ -146,6 +146,7 @@ const TransferCoursesBody: React.FC = ({ { lineHeight: "1em", WebkitFlexShrink: 0, flexShrink: 0, - color: "var(--chakra-colors-primary-blue-dark-main)", + color: "var(--chakra-colors-gray-400)", verticalAlign: "middle", }} >