# noorvm/mini_snvs architecture

> Architecture diagram of the GitHub repository noorvm/mini_snvs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/noorvm/mini_snvs
- Repository: https://github.com/noorvm/mini_snvs

## Overview

Mini_SNVS appears to be a hostel/student late-entry and warden-management web application. Students use its home, profile, notices, QR scanning, chat, and late-entry features; wardens have dashboard views for analytics, student details, requests, messages, and notifications. The repository shows a frontend calling an external service for several workflows, but contains no backend implementation or substantive README description, so unsampled connections are omitted.

Main entry points: [`sampleone/src/app/dashboard/student-messages/page.tsx`](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/student-messages/page.tsx) (Warden Messages), [`sampleone/src/app/home/page.tsx`](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/home/page.tsx) (Student Home), [`sampleone/src/app/components/user/menubutton.tsx`](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/menubutton.tsx) (Student Navigation), [`sampleone/src/app/chat/page.tsx`](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/chat/page.tsx) (Warden Chat)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_student["Student Services"]
  node_home["Student Home<br/>[page.tsx]"]
  node_late_form["Late Entry<br/>[page.tsx]"]
  node_student_chat["Warden Chat<br/>[page.tsx]"]
  node_student_notices["Student Notices<br/>[page.tsx]"]
  node_qr_page["QR Scanner Page<br/>[page.tsx]"]
  node_qr_reader["QR Reader<br/>[Qrreader.tsx]"]
  node_profile["Student Profile<br/>[page.tsx]"]
end

subgraph group_warden["Warden Dashboard"]
  node_warden_home["Warden Overview<br/>[page.tsx]"]
  node_requests_page["Student Requests<br/>[page.tsx]"]
  node_request_logic["Request Management<br/>[Request.tsx]"]
  node_student_detail_page["Student Details Page<br/>[page.tsx]"]
  node_student_detail["Student Detail View<br/>[Detail.tsx]"]
  node_warden_messages["Warden Messages<br/>[page.tsx]"]
  node_inbox["Message Inbox<br/>[Inbox.tsx]"]
  node_chat_component["Conversation View<br/>[Chat.tsx]"]
  node_warden_notifications["Warden Notifications<br/>[page.tsx]"]
  node_notification_centre["Notification Centre"]
  node_warden_notice_alt["Notice View<br/>[page1.tsx]"]
  node_dashboard_qr["QR Dashboard<br/>[page.tsx]"]
  node_late_table["Late Entry Table<br/>[LateEntryTable.tsx]"]
  node_pending_table["Pending Requests Table<br/>[PendingTable.tsx]"]
  node_detail_table["Student Detail Table"]
  node_request_table["Student Request Table"]
  node_table_entry["Table Entry<br/>[TableEntry.tsx]"]
end

subgraph group_shared["Shared UI"]
  node_sidebar["Dashboard Navigation<br/>[sidebar.tsx]"]
  node_menu_button["Student Navigation<br/>[menubutton.tsx]"]
  node_hostel_info["Hostel Information<br/>[Abouthostel.tsx]"]
  node_locations["Hostel Locations<br/>[Locations.tsx]"]
  node_gate_timer["Gate Timer<br/>[timer.jsx]"]
  node_time_format["Time Formatter<br/>[formattime.ts]"]
  node_chat_bubble["Chat Bubble<br/>[Chatbubble.tsx]"]
end

subgraph group_integration["External Services"]
  node_backend{{"External Service"}}
end

node_student_actor(("Student"))
node_warden_actor(("Warden"))

node_student_actor -.->|"uses"| node_home
node_warden_actor -.->|"uses"| node_warden_home
node_home -->|"renders"| node_hostel_info
node_home -->|"renders"| node_gate_timer
node_home -->|"renders"| node_menu_button
node_hostel_info -->|"renders"| node_locations
node_late_form -->|"posts entry"| node_backend
node_student_notices -->|"fetches notices"| node_backend
node_student_notices -->|"renders"| node_menu_button
node_qr_page -->|"renders"| node_qr_reader
node_qr_page -->|"renders"| node_menu_button
node_profile -->|"renders"| node_menu_button
node_student_chat -->|"fetches messages"| node_backend
node_student_chat -->|"opens socket"| node_backend
node_requests_page -->|"renders"| node_request_logic
node_student_detail_page -->|"renders"| node_student_detail
node_warden_messages -->|"fetches inbox"| node_backend
node_warden_messages -->|"opens socket"| node_backend
node_warden_messages -->|"renders"| node_inbox
node_warden_messages -->|"renders"| node_chat_component
node_inbox -->|"formats time"| node_time_format
node_chat_component -->|"renders"| node_chat_bubble
node_warden_notifications -->|"renders"| node_notification_centre
node_late_table -->|"renders"| node_table_entry
node_pending_table -->|"renders"| node_table_entry

click node_home "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/home/page.tsx"
click node_late_form "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/late-entry-form/page.tsx"
click node_student_chat "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/chat/page.tsx"
click node_student_notices "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/notify/page.tsx"
click node_qr_page "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/qrscanner/page.tsx"
click node_qr_reader "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Qrreader.tsx"
click node_profile "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/profile/page.tsx"
click node_warden_home "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/analytics/page.tsx"
click node_requests_page "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/student-request/page.tsx"
click node_request_logic "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/student-request/Request.tsx"
click node_student_detail_page "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/studentdetail/page.tsx"
click node_student_detail "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/studentdetail/Detail.tsx"
click node_warden_messages "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/student-messages/page.tsx"
click node_inbox "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Inbox.tsx"
click node_chat_component "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Chat.tsx"
click node_warden_notifications "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/notifications/page.tsx"
click node_notification_centre "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/notifications/NotificationCentre.tsx"
click node_warden_notice_alt "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/notifications/page1.tsx"
click node_dashboard_qr "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/qrcode/page.tsx"
click node_late_table "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/LateEntryTable.tsx"
click node_pending_table "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/PendingTable.tsx"
click node_detail_table "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Tablecomponent/StudentDetailTable.tsx"
click node_request_table "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Tablecomponent/StudentRequestTable.tsx"
click node_table_entry "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Tablecomponent/TableEntry.tsx"
click node_sidebar "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/sidebar.tsx"
click node_menu_button "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/menubutton.tsx"
click node_hostel_info "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/Abouthostel.tsx"
click node_locations "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/Locations.tsx"
click node_gate_timer "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/timer.jsx"
click node_time_format "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/utils/formattime.ts"
click node_chat_bubble "https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/Chatbubble.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_late_form,node_student_chat,node_student_notices,node_qr_page,node_qr_reader,node_profile toneBlue
class node_warden_home,node_requests_page,node_request_logic,node_student_detail_page,node_student_detail,node_warden_messages,node_inbox,node_chat_component,node_warden_notifications,node_notification_centre,node_warden_notice_alt,node_dashboard_qr,node_late_table,node_pending_table,node_detail_table,node_request_table,node_table_entry toneAmber
class node_sidebar,node_menu_button,node_hostel_info,node_locations,node_gate_timer,node_time_format,node_chat_bubble toneMint
class node_backend toneRose
class node_student_actor,node_warden_actor toneIndigo
```

## Components

### Student Services

- [Student Home](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/home/page.tsx): `sampleone/src/app/home/page.tsx`
- [Late Entry](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/late-entry-form/page.tsx): `sampleone/src/app/late-entry-form/page.tsx`
- [Warden Chat](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/chat/page.tsx): `sampleone/src/app/chat/page.tsx`
- [Student Notices](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/notify/page.tsx): `sampleone/src/app/notify/page.tsx`
- [QR Scanner Page](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/qrscanner/page.tsx): `sampleone/src/app/qrscanner/page.tsx`
- [QR Reader](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Qrreader.tsx): `sampleone/src/app/components/Qrreader.tsx`
- [Student Profile](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/profile/page.tsx): `sampleone/src/app/profile/page.tsx`

### Warden Dashboard

- [Warden Overview](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/analytics/page.tsx): `sampleone/src/app/dashboard/analytics/page.tsx`
- [Student Requests](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/student-request/page.tsx): `sampleone/src/app/dashboard/student-request/page.tsx`
- [Request Management](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/student-request/Request.tsx): `sampleone/src/app/dashboard/student-request/Request.tsx`
- [Student Details Page](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/studentdetail/page.tsx): `sampleone/src/app/studentdetail/page.tsx`
- [Student Detail View](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/studentdetail/Detail.tsx): `sampleone/src/app/studentdetail/Detail.tsx`
- [Warden Messages](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/student-messages/page.tsx): `sampleone/src/app/dashboard/student-messages/page.tsx`
- [Message Inbox](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Inbox.tsx): `sampleone/src/app/components/Inbox.tsx`
- [Conversation View](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Chat.tsx): `sampleone/src/app/components/Chat.tsx`
- [Warden Notifications](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/notifications/page.tsx): `sampleone/src/app/notifications/page.tsx`
- [Notification Centre](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/notifications/NotificationCentre.tsx): `sampleone/src/app/notifications/NotificationCentre.tsx`
- [Notice View](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/notifications/page1.tsx): `sampleone/src/app/notifications/page1.tsx`
- [QR Dashboard](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/dashboard/qrcode/page.tsx): `sampleone/src/app/dashboard/qrcode/page.tsx`
- [Late Entry Table](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/LateEntryTable.tsx): `sampleone/src/app/components/LateEntryTable.tsx`
- [Pending Requests Table](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/PendingTable.tsx): `sampleone/src/app/components/PendingTable.tsx`
- [Student Detail Table](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Tablecomponent/StudentDetailTable.tsx): `sampleone/src/app/components/Tablecomponent/StudentDetailTable.tsx`
- [Student Request Table](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Tablecomponent/StudentRequestTable.tsx): `sampleone/src/app/components/Tablecomponent/StudentRequestTable.tsx`
- [Table Entry](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/Tablecomponent/TableEntry.tsx): `sampleone/src/app/components/Tablecomponent/TableEntry.tsx`

### Shared UI

- [Dashboard Navigation](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/sidebar.tsx): `sampleone/src/app/components/sidebar.tsx`
- [Student Navigation](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/menubutton.tsx): `sampleone/src/app/components/user/menubutton.tsx`
- [Hostel Information](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/Abouthostel.tsx): `sampleone/src/app/components/user/Abouthostel.tsx`
- [Hostel Locations](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/Locations.tsx): `sampleone/src/app/components/user/Locations.tsx`
- [Gate Timer](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/timer.jsx): `sampleone/src/app/components/user/timer.jsx`
- [Time Formatter](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/utils/formattime.ts): utility · `sampleone/src/utils/formattime.ts`
- [Chat Bubble](https://github.com/noorvm/mini_snvs/blob/main/sampleone/src/app/components/user/Chatbubble.tsx): `sampleone/src/app/components/user/Chatbubble.tsx`

### External Services

- **External Service**: external service · External service called by frontend workflows; backend implementation is not in this repository.

### Other components

- **Student**
- **Warden**

## Connections

- Student → Student Home: uses
- Warden → Warden Overview: uses
- Student Home → Hostel Information: renders (evidence: `sampleone/src/app/home/page.tsx`)
- Student Home → Gate Timer: renders (evidence: `sampleone/src/app/home/page.tsx`)
- Student Home → Student Navigation: renders (evidence: `sampleone/src/app/home/page.tsx`)
- Hostel Information → Hostel Locations: renders (evidence: `sampleone/src/app/components/user/Abouthostel.tsx`)
- Late Entry → External Service: posts entry (evidence: `sampleone/src/app/late-entry-form/page.tsx`)
- Student Notices → External Service: fetches notices (evidence: `sampleone/src/app/notify/page.tsx`)
- Student Notices → Student Navigation: renders (evidence: `sampleone/src/app/notify/page.tsx`)
- QR Scanner Page → QR Reader: renders (evidence: `sampleone/src/app/qrscanner/page.tsx`)
- QR Scanner Page → Student Navigation: renders (evidence: `sampleone/src/app/qrscanner/page.tsx`)
- Student Profile → Student Navigation: renders (evidence: `sampleone/src/app/profile/page.tsx`)
- Warden Chat → External Service: fetches messages (evidence: `sampleone/src/app/chat/page.tsx`)
- Warden Chat → External Service: opens socket (evidence: `sampleone/src/app/chat/page.tsx`)
- Student Requests → Request Management: renders (evidence: `sampleone/src/app/dashboard/student-request/page.tsx`)
- Student Details Page → Student Detail View: renders (evidence: `sampleone/src/app/studentdetail/page.tsx`)
- Warden Messages → External Service: fetches inbox (evidence: `sampleone/src/app/dashboard/student-messages/page.tsx`)
- Warden Messages → External Service: opens socket (evidence: `sampleone/src/app/dashboard/student-messages/page.tsx`)
- Warden Messages → Message Inbox: renders (evidence: `sampleone/src/app/dashboard/student-messages/page.tsx`)
- Warden Messages → Conversation View: renders (evidence: `sampleone/src/app/dashboard/student-messages/page.tsx`)
- Message Inbox → Time Formatter: formats time (evidence: `sampleone/src/app/components/Inbox.tsx`)
- Conversation View → Chat Bubble: renders (evidence: `sampleone/src/app/components/Chat.tsx`)
- Warden Notifications → Notification Centre: renders (evidence: `sampleone/src/app/notifications/page.tsx`)
- Late Entry Table → Table Entry: renders (evidence: `sampleone/src/app/components/LateEntryTable.tsx`)
- Pending Requests Table → Table Entry: renders (evidence: `sampleone/src/app/components/PendingTable.tsx`)
