# kodusta/softito-wheel-and-write architecture

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

- Interactive diagram: https://gitdiagram.com/kodusta/softito-wheel-and-write
- Repository: https://github.com/kodusta/softito-wheel-and-write

## Overview

Sınıf Çarkı supports a teacher-led classroom workflow and a student status-reporting view: teachers manage the roster and attendance, spin to select a student, record the outcome, and track participation; students select their identity and report when coding is finished. App coordinates the views and state, including QR access and class-status alerts. Local browser storage and Firebase provide persistence and status synchronization. Component wiring is shown in sampled source; other README-described capabilities are included where visible, but unsampled implementation details are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/App.jsx) (App coordinator), [`src/firebase.js`](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/firebase.js) (Status data adapter), [`src/components/ResultModal.jsx`](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/ResultModal.jsx) (Result modal), [`src/components/StudentList.jsx`](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/StudentList.jsx) (Student list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_users["Classroom users"]
  node_teacher(("Teacher"))
  node_student(("Student"))
end

subgraph group_app["Application workflow"]
  node_app["App coordinator<br/>[App.jsx]"]
  node_student_view["Student status view<br/>[App.jsx]"]
  node_teacher_tools["Roster and attendance<br/>[App.jsx]"]
  node_qr_access["QR access<br/>[App.jsx]"]
end

subgraph group_ui["Interface components"]
  node_student_list["Student list<br/>[StudentList.jsx]"]
  node_wheel["Lucky wheel<br/>[Wheel.jsx]"]
  node_history["Selection history<br/>[HistoryPanel.jsx]"]
  node_result["Result modal<br/>[ResultModal.jsx]"]
  node_confetti["Confetti effect<br/>[Confetti.jsx]"]
end

subgraph group_data["Status and persistence"]
  node_firebase["Status data adapter<br/>[firebase.js]"]
  node_browser_storage[("Browser storage")]
  node_firestore[("Firebase Firestore")]
end

node_teacher -->|"uses teacher view"| node_app
node_student -->|"reports completion"| node_student_view
node_app -->|"routes by role"| node_student_view
node_app -->|"manages class"| node_teacher_tools
node_app -->|"offers QR access"| node_qr_access
node_app -->|"renders and updates"| node_student_list
node_app -->|"renders wheel"| node_wheel
node_app -->|"renders history"| node_history
node_app -->|"renders result"| node_result
node_result -->|"renders effect"| node_confetti
node_app -->|"updates and subscribes"| node_firebase
node_app -->|"persists app state"| node_browser_storage
node_firebase -->|"reads and writes"| node_firestore
node_firebase -->|"simulates status sync"| node_browser_storage

click node_app "https://github.com/kodusta/softito-wheel-and-write/blob/main/src/App.jsx"
click node_student_view "https://github.com/kodusta/softito-wheel-and-write/blob/main/src/App.jsx"
click node_teacher_tools "https://github.com/kodusta/softito-wheel-and-write/blob/main/src/App.jsx"
click node_qr_access "https://github.com/kodusta/softito-wheel-and-write/blob/main/src/App.jsx"
click node_student_list "https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/StudentList.jsx"
click node_wheel "https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/Wheel.jsx"
click node_history "https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/HistoryPanel.jsx"
click node_result "https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/ResultModal.jsx"
click node_confetti "https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/Confetti.jsx"
click node_firebase "https://github.com/kodusta/softito-wheel-and-write/blob/main/src/firebase.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_teacher,node_student toneBlue
class node_app,node_student_view,node_teacher_tools,node_qr_access toneAmber
class node_student_list,node_wheel,node_history,node_result,node_confetti toneMint
class node_firebase,node_browser_storage,node_firestore toneRose
```

## Components

### Classroom users

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

### Application workflow

- [App coordinator](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/App.jsx): `src/App.jsx`
- [Student status view](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/App.jsx): `src/App.jsx`
- [Roster and attendance](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/App.jsx): `src/App.jsx`
- [QR access](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/App.jsx): `src/App.jsx`

### Interface components

- [Student list](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/StudentList.jsx): `src/components/StudentList.jsx`
- [Lucky wheel](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/Wheel.jsx): `src/components/Wheel.jsx`
- [Selection history](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/HistoryPanel.jsx): `src/components/HistoryPanel.jsx`
- [Result modal](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/ResultModal.jsx): `src/components/ResultModal.jsx`
- [Confetti effect](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/components/Confetti.jsx): `src/components/Confetti.jsx`

### Status and persistence

- [Status data adapter](https://github.com/kodusta/softito-wheel-and-write/blob/main/src/firebase.js): `src/firebase.js`
- **Browser storage**
- **Firebase Firestore**

## Connections

- Teacher → App coordinator: uses teacher view (evidence: `README.md`)
- Student → Student status view: reports completion (evidence: `README.md`)
- App coordinator → Student status view: routes by role (evidence: `src/App.jsx`)
- App coordinator → Roster and attendance: manages class (evidence: `src/App.jsx`)
- App coordinator → QR access: offers QR access (evidence: `README.md`)
- App coordinator → Student list: renders and updates (evidence: `src/App.jsx`)
- App coordinator → Lucky wheel: renders wheel (evidence: `src/App.jsx`)
- App coordinator → Selection history: renders history (evidence: `src/App.jsx`)
- App coordinator → Result modal: renders result (evidence: `src/App.jsx`)
- Result modal → Confetti effect: renders effect (evidence: `src/components/ResultModal.jsx`)
- App coordinator → Status data adapter: updates and subscribes (evidence: `src/App.jsx`)
- App coordinator → Browser storage: persists app state (evidence: `README.md`)
- Status data adapter → Firebase Firestore: reads and writes (evidence: `src/firebase.js`)
- Status data adapter → Browser storage: simulates status sync (evidence: `src/firebase.js`)
