How hugoborrego/edureport-frontend works
EduReport is a role-based React application for school feedback and complaints. Users sign up or log in, then access role-specific profiles and panels; students can register complaints, schools can create feedback, and users can view registered or public feedback. The app routes requests through shared authentication and an API client to an external backend. The README is only a Vite template, so product capabilities are inferred from route names and sampled API methods; several page implementations were not sampled, and their detailed wiring is therefore not asserted.
Main entry points: api.js API Client · App.jsx Application Router · ProtectedRoute.jsx Role Route Guard · RegisteredFeedbacks.jsx Registered Feedbacks
Components 22
App Shell
- Application Router
src/App.jsx - Navigation
src/components/Navbar.jsx - Role Control Panels
src/pages/StudentControlPanel.jsx - API Client
src/api/api.js - Home & How It Works
src/pages/HomePage.jsx
Identity & Profiles
- Auth Context
src/Security/AuthContext.jsx - Role Route Guard
src/Security/ProtectedRoute.jsx - Login
src/pages/LoginPage.jsx - Signup Routes
src/pages/SignUpPage.jsx - Role Signup Forms
src/components/signup/SignUpFormUser.jsx - Role Profiles
src/pages/StudentProfile.jsx - School Profile
src/pages/SchoolProfile.jsx
Feedback & Complaints
- Complaint Registration
src/pages/ComplaintRegister.jsx - School Feedback Creation
src/pages/CreateFeedbackBySchool.jsx - Registered Feedbacks
src/pages/RegisteredFeedbacks.jsx - Role Feedback Views
src/components/RegisteredFeedbacks/StudentFeedbackView.jsx - Admin Feedback View
src/components/RegisteredFeedbacks/AdminFeedbackView.jsx
Public Views & Insights
- Public Complaints
src/pages/SeePublicComplaints.jsx - School Feedback Analytics
src/components/RegisteredFeedbacks/SchoolDetailsModal.jsx - Landing Statistics
src/components/StatisticsSection.jsx
Other components
- Visitor / User
- EduReport Backend
Connections 28
- Visitor / User → Application Router: opens
- Application Router → Navigation: renders
- Application Router → Login: routes
- Application Router → Signup Routes: routes
- Application Router → Home & How It Works: routes
- Application Router → Public Complaints: routes
- Application Router → Role Route Guard: protects routes
- Role Route Guard → Role Profiles: allows role
- Role Route Guard → Role Control Panels: allows role
- Role Route Guard → Complaint Registration: allows student
- Role Route Guard → School Feedback Creation: allows school
- Role Route Guard → Registered Feedbacks: allows roles
- Login → Auth Context: signs in
- Signup Routes → Role Signup Forms: selects form
- Role Signup Forms → API Client: registers student
- Auth Context → API Client: requests identity
- Role Profiles → API Client: updates profile
- School Profile → API Client: updates profile
- Navigation → Auth Context: reads session
- Complaint Registration → API Client: submits complaint
- School Feedback Creation → API Client: creates feedback
- Registered Feedbacks → Role Feedback Views: selects view
- Registered Feedbacks → Admin Feedback View: selects view
- Registered Feedbacks → API Client: loads feedback
- Public Complaints → API Client: loads complaints
- School Feedback Analytics → API Client: loads tag data
- Home & How It Works → Landing Statistics: renders statistics
- API Client → EduReport Backend: sends API requests