# arcilla-dev/meneses-one-stop architecture

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

- Interactive diagram: https://gitdiagram.com/arcilla-dev/meneses-one-stop
- Repository: https://github.com/arcilla-dev/meneses-one-stop

## Overview

Meneses Campus One-Stop is a student services portal where students authenticate, submit office requests, and track decisions; office admins and superadmins process requests and manage programs and announcements. The graph preserves the four office workflows, shared dashboard, auth/profile, notifications, and staff provisioning. Some office pages and APIs are indexed but not excerpted, so their subsystem nodes reflect documented capabilities; unsampled implementation links are omitted unless documented by the README.

Main entry points: [`app/(dashboard)/student`](https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/student) (Student portal), [`app/(dashboard)/admin/page.tsx`](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/admin/page.tsx) (Admin overview), [`lib/client.ts`](https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/client.ts) (Supabase browser client), [`app/(dashboard)/admin/lsc`](https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/admin/lsc) (LSC management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Access &amp; shell"]
  node_login["Sign in<br/>[page.tsx]"]
  node_registration["Student registration<br/>[page.tsx]"]
  node_profile["User profile context"]
end

subgraph group_student["Student services"]
  node_student_portal["Student portal"]
  node_registrar_student["Registrar requests<br/>[page.tsx]"]
  node_infirmary_student["Clinic appointments<br/>[page.tsx]"]
  node_scholarship_student["Scholarship applications<br/>[page.tsx]"]
  node_lsc_student["Print requests<br/>[page.tsx]"]
  node_lsc_form["Print request form"]
  node_lsc_service["Featured services"]
  node_announcements_student["Campus announcements<br/>[page.tsx]"]
  node_student_documents["Student documents<br/>[page.tsx]"]
  node_student_requests["Request tracking<br/>[page.tsx]"]
  node_student_schedules["Schedules<br/>[page.tsx]"]
end

subgraph group_staff["Administration"]
  node_admin_home["Admin overview<br/>[page.tsx]"]
  node_registrar_admin["Registrar management"]
  node_infirmary_admin["Infirmary management"]
  node_scholarship_admin["Scholarship management"]
  node_lsc_admin["LSC management"]
  node_lsc_requests_admin["Print request decisions"]
  node_service_modal["Service editor modal"]
  node_announcements_admin["Announcement management<br/>[page.tsx]"]
  node_create_admin["Provision admin<br/>[route.ts]"]
end

subgraph group_shared["Shared services"]
  node_notifications["Notifications<br/>[page.tsx]"]
  node_unread["Unread notification count"]
  node_lsc_api["LSC data access<br/>[lscApi.ts]"]
  node_admin_lsc_api["Admin LSC data access<br/>[adminlscApi.ts]"]
  node_announcements_api["Announcement data access"]
  node_client["Supabase browser client<br/>[client.ts]"]
  node_server_client["Supabase server client<br/>[server.ts]"]
end

node_student_actor(("Student"))
node_admin_actor(("Office admin"))
node_super_actor(("Superadmin"))
node_supabase[("Supabase")]

node_student_actor -->|"registers"| node_registration
node_student_actor -->|"signs in"| node_login
node_registration -->|"creates account"| node_supabase
node_login -->|"authenticates"| node_supabase
node_profile -->|"uses"| node_client
node_profile -->|"loads profile"| node_supabase
node_student_actor -.->|"uses"| node_student_portal
node_student_portal -.->|"opens office"| node_registrar_student
node_student_portal -.->|"opens office"| node_infirmary_student
node_student_portal -.->|"opens office"| node_scholarship_student
node_student_portal -.->|"opens office"| node_lsc_student
node_lsc_student -->|"renders"| node_lsc_form
node_lsc_student -->|"renders"| node_lsc_service
node_lsc_service -->|"fetches services"| node_lsc_api
node_registrar_student -.->|"submits requests"| node_supabase
node_infirmary_student -.->|"books appointments"| node_supabase
node_scholarship_student -.->|"submits applications"| node_supabase
node_lsc_form -.->|"submits print jobs"| node_supabase
node_student_portal -.->|"reads notices"| node_announcements_student
node_student_portal -.->|"views documents"| node_student_documents
node_student_portal -.->|"tracks requests"| node_student_requests
node_student_portal -.->|"views schedules"| node_student_schedules
node_student_portal -.->|"checks alerts"| node_notifications
node_unread -->|"uses"| node_client
node_unread -->|"counts and subscribes"| node_supabase
node_admin_actor -.->|"reviews work"| node_admin_home
node_super_actor -.->|"reviews overview"| node_admin_home
node_admin_home -->|"loads summaries"| node_registrar_admin
node_admin_home -->|"loads summaries"| node_infirmary_admin
node_admin_home -->|"loads summaries"| node_scholarship_admin
node_admin_home -->|"loads summaries"| node_lsc_admin
node_admin_actor -.->|"processes requests"| node_registrar_admin
node_admin_actor -.->|"manages appointments"| node_infirmary_admin
node_admin_actor -.->|"reviews applications"| node_scholarship_admin
node_admin_actor -.->|"processes print jobs"| node_lsc_admin
node_lsc_admin -.->|"routes requests"| node_lsc_requests_admin
node_lsc_requests_admin -->|"loads and decides"| node_admin_lsc_api
node_admin_lsc_api -->|"uses"| node_client
node_admin_lsc_api -.->|"reads and updates"| node_supabase
node_lsc_admin -.->|"configures services"| node_service_modal
node_admin_actor -.->|"manages notices"| node_announcements_admin
node_announcements_admin -->|"queries and edits"| node_announcements_api
node_announcements_api -->|"uses"| node_client
node_announcements_api -.->|"reads and writes"| node_supabase
node_super_actor -->|"provisions staff"| node_create_admin
node_create_admin -->|"authenticates caller"| node_server_client
node_create_admin -->|"creates user and profile"| node_supabase
node_client -->|"connects"| node_supabase

click node_login "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(auth)/login/page.tsx"
click node_registration "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(auth)/registration/page.tsx"
click node_profile "https://github.com/arcilla-dev/meneses-one-stop/blob/main/contexts/UserProfileContext.tsx"
click node_student_portal "https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/student"
click node_registrar_student "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/offices/registrar/page.tsx"
click node_infirmary_student "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/offices/infirmary/page.tsx"
click node_scholarship_student "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/offices/scholarship/page.tsx"
click node_lsc_student "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/offices/localstudentcouncil/page.tsx"
click node_lsc_form "https://github.com/arcilla-dev/meneses-one-stop/blob/main/components/student/lsc-comp/PrintRequestForm.tsx"
click node_lsc_service "https://github.com/arcilla-dev/meneses-one-stop/blob/main/components/student/lsc-comp/FeaturedService.tsx"
click node_announcements_student "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/announcements/page.tsx"
click node_student_documents "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/documents/page.tsx"
click node_student_requests "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/requests/page.tsx"
click node_student_schedules "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/schedules/page.tsx"
click node_notifications "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/notifications/page.tsx"
click node_unread "https://github.com/arcilla-dev/meneses-one-stop/blob/main/hooks/useUnreadNotifications.ts"
click node_admin_home "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/admin/page.tsx"
click node_registrar_admin "https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/admin/registrar"
click node_infirmary_admin "https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/admin/infirmary"
click node_scholarship_admin "https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/admin/scholarship"
click node_lsc_admin "https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/admin/lsc"
click node_lsc_requests_admin "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/admin/lsc/lsc-service-requests/ServiceRequestsContent.tsx"
click node_service_modal "https://github.com/arcilla-dev/meneses-one-stop/blob/main/components/admin/lsc/modals/ServiceFormModal.tsx"
click node_announcements_admin "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/admin/announcements/page.tsx"
click node_create_admin "https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/api/admin/create-admin/route.ts"
click node_lsc_api "https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/lscApi.ts"
click node_admin_lsc_api "https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/adminlscApi.ts"
click node_announcements_api "https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/announcementsApi.ts"
click node_client "https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/client.ts"
click node_server_client "https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/server.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_login,node_registration,node_profile toneBlue
class node_student_portal,node_registrar_student,node_infirmary_student,node_scholarship_student,node_lsc_student,node_lsc_form,node_lsc_service,node_announcements_student,node_student_documents,node_student_requests,node_student_schedules,node_supabase toneAmber
class node_admin_home,node_registrar_admin,node_infirmary_admin,node_scholarship_admin,node_lsc_admin,node_lsc_requests_admin,node_service_modal,node_announcements_admin,node_create_admin toneMint
class node_notifications,node_unread,node_lsc_api,node_admin_lsc_api,node_announcements_api,node_client,node_server_client toneRose
class node_student_actor,node_admin_actor,node_super_actor toneIndigo
```

## Components

### Access & shell

- [Sign in](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(auth)/login/page.tsx): `app/(auth)/login/page.tsx`
- [Student registration](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(auth)/registration/page.tsx): `app/(auth)/registration/page.tsx`
- [User profile context](https://github.com/arcilla-dev/meneses-one-stop/blob/main/contexts/UserProfileContext.tsx): `contexts/UserProfileContext.tsx`

### Student services

- [Student portal](https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/student): `app/(dashboard)/student`
- [Registrar requests](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/offices/registrar/page.tsx): `app/(dashboard)/student/offices/registrar/page.tsx`
- [Clinic appointments](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/offices/infirmary/page.tsx): `app/(dashboard)/student/offices/infirmary/page.tsx`
- [Scholarship applications](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/offices/scholarship/page.tsx): `app/(dashboard)/student/offices/scholarship/page.tsx`
- [Print requests](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/offices/localstudentcouncil/page.tsx): `app/(dashboard)/student/offices/localstudentcouncil/page.tsx`
- [Print request form](https://github.com/arcilla-dev/meneses-one-stop/blob/main/components/student/lsc-comp/PrintRequestForm.tsx): `components/student/lsc-comp/PrintRequestForm.tsx`
- [Featured services](https://github.com/arcilla-dev/meneses-one-stop/blob/main/components/student/lsc-comp/FeaturedService.tsx): `components/student/lsc-comp/FeaturedService.tsx`
- [Campus announcements](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/announcements/page.tsx): `app/(dashboard)/student/announcements/page.tsx`
- [Student documents](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/documents/page.tsx): `app/(dashboard)/student/documents/page.tsx`
- [Request tracking](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/requests/page.tsx): `app/(dashboard)/student/requests/page.tsx`
- [Schedules](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/schedules/page.tsx): `app/(dashboard)/student/schedules/page.tsx`

### Administration

- [Admin overview](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/admin/page.tsx): `app/(dashboard)/admin/page.tsx`
- [Registrar management](https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/admin/registrar): `app/(dashboard)/admin/registrar`
- [Infirmary management](https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/admin/infirmary): `app/(dashboard)/admin/infirmary`
- [Scholarship management](https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/admin/scholarship): `app/(dashboard)/admin/scholarship`
- [LSC management](https://github.com/arcilla-dev/meneses-one-stop/tree/main/app/(dashboard)/admin/lsc): `app/(dashboard)/admin/lsc`
- [Print request decisions](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/admin/lsc/lsc-service-requests/ServiceRequestsContent.tsx): `app/(dashboard)/admin/lsc/lsc-service-requests/ServiceRequestsContent.tsx`
- [Service editor modal](https://github.com/arcilla-dev/meneses-one-stop/blob/main/components/admin/lsc/modals/ServiceFormModal.tsx): `components/admin/lsc/modals/ServiceFormModal.tsx`
- [Announcement management](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/admin/announcements/page.tsx): `app/(dashboard)/admin/announcements/page.tsx`
- [Provision admin](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/api/admin/create-admin/route.ts): `app/api/admin/create-admin/route.ts`

### Shared services

- [Notifications](https://github.com/arcilla-dev/meneses-one-stop/blob/main/app/(dashboard)/student/notifications/page.tsx): `app/(dashboard)/student/notifications/page.tsx`
- [Unread notification count](https://github.com/arcilla-dev/meneses-one-stop/blob/main/hooks/useUnreadNotifications.ts): `hooks/useUnreadNotifications.ts`
- [LSC data access](https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/lscApi.ts): `lib/lscApi.ts`
- [Admin LSC data access](https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/adminlscApi.ts): `lib/adminlscApi.ts`
- [Announcement data access](https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/announcementsApi.ts): `lib/announcementsApi.ts`
- [Supabase browser client](https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/client.ts): `lib/client.ts`
- [Supabase server client](https://github.com/arcilla-dev/meneses-one-stop/blob/main/lib/server.ts): `lib/server.ts`

### Other components

- **Student**
- **Office admin**
- **Superadmin**
- **Supabase**

## Connections

- Student → Student registration: registers (evidence: `app/(auth)/registration/page.tsx`)
- Student → Sign in: signs in (evidence: `app/(auth)/login/page.tsx`)
- Student registration → Supabase: creates account (evidence: `app/(auth)/registration/page.tsx`)
- Sign in → Supabase: authenticates (evidence: `app/(auth)/login/page.tsx`)
- User profile context → Supabase browser client: uses (evidence: `contexts/UserProfileContext.tsx`)
- User profile context → Supabase: loads profile (evidence: `contexts/UserProfileContext.tsx`)
- Student → Student portal: uses
- Student portal → Registrar requests: opens office
- Student portal → Clinic appointments: opens office
- Student portal → Scholarship applications: opens office
- Student portal → Print requests: opens office
- Print requests → Print request form: renders
- Print requests → Featured services: renders
- Featured services → LSC data access: fetches services (evidence: `components/student/lsc-comp/FeaturedService.tsx`)
- Registrar requests → Supabase: submits requests (evidence: `README.md`)
- Clinic appointments → Supabase: books appointments (evidence: `README.md`)
- Scholarship applications → Supabase: submits applications (evidence: `README.md`)
- Print request form → Supabase: submits print jobs (evidence: `README.md`)
- Student portal → Campus announcements: reads notices
- Student portal → Student documents: views documents
- Student portal → Request tracking: tracks requests
- Student portal → Schedules: views schedules
- Student portal → Notifications: checks alerts
- Unread notification count → Supabase browser client: uses (evidence: `hooks/useUnreadNotifications.ts`)
- Unread notification count → Supabase: counts and subscribes (evidence: `hooks/useUnreadNotifications.ts`)
- Office admin → Admin overview: reviews work
- Superadmin → Admin overview: reviews overview (evidence: `README.md`)
- Admin overview → Registrar management: loads summaries (evidence: `app/(dashboard)/admin/page.tsx`)
- Admin overview → Infirmary management: loads summaries (evidence: `app/(dashboard)/admin/page.tsx`)
- Admin overview → Scholarship management: loads summaries (evidence: `app/(dashboard)/admin/page.tsx`)
- Admin overview → LSC management: loads summaries (evidence: `app/(dashboard)/admin/page.tsx`)
- Office admin → Registrar management: processes requests (evidence: `README.md`)
- Office admin → Infirmary management: manages appointments (evidence: `README.md`)
- Office admin → Scholarship management: reviews applications (evidence: `README.md`)
- Office admin → LSC management: processes print jobs (evidence: `README.md`)
- LSC management → Print request decisions: routes requests
- Print request decisions → Admin LSC data access: loads and decides (evidence: `app/(dashboard)/admin/lsc/lsc-service-requests/ServiceRequestsContent.tsx`)
- Admin LSC data access → Supabase browser client: uses (evidence: `lib/adminlscApi.ts`)
- Admin LSC data access → Supabase: reads and updates
- LSC management → Service editor modal: configures services (evidence: `app/(dashboard)/admin/lsc/lsc-services/LscServicesContent.tsx`)
- Office admin → Announcement management: manages notices (evidence: `README.md`)
- Announcement management → Announcement data access: queries and edits (evidence: `app/(dashboard)/admin/announcements/page.tsx`)
- Announcement data access → Supabase browser client: uses (evidence: `lib/announcementsApi.ts`)
- Announcement data access → Supabase: reads and writes
- Superadmin → Provision admin: provisions staff (evidence: `README.md`)
- Provision admin → Supabase server client: authenticates caller (evidence: `app/api/admin/create-admin/route.ts`)
- Provision admin → Supabase: creates user and profile (evidence: `app/api/admin/create-admin/route.ts`)
- Supabase browser client → Supabase: connects (evidence: `lib/client.ts`)
