How chanikya-webdev/jntua-mobile-attendance-app works
JNTUA Attendance is an Android Expo app for viewing portal attendance without a backend. A student logs in on the official portal in an embedded WebView; injected scripts collect profile, subject, and date-log data through a validated message bridge. App state drives sync/error overlays and the attendance dashboard, which computes 75% threshold guidance and can reopen a saved result. The README documents the flow and capabilities; some implementation excerpts are partial or unavailable, so those links rely on documented behavior.
Main entry points: App.tsx App Orchestrator · Dashboard.tsx Attendance Dashboard · WebViewScraper.tsx Portal WebView · automationScripts.ts Profile Scrape
Components 18
Portal Sync
- Portal WebView
views/WebViewScraper.tsx - Profile Scrape
utils/automationScripts.ts - Subject Walk
utils/automationScripts.ts - Attendance Scrape
utils/automationScripts.ts - Bridge Validation
utils/bridgeValidator.ts
App Experience
- App Orchestrator
App.tsx - App State
reducers/appReducer.ts - Sync And Error Overlays
views/OverlayScreens.tsx - Attendance Dashboard
views/Dashboard.tsx - Date Log Modal
components/DateLogModal.tsx
Attendance Data
- Attendance Guidance
utils/attendanceMath.ts - Previous Result
utils/storage.ts
App Runtime
- OTA Update Manager
utils/updateManager.ts - Animated Loader
components/CrabScene.tsx - Dashboard Mark
components/Spike.tsx - Theme Constants
constants/theme.ts
Other components
- Student
- Attendance Portal
Connections 23
- Student → Portal WebView: logs in
README.md - Portal WebView → Attendance Portal: loads portal
README.md - App Orchestrator → Portal WebView: routes injection
README.md - App Orchestrator → Profile Scrape: injects script
README.md - App Orchestrator → Subject Walk: injects script
README.md - App Orchestrator → Attendance Scrape: injects script
README.md - Profile Scrape → Attendance Portal: reads profile
README.md - Subject Walk → Attendance Portal: selects subjects
README.md - Attendance Scrape → Attendance Portal: reads attendance
README.md - Attendance Portal → Portal WebView: renders pages
README.md - Portal WebView → App Orchestrator: posts messages
README.md - App Orchestrator → Bridge Validation: validates payloads
App.tsx - App Orchestrator → App State: dispatches actions
README.md - App Orchestrator → Sync And Error Overlays: renders status
README.md - App Orchestrator → Attendance Dashboard: renders results
README.md - Attendance Dashboard → Attendance Guidance: computes guidance
views/Dashboard.tsx - Attendance Dashboard → Date Log Modal: opens log
- App Orchestrator → Previous Result: loads and saves
App.tsx - App Orchestrator → OTA Update Manager: checks updates
App.tsx - Sync And Error Overlays → Animated Loader: renders loader
views/OverlayScreens.tsx - Attendance Dashboard → Dashboard Mark: renders mark
views/Dashboard.tsx - App Orchestrator → Theme Constants: uses constants
App.tsx - Attendance Dashboard → Theme Constants: uses constants
views/Dashboard.tsx