How dsomnath627/attendance-portal works
Dr. Campus is a multi-role academic management portal. Users enter through authentication and an approval/status gate, then the application dispatches them to role-specific workflows: coordinators configure academic structure, teachers manage offerings and attendance, students review enrollment and academic records, and super admins verify users. Attendance supports manual entry and photo-based OCR; Supabase provides authentication and persisted application data. The README documents Gemini OCR and spreadsheet capabilities, though the relevant implementation details were not fully sampled.
Main entry points: supabase.ts Supabase client · App.tsx Role-based app · page.tsx Auth gateway · StudentDashboard.tsx Student dashboard
Components 18
Entry and access
- Product landing
app/landing/page.tsx - Auth gateway
app/page.tsx - Sign in / register
components/Auth.tsx - Role-based app
components/App.tsx
Administration
- User verification
components/AdminUserVerification.tsx - Academic setup
components/CoordinatorDashboard.tsx - Profile editor
components/MyProfilePage.tsx
Academic workflows
- Teacher dashboard
components/TeacherDashboard.tsx - Student dashboard
components/StudentDashboard.tsx - Subject workspace
components/SubjectPage.tsx - Attendance intake
components/AttendanceTaking.tsx - Student attendance view
components/StudentAttendanceView.tsx - Timetable view
components/CalendarTimetable.tsx
Data and integrations
- Gemini OCR route
app/api/ocr/route.ts - Supabase client
lib/supabase.ts - Supabase platform
- Google Gemini
Other components
- Portal user
Connections 27
- Portal user → Product landing: views
app/landing/page.tsx - Product landing → Auth gateway: links to
app/landing/page.tsx - Portal user → Auth gateway: opens
- Auth gateway → Sign in / register: renders
app/page.tsx - Sign in / register → Supabase client: authenticates
components/Auth.tsx - Auth gateway → Supabase client: loads profile
app/page.tsx - Auth gateway → Role-based app: renders approved user
app/page.tsx - Role-based app → Supabase client: queries data
components/App.tsx - Role-based app → User verification: dispatches to
components/App.tsx - Role-based app → Academic setup: dispatches to
components/App.tsx - Role-based app → Teacher dashboard: dispatches to
components/App.tsx - Role-based app → Student dashboard: dispatches to
components/App.tsx - Role-based app → Profile editor: dispatches to
components/App.tsx - User verification → Supabase client: updates profiles
components/AdminUserVerification.tsx - Academic setup → Supabase client: manages records
components/CoordinatorDashboard.tsx - Teacher dashboard → Subject workspace: opens offering
components/TeacherDashboard.tsx - Teacher dashboard → Timetable view: renders schedule
components/TeacherDashboard.tsx - Student dashboard → Supabase client: loads enrollment and attendance
components/StudentDashboard.tsx - Student dashboard → Subject workspace: opens offering
components/StudentDashboard.tsx - Student dashboard → Timetable view: renders routine
components/StudentDashboard.tsx - Subject workspace → Attendance intake: renders intake
components/SubjectPage.tsx - Subject workspace → Student attendance view: renders records
components/SubjectPage.tsx - Attendance intake → Gemini OCR route: submits photo
- Gemini OCR route → Google Gemini: requests OCR
README.md - Supabase client → Supabase platform: connects to
lib/supabase.ts - Profile editor → Supabase client: reads and updates
components/MyProfilePage.tsx - Student attendance view → Supabase client: reads records
components/StudentAttendanceView.tsx