# yagizylldrm/cankaya-uni-schedule-manager architecture

> Architecture diagram of the GitHub repository yagizylldrm/cankaya-uni-schedule-manager, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yagizylldrm/cankaya-uni-schedule-manager
- Repository: https://github.com/yagizylldrm/cankaya-uni-schedule-manager

## Overview

Schedule Manager is a course-planning product: students choose courses and sections, inspect prerequisite and curriculum status, generate conflict-free timetable alternatives, and save, export, or book around the resulting schedule. The current web app is organized around React schedule state and a FastAPI API; a legacy Qt desktop client remains. The README also documents catalog refresh, transcript handling, plan transfer, calendar/CSV output, custom activities, and sports booking. Edges follow shown imports/calls or README statements; unsampled connections are omitted where evidence is unavailable.

Main entry points: [`src/App.jsx`](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/App.jsx) (Web workspace), [`api/index.py`](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/index.py) (FastAPI routes), [`src/context/ScheduleContext.jsx`](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/context/ScheduleContext.jsx) (Schedule state), [`gui/main_window.py`](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/main_window.py) (Qt desktop app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web planning"]
  node_app["Web workspace<br/>[App.jsx]"]
  node_state["Schedule state"]
  node_search["Course search"]
  node_timetable["Timetable view<br/>[TimetableGrid.jsx]"]
  node_combinations["Plan alternatives<br/>[CombinationBar.jsx]"]
  node_plan["Plan utilities<br/>[plan.js]"]
  node_drafts["Local drafts<br/>[drafts.js]"]
  node_transcript_ui["Transcript interface"]
  node_sports_ui["Sports interface"]
  node_api_client["API client<br/>[api.js]"]
  node_sports_client["Sports client<br/>[sportsApi.js]"]
end

subgraph group_backend["Planning backend"]
  node_api["FastAPI routes<br/>[index.py]"]
  node_engine["Schedule engine"]
  node_manager["Course data manager<br/>[data_manager.py]"]
  node_prereqs["Prerequisite evaluator"]
  node_transcript["Transcript parser"]
end

subgraph group_data["Academic data"]
  node_catalog[("Course catalog")]
  node_scraper["Course scraper<br/>[scraper.py]"]
end

subgraph group_sports["Sports booking"]
  node_sports_backend["Booking service<br/>[sports_booking.py]"]
  node_tunnel{{"User ngrok tunnel"}}
end

subgraph group_desktop["Legacy desktop"]
  node_desktop["Qt desktop app<br/>[main_window.py]"]
  node_desktop_search["Desktop course search"]
  node_conflicts["Conflict explanations<br/>[conflict_dialog.py]"]
  node_desktop_table["Desktop timetable"]
  node_desktop_transcript["Desktop transcript"]
end

node_student(("Student"))
node_portal{{"University sports portal"}}

node_student -->|"uses"| node_app
node_app -->|"provides state"| node_state
node_app -->|"renders"| node_search
node_app -->|"renders"| node_timetable
node_app -->|"renders"| node_combinations
node_app -->|"renders"| node_sports_ui
node_search -->|"uses"| node_state
node_timetable -->|"uses"| node_state
node_combinations -->|"uses"| node_state
node_state -->|"requests data"| node_api_client
node_state -->|"reads drafts"| node_drafts
node_timetable -->|"formats schedule"| node_plan
node_app -->|"parses shared plan"| node_plan
node_transcript_ui -->|"uploads transcript"| node_api_client
node_sports_ui -->|"requests booking"| node_sports_client
node_api_client -->|"HTTP requests"| node_api
node_api -->|"uses course data"| node_manager
node_api -->|"generates schedules"| node_engine
node_api -->|"checks prerequisites"| node_prereqs
node_api -->|"parses transcripts"| node_transcript
node_manager -.->|"reads catalog"| node_catalog
node_scraper -->|"refreshes catalog"| node_catalog
node_api -->|"routes requests"| node_sports_backend
node_sports_client -->|"calls sports API"| node_api
node_sports_backend -->|"forwards requests"| node_tunnel
node_tunnel -->|"accesses portal"| node_portal
node_desktop -->|"hosts search"| node_desktop_search
node_desktop -->|"hosts timetable"| node_desktop_table
node_desktop -->|"opens transcript"| node_desktop_transcript
node_desktop_search -.->|"queries courses"| node_manager
node_desktop -.->|"generates schedules"| node_engine
node_conflicts -->|"supports resolution"| node_desktop_search

click node_app "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/App.jsx"
click node_state "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/context/ScheduleContext.jsx"
click node_search "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/components/CourseSearchPanel.jsx"
click node_timetable "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/components/TimetableGrid.jsx"
click node_combinations "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/components/CombinationBar.jsx"
click node_plan "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/utils/plan.js"
click node_drafts "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/utils/drafts.js"
click node_transcript_ui "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/components/TranscriptModal.jsx"
click node_sports_ui "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/components/SportsBookingModal.jsx"
click node_api_client "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/services/api.js"
click node_sports_client "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/services/sportsApi.js"
click node_api "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/index.py"
click node_engine "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/scheduler_engine.py"
click node_manager "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/data_manager.py"
click node_prereqs "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/prerequisite_manager.py"
click node_transcript "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/transcript_parser.py"
click node_catalog "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/cankaya_courses.json"
click node_scraper "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/scraper.py"
click node_sports_backend "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/sports_booking.py"
click node_desktop "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/main_window.py"
click node_desktop_search "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/course_search_panel.py"
click node_conflicts "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/conflict_dialog.py"
click node_desktop_table "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/timetable_widget.py"
click node_desktop_transcript "https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/transcript_dialog.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_state,node_search,node_timetable,node_combinations,node_plan,node_drafts,node_transcript_ui,node_sports_ui,node_api_client,node_sports_client toneBlue
class node_api,node_engine,node_manager,node_prereqs,node_transcript toneAmber
class node_catalog,node_scraper toneMint
class node_sports_backend,node_tunnel toneRose
class node_desktop,node_desktop_search,node_conflicts,node_desktop_table,node_desktop_transcript,node_student,node_portal toneIndigo
```

## Components

### Web planning

- [Web workspace](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/App.jsx): `src/App.jsx`
- [Schedule state](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/context/ScheduleContext.jsx): `src/context/ScheduleContext.jsx`
- [Course search](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/components/CourseSearchPanel.jsx): `src/components/CourseSearchPanel.jsx`
- [Timetable view](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/components/TimetableGrid.jsx): `src/components/TimetableGrid.jsx`
- [Plan alternatives](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/components/CombinationBar.jsx): `src/components/CombinationBar.jsx`
- [Plan utilities](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/utils/plan.js): `src/utils/plan.js`
- [Local drafts](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/utils/drafts.js): `src/utils/drafts.js`
- [Transcript interface](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/components/TranscriptModal.jsx): `src/components/TranscriptModal.jsx`
- [Sports interface](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/components/SportsBookingModal.jsx): `src/components/SportsBookingModal.jsx`
- [API client](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/services/api.js): `src/services/api.js`
- [Sports client](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/src/services/sportsApi.js): `src/services/sportsApi.js`

### Planning backend

- [FastAPI routes](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/index.py): `api/index.py`
- [Schedule engine](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/scheduler_engine.py): `api/scheduler_engine.py`
- [Course data manager](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/data_manager.py): `api/data_manager.py`
- [Prerequisite evaluator](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/prerequisite_manager.py): `api/prerequisite_manager.py`
- [Transcript parser](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/transcript_parser.py): `api/transcript_parser.py`

### Academic data

- [Course catalog](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/cankaya_courses.json): `api/cankaya_courses.json`
- [Course scraper](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/scraper.py): `api/scraper.py`

### Sports booking

- [Booking service](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/api/sports_booking.py): `api/sports_booking.py`
- **User ngrok tunnel**

### Legacy desktop

- [Qt desktop app](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/main_window.py): `gui/main_window.py`
- [Desktop course search](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/course_search_panel.py): `gui/course_search_panel.py`
- [Conflict explanations](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/conflict_dialog.py): `gui/conflict_dialog.py`
- [Desktop timetable](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/timetable_widget.py): `gui/timetable_widget.py`
- [Desktop transcript](https://github.com/yagizylldrm/cankaya-uni-schedule-manager/blob/main/gui/transcript_dialog.py): `gui/transcript_dialog.py`

### Other components

- **Student**
- **University sports portal**

## Connections

- Student → Web workspace: uses (evidence: `README.md`)
- Web workspace → Schedule state: provides state (evidence: `src/App.jsx`)
- Web workspace → Course search: renders (evidence: `src/App.jsx`)
- Web workspace → Timetable view: renders (evidence: `src/App.jsx`)
- Web workspace → Plan alternatives: renders (evidence: `src/App.jsx`)
- Web workspace → Sports interface: renders (evidence: `src/App.jsx`)
- Course search → Schedule state: uses (evidence: `src/components/CourseSearchPanel.jsx`)
- Timetable view → Schedule state: uses (evidence: `src/components/TimetableGrid.jsx`)
- Plan alternatives → Schedule state: uses (evidence: `src/components/CombinationBar.jsx`)
- Schedule state → API client: requests data (evidence: `src/context/ScheduleContext.jsx`)
- Schedule state → Local drafts: reads drafts (evidence: `src/context/ScheduleContext.jsx`)
- Timetable view → Plan utilities: formats schedule (evidence: `src/components/TimetableGrid.jsx`)
- Web workspace → Plan utilities: parses shared plan (evidence: `src/App.jsx`)
- Transcript interface → API client: uploads transcript (evidence: `src/services/api.js`)
- Sports interface → Sports client: requests booking (evidence: `src/components/SportsBookingModal.jsx`)
- API client → FastAPI routes: HTTP requests (evidence: `README.md`)
- FastAPI routes → Course data manager: uses course data (evidence: `api/index.py`)
- FastAPI routes → Schedule engine: generates schedules (evidence: `api/index.py`)
- FastAPI routes → Prerequisite evaluator: checks prerequisites (evidence: `api/index.py`)
- FastAPI routes → Transcript parser: parses transcripts (evidence: `api/index.py`)
- Course data manager → Course catalog: reads catalog
- Course scraper → Course catalog: refreshes catalog (evidence: `README.md`)
- FastAPI routes → Booking service: routes requests (evidence: `api/index.py`)
- Sports client → FastAPI routes: calls sports API (evidence: `README.md`)
- Booking service → User ngrok tunnel: forwards requests (evidence: `README.md`)
- User ngrok tunnel → University sports portal: accesses portal (evidence: `README.md`)
- Qt desktop app → Desktop course search: hosts search (evidence: `gui/main_window.py`)
- Qt desktop app → Desktop timetable: hosts timetable (evidence: `gui/main_window.py`)
- Qt desktop app → Desktop transcript: opens transcript (evidence: `gui/main_window.py`)
- Desktop course search → Course data manager: queries courses
- Qt desktop app → Schedule engine: generates schedules
- Conflict explanations → Desktop course search: supports resolution (evidence: `gui/course_search_panel.py`)
