How gt-scheduler/website works
Purpose and Runtime
GT Scheduler is a TypeScript/React single-page application for building and comparing Georgia Tech course schedules. It is a create-react-app frontend, styled with SCSS and served as a static site. Browser entry is src/index.tsx; the application shell is src/components/App/index.tsx; static HTML/manifest are under public/index.html and public/manifest.json.
Application Shell and Navigation
App selects main, maintenance, and content views and composes global navigation and overlays. Routing is isolated behind src/components/RouterComponent/index.tsx, while navigation UI is implemented in src/components/App/navigation.tsx, src/components/NavDrawer/index.tsx, and src/components/NavMenu/index.tsx. Error containment is a top-level boundary at src/components/ErrorBoundary/index.tsx.
Bootstrapping and Data Readiness
src/components/AppDataLoader/index.tsx orchestrates startup loading; src/components/AppDataLoader/stages.tsx represents loading stages. Term metadata and crawler data are downloaded through src/data/hooks/useDownloadTerms.ts and src/data/hooks/useDownloadOscarData.ts, then term validity is enforced by src/data/hooks/useEnsureValidTerm.ts. This separates remote academic data acquisition from the interactive UI.
State, Persistence, and Migration
React contexts provide cross-cutting state domains: account, schedules, friends/shared schedules, selected terms, theme, and overlay CRNs in src/contexts/account.ts, src/contexts/schedule.ts, and src/contexts/friend.ts. Schedule/UI/theme data is restored from browser storage via src/data/hooks/useRawScheduleDataFromStorage.ts, src/data/hooks/useUIStateFromStorage.ts, and src/data/hooks/useThemeFromStorage.ts. Historical client data is versioned and migrated through src/data/migrations/index.ts, src/data/migrations/1to2.ts, and src/data/hooks/useMigrateScheduleData.ts.
Scheduling and Course Exploration
Course and section domain models live in src/data/beans/Course.ts, src/data/beans/Section.ts, and src/data/beans/Oscar.ts. The schedule-building flow centers on course selection and schedule presentation: src/components/CourseContainer/index.tsx, src/components/Scheduler/index.tsx, and src/components/Calendar/index.tsx. Time/section rendering and conflict-oriented visual blocks are separated into src/components/TimeBlocks/index.tsx, src/components/SectionBlocks/index.tsx, and src/components/EventBlocks/index.tsx.
Comparison, Sharing, and Accounts
Alternative schedules can be compared through src/components/ComparisonContainer/index.tsx, src/components/ComparisonPanel/index.tsx, and src/data/hooks/useCompareStateFromStorage.ts. Account authentication and cloud-backed friend schedule workflows are mediated by Firebase: src/data/firebase.ts, src/data/hooks/useFirebaseAuth.ts, src/data/hooks/useRawScheduleDataFromFirebase.ts, and src/data/hooks/useRawFriendScheduleDataFromFirebaseFunction.ts. Invitation UI is bounded in src/components/InvitationModal/index.tsx and src/components/InvitationAcceptModal/InvitationAcceptModal.tsx.
External Boundaries and Delivery
The browser fetches term/course data from the GT Scheduler crawler, requests live section seating through the backend CORS proxy to Georgia Tech Oscar, and requests course/instructor GPA data from Course Critique. Firebase supports authentication and shared schedule data. Google Analytics provides aggregate usage tracking; Sentry reports client errors. GitHub Actions CI/deployment are defined in .github/workflows/ci.yaml and .github/workflows/deploy.yaml; deployment publishes the static SPA to GitHub Pages for gt-scheduler.org.
Main entry points: App/index.tsx App shell · Scheduler/index.tsx Schedule builder · AppDataLoader/index.tsx Startup data loader · schedule.ts App contexts
Components 23
Browser UI
- Browser entry
src/index.tsx - App shell · Selects application views, navigation, and overlays.
src/components/App/index.tsx - Router
src/components/RouterComponent/index.tsx - Navigation UI · Global navigation, drawer, and menu.
src/components/App/navigation.tsx - Error boundary
src/components/ErrorBoundary/index.tsx - Schedule builder · Course selection and schedule presentation.
src/components/Scheduler/index.tsx - Calendar renderer · Renders time, section, and event blocks.
src/components/Calendar/index.tsx - Schedule comparison · Compares alternative schedules with persisted compare state.
src/components/ComparisonContainer/index.tsx - Schedule invitations
src/components/InvitationModal/index.tsx
Client Data
- Startup data loader · Coordinates loading stages before interactive use.
src/components/AppDataLoader/index.tsx - Academic data downloads · Downloads terms and crawler course data.
src/data/hooks/useDownloadTerms.ts - Valid term enforcement
src/data/hooks/useEnsureValidTerm.ts - App contexts · Account, schedule, friend, term, theme, and overlay state.
src/contexts/schedule.ts - Browser persistence · Restores schedule, UI, and theme state.
src/data/hooks/useRawScheduleDataFromStorage.ts - Schedule migrations · Versions and upgrades historical schedule data.
src/data/migrations/index.ts - Firebase integration · Authenticates accounts and loads cloud-backed schedules.
src/data/firebase.ts
External Services
- GT Scheduler crawler
- Oscar CORS proxy · Obtains live Georgia Tech Oscar seating.
- Course Critique
- Firebase · Authentication and shared schedule storage.
- Analytics and error reporting · Google Analytics and Sentry.
Delivery
- GitHub Actions · Builds and deploys the static SPA.
.github/workflows/deploy.yaml - GitHub Pages · Hosts gt-scheduler.org.
Connections 23
- Browser entry → App shell: mounts
- App shell → Router: selects views
- App shell → Navigation UI: composes
- App shell → Error boundary: contains
- App shell → Startup data loader: initializes
- Startup data loader → Academic data downloads: loads
- Startup data loader → Valid term enforcement: validates
- Academic data downloads → GT Scheduler crawler: downloads terms and courses
- App contexts → Browser persistence: restores from
- Browser persistence → Schedule migrations: upgrades via
- Startup data loader → App contexts: hydrates
- App shell → Schedule builder: hosts
- Schedule builder → Calendar renderer: renders schedule
- Schedule builder → Oscar CORS proxy: requests live seating
- Schedule builder → Course Critique: requests GPA data
- App shell → Schedule comparison: hosts
- App contexts → Schedule comparison: supplies schedules
- App contexts → Firebase integration: syncs account and sharing
- Firebase integration → Firebase: uses
- Schedule invitations → Firebase integration: shares schedules
- App shell → Analytics and error reporting: reports usage and errors
- GitHub Actions → GitHub Pages: publishes SPA
- GitHub Pages → Browser entry: serves