diff --git a/apps/database/src/scripts/supabase/shared.ts b/apps/database/src/scripts/supabase/shared.ts index 7566d2fe..ea2a47d0 100644 --- a/apps/database/src/scripts/supabase/shared.ts +++ b/apps/database/src/scripts/supabase/shared.ts @@ -1,7 +1,8 @@ import { createClient } from "@supabase/supabase-js"; export const TERMS = [ - 1252, 1244, 1242, 1234, 1232, 1224, 1222, 1214, 1212, 1204, 1202, 1194, 1192 + 1254, 1252, 1244, 1242, 1234, 1232, 1224, 1222, 1214, 1212, 1204, 1202, + 1194, 1192 ]; export const supabase = createClient( diff --git a/apps/web/src/lib/changeme.ts b/apps/web/src/lib/changeme.ts index 426782e9..e1c9daa2 100644 --- a/apps/web/src/lib/changeme.ts +++ b/apps/web/src/lib/changeme.ts @@ -5,6 +5,10 @@ import type { RawSectionData } from "./stores/rsections"; // Add the new term at the top of the list export const TERM_MAP: Record> = { + 1254: { + name: "Spring 2025", + mobile_name: "S25" + }, 1252: { name: "Fall 2024", mobile_name: "F24" @@ -61,6 +65,7 @@ export const TERM_MAP: Record> = { // Add the new term at the top of the list export const EVALS_TERM_MAP: Record = { + 1254: "2024-2025 Spring Course Evaluation Results", 1252: "2024-2025 Fall Course Evaluation Results", 1244: "2023-2024 Spring Course Evaluation Results", 1242: "2023-2024 Fall Course Evaluation Results", @@ -82,6 +87,13 @@ export const EVALS_TERM_MAP: Record = { // Ignore exclusions for now, they're not used, set to [] // Delete the old term at the bottom of the list export const CALENDAR_INFO: Record = { + "1254": { + name: "Spring 2025", + start: [2025, 1, 27], + start_day: 1, + end: [2025, 4, 25], + exclusions: [] + }, "1252": { name: "Fall 2024", start: [2024, 9, 3], @@ -109,15 +121,15 @@ export const CALENDAR_INFO: Record = { } as const; // Add the new term and delete the oldest term (be careful!) -export type ActiveTerms = 1252 | 1242 | 1244; +export type ActiveTerms = 1252 | 1254 | 1244; // Add the new term at the top of the list // Set the most recent term to true, and the rest to false // Delete the oldest term (at the bottom) export const sectionDone = writable({ 1244: false, - 1242: false, - 1252: true + 1254: true, + 1252: false }); //----------------------------------------------------------------------