Skip to content

Commit

Permalink
Merge pull request #920 from cornell-dti/sp25-setup-cp
Browse files Browse the repository at this point in the history
Updating constants.ts & disabling wrapped for spring 2025
  • Loading branch information
NIDHI2023 authored Jan 20, 2025
2 parents ae91711 + 93b0215 commit 5fcbd79
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
24 changes: 12 additions & 12 deletions src/components/pages/SplitView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -86,8 +86,8 @@ const SplitView = ({

const [removeQuestionId, setRemoveQuestionId] = useState<string | undefined>(undefined);
const [displayFeedbackPrompt, setDisplayFeedbackPrompt] = useState<boolean>(false);
const [displayWrapped, setDisplayWrapped] = useState<boolean>(false);
const [countdownZero, setCountdownZero] = useState<boolean>(false);
// const [displayWrapped, setDisplayWrapped] = useState<boolean>(false);
// const [countdownZero, setCountdownZero] = useState<boolean>(false);
const [removedQuestionId, setRemovedQuestionId] = useState<string | undefined>(undefined);
const [showCalendarModal, setShowCalendarModal] = useState<boolean>(false);
const [isDayExport, setIsDayExport] = useState<boolean>(false);
Expand Down Expand Up @@ -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 (
<>
Expand All @@ -201,8 +201,8 @@ const SplitView = ({
context="student"
courseId={match.params.courseId}
course={course}
countdownZero={countdownZero}
setDisplayWrapped={setDisplayWrapped}
// countdownZero={countdownZero}
// setDisplayWrapped={setDisplayWrapped}
/>
{banners.map((banner, index) => (
<Banner
Expand Down Expand Up @@ -271,21 +271,21 @@ const SplitView = ({
<Loader active={true} content="Loading" />
))}
<ProductUpdates />
{user && user.wrapped ? (
{/* {user && user.wrapped ? (
<WrappedCountdown
setDisplayWrapped={setDisplayWrapped}
setCountdownZero={setCountdownZero}
wrappedDate={{ launchDate: launch, startDate: start }}
/>
) : null}
) : null} */}
{displayFeedbackPrompt ? (
<FeedbackPrompt
onClose={submitFeedback(removedQuestionId, course, session.sessionId)}
closeFeedbackPrompt={() => setDisplayFeedbackPrompt(false)}
/>
) : null}

{displayWrapped ? <Wrapped user={user} onClose={() => setDisplayWrapped(false)} /> : null}
{/* {displayWrapped ? <Wrapped user={user} onClose={() => setDisplayWrapped(false)} /> : null} */}
</>
);
};
Expand Down
12 changes: 7 additions & 5 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +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', '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";

0 comments on commit 5fcbd79

Please sign in to comment.