From 642a5ca58192dae2ad518e89b9bcf2b4fa8a1f7d Mon Sep 17 00:00:00 2001 From: NIDHI2023 Date: Sun, 19 Jan 2025 21:43:27 -0500 Subject: [PATCH 1/3] Set current semester to SP25 with start date 1/15 and end date 5/18 - also changed wrapped start/end date to remove visibility --- src/constants.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index e5a74043..9f85a469 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,10 +1,10 @@ -export const CURRENT_SEMESTER = 'FA24'; +export const CURRENT_SEMESTER = 'SP25'; export const ALL_SEMESTERS = ['SP20', 'FA20', 'SP21', 'FA21', 'SP22', 'FA22', - 'SP23', 'FA23', 'SP24', 'FA24'] + 'SP23', 'FA23', 'SP24', 'FA24', 'SP25'] -export const START_DATE = '2024-08-19' -export const END_DATE = '2024-12-20' +export const START_DATE = '2025-01-15' +export const END_DATE = '2025-05-18' // These are the start date and launch date for QMI Wrap for the current semester -export const WRAPPED_START_DATE = "2024-11-12T00:00:00"; -export const WRAPPED_LAUNCH_DATE = "2024-11-22T00:00:00"; +export const WRAPPED_START_DATE = "2025-11-12T00:00:00"; +export const WRAPPED_LAUNCH_DATE = "2025-11-22T00:00:00"; From 9adc43c177245351eb012ce4ad48a22865eb790e Mon Sep 17 00:00:00 2001 From: NIDHI2023 Date: Mon, 20 Jan 2025 07:54:45 -0500 Subject: [PATCH 2/3] commented out wrapped for safety --- src/components/pages/SplitView.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/pages/SplitView.tsx b/src/components/pages/SplitView.tsx index ed64ad1b..07e06bb9 100644 --- a/src/components/pages/SplitView.tsx +++ b/src/components/pages/SplitView.tsx @@ -201,7 +201,7 @@ const SplitView = ({ courseId={match.params.courseId} course={course} countdownZero={countdownZero} - setDisplayWrapped={setDisplayWrapped} + // setDisplayWrapped={setDisplayWrapped} /> {banners.map((banner, index) => ( ))} - {user && user.wrapped ? ( + {/* {user && user.wrapped ? ( - ) : null} + ) : null} */} {displayFeedbackPrompt ? ( ) : null} - {displayWrapped ? setDisplayWrapped(false)} /> : null} + {/* {displayWrapped ? setDisplayWrapped(false)} /> : null} */} ); }; From b95f24792c8516be8055327a0ae43eb2779f71b8 Mon Sep 17 00:00:00 2001 From: NIDHI2023 Date: Mon, 20 Jan 2025 08:03:58 -0500 Subject: [PATCH 3/3] fix lint warnings --- src/components/pages/SplitView.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/pages/SplitView.tsx b/src/components/pages/SplitView.tsx index 07e06bb9..626a90f1 100644 --- a/src/components/pages/SplitView.tsx +++ b/src/components/pages/SplitView.tsx @@ -20,9 +20,9 @@ import smsNotif from "../../media/smsNotif.svg"; import { addBanner } from "../../redux/actions/announcements"; import Banner from "../includes/Banner"; import FeedbackPrompt from "../includes/FeedbackPrompt"; -import Wrapped from "../includes/Wrapped"; -import WrappedCountdown from "../includes/WrappedCountdown"; -import { WRAPPED_START_DATE, WRAPPED_LAUNCH_DATE } from "../../constants"; +// import Wrapped from "../includes/Wrapped"; +// import WrappedCountdown from "../includes/WrappedCountdown"; +// import { WRAPPED_START_DATE, WRAPPED_LAUNCH_DATE } from "../../constants"; // Also update in the main LESS file const MOBILE_BREAKPOINT = 920; @@ -86,8 +86,8 @@ const SplitView = ({ const [removeQuestionId, setRemoveQuestionId] = useState(undefined); const [displayFeedbackPrompt, setDisplayFeedbackPrompt] = useState(false); - const [displayWrapped, setDisplayWrapped] = useState(false); - const [countdownZero, setCountdownZero] = useState(false); + // const [displayWrapped, setDisplayWrapped] = useState(false); + // const [countdownZero, setCountdownZero] = useState(false); const [removedQuestionId, setRemovedQuestionId] = useState(undefined); const [showCalendarModal, setShowCalendarModal] = useState(false); const [isDayExport, setIsDayExport] = useState(false); @@ -189,8 +189,8 @@ const SplitView = ({ } }, [addBanner, user]); - const start = new Date(WRAPPED_START_DATE); - const launch = new Date(WRAPPED_LAUNCH_DATE); + // const start = new Date(WRAPPED_START_DATE); + // const launch = new Date(WRAPPED_LAUNCH_DATE); return ( <> @@ -200,7 +200,7 @@ const SplitView = ({ context="student" courseId={match.params.courseId} course={course} - countdownZero={countdownZero} + // countdownZero={countdownZero} // setDisplayWrapped={setDisplayWrapped} /> {banners.map((banner, index) => (