How figureitoutshiv/snapclass-attendance works
SnapClass Attendance is a Streamlit app for teacher-managed classes and student attendance. The main workflow is teacher sign-in, subject selection, photo or audio attendance analysis, and attendance recording; students can register or sign in, enroll, and review class attendance. The graph also preserves subject management, sharing, enrollment, and dashboards. Evidence is limited to the supplied excerpts, SOURCE INDEX references, and README; unsampled implementations are represented by their exact tree paths, with only documented or indexed relationships connected.
Main entry points: teacher_dashboard.py Teacher portal · db.py Attendance and class data · student_dashboard.py Student portal · app.py Streamlit entry
Components 21
App entry and home
- Streamlit entry
app.py - Role selection
src/screens/home_dashboard.py - Shared layout styling
src/screens/ui/base_layout.py - Home header
src/screens/components/header.py
Teacher and student portals
- Teacher portal
src/screens/teacher_dashboard.py - Student portal
src/screens/student_dashboard.py - Dashboard navigation
src/screens/components/navigation.py - Subject card
src/screens/components/subject_card.py
Attendance recognition
- Face attendance pipeline
src/screens/pipeline/face_pipeline.py - Voice attendance pipeline
src/screens/pipeline/voice_pipeline.py - Voice attendance dialog
src/screens/components/dialog_voice_attendance.py - Attendance results
src/screens/components/dialog_attendance_results.py - Add attendance photos
src/screens/components/dialog_add_photo.py
Class and enrollment tools
- Join-code enrollment
src/screens/components/auto_enroll_dialog.py - Create subject dialog
src/screens/components/dialog_create_subject.py - Enroll dialog
src/screens/components/dialog_enroll.py - Share subject dialog
src/screens/components/dialog_share_subject.py
Persistence and configuration
- Attendance and class data
src/screens/database/db.py - Supabase configuration
src/screens/database/config.py
Other components
- Teacher or student
- Supabase
Connections 35
- Teacher or student → Streamlit entry: opens
- Streamlit entry → Role selection: routes to
app.py - Streamlit entry → Teacher portal: routes to
app.py - Streamlit entry → Student portal: routes to
app.py - Streamlit entry → Shared layout styling: styles with
app.py - Streamlit entry → Join-code enrollment: opens
app.py - Role selection → Home header: renders
src/screens/home_dashboard.py - Role selection → Shared layout styling: styles with
src/screens/home_dashboard.py - Teacher portal → Dashboard navigation: renders
src/screens/teacher_dashboard.py - Student portal → Dashboard navigation: renders
src/screens/student_dashboard.py - Teacher portal → Subject card: renders
src/screens/teacher_dashboard.py - Student portal → Subject card: renders
src/screens/student_dashboard.py - Teacher portal → Shared layout styling: styles with
src/screens/teacher_dashboard.py - Teacher portal → Add attendance photos: opens
src/screens/teacher_dashboard.py - Teacher portal → Create subject dialog: opens
src/screens/teacher_dashboard.py - Teacher portal → Share subject dialog: opens
src/screens/teacher_dashboard.py - Teacher portal → Voice attendance dialog: opens
src/screens/teacher_dashboard.py - Teacher portal → Attendance results: uses
src/screens/teacher_dashboard.py - Teacher portal → Face attendance pipeline: analyzes photos
src/screens/teacher_dashboard.py - Teacher portal → Attendance and class data: reads and records
src/screens/teacher_dashboard.py - Student portal → Enroll dialog: opens
src/screens/student_dashboard.py - Student portal → Face attendance pipeline: verifies faces
src/screens/student_dashboard.py - Student portal → Voice attendance pipeline: registers voice
src/screens/student_dashboard.py - Student portal → Attendance and class data: reads and updates
src/screens/student_dashboard.py - Voice attendance dialog → Attendance and class data: loads students
src/screens/components/dialog_voice_attendance.py - Voice attendance dialog → Voice attendance pipeline: analyzes audio
src/screens/components/dialog_voice_attendance.py - Voice attendance dialog → Attendance results: shows results
src/screens/components/dialog_voice_attendance.py - Face attendance pipeline → Attendance and class data: loads student data
src/screens/pipeline/face_pipeline.py - Join-code enrollment → Attendance and class data: manages enrollment
src/screens/components/auto_enroll_dialog.py - Create subject dialog → Attendance and class data: creates subject
src/screens/components/dialog_create_subject.py - Enroll dialog → Attendance and class data: manages enrollment
src/screens/components/dialog_enroll.py - Share subject dialog → Attendance and class data: shares subject
src/screens/components/dialog_share_subject.py - Attendance and class data → Supabase configuration: loads client config
src/screens/database/db.py - Supabase configuration → Supabase: creates client
src/screens/database/config.py - Attendance and class data → Supabase: queries data
src/screens/database/db.py