# imnotcheguevara/mpu_studying_dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/imnotcheguevara/mpu_studying_dashboard
- Repository: https://github.com/imnotcheguevara/mpu_studying_dashboard

## Overview

Campus Dashboard is a local macOS student dashboard that consolidates read-only Canvas and MPU SIweb data. Its main workflow synchronizes configured sources, commits normalized records to SQLite, loads a unified snapshot for the dashboard pages, and offers local calendar and reminder features. AI analysis is an optional, user-controlled branch whose suggestions remain in a confirmation queue until accepted. The README documents the product boundaries and major capabilities; source excerpts and the index confirm several internal calls, but not every runtime wiring detail.

Main entry points: [`Sources/CampusDashboard/App/DashboardModel.swift`](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/App/DashboardModel.swift) (Dashboard Model), [`Sources/CampusDashboard/Persistence/SQLiteDatabase.swift`](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Persistence/SQLiteDatabase.swift) (SQLite Database), [`Sources/CampusDashboard/Sync/SyncEngine.swift`](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Sync/SyncEngine.swift) (Sync Engine), [`Sources/CampusDashboard/AI/AIParsingCoordinator.swift`](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/AI/AIParsingCoordinator.swift) (AI Parsing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Dashboard UI"]
  node_dashboard["Dashboard Model"]
  node_today["Today View<br/>[TodayView.swift]"]
  node_scheduleview["Schedule View<br/>[ScheduleView.swift]"]
  node_tasksview["Tasks View<br/>[TasksView.swift]"]
  node_announcementsview["Announcements View"]
  node_queueview["Confirmation Queue"]
  node_settingsview["Settings View<br/>[SettingsView.swift]"]
end

subgraph group_sources["Source Connectors"]
  node_canvas["Canvas Connector"]
  node_siweb["SIweb Connector"]
  node_siwebsetup["SIweb Authorization"]
end

subgraph group_syncdata["Sync and Storage"]
  node_sync["Sync Engine<br/>[SyncEngine.swift]"]
  node_data["Dashboard Data"]
  node_sqlite[("SQLite Database")]
  node_migrator["Schema Migrator"]
end

subgraph group_assistance["AI Assistance"]
  node_ai["AI Parsing"]
  node_signals["Academic Signals"]
  node_resolver["Schedule Target Resolver"]
  node_deepseek["DeepSeek Provider"]
end

subgraph group_localfeatures["Local Features"]
  node_calendar["Calendar Service"]
  node_eventkit["Apple Calendar"]
  node_notifications["Local Notifications"]
  node_background["Background Sync"]
end

node_student(("Student"))
node_canvas_service{{"Canvas"}}
node_siweb_service{{"MPU SIweb"}}

node_student -->|"uses"| node_dashboard
node_dashboard -->|"drives"| node_today
node_dashboard -.->|"drives"| node_scheduleview
node_dashboard -->|"drives"| node_tasksview
node_dashboard -->|"drives"| node_announcementsview
node_dashboard -->|"drives"| node_queueview
node_dashboard -->|"drives"| node_settingsview
node_canvas -->|"reads"| node_canvas_service
node_siweb -->|"reads"| node_siweb_service
node_settingsview -->|"starts authorization"| node_siwebsetup
node_siwebsetup -->|"configures"| node_siweb
node_sync -.->|"fetches snapshots"| node_canvas
node_sync -.->|"fetches snapshots"| node_siweb
node_sync -->|"writes records"| node_sqlite
node_data -->|"reads snapshot"| node_sqlite
node_sqlite -->|"runs migrations"| node_migrator
node_dashboard -.->|"loads snapshot"| node_data
node_dashboard -->|"requests analysis"| node_ai
node_dashboard -->|"manages signals"| node_signals
node_signals -->|"resolves targets"| node_resolver
node_ai -->|"persists results"| node_sqlite
node_signals -->|"persists signals"| node_sqlite
node_ai -.->|"optionally invokes"| node_deepseek
node_dashboard -->|"controls calendar"| node_calendar
node_calendar -.->|"writes events"| node_eventkit
node_dashboard -->|"controls reminders"| node_notifications
node_dashboard -->|"configures scheduling"| node_background
node_background -->|"reconciles reminders"| node_notifications

click node_dashboard "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/App/DashboardModel.swift"
click node_today "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Today/TodayView.swift"
click node_scheduleview "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Schedule/ScheduleView.swift"
click node_tasksview "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Tasks/TasksView.swift"
click node_announcementsview "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Announcements/AnnouncementsView.swift"
click node_queueview "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Confirmations/ConfirmationQueueView.swift"
click node_settingsview "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Settings/SettingsView.swift"
click node_canvas "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Connectors/Canvas/CanvasAPIConnector.swift"
click node_siweb "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Connectors/SIweb/SIwebConnector.swift"
click node_siwebsetup "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Connectors/SIweb/SIwebWebAuthenticationTool.swift"
click node_sync "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Sync/SyncEngine.swift"
click node_data "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/App/DashboardDataService.swift"
click node_sqlite "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Persistence/SQLiteDatabase.swift"
click node_migrator "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Persistence/DatabaseMigrator.swift"
click node_ai "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/AI/AIParsingCoordinator.swift"
click node_signals "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/AI/AcademicSignalCoordinator.swift"
click node_resolver "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/AI/AcademicScheduleTargetResolver.swift"
click node_deepseek "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/AI/DeepSeekProvider.swift"
click node_calendar "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Calendar/CampusCalendarService.swift"
click node_eventkit "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Calendar/EventKitEventStore.swift"
click node_notifications "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Notifications/CampusNotificationService.swift"
click node_background "https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Background/BackgroundSyncScheduler.swift"

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_dashboard,node_today,node_scheduleview,node_tasksview,node_announcementsview,node_queueview,node_settingsview toneBlue
class node_canvas,node_siweb,node_siwebsetup toneAmber
class node_sync,node_data,node_sqlite,node_migrator toneMint
class node_ai,node_signals,node_resolver,node_deepseek toneRose
class node_calendar,node_eventkit,node_notifications,node_background,node_student,node_canvas_service,node_siweb_service toneIndigo
```

## Components

### Dashboard UI

- [Dashboard Model](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/App/DashboardModel.swift): `Sources/CampusDashboard/App/DashboardModel.swift`
- [Today View](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Today/TodayView.swift): `Sources/CampusDashboard/Features/Today/TodayView.swift`
- [Schedule View](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Schedule/ScheduleView.swift): `Sources/CampusDashboard/Features/Schedule/ScheduleView.swift`
- [Tasks View](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Tasks/TasksView.swift): `Sources/CampusDashboard/Features/Tasks/TasksView.swift`
- [Announcements View](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Announcements/AnnouncementsView.swift): `Sources/CampusDashboard/Features/Announcements/AnnouncementsView.swift`
- [Confirmation Queue](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Confirmations/ConfirmationQueueView.swift): `Sources/CampusDashboard/Features/Confirmations/ConfirmationQueueView.swift`
- [Settings View](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Features/Settings/SettingsView.swift): `Sources/CampusDashboard/Features/Settings/SettingsView.swift`

### Source Connectors

- [Canvas Connector](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Connectors/Canvas/CanvasAPIConnector.swift): `Sources/CampusDashboard/Connectors/Canvas/CanvasAPIConnector.swift`
- [SIweb Connector](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Connectors/SIweb/SIwebConnector.swift): `Sources/CampusDashboard/Connectors/SIweb/SIwebConnector.swift`
- [SIweb Authorization](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Connectors/SIweb/SIwebWebAuthenticationTool.swift): `Sources/CampusDashboard/Connectors/SIweb/SIwebWebAuthenticationTool.swift`

### Sync and Storage

- [Sync Engine](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Sync/SyncEngine.swift): `Sources/CampusDashboard/Sync/SyncEngine.swift`
- [Dashboard Data](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/App/DashboardDataService.swift): `Sources/CampusDashboard/App/DashboardDataService.swift`
- [SQLite Database](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Persistence/SQLiteDatabase.swift): `Sources/CampusDashboard/Persistence/SQLiteDatabase.swift`
- [Schema Migrator](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Persistence/DatabaseMigrator.swift): `Sources/CampusDashboard/Persistence/DatabaseMigrator.swift`

### AI Assistance

- [AI Parsing](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/AI/AIParsingCoordinator.swift): `Sources/CampusDashboard/AI/AIParsingCoordinator.swift`
- [Academic Signals](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/AI/AcademicSignalCoordinator.swift): `Sources/CampusDashboard/AI/AcademicSignalCoordinator.swift`
- [Schedule Target Resolver](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/AI/AcademicScheduleTargetResolver.swift): `Sources/CampusDashboard/AI/AcademicScheduleTargetResolver.swift`
- [DeepSeek Provider](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/AI/DeepSeekProvider.swift): `Sources/CampusDashboard/AI/DeepSeekProvider.swift`

### Local Features

- [Calendar Service](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Calendar/CampusCalendarService.swift): `Sources/CampusDashboard/Calendar/CampusCalendarService.swift`
- [Apple Calendar](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Calendar/EventKitEventStore.swift): `Sources/CampusDashboard/Calendar/EventKitEventStore.swift`
- [Local Notifications](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Notifications/CampusNotificationService.swift): `Sources/CampusDashboard/Notifications/CampusNotificationService.swift`
- [Background Sync](https://github.com/imnotcheguevara/mpu_studying_dashboard/blob/main/Sources/CampusDashboard/Background/BackgroundSyncScheduler.swift): `Sources/CampusDashboard/Background/BackgroundSyncScheduler.swift`

### Other components

- **Student**
- **Canvas**
- **MPU SIweb**

## Connections

- Student → Dashboard Model: uses (evidence: `README.md`)
- Dashboard Model → Today View: drives (evidence: `Sources/CampusDashboard/Features/Today/TodayView.swift`)
- Dashboard Model → Schedule View: drives (evidence: `README.md`)
- Dashboard Model → Tasks View: drives (evidence: `Sources/CampusDashboard/Features/Tasks/TasksView.swift`)
- Dashboard Model → Announcements View: drives (evidence: `Sources/CampusDashboard/Features/Announcements/AnnouncementsView.swift`)
- Dashboard Model → Confirmation Queue: drives (evidence: `Sources/CampusDashboard/Features/Confirmations/ConfirmationQueueView.swift`)
- Dashboard Model → Settings View: drives (evidence: `Sources/CampusDashboard/Features/Settings/SettingsView.swift`)
- Canvas Connector → Canvas: reads (evidence: `README.md`)
- SIweb Connector → MPU SIweb: reads (evidence: `README.md`)
- Settings View → SIweb Authorization: starts authorization
- SIweb Authorization → SIweb Connector: configures (evidence: `Sources/CampusDashboard/Connectors/SIweb/SIwebWebAuthenticationTool.swift`)
- Sync Engine → Canvas Connector: fetches snapshots (evidence: `README.md`)
- Sync Engine → SIweb Connector: fetches snapshots (evidence: `README.md`)
- Sync Engine → SQLite Database: writes records (evidence: `Sources/CampusDashboard/Sync/SyncEngine.swift`)
- Dashboard Data → SQLite Database: reads snapshot (evidence: `Sources/CampusDashboard/App/DashboardDataService.swift`)
- SQLite Database → Schema Migrator: runs migrations (evidence: `Sources/CampusDashboard/Persistence/SQLiteDatabase.swift`)
- Dashboard Model → Dashboard Data: loads snapshot (evidence: `README.md`)
- Dashboard Model → AI Parsing: requests analysis (evidence: `Sources/CampusDashboard/App/DashboardModel.swift`)
- Dashboard Model → Academic Signals: manages signals (evidence: `Sources/CampusDashboard/App/DashboardModel.swift`)
- Academic Signals → Schedule Target Resolver: resolves targets (evidence: `Sources/CampusDashboard/AI/AcademicSignalCoordinator.swift`)
- AI Parsing → SQLite Database: persists results (evidence: `Sources/CampusDashboard/AI/AIParsingCoordinator.swift`)
- Academic Signals → SQLite Database: persists signals (evidence: `Sources/CampusDashboard/AI/AcademicSignalCoordinator.swift`)
- AI Parsing → DeepSeek Provider: optionally invokes (evidence: `Sources/CampusDashboard/AI/DeepSeekProvider.swift`)
- Dashboard Model → Calendar Service: controls calendar (evidence: `Sources/CampusDashboard/App/DashboardModel.swift`)
- Calendar Service → Apple Calendar: writes events (evidence: `README.md`)
- Dashboard Model → Local Notifications: controls reminders (evidence: `Sources/CampusDashboard/App/DashboardModel.swift`)
- Dashboard Model → Background Sync: configures scheduling (evidence: `Sources/CampusDashboard/App/DashboardModel.swift`)
- Background Sync → Local Notifications: reconciles reminders (evidence: `Sources/CampusDashboard/Background/BackgroundSyncScheduler.swift`)
