How cybertony77/pages works
TopPhysics is an attendance and student-management application for a physics academy, with assistant accounts, center management, attendance tracking, and parent messaging. The main user journey is assistant sign-in followed by dashboard tasks such as managing students, recording attendance, and reviewing session information. The graph preserves the major page-level capabilities and sampled API responsibilities. Source excerpts show MongoDB access and a WhatsApp-sending invocation, but do not expose most page-to-API wiring, so those relationships are omitted; README documentation was not provided.
Main entry points: send-whatsapp.js WhatsApp dispatch · students/index.js Student collection API · centers/index.js Centers API · me.js Profile API
Components 26
Assistant access
- Assistant login
pages/index.jsx - Dashboard
pages/dashboard/index.jsx
Student operations
- Add student
pages/dashboard/add_student.jsx - Student list
pages/dashboard/all_students.jsx - Edit student
pages/dashboard/edit_student.jsx - Delete student
pages/dashboard/delete_student.jsx - Student details
pages/dashboard/student_info.jsx
Attendance workflows
- Attendance history
pages/dashboard/history.jsx - Session information
pages/dashboard/session_info.jsx - QR scanner
QRScanner.jsx - Scan attendance
pages/dashboard/scan_page.jsx - QR generator
pages/dashboard/qr_generator.jsx
Account and center management
- Center management
pages/dashboard/centers.jsx - Assistant management
pages/manage_assistants/index.jsx - Add assistant
pages/manage_assistants/add_assistant.jsx - Assistant list
pages/manage_assistants/all_assistants.jsx - Edit assistant
pages/manage_assistants/edit_assistant.jsx - Delete assistant
pages/manage_assistants/delete_assistant.jsx - Edit profile
pages/manage_assistants/edit_my_profile.jsx
Application services
- Student collection API
pages/api/students/index.js - Centers API
pages/api/centers/index.js - Profile API
pages/api/auth/me.js - WhatsApp dispatch
pages/api/students/[id]/send-whatsapp.js
Other components
- Assistant
- MongoDB
Connections 6
- Assistant → Assistant login: signs in
- Student collection API → MongoDB: reads and writes
pages/api/students/index.js - Centers API → MongoDB: reads and writes
pages/api/centers/index.js - Profile API → MongoDB: reads and writes
pages/api/auth/me.js - WhatsApp dispatch → MongoDB: reads and updates
pages/api/students/[id]/send-whatsapp.js - WhatsApp dispatch → WhatsApp: dispatches message