How ljcalica071-cmd/class_realm01 works
ClassRealm is identified as an integrated SHS management system, but the tree contains no Flutter/Dart application source, so its end-user interface and complete workflow cannot be traced. The visible runtime consists of Flutter platform shells and Supabase edge functions for student provisioning, first-login OTP, and other account operations. The sampled functions show Firebase identity checks, Supabase data operations, and email delivery. Dashed entry links indicate HTTP initiation; unsampled function internals are not inferred.
Main entry points: firebase_admin.ts Firebase auth helper · provision-student/index.ts Provision student · first-login-otp/index.ts First-login OTP · flutter_window.cpp Windows shell
Components 21
Flutter platform shells
- Linux shell
linux/runner/my_application.cc - Linux plugins
linux/flutter/generated_plugin_registrant.cc - Windows shell
windows/runner/flutter_window.cpp - Windows window
windows/runner/win32_window.cpp - Windows plugins
windows/flutter/generated_plugin_registrant.cc - macOS plugins
macos/Flutter/GeneratedPluginRegistrant.swift - Android shell
android/app/src/main/kotlin/com/classrealm/class_realm/MainActivity.kt - iOS shell
ios/Runner/AppDelegate.swift
Account workflows
- Provision student
supabase/functions/provision-student/index.ts - First-login OTP
supabase/functions/first-login-otp/index.ts - Approve teacher
supabase/functions/approve-teacher/index.ts - Complete first login
supabase/functions/complete-first-login/index.ts - Delete Firebase user
supabase/functions/delete-firebase-user/index.ts - Student dashboard
supabase/functions/student-dashboard/index.ts - Update student
supabase/functions/update-student/index.ts - Send email
supabase/functions/send-email/index.ts
Identity and services
- Firebase auth helper
supabase/functions/_shared/firebase_admin.ts - Supabase database
- Firebase Identity Toolkit
- SMTP mail service
Other components
- HTTP clients
Connections 18
- HTTP clients → Provision student: posts request
- HTTP clients → First-login OTP: posts request
- Provision student → Firebase auth helper: authenticates caller
supabase/functions/provision-student/index.ts - First-login OTP → Firebase auth helper: authenticates caller
supabase/functions/first-login-otp/index.ts - Approve teacher → Firebase auth helper: uses auth helper
supabase/functions/approve-teacher/index.ts - Complete first login → Firebase auth helper: uses auth helper
supabase/functions/complete-first-login/index.ts - Delete Firebase user → Firebase auth helper: uses auth helper
supabase/functions/delete-firebase-user/index.ts - Student dashboard → Firebase auth helper: uses auth helper
supabase/functions/student-dashboard/index.ts - Update student → Firebase auth helper: uses auth helper
supabase/functions/update-student/index.ts - Provision student → Supabase database: reads and writes
supabase/functions/provision-student/index.ts - Provision student → Firebase Identity Toolkit: creates account
supabase/functions/provision-student/index.ts - Provision student → SMTP mail service: sends credentials
supabase/functions/provision-student/index.ts - First-login OTP → Supabase database: reads and verifies OTP
supabase/functions/first-login-otp/index.ts - First-login OTP → SMTP mail service: sends code
supabase/functions/first-login-otp/index.ts - Firebase auth helper → Firebase Identity Toolkit: validates token
supabase/functions/_shared/firebase_admin.ts - Linux shell → Linux plugins: registers plugins
- Windows shell → Windows window: uses window
windows/runner/flutter_window.cpp - Windows shell → Windows plugins: registers plugins