Skip to content

Commit

Permalink
Merge pull request #113 from TigerAppsOrg/staging
Browse files Browse the repository at this point in the history
Spring 2025 courses
  • Loading branch information
joshuamotoaki authored Oct 31, 2024
2 parents 6ddc796 + badf7c4 commit da819d8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/database/src/scripts/supabase/shared.ts
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
18 changes: 15 additions & 3 deletions apps/web/src/lib/changeme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number, Record<string, string>> = {
1254: {
name: "Spring 2025",
mobile_name: "S25"
},
1252: {
name: "Fall 2024",
mobile_name: "F24"
Expand Down Expand Up @@ -61,6 +65,7 @@ export const TERM_MAP: Record<number, Record<string, string>> = {

// Add the new term at the top of the list
export const EVALS_TERM_MAP: Record<number, string> = {
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",
Expand All @@ -82,6 +87,13 @@ export const EVALS_TERM_MAP: Record<number, string> = {
// 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<string, Calendar_Info> = {
"1254": {
name: "Spring 2025",
start: [2025, 1, 27],
start_day: 1,
end: [2025, 4, 25],
exclusions: []
},
"1252": {
name: "Fall 2024",
start: [2024, 9, 3],
Expand Down Expand Up @@ -109,15 +121,15 @@ export const CALENDAR_INFO: Record<string, Calendar_Info> = {
} 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
});

//----------------------------------------------------------------------
Expand Down

0 comments on commit da819d8

Please sign in to comment.