# moturumonishpvt-byte/admin_web_app_code architecture

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

- Interactive diagram: https://gitdiagram.com/moturumonishpvt-byte/admin_web_app_code
- Repository: https://github.com/moturumonishpvt-byte/admin_web_app_code

## Overview

This repository contains two related but distinct products: an attendance administration dashboard with an ERP automation bot, and a React Native face registration/verification app. The dashboard workflow is managed through its tabbed UI; the bot processes attendance sessions and interacts with the ERP. The mobile app registers faces or selects an enrolled face for verification, using image processing, face detection, embeddings, and local storage. Several dashboard and mobile subsystems are represented by paths from the tree and SOURCE INDEX; their internal behavior was not sampled, so their connections are omitted where not evidenced.

Main entry points: [`AdminDashboard/src/App.tsx`](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/App.tsx) (Dashboard UI), [`AdminDashboard/src/bot/main.ts`](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/main.ts) (Bot orchestrator), [`Facialrecog/react-native-expo-facial-recognition-main/src/screens/App.tsx`](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/App.tsx) (Mobile navigation), [`Facialrecog/react-native-expo-facial-recognition-main/src/services/faceStorage.ts`](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/services/faceStorage.ts) (Face storage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Attendance dashboard"]
  node_admin["Dashboard UI<br/>[App.tsx]"]
  node_layout["Dashboard layout<br/>[Layout.tsx]"]
  node_overview["Overview<br/>[Overview.tsx]"]
  node_bot_ui["Bot controls<br/>[BotManagement.tsx]"]
  node_student_mgmt["Student management"]
  node_faculty_mgmt["Faculty management"]
  node_face_admin["Face enrollment UI"]
  node_timetable["Timetable upload"]
  node_sessions_ui["Session monitor<br/>[SessionMonitor.tsx]"]
  node_records_ui["Attendance records"]
  node_csv_ui["CSV manager<br/>[CSVManager.tsx]"]
  node_logs_ui["System logs<br/>[SystemLogs.tsx]"]
  node_supabase["Supabase client<br/>[supabase.ts]"]
end

subgraph group_automation["ERP attendance bot"]
  node_bot_main["Bot orchestrator<br/>[main.ts]"]
  node_csv_process["CSV processing<br/>[csvProcessor.ts]"]
  node_erp_login["ERP login<br/>[erpLogin.ts]"]
  node_erp_navigation["ERP navigation<br/>[erpNavigation.ts]"]
  node_attendance["Attendance marking"]
  node_validation["Session validation<br/>[validation.ts]"]
  node_scheduler["Session scheduler<br/>[scheduler.ts]"]
  node_report["Run reporting<br/>[reportGenerator.ts]"]
  node_retry["Retry handling<br/>[retryManager.ts]"]
  node_browser["Browser manager<br/>[browserManager.ts]"]
  node_logger["Bot logger<br/>[logger.ts]"]
end

subgraph group_mobile["Mobile face app"]
  node_mobile_app["Mobile navigation<br/>[App.tsx]"]
  node_camera["Camera screen<br/>[camera.tsx]"]
  node_registration["Face registration"]
  node_selection["Face selection<br/>[face-selection.tsx]"]
  node_verification["Face verification"]
  node_face_store["Face storage<br/>[faceStorage.ts]"]
end

subgraph group_face_runtime["Face recognition runtime"]
  node_detection["Face detection"]
end

node_supabase_store[("Supabase data")]
node_erp["Attendance ERP"]
node_async_storage[("Device storage")]

node_admin -->|"renders"| node_layout
node_admin -->|"routes to"| node_overview
node_admin -->|"routes to"| node_bot_ui
node_admin -->|"routes to"| node_student_mgmt
node_admin -->|"routes to"| node_faculty_mgmt
node_admin -->|"routes to"| node_face_admin
node_admin -->|"routes to"| node_timetable
node_admin -->|"routes to"| node_sessions_ui
node_admin -->|"routes to"| node_records_ui
node_admin -->|"routes to"| node_csv_ui
node_admin -->|"routes to"| node_logs_ui
node_bot_main -->|"calls"| node_scheduler
node_bot_main -->|"calls"| node_csv_process
node_bot_main -->|"calls"| node_browser
node_bot_main -->|"calls"| node_erp_login
node_bot_main -->|"calls"| node_erp_navigation
node_bot_main -->|"calls"| node_attendance
node_bot_main -->|"calls"| node_validation
node_bot_main -->|"calls"| node_report
node_bot_main -->|"calls"| node_retry
node_bot_main -->|"uses"| node_supabase
node_logger -->|"writes logs"| node_supabase
node_supabase -.->|"connects"| node_supabase_store
node_erp_login -.->|"authenticates"| node_erp
node_erp_navigation -.->|"navigates"| node_erp
node_attendance -.->|"marks attendance"| node_erp
node_mobile_app -->|"routes to"| node_camera
node_mobile_app -->|"routes to"| node_registration
node_mobile_app -->|"routes to"| node_selection
node_mobile_app -->|"routes to"| node_verification
node_mobile_app -->|"uses type"| node_face_store
node_registration -->|"uses"| node_detection
node_verification -->|"uses"| node_detection
node_registration -->|"uses"| node_face_store
node_verification -->|"uses"| node_face_store
node_face_store -->|"reads and writes"| node_async_storage
node_detection -.->|"processes images"| node_detection

click node_admin "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/App.tsx"
click node_layout "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/Layout.tsx"
click node_overview "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/Overview.tsx"
click node_bot_ui "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/BotManagement.tsx"
click node_student_mgmt "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/StudentManagement.tsx"
click node_faculty_mgmt "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/FacultyManagement.tsx"
click node_face_admin "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/StudentFaceRegistration.tsx"
click node_timetable "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/FacultyTimetableUpload.tsx"
click node_sessions_ui "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/SessionMonitor.tsx"
click node_records_ui "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/AttendanceRecords.tsx"
click node_csv_ui "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/CSVManager.tsx"
click node_logs_ui "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/SystemLogs.tsx"
click node_bot_main "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/main.ts"
click node_csv_process "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/csvProcessor.ts"
click node_erp_login "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/erpLogin.ts"
click node_erp_navigation "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/erpNavigation.ts"
click node_attendance "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/attendanceMarker.ts"
click node_validation "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/validation.ts"
click node_scheduler "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/scheduler.ts"
click node_report "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/reportGenerator.ts"
click node_retry "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/retryManager.ts"
click node_browser "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/browserManager.ts"
click node_logger "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/logger.ts"
click node_supabase "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/lib/supabase.ts"
click node_mobile_app "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/App.tsx"
click node_camera "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/camera.tsx"
click node_registration "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-registration.tsx"
click node_selection "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-selection.tsx"
click node_verification "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-verification.tsx"
click node_face_store "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/services/faceStorage.ts"
click node_detection "https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/services/faceDetectionService.ts"

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_admin,node_layout,node_overview,node_bot_ui,node_student_mgmt,node_faculty_mgmt,node_face_admin,node_timetable,node_sessions_ui,node_records_ui,node_csv_ui,node_logs_ui,node_supabase toneBlue
class node_bot_main,node_csv_process,node_erp_login,node_erp_navigation,node_attendance,node_validation,node_scheduler,node_report,node_retry,node_browser,node_logger,node_supabase_store,node_async_storage toneAmber
class node_mobile_app,node_camera,node_registration,node_selection,node_verification,node_face_store toneMint
class node_detection toneRose
class node_erp toneIndigo
```

## Components

### Attendance dashboard

- [Dashboard UI](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/App.tsx): `AdminDashboard/src/App.tsx`
- [Dashboard layout](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/Layout.tsx): `AdminDashboard/src/components/Layout.tsx`
- [Overview](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/Overview.tsx): `AdminDashboard/src/components/Overview.tsx`
- [Bot controls](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/BotManagement.tsx): `AdminDashboard/src/components/BotManagement.tsx`
- [Student management](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/StudentManagement.tsx): `AdminDashboard/src/components/StudentManagement.tsx`
- [Faculty management](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/FacultyManagement.tsx): `AdminDashboard/src/components/FacultyManagement.tsx`
- [Face enrollment UI](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/StudentFaceRegistration.tsx): `AdminDashboard/src/components/StudentFaceRegistration.tsx`
- [Timetable upload](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/FacultyTimetableUpload.tsx): `AdminDashboard/src/components/FacultyTimetableUpload.tsx`
- [Session monitor](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/SessionMonitor.tsx): `AdminDashboard/src/components/SessionMonitor.tsx`
- [Attendance records](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/AttendanceRecords.tsx): `AdminDashboard/src/components/AttendanceRecords.tsx`
- [CSV manager](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/CSVManager.tsx): `AdminDashboard/src/components/CSVManager.tsx`
- [System logs](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/components/SystemLogs.tsx): `AdminDashboard/src/components/SystemLogs.tsx`
- [Supabase client](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/lib/supabase.ts): `AdminDashboard/src/lib/supabase.ts`

### ERP attendance bot

- [Bot orchestrator](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/main.ts): `AdminDashboard/src/bot/main.ts`
- [CSV processing](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/csvProcessor.ts): `AdminDashboard/src/bot/csvProcessor.ts`
- [ERP login](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/erpLogin.ts): `AdminDashboard/src/bot/erpLogin.ts`
- [ERP navigation](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/erpNavigation.ts): `AdminDashboard/src/bot/erpNavigation.ts`
- [Attendance marking](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/attendanceMarker.ts): `AdminDashboard/src/bot/attendanceMarker.ts`
- [Session validation](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/validation.ts): `AdminDashboard/src/bot/validation.ts`
- [Session scheduler](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/scheduler.ts): `AdminDashboard/src/bot/scheduler.ts`
- [Run reporting](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/reportGenerator.ts): `AdminDashboard/src/bot/reportGenerator.ts`
- [Retry handling](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/retryManager.ts): `AdminDashboard/src/bot/retryManager.ts`
- [Browser manager](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/browserManager.ts): `AdminDashboard/src/bot/browserManager.ts`
- [Bot logger](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/AdminDashboard/src/bot/logger.ts): `AdminDashboard/src/bot/logger.ts`

### Mobile face app

- [Mobile navigation](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/App.tsx): `Facialrecog/react-native-expo-facial-recognition-main/src/screens/App.tsx`
- [Camera screen](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/camera.tsx): `Facialrecog/react-native-expo-facial-recognition-main/src/screens/camera.tsx`
- [Face registration](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-registration.tsx): `Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-registration.tsx`
- [Face selection](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-selection.tsx): `Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-selection.tsx`
- [Face verification](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-verification.tsx): `Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-verification.tsx`
- [Face storage](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/services/faceStorage.ts): `Facialrecog/react-native-expo-facial-recognition-main/src/services/faceStorage.ts`

### Face recognition runtime

- [Face detection](https://github.com/moturumonishpvt-byte/admin_web_app_code/blob/main/Facialrecog/react-native-expo-facial-recognition-main/src/services/faceDetectionService.ts): `Facialrecog/react-native-expo-facial-recognition-main/src/services/faceDetectionService.ts`

### Other components

- **Supabase data**
- **Attendance ERP**
- **Device storage**

## Connections

- Dashboard UI → Dashboard layout: renders (evidence: `AdminDashboard/src/App.tsx`)
- Dashboard UI → Overview: routes to (evidence: `AdminDashboard/src/App.tsx`)
- Dashboard UI → Bot controls: routes to (evidence: `AdminDashboard/src/App.tsx`)
- Dashboard UI → Student management: routes to (evidence: `AdminDashboard/src/App.tsx`)
- Dashboard UI → Faculty management: routes to (evidence: `AdminDashboard/src/App.tsx`)
- Dashboard UI → Face enrollment UI: routes to (evidence: `AdminDashboard/src/App.tsx`)
- Dashboard UI → Timetable upload: routes to (evidence: `AdminDashboard/src/App.tsx`)
- Dashboard UI → Session monitor: routes to (evidence: `AdminDashboard/src/App.tsx`)
- Dashboard UI → Attendance records: routes to (evidence: `AdminDashboard/src/App.tsx`)
- Dashboard UI → CSV manager: routes to (evidence: `AdminDashboard/src/App.tsx`)
- Dashboard UI → System logs: routes to (evidence: `AdminDashboard/src/App.tsx`)
- Bot orchestrator → Session scheduler: calls (evidence: `AdminDashboard/src/bot/main.ts`)
- Bot orchestrator → CSV processing: calls (evidence: `AdminDashboard/src/bot/main.ts`)
- Bot orchestrator → Browser manager: calls (evidence: `AdminDashboard/src/bot/main.ts`)
- Bot orchestrator → ERP login: calls (evidence: `AdminDashboard/src/bot/main.ts`)
- Bot orchestrator → ERP navigation: calls (evidence: `AdminDashboard/src/bot/main.ts`)
- Bot orchestrator → Attendance marking: calls (evidence: `AdminDashboard/src/bot/main.ts`)
- Bot orchestrator → Session validation: calls (evidence: `AdminDashboard/src/bot/main.ts`)
- Bot orchestrator → Run reporting: calls (evidence: `AdminDashboard/src/bot/main.ts`)
- Bot orchestrator → Retry handling: calls (evidence: `AdminDashboard/src/bot/main.ts`)
- Bot orchestrator → Supabase client: uses (evidence: `AdminDashboard/src/bot/main.ts`)
- Bot logger → Supabase client: writes logs (evidence: `AdminDashboard/src/bot/logger.ts`)
- Supabase client → Supabase data: connects
- ERP login → Attendance ERP: authenticates
- ERP navigation → Attendance ERP: navigates
- Attendance marking → Attendance ERP: marks attendance
- Mobile navigation → Camera screen: routes to (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/screens/App.tsx`)
- Mobile navigation → Face registration: routes to (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/screens/App.tsx`)
- Mobile navigation → Face selection: routes to (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/screens/App.tsx`)
- Mobile navigation → Face verification: routes to (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/screens/App.tsx`)
- Mobile navigation → Face storage: uses type (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/screens/App.tsx`)
- Face registration → Face detection: uses (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-registration.tsx`)
- Face verification → Face detection: uses (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-verification.tsx`)
- Face registration → Face storage: uses (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-registration.tsx`)
- Face verification → Face storage: uses (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/screens/face-verification.tsx`)
- Face storage → Device storage: reads and writes (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/services/faceStorage.ts`)
- Face detection → Face detection: processes images (evidence: `Facialrecog/react-native-expo-facial-recognition-main/src/services/faceDetectionService.ts`)
