How vasundhara-331/kochi_metro_document_automation works
Kochi Metro Document Automation is a role-aware document management web app. Staff sign in, then use the dashboard to reach upload, inbox, search, and document review; upload and search operations use shared document state, and selecting a result opens the viewer. The README also describes analytics and administration capabilities, represented here from the component tree. Sampled document and notification contexts use React state; although the README describes Supabase integration and real-time updates, the excerpts do not show those connections or establish their implementation.
Main entry points: App.tsx Application router · DocumentContext.tsx Document context · MainDashboard.tsx Operations dashboard · LoginPage.tsx Sign in
Components 15
Access and Shell
- Application router
src/App.tsx - Sign in
src/components/auth/LoginPage.tsx - Header
src/components/layout/Header.tsx - Navigation sidebar
src/components/layout/Sidebar.tsx
Document Workflow
- Document upload
src/components/upload/UploadPortal.tsx - Document inbox
src/components/documents/DocumentInbox.tsx - Document search
src/components/search/SearchPage.tsx - Document viewer
src/components/documents/DocumentViewer.tsx
Insights and Administration
- Operations dashboard
src/components/dashboard/MainDashboard.tsx - Analytics dashboard
src/components/analytics/AnalyticsDashboard.tsx - Admin portal
src/components/admin/AdminPortal.tsx
Application State
- Authentication context
src/contexts/AuthContext.tsx - Document context
src/contexts/DocumentContext.tsx - Notification context
src/contexts/NotificationContext.tsx
Other components
- Metro staff
Connections 19
- Metro staff → Application router: opens app
- Application router → Sign in: shows when signed out
- Sign in → Authentication context: checks credentials
- Application router → Authentication context: reads session
- Application router → Header: renders shell
- Application router → Navigation sidebar: renders navigation
- Application router → Operations dashboard: dispatches view
- Application router → Document upload: dispatches view
- Application router → Document inbox: dispatches view
- Application router → Document search: dispatches view
- Application router → Document viewer: dispatches selected document
- Application router → Analytics dashboard: dispatches view
- Application router → Admin portal: dispatches view
- Document upload → Document context: uploads document
- Document search → Document context: searches and indexes
- Document inbox → Document context: reads documents
- Document viewer → Document context: reads and updates
- Operations dashboard → Document context: reads statistics
- Operations dashboard → Notification context: reads notifications