How antonious-sameh/mina-deab-front works
This is a role-based education management app for teachers and students. Users enter through the routed React app, authenticate, and reach role-specific pages; those pages use a shared API service layer to communicate with the backend. The tree also documents attendance, student and group management, exams, grades, online materials, and related learning features. Source excerpts confirm selected routing, authentication, attendance, PDF, and API relationships; other feature pages are represented without guessing their internal calls.
Main entry points: services.js API Services · AuthContext.jsx Authentication · App.jsx Router & Layout · axios.js HTTP & Tokens
Components 29
Application Shell
- Router & Layout
src/App.jsx
Identity & Session
- Authentication
src/contexts/AuthContext.jsx - Passkey Login
src/lib/passkey.js - HTTP & Tokens
src/api/axios.js
Teaching Operations
- Attendance
src/pages/AttendancePage.jsx - Groups
src/pages/GroupsPage.jsx - Student Records
src/pages/StudentsPage.jsx - Payments
src/pages/PaymentsPage.jsx - Teacher Exams
src/pages/teacher/ExamsPage.jsx - Teacher Grades
src/pages/teacher/GradesPage.jsx - Online Materials
src/pages/teacher/OnlinePage.jsx - Teacher Tools
src/pages/teacher
Student Learning
- Student Home
src/pages/student/StudentHomePage.jsx - Student Attendance
src/pages/student/StudentAttendancePage.jsx - Student Exams
src/pages/student/StudentExamsPage.jsx - Exam Interface
src/pages/student/ExamInterfacePage.jsx - Student Online
src/pages/student/StudentOnlinePage.jsx - Student Tools
src/pages/student
Shared Platform
- API Services
src/api/services.js - Notifications
src/contexts/NotificationContext.jsx - PDF Viewer
src/components/PDFViewer.jsx - Safe Storage
src/lib/safe-storage.js - Button UI
src/components/ui/button.jsx - Badge UI
src/components/ui/badge.jsx - Card UI
src/components/ui/card.jsx - Input UI
src/components/ui/input.jsx
Other components
- Teacher
- Student
- Application Backend
Connections 22
- Teacher → Router & Layout: uses
- Student → Router & Layout: uses
- Router & Layout → Authentication: provides session
src/App.jsx - Authentication → API Services: auth requests
src/contexts/AuthContext.jsx - Authentication → Passkey Login: delegates login
src/contexts/AuthContext.jsx - Authentication → HTTP & Tokens: refreshes tokens
src/contexts/AuthContext.jsx - API Services → HTTP & Tokens: sends requests
src/api/services.js - HTTP & Tokens → Application Backend: requests
src/api/axios.js - Attendance → API Services: loads attendance
src/pages/AttendancePage.jsx - Groups → API Services: loads groups
src/pages/GroupsPage.jsx - Student Records → API Services: loads students
src/pages/StudentsPage.jsx - Teacher Exams → API Services: uses services
src/pages/teacher/ExamsPage.jsx - Teacher Grades → API Services: uses services
src/pages/teacher/GradesPage.jsx - Online Materials → API Services: uses services
src/pages/teacher/OnlinePage.jsx - Student Exams → API Services: uses services
src/pages/student/StudentExamsPage.jsx - Student Online → API Services: uses services
src/pages/student/StudentOnlinePage.jsx - Notifications → API Services: fetches notes
src/contexts/NotificationContext.jsx - Notifications → Authentication: reads user
src/contexts/NotificationContext.jsx - Student Exams → PDF Viewer: renders documents
src/pages/student/StudentExamsPage.jsx - Student Online → PDF Viewer: renders documents
src/pages/student/StudentOnlinePage.jsx - Online Materials → PDF Viewer: renders documents
src/pages/teacher/OnlinePage.jsx - Authentication → Safe Storage: persists session
src/contexts/AuthContext.jsx