How sheethaljoshi/late_night_check works
LateCheck is a hostel late-entry and warden-management application. Students scan a QR code, submit late-entry information, and can communicate with wardens and receive notices; wardens review requests and student records and view analytics. The tree contains a large Python file alongside a Next.js frontend, while the README describes a FastAPI backend and additional AI, notification, and location capabilities. Backend internals and several UI modules were not excerpted, so those documented relationships are shown at a high level rather than as verified implementation calls.
Main entry points: connect2.py Backend API · student-messages/page.tsx Student messages · chat/page.tsx Student chat · notify/page.tsx Student notices
Components 34
Student experience
- QR scanner page
sampleone/src/app/qrscanner/page.tsx - QR reader
sampleone/src/app/components/Qrreader.tsx - Late entry form
sampleone/src/app/late-entry-form/page.tsx - Student home
sampleone/src/app/home/page.tsx - Student chat
sampleone/src/app/chat/page.tsx - Student messages
sampleone/src/app/dashboard/student-messages/page.tsx - Message inbox
sampleone/src/app/components/Inbox.tsx - Chat component
sampleone/src/app/components/Chat.tsx - Student notices
sampleone/src/app/notify/page.tsx - Student profile
sampleone/src/app/profile/page.tsx - Chat route page
sampleone/src/app/chat/page.tsx
Warden operations
- Analytics dashboard
sampleone/src/app/dashboard/analytics/page.tsx - Request review
sampleone/src/app/dashboard/student-request/Request.tsx - Request page
sampleone/src/app/dashboard/student-request/page.tsx - Student details
sampleone/src/app/studentdetail/Detail.tsx - Student detail page
sampleone/src/app/studentdetail/page.tsx - Warden messages
sampleone/src/app/dashboard/student-messages/page.tsx - Notification center
sampleone/src/app/notifications/NotificationCentre.tsx - Warden notices page
sampleone/src/app/notifications/page.tsx - Late entry table
sampleone/src/app/components/LateEntryTable.tsx - Pending table
sampleone/src/app/components/PendingTable.tsx - Request table
sampleone/src/app/components/Tablecomponent/StudentRequestTable.tsx - Detail table
sampleone/src/app/components/Tablecomponent/StudentDetailTable.tsx - Table entry view
sampleone/src/app/components/Tablecomponent/TableEntry.tsx - Warden sidebar
sampleone/src/app/components/sidebar.tsx
Shared UI and location
- Student navigation
sampleone/src/app/components/user/menubutton.tsx - Hostel information
sampleone/src/app/components/user/Abouthostel.tsx - Hostel locations
sampleone/src/app/components/user/Locations.tsx - Gate timer
sampleone/src/app/components/user/timer.jsx - Chat bubble
sampleone/src/app/components/user/Chatbubble.tsx - Time formatting
sampleone/src/utils/formattime.ts
Backend and intelligence
- Backend API
connect2.py
Other components
- Student
- Warden
Connections 38
- Student → QR scanner page: opens scanner
sampleone/src/app/qrscanner/page.tsx - QR scanner page → QR reader: renders
sampleone/src/app/qrscanner/page.tsx - Student → Late entry form: submits request
- Late entry form → Backend API: posts entry history
sampleone/src/app/late-entry-form/page.tsx - Student → Student chat: opens chat
- Student chat → Backend API: fetches and sends messages
sampleone/src/app/chat/page.tsx - Student chat → Chat bubble: renders
sampleone/src/app/chat/page.tsx - Student → Student messages: opens inbox
- Student messages → Backend API: loads inbox and websocket
sampleone/src/app/dashboard/student-messages/page.tsx - Student messages → Message inbox: renders
sampleone/src/app/dashboard/student-messages/page.tsx - Student messages → Chat component: renders
sampleone/src/app/dashboard/student-messages/page.tsx - Chat component → Chat bubble: uses
sampleone/src/app/components/Chat.tsx - Student → Student notices: views notices
- Student notices → Backend API: polls notices
sampleone/src/app/notify/page.tsx - Student notices → Time formatting: formats dates
sampleone/src/app/notify/page.tsx - Student home → Hostel information: renders
sampleone/src/app/home/page.tsx - Student home → Gate timer: renders
sampleone/src/app/home/page.tsx - Hostel information → Hostel locations: renders map
sampleone/src/app/components/user/Abouthostel.tsx - Warden → Analytics dashboard: views insights
- Warden → Request page: reviews requests
- Request page → Request review: renders
sampleone/src/app/dashboard/student-request/page.tsx - Request review → Backend API: manages requests
- Warden → Student detail page: views student records
- Student detail page → Student details: renders
sampleone/src/app/studentdetail/page.tsx - Warden → Warden notices page: views notifications
- Warden notices page → Notification center: renders
sampleone/src/app/notifications/page.tsx - Warden → Warden messages: communicates
- Notification center → Backend API: handles notifications
- Backend API → Analytics dashboard: supports behavior analysis
- Student → Student profile: views account
sampleone/src/app/profile/page.tsx - Request review → Pending table: uses
- Pending table → Table entry view: uses
sampleone/src/app/components/PendingTable.tsx - Late entry table → Table entry view: uses
sampleone/src/app/components/LateEntryTable.tsx - Student details → Detail table: uses
- Student details → Request table: uses
- Student messages → Warden sidebar: uses navigation
- Student → Student navigation: navigates
- Student chat → Student navigation: renders navigation
sampleone/src/app/chat/page.tsx