How gideon-jacob/pec-student-client works
PEC Student Hub is a student-facing academic portal. Students enter through the responsive React app, navigate to a page, and use the Home dashboard to view daily classes and summary metrics. The dashboard loads timetable data from the backend or reuses browser-cached data, then renders weekday controls and subject cards. The Profile page provides theme selection and a manual timetable refresh; Assignments and Performance are currently placeholders. The graph reflects the sampled implementation and documented current features; planned capabilities are not implemented here. The timetable data module’s contents and purpose were not shown, so it is omitted.
Main entry points: App.tsx Route Shell · Home/index.tsx Home Dashboard · Profile/index.tsx Profile Settings · main.tsx App Bootstrap
Components 14
Application Shell
- App Bootstrap
src/main.tsx - Route Shell
src/App.tsx - Navigation Link
src/components/NavItem/index.tsx
Timetable Dashboard
- Home Dashboard
src/pages/Home/index.tsx - Browser Cache
Student Pages
- Assignments Page
src/pages/Assignments/index.tsx - Performance Page
src/pages/Performance/index.tsx - Profile Settings
src/pages/Profile/index.tsx
Dashboard Components
- Weekday Selector
src/components/WeekDayNavItem/index.tsx - Subject Card
src/components/SubjectCard/index.tsx - Attendance Gauge
src/components/ProgressBar/index.tsx - Quick Stats
src/components/StatsCard/index.tsx
Other components
- Student
- Timetable Backend
Connections 16
- Student → App Bootstrap: opens app
src/main.tsx - App Bootstrap → Route Shell: renders
src/main.tsx - Route Shell → Home Dashboard: routes to
src/App.tsx - Route Shell → Assignments Page: routes to
src/App.tsx - Route Shell → Performance Page: routes to
src/App.tsx - Route Shell → Profile Settings: routes to
src/App.tsx - Route Shell → Navigation Link: renders
src/App.tsx - Student → Navigation Link: selects page
src/components/NavItem/index.tsx - Home Dashboard → Timetable Backend: requests timetable
src/pages/Home/index.tsx - Home Dashboard → Browser Cache: reads and writes
src/pages/Home/index.tsx - Profile Settings → Timetable Backend: refreshes timetable
src/pages/Profile/index.tsx - Profile Settings → Browser Cache: writes timetable
src/pages/Profile/index.tsx - Home Dashboard → Weekday Selector: renders
src/pages/Home/index.tsx - Home Dashboard → Subject Card: renders filtered classes
src/pages/Home/index.tsx - Home Dashboard → Quick Stats: renders metrics
src/pages/Home/index.tsx - Subject Card → Attendance Gauge: renders attendance
src/components/SubjectCard/index.tsx