How sanathmandala391-stack/polyconnect-frontend works
PolyConnect is a React frontend for public technical-education information and authenticated student, HOD, and administrator services. Users enter through the routed application, browse public services or authenticate, then use role-specific academic, community, and administrative features backed by the PolyConnect API. The graph includes major product areas visible in the source index; several page-to-API details are unsampled, so those links are omitted. The backend is external to this repository; the API client documents SBTET data as backend-proxied.
Main entry points: App.jsx Routes and guards · client.js HTTP API client · Layout.jsx Shared layout · PresenceContext.jsx Presence state
Components 27
Application shell
- Routes and guards
src/App.jsx - Shared layout
src/components/Layout.jsx - Government header
src/components/GovHeader.jsx - Government footer
src/components/GovFooter.jsx
Public information
- Home and updates
src/pages/HomePage.jsx - RTI information
src/pages/RtiDetailsPage.jsx - Public services
src/pages - ECET papers
src/pages/ecet/EcetPapersPage.jsx - ECET paper catalog
src/data/ecet/papers.js
Student services
- Student dashboard
src/pages/student/StudentDashboardPage.jsx - Attendance
src/pages/student/AttendancePage.jsx - Student results
src/pages/student/ResultsPage.jsx - Doubt solver
src/pages/student/DoubtsPage.jsx - Student community
src/pages/student/CommunityPage.jsx - Senior connect
src/pages/student/SeniorsPage.jsx - Messaging and calls
src/pages/student/ChatPage.jsx - Notifications
src/pages/student/NotificationsPage.jsx
Administration and identity
- Login and registration
src/pages - Authentication state
src/context/AuthContext.jsx - Admin dashboard
src/pages/admin/AdminDashboardPage.jsx - HOD services
src/pages/hod
API and live state
- HTTP API client
src/api/client.js - Presence state
src/context/PresenceContext.jsx - Adaptive polling
src/hooks/usePolling.js - Updates provider
src/context/UpdatesContext.jsx
Other components
- Site user
- PolyConnect backend
Connections 31
- Site user → Routes and guards: opens
src/App.jsx - Routes and guards → Shared layout: wraps routes
src/App.jsx - Shared layout → Government header: renders
src/components/Layout.jsx - Shared layout → Government footer: renders
src/components/Layout.jsx - Routes and guards → Home and updates: routes to
src/App.jsx - Routes and guards → RTI information: routes to
src/App.jsx - Routes and guards → Public services: routes to
src/App.jsx - Routes and guards → Login and registration: routes to
src/App.jsx - Routes and guards → Admin dashboard: routes to
src/App.jsx - Routes and guards → HOD services: routes to
src/App.jsx - Routes and guards → Student dashboard: routes to
src/App.jsx - Routes and guards → Attendance: routes to
src/App.jsx - Routes and guards → Student results: routes to
src/App.jsx - Routes and guards → Doubt solver: routes to
src/App.jsx - Routes and guards → Student community: routes to
src/App.jsx - Routes and guards → Senior connect: routes to
src/App.jsx - Routes and guards → Messaging and calls: routes to
src/App.jsx - Routes and guards → Notifications: routes to
src/App.jsx - Routes and guards → ECET papers: routes to
src/App.jsx - Login and registration → Authentication state: uses auth
src/pages/RegisterStudentPage.jsx - Authentication state → HTTP API client: requests auth
src/context/AuthContext.jsx - Presence state → HTTP API client: sends heartbeat
src/context/PresenceContext.jsx - Presence state → Authentication state: reads user
src/context/PresenceContext.jsx - Routes and guards → Presence state: provides state
src/App.jsx - HTTP API client → PolyConnect backend: sends requests
src/api/client.js - Updates provider → Adaptive polling: uses hook
src/context/UpdatesContext.jsx - Updates provider → HTTP API client: fetches updates
src/context/UpdatesContext.jsx - Messaging and calls → Adaptive polling: polls data
src/pages/student/ChatPage.jsx - Student community → Adaptive polling: polls data
src/pages/student/CommunityPage.jsx - Admin dashboard → HTTP API client: loads overview
src/pages/admin/AdminDashboardPage.jsx - ECET papers → ECET paper catalog: reads catalog
src/pages/ecet/EcetPapersPage.jsx