# minasar326-rgb/mr-mickel- architecture

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

- Interactive diagram: https://gitdiagram.com/minasar326-rgb/mr-mickel-
- Repository: https://github.com/minasar326-rgb/mr-mickel-

## Overview

This is a React-based learning platform for students and teachers, with course browsing, stage-based lectures, exams, community/live features, and teacher administration. The main student journey enters through the app shell, authenticates, accesses a stage or course, studies content, and takes assessments; teachers manage learning materials, subscriptions, and exam content. The graph reflects documented imports and sampled calls. Several feature implementations were not sampled, and the README contains no useful architecture detail, so uncertain connections are omitted.

Main entry points: [`src/App.jsx`](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/App.jsx) (App navigation), [`src/context/TeacherContext.jsx`](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/context/TeacherContext.jsx) (Teaching operations), [`src/components/student/LecturePlayerRoom.jsx`](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/student/LecturePlayerRoom.jsx) (Lecture player), [`src/components/teacher-admin/TeacherAdminCenter.jsx`](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/teacher-admin/TeacherAdminCenter.jsx) (Teacher administration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app_shell["App navigation<br/>[App.jsx]"]
  node_auth_modal["Student sign-in<br/>[AuthModal.jsx]"]
end

subgraph group_learning["Student learning"]
  node_stage_lectures["Stage lectures"]
  node_lecture_room["Lecture player"]
  node_english_exam["English exams"]
  node_exam_catalog["Exam data<br/>[examsData.js]"]
end

subgraph group_courses["Courses and community"]
  node_course_context["Course progress<br/>[CourseContext.jsx]"]
  node_course_catalog["Course catalog"]
  node_community["Community hub<br/>[CommunityHub.jsx]"]
  node_live_webinar["Live webinars"]
end

subgraph group_teacher["Teacher operations"]
  node_teacher_admin["Teacher administration"]
  node_teacher_context["Teaching operations<br/>[TeacherContext.jsx]"]
  node_instructor_dashboard["Instructor dashboard"]
end

subgraph group_platform["Identity and persistence"]
  node_auth_context["Authentication<br/>[AuthContext.jsx]"]
  node_firestore_sync["Cloud sync<br/>[firestoreSync.js]"]
  node_firebase["Firebase services<br/>[firebase.js]"]
  node_persistent_storage[("Local media storage")]
  node_r2_storage["Media uploads<br/>[r2Storage.js]"]
  node_security_validator["Upload validation"]
  node_pdf_downloader["PDF downloads<br/>[pdfDownloader.js]"]
end

node_student(("Student"))
node_teacher_actor(("Teacher"))

node_student -->|"opens platform"| node_app_shell
node_teacher_actor -->|"opens platform"| node_app_shell
node_app_shell -->|"opens sign-in"| node_auth_modal
node_auth_modal -->|"requests login"| node_auth_context
node_app_shell -->|"routes to"| node_stage_lectures
node_app_shell -->|"routes to"| node_lecture_room
node_stage_lectures -->|"reads stage data"| node_teacher_context
node_lecture_room -->|"opens assessment"| node_english_exam
node_english_exam -->|"loads questions"| node_exam_catalog
node_lecture_room -->|"downloads booklet"| node_pdf_downloader
node_course_catalog -.->|"uses course state"| node_course_context
node_app_shell -.->|"routes to"| node_community
node_app_shell -.->|"routes to"| node_live_webinar
node_teacher_actor -.->|"manages platform"| node_teacher_admin
node_teacher_admin -->|"uses teaching state"| node_teacher_context
node_teacher_admin -->|"uploads avatar"| node_r2_storage
node_r2_storage -->|"validates files"| node_security_validator
node_teacher_context -->|"syncs records"| node_firestore_sync
node_teacher_context -->|"rehydrates lectures"| node_persistent_storage
node_auth_context -->|"syncs accounts"| node_firestore_sync
node_auth_context -->|"uses auth service"| node_firebase
node_instructor_dashboard -.->|"uses teaching state"| node_teacher_context
node_course_context -.->|"tracks learning progress"| node_student

click node_app_shell "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/App.jsx"
click node_auth_modal "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/auth/AuthModal.jsx"
click node_stage_lectures "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/stages/StageLecturesPage.jsx"
click node_lecture_room "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/student/LecturePlayerRoom.jsx"
click node_english_exam "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/student/EnglishExamModal.jsx"
click node_exam_catalog "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/data/examsData.js"
click node_course_context "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/context/CourseContext.jsx"
click node_course_catalog "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/courses/CourseCatalogPage.jsx"
click node_community "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/community/CommunityHub.jsx"
click node_live_webinar "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/live/LiveWebinarRoom.jsx"
click node_teacher_admin "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/teacher-admin/TeacherAdminCenter.jsx"
click node_teacher_context "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/context/TeacherContext.jsx"
click node_instructor_dashboard "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/instructor/InstructorDashboard.jsx"
click node_auth_context "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/context/AuthContext.jsx"
click node_firestore_sync "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/firestoreSync.js"
click node_firebase "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/firebase.js"
click node_persistent_storage "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/persistentStorage.js"
click node_r2_storage "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/r2Storage.js"
click node_security_validator "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/securityValidator.js"
click node_pdf_downloader "https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/pdfDownloader.js"

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_shell,node_auth_modal toneBlue
class node_stage_lectures,node_lecture_room,node_english_exam,node_exam_catalog toneAmber
class node_course_context,node_course_catalog,node_community,node_live_webinar toneMint
class node_teacher_admin,node_teacher_context,node_instructor_dashboard toneRose
class node_auth_context,node_firestore_sync,node_firebase,node_persistent_storage,node_r2_storage,node_security_validator,node_pdf_downloader,node_student,node_teacher_actor toneIndigo
```

## Components

### Application shell

- [App navigation](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/App.jsx): `src/App.jsx`
- [Student sign-in](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/auth/AuthModal.jsx): `src/components/auth/AuthModal.jsx`

### Student learning

- [Stage lectures](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/stages/StageLecturesPage.jsx): `src/components/stages/StageLecturesPage.jsx`
- [Lecture player](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/student/LecturePlayerRoom.jsx): `src/components/student/LecturePlayerRoom.jsx`
- [English exams](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/student/EnglishExamModal.jsx): `src/components/student/EnglishExamModal.jsx`
- [Exam data](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/data/examsData.js): `src/data/examsData.js`

### Courses and community

- [Course progress](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/context/CourseContext.jsx): `src/context/CourseContext.jsx`
- [Course catalog](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/courses/CourseCatalogPage.jsx): `src/components/courses/CourseCatalogPage.jsx`
- [Community hub](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/community/CommunityHub.jsx): `src/components/community/CommunityHub.jsx`
- [Live webinars](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/live/LiveWebinarRoom.jsx): `src/components/live/LiveWebinarRoom.jsx`

### Teacher operations

- [Teacher administration](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/teacher-admin/TeacherAdminCenter.jsx): `src/components/teacher-admin/TeacherAdminCenter.jsx`
- [Teaching operations](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/context/TeacherContext.jsx): `src/context/TeacherContext.jsx`
- [Instructor dashboard](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/components/instructor/InstructorDashboard.jsx): `src/components/instructor/InstructorDashboard.jsx`

### Identity and persistence

- [Authentication](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/context/AuthContext.jsx): `src/context/AuthContext.jsx`
- [Cloud sync](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/firestoreSync.js): `src/services/firestoreSync.js`
- [Firebase services](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/firebase.js): `src/services/firebase.js`
- [Local media storage](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/persistentStorage.js): `src/services/persistentStorage.js`
- [Media uploads](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/r2Storage.js): `src/services/r2Storage.js`
- [Upload validation](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/securityValidator.js): `src/services/securityValidator.js`
- [PDF downloads](https://github.com/minasar326-rgb/mr-mickel-/blob/main/src/services/pdfDownloader.js): `src/services/pdfDownloader.js`

### Other components

- **Student**
- **Teacher**

## Connections

- Student → App navigation: opens platform (evidence: `src/App.jsx`)
- Teacher → App navigation: opens platform (evidence: `src/App.jsx`)
- App navigation → Student sign-in: opens sign-in (evidence: `src/App.jsx`)
- Student sign-in → Authentication: requests login (evidence: `src/components/auth/AuthModal.jsx`)
- App navigation → Stage lectures: routes to (evidence: `src/App.jsx`)
- App navigation → Lecture player: routes to (evidence: `src/App.jsx`)
- Stage lectures → Teaching operations: reads stage data (evidence: `src/components/stages/StageLecturesPage.jsx`)
- Lecture player → English exams: opens assessment (evidence: `src/components/student/LecturePlayerRoom.jsx`)
- English exams → Exam data: loads questions (evidence: `src/components/student/EnglishExamModal.jsx`)
- Lecture player → PDF downloads: downloads booklet (evidence: `src/components/student/LecturePlayerRoom.jsx`)
- Course catalog → Course progress: uses course state
- App navigation → Community hub: routes to
- App navigation → Live webinars: routes to
- Teacher → Teacher administration: manages platform
- Teacher administration → Teaching operations: uses teaching state (evidence: `src/components/teacher-admin/TeacherAdminCenter.jsx`)
- Teacher administration → Media uploads: uploads avatar (evidence: `src/components/teacher-admin/TeacherAdminCenter.jsx`)
- Media uploads → Upload validation: validates files (evidence: `src/services/r2Storage.js`)
- Teaching operations → Cloud sync: syncs records (evidence: `src/context/TeacherContext.jsx`)
- Teaching operations → Local media storage: rehydrates lectures (evidence: `src/context/TeacherContext.jsx`)
- Authentication → Cloud sync: syncs accounts (evidence: `src/context/AuthContext.jsx`)
- Authentication → Firebase services: uses auth service (evidence: `src/context/AuthContext.jsx`)
- Instructor dashboard → Teaching operations: uses teaching state
- Course progress → Student: tracks learning progress
