# berchnard10/usi_nexus architecture

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

- Interactive diagram: https://gitdiagram.com/berchnard10/usi_nexus
- Repository: https://github.com/berchnard10/usi_nexus

## Overview

1. **What this repository is**
   - This repo is the **frontend client** for UTHH_PRY, built as a **React + Vite** application.
   - The README describes a broader 3-tier system with **PHP backend + MySQL**, but those server-side pieces are **not present here**. In this repo, the app consumes backend/API services through client-side request helpers.

2. **Application entry and shell**
   - The runtime starts in `src/main.jsx` and mounts `src/App.jsx`.
   - `App.jsx` is the top-level composition point for routes, global providers, and app-wide UI behavior.
   - Global styling is split across `src/index.css`, `src/App.css`, Tailwind config, and PostCSS config.

3. **Navigation and layout layer**
   - Shared UI chrome lives in `src/assets/components/`:
     - `Layout.jsx`, `NavigationBar.jsx`, `SideNavBar.jsx`, `FooterSection.jsx`, `Breadcrumb.jsx`
   - These components form the persistent frame around the page content, especially for the authenticated areas.
   - `src/assets/components/Clases/Iterador.jsx` and `Components.jsx` suggest small reusable UI helpers.

4. **Route-level feature areas**
   - The app is organized primarily by **role and domain**:
     - `src/assets/pages/PaginasAlumnos/` for student flows
     - `src/assets/pages/PaginasDocentes/` for teacher flows
     - standalone auth and utility pages like `LoginPage.jsx`, `RegisterPage.jsx`, `ResetPassword.jsx`, `ProfileUser.jsx`, `HomePage.jsx`, `Error404.jsx`
   - This suggests route grouping rather than a single monolithic page tree.

5. **Core domain model visible in the UI**
   - The main business capabilities are classroom-management oriented:
     - subjects/materias
     - students/alumnos
     - activities/tasks
     - practices/detailed assignments
     - grades and grade summaries
     - career/department/group/period administration
   - Teacher-side pages are richer and appear to own most CRUD and grading workflows; student-side pages are mostly read/participation views.

6. **Data access and backend boundary**
   - Client-server interaction is centralized under `src/assets/server/`:
     - `serverRequests.jsx` likely wraps API calls
     - `authUser.jsx` handles identity/session/user lookup
     - `ProtectedRoute.jsx` enforces authenticated or role-based navigation
   - `src/CrudTable.jsx` indicates shared table-based CRUD UI used across admin/teacher screens.
   - The backend is an external dependency from the frontend’s perspective; the UI assumes authenticated API responses and role-based access.

7. **Authentication and authorization**
   - Auth is a distinct subsystem, not embedded in individual pages.
   - Login/register/reset-password screens are separate from protected app content.
   - `ProtectedRoute.jsx` is the key boundary between public auth pages and the internal application shell.
   - `authUser.jsx` likely hydrates the current user state used for routing and permissions.

8. **Notifications subsystem**
   - Notification support is a dedicated feature area:
     - `src/NotificationHandler.jsx`
     - `src/assets/pages/notificaciones/firebase.jsx`
     - `src/assets/pages/Notificaciones.jsx`
   - The presence of `public/firebase-messaging-sw.js` strongly indicates **Firebase Cloud Messaging** for push notifications.
   - Notifications are handled across both app code and service-worker code, meaning some updates can arrive even when the page is not active.

9. **PWA and offline layer**
   - This repo is explicitly set up as a **PWA**:
     - `public/manifest.webmanifest`
     - `public/sw.js`
     - `src/serviceWorker.js`
     - `src/PWA.jsx`
   - This layer handles installability and offline behavior, and likely caches assets and selected app content.
   - The service worker boundary is important because it sits outside React and mediates network/offline behavior.

10. **Static assets and downloadable templates**
   - `public/` contains several Excel templates:
     - `Formato-FDA05.xlsx`
     - `Formato-Lista-Alumnos.xlsx`
     - `Formato-de-Rubricas.xlsx`
   - These are likely downloadable resources tied to academic workflows and import/export conventions.
   - `puta.sql` is a repository-level SQL artifact, probably for schema/reference or local setup, but not part of the runtime frontend.

11. **Testing and quality gates**
   - Unit/integration testing is present via **Jest**:
     - `jest.config.js`, `jest.setup.js`, `src/setupTests.js`
     - tests such as `LoginPage.test.js` and `MateriasAlumno.test.js`
   - End-to-end testing uses **Cypress**:
     - `cypress/e2e/login.spec.js`, `materias.spec.js`
   - `coverage/` artifacts show the app is instrumented for coverage reporting.

12. **Build, deployment, and environment**
   - The project uses **Vite** for dev/build and Babel configuration for React transforms.
   - Deployment/config files indicate multiple targets or environments:
     - `netlify.toml`, `vercel.json`, GitHub Actions workflows, `env-cmdrc.json`
   - This suggests CI/CD-driven frontend deployment, with environment-specific configuration outside the app code.

13. **Legacy/alternate code paths**
   - The `src/assets/pages/papelera/` tree looks like a “trash” or legacy area containing older/experimental versions of pages.
   - For architecture diagrams, treat this as **non-primary/legacy UI code** unless proven otherwise; the active structure is the non-`papelera` pages plus shared components/server helpers.

14. **How the pieces fit together**
   - User enters through the React shell, authenticates on public pages, then transitions into protected role-based routes.
   - Protected pages render shared layout components, fetch data through the server helper layer, and display domain-specific management screens.
   - Notifications and PWA features operate horizontally across the app through service workers and Firebase messaging, not as isolated pages.

Main entry points: [`src/App.jsx`](https://github.com/berchnard10/usi_nexus/blob/master/src/App.jsx) (App), [`src/assets/pages/PaginasDocentes/Teachers.jsx`](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/Teachers.jsx) (Teachers), [`src/assets/components/Layout.jsx`](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/Layout.jsx) (Layout), [`src/NotificationHandler.jsx`](https://github.com/berchnard10/usi_nexus/blob/master/src/NotificationHandler.jsx) (Notif handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_grp_shell["App shell"]
  node_n_main["main<br/>React entry<br/>[main.jsx]"]
  node_n_app["App<br/>Router shell<br/>[App.jsx]"]
  node_n_global_css["Global CSS<br/>Styles<br/>[index.css]"]
  node_n_app_css["App CSS<br/>Styles<br/>[App.css]"]
  node_n_home["Home<br/>Landing page<br/>[HomePage.jsx]"]
end

subgraph group_grp_ui["Shared UI"]
  node_n_layout["Layout<br/>Page frame<br/>[Layout.jsx]"]
  node_n_nav["Nav bar<br/>Chrome<br/>[NavigationBar.jsx]"]
  node_n_side["Side nav<br/>Chrome<br/>[SideNavBar.jsx]"]
  node_n_footer["Footer<br/>Chrome<br/>[FooterSection.jsx]"]
  node_n_breadcrumb["Breadcrumb<br/>Navigation aid<br/>[Breadcrumb.jsx]"]
  node_n_iterador["Iterador<br/>UI helper<br/>[Iterador.jsx]"]
  node_n_components["Components<br/>UI helpers<br/>[Components.jsx]"]
end

subgraph group_grp_auth["Auth boundary"]
  node_n_protected{{"Protected route<br/>Route guard<br/>[ProtectedRoute.jsx]"}}
  node_n_auth_user["Auth user<br/>Session helper<br/>[authUser.jsx]"]
  node_n_login["Login<br/>Public page<br/>[LoginPage.jsx]"]
  node_n_register["Register<br/>Public page<br/>[RegisterPage.jsx]"]
  node_n_reset["Reset password<br/>Public page<br/>[ResetPassword.jsx]"]
  node_n_profile["Profile<br/>User page<br/>[ProfileUser.jsx]"]
end

subgraph group_grp_student["Student flows"]
  node_n_student["Students<br/>Student module<br/>[MateriasAlumno.jsx]"]
  node_n_student_tasks["Student activities<br/>Student view"]
  node_n_student_detail["Student detail<br/>Student view"]
end

subgraph group_grp_teacher["Teacher flows"]
  node_n_teacher["Teachers<br/>Teacher module<br/>[Teachers.jsx]"]
  node_n_teacher_subjects["Teacher subjects<br/>Teacher view"]
  node_n_teacher_students["Students admin<br/>Teacher view<br/>[Alumnos.jsx]"]
  node_n_teacher_grading["Grading<br/>Teacher view"]
  node_n_teacher_admin["Admin data<br/>Teacher view<br/>[Carreras.jsx]"]
end

subgraph group_grp_cross["Cross-cutting"]
  node_n_notif_handler["Notif handler<br/>Cross-cutting"]
  node_n_notif_page["Notifications<br/>Feature page<br/>[Notificaciones.jsx]"]
  node_n_firebase["Firebase messaging<br/>Push setup<br/>[firebase.jsx]"]
  node_n_pwa{{"PWA<br/>Offline layer<br/>[PWA.jsx]"}}
  node_n_sw["Service worker<br/>Offline runtime<br/>[serviceWorker.js]"]
  node_n_public_sw["SW asset<br/>Worker asset<br/>[sw.js]"]
end

subgraph group_grp_api["Data access"]
  node_n_crud[("CRUD table<br/>Shared table<br/>[CrudTable.jsx]")]
  node_n_requests{{"API requests<br/>Client API<br/>[serverRequests.jsx]"}}
end

node_n_main -->|"mounts"| node_n_app
node_n_app -->|"guards routes"| node_n_protected
node_n_app -->|"public auth"| node_n_login
node_n_app -->|"public auth"| node_n_register
node_n_app -->|"public auth"| node_n_reset
node_n_app -->|"landing"| node_n_home
node_n_app -->|"account"| node_n_profile
node_n_app -->|"shell"| node_n_layout
node_n_layout -->|"contains"| node_n_nav
node_n_layout -->|"contains"| node_n_side
node_n_layout -->|"contains"| node_n_footer
node_n_layout -->|"contains"| node_n_breadcrumb
node_n_layout -->|"uses"| node_n_components
node_n_components -->|"includes"| node_n_iterador
node_n_protected -->|"hydrates"| node_n_auth_user
node_n_protected -->|"depends on"| node_n_requests
node_n_student -->|"navigates to"| node_n_student_tasks
node_n_student -->|"navigates to"| node_n_student_detail
node_n_student -->|"fetches"| node_n_requests
node_n_teacher -->|"navigates to"| node_n_teacher_subjects
node_n_teacher -->|"navigates to"| node_n_teacher_students
node_n_teacher -->|"navigates to"| node_n_teacher_grading
node_n_teacher -->|"navigates to"| node_n_teacher_admin
node_n_teacher -->|"uses"| node_n_crud
node_n_teacher -->|"fetches"| node_n_requests
node_n_notif_handler -->|"shows"| node_n_notif_page
node_n_notif_handler -->|"uses"| node_n_firebase
node_n_notif_handler -->|"delivers via"| node_n_public_sw
node_n_pwa -->|"registers"| node_n_sw
node_n_sw -->|"loads"| node_n_public_sw
node_n_pwa -->|"uses"| node_n_public_sw
node_n_app -->|"integrates"| node_n_notif_handler
node_n_app -->|"integrates"| node_n_pwa
node_n_app -->|"styles"| node_n_global_css
node_n_app -->|"styles"| node_n_app_css

click node_n_main "https://github.com/berchnard10/usi_nexus/blob/master/src/main.jsx"
click node_n_app "https://github.com/berchnard10/usi_nexus/blob/master/src/App.jsx"
click node_n_global_css "https://github.com/berchnard10/usi_nexus/blob/master/src/index.css"
click node_n_app_css "https://github.com/berchnard10/usi_nexus/blob/master/src/App.css"
click node_n_layout "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/Layout.jsx"
click node_n_nav "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/NavigationBar.jsx"
click node_n_side "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/SideNavBar.jsx"
click node_n_footer "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/FooterSection.jsx"
click node_n_breadcrumb "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/Breadcrumb.jsx"
click node_n_iterador "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/Clases/Iterador.jsx"
click node_n_components "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/Components.jsx"
click node_n_protected "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/server/ProtectedRoute.jsx"
click node_n_auth_user "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/server/authUser.jsx"
click node_n_login "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/LoginPage.jsx"
click node_n_register "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/RegisterPage.jsx"
click node_n_reset "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/ResetPassword.jsx"
click node_n_home "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/HomePage.jsx"
click node_n_profile "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/ProfileUser.jsx"
click node_n_student "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasAlumnos/MateriasAlumno.jsx"
click node_n_student_tasks "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasAlumnos/ActividadesAlumno.jsx"
click node_n_student_detail "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasAlumnos/DetalleActividadAlumno.jsx"
click node_n_teacher "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/Teachers.jsx"
click node_n_teacher_subjects "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/MateriasDocente.jsx"
click node_n_teacher_students "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/Alumnos.jsx"
click node_n_teacher_grading "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/DetallePracticaDocente.jsx"
click node_n_teacher_admin "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/Carreras.jsx"
click node_n_crud "https://github.com/berchnard10/usi_nexus/blob/master/src/CrudTable.jsx"
click node_n_requests "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/server/serverRequests.jsx"
click node_n_notif_handler "https://github.com/berchnard10/usi_nexus/blob/master/src/NotificationHandler.jsx"
click node_n_notif_page "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/Notificaciones.jsx"
click node_n_firebase "https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/notificaciones/firebase.jsx"
click node_n_pwa "https://github.com/berchnard10/usi_nexus/blob/master/src/PWA.jsx"
click node_n_sw "https://github.com/berchnard10/usi_nexus/blob/master/src/serviceWorker.js"
click node_n_public_sw "https://github.com/berchnard10/usi_nexus/blob/master/public/sw.js"

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_n_main,node_n_app,node_n_global_css,node_n_app_css,node_n_home,node_n_crud,node_n_requests toneBlue
class node_n_layout,node_n_nav,node_n_side,node_n_footer,node_n_breadcrumb,node_n_iterador,node_n_components toneAmber
class node_n_protected,node_n_auth_user,node_n_login,node_n_register,node_n_reset,node_n_profile toneMint
class node_n_student,node_n_student_tasks,node_n_student_detail toneRose
class node_n_teacher,node_n_teacher_subjects,node_n_teacher_students,node_n_teacher_grading,node_n_teacher_admin toneIndigo
class node_n_notif_handler,node_n_notif_page,node_n_firebase,node_n_pwa,node_n_sw,node_n_public_sw toneTeal
```

## Components

### App shell

React entry, top-level composition, and routing boundary.

- [main](https://github.com/berchnard10/usi_nexus/blob/master/src/main.jsx): React entry · Bootstraps the Vite app and mounts the React tree. · `src/main.jsx`
- [App](https://github.com/berchnard10/usi_nexus/blob/master/src/App.jsx): Router shell · Top-level application composition and route wiring. · `src/App.jsx`
- [Global CSS](https://github.com/berchnard10/usi_nexus/blob/master/src/index.css): Styles · App-wide styling layer. · `src/index.css`
- [App CSS](https://github.com/berchnard10/usi_nexus/blob/master/src/App.css): Styles · Component- and shell-level styles. · `src/App.css`
- [Home](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/HomePage.jsx): Landing page · Public or post-login landing page. · `src/assets/pages/HomePage.jsx`

### Shared UI

Reusable layout and chrome used across protected pages.

- [Layout](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/Layout.jsx): Page frame · Persistent authenticated page shell. · `src/assets/components/Layout.jsx`
- [Nav bar](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/NavigationBar.jsx): Chrome · Primary top navigation. · `src/assets/components/NavigationBar.jsx`
- [Side nav](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/SideNavBar.jsx): Chrome · Secondary navigation for internal areas. · `src/assets/components/SideNavBar.jsx`
- [Footer](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/FooterSection.jsx): Chrome · Shared footer section. · `src/assets/components/FooterSection.jsx`
- [Breadcrumb](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/Breadcrumb.jsx): Navigation aid · Contextual page location display. · `src/assets/components/Breadcrumb.jsx`
- [Iterador](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/Clases/Iterador.jsx): UI helper · Reusable rendering/helper component. · `src/assets/components/Clases/Iterador.jsx`
- [Components](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/components/Components.jsx): UI helpers · Shared component bundle for common UI pieces. · `src/assets/components/Components.jsx`

### Auth boundary

Public authentication screens and route protection.

- [Protected route](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/server/ProtectedRoute.jsx): Route guard · Enforces authenticated or role-based access. · `src/assets/server/ProtectedRoute.jsx`
- [Auth user](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/server/authUser.jsx): Session helper · Loads current user identity and auth state. · `src/assets/server/authUser.jsx`
- [Login](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/LoginPage.jsx): Public page · Authentication entry screen. · `src/assets/pages/LoginPage.jsx`
- [Register](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/RegisterPage.jsx): Public page · Account creation screen. · `src/assets/pages/RegisterPage.jsx`
- [Reset password](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/ResetPassword.jsx): Public page · Password recovery flow. · `src/assets/pages/ResetPassword.jsx`
- [Profile](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/ProfileUser.jsx): User page · User profile and account view. · `src/assets/pages/ProfileUser.jsx`

### Student flows

Role-specific student pages.

- [Students](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasAlumnos/MateriasAlumno.jsx): Student module · Student-facing classroom and course flows. · `src/assets/pages/PaginasAlumnos/MateriasAlumno.jsx`
- [Student activities](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasAlumnos/ActividadesAlumno.jsx): Student view · Student activity listing and participation screens. · `src/assets/pages/PaginasAlumnos/ActividadesAlumno.jsx`
- [Student detail](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasAlumnos/DetalleActividadAlumno.jsx): Student view · Student activity and practice detail screens. · `src/assets/pages/PaginasAlumnos/DetalleActividadAlumno.jsx`

### Teacher flows

Role-specific teacher pages and management screens.

- [Teachers](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/Teachers.jsx): Teacher module · Teacher-facing classroom management hub. · `src/assets/pages/PaginasDocentes/Teachers.jsx`
- [Teacher subjects](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/MateriasDocente.jsx): Teacher view · Teacher course and subject management. · `src/assets/pages/PaginasDocentes/MateriasDocente.jsx`
- [Students admin](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/Alumnos.jsx): Teacher view · Student roster and admin workflows. · `src/assets/pages/PaginasDocentes/Alumnos.jsx`
- [Grading](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/DetallePracticaDocente.jsx): Teacher view · Grades, activities, and practice detail workflows. · `src/assets/pages/PaginasDocentes/DetallePracticaDocente.jsx`
- [Admin data](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/PaginasDocentes/Carreras.jsx): Teacher view · Career, department, group, and period administration. · `src/assets/pages/PaginasDocentes/Carreras.jsx`

### Cross-cutting

Notifications, PWA, and service-worker infrastructure.

- [Notif handler](https://github.com/berchnard10/usi_nexus/blob/master/src/NotificationHandler.jsx): Cross-cutting · App-level notification coordination. · `src/NotificationHandler.jsx`
- [Notifications](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/Notificaciones.jsx): Feature page · Notifications screen and inbox view. · `src/assets/pages/Notificaciones.jsx`
- [Firebase messaging](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/pages/notificaciones/firebase.jsx): Push setup · Firebase messaging initialization for notifications. · `src/assets/pages/notificaciones/firebase.jsx`
- [PWA](https://github.com/berchnard10/usi_nexus/blob/master/src/PWA.jsx): Offline layer · Installability and offline behavior integration. · `src/PWA.jsx`
- [Service worker](https://github.com/berchnard10/usi_nexus/blob/master/src/serviceWorker.js): Offline runtime · Registers and coordinates service worker behavior. · `src/serviceWorker.js`
- [SW asset](https://github.com/berchnard10/usi_nexus/blob/master/public/sw.js): Worker asset · Public service worker script. · `public/sw.js`

### Data access

Client-side API helpers and request/session coordination.

- [CRUD table](https://github.com/berchnard10/usi_nexus/blob/master/src/CrudTable.jsx): Shared table · Reusable table-based CRUD surface. · `src/CrudTable.jsx`
- [API requests](https://github.com/berchnard10/usi_nexus/blob/master/src/assets/server/serverRequests.jsx): Client API · Central request helper layer for backend calls. · `src/assets/server/serverRequests.jsx`

## Connections

- main → App: mounts · Entry point mounts the app shell.
- App → Protected route: guards routes · App routes are split through protected navigation.
- App → Login: public auth · Exposes login flow.
- App → Register: public auth · Exposes registration flow.
- App → Reset password: public auth · Exposes password reset flow.
- App → Home: landing · Routes into the home page.
- App → Profile: account · Routes into the user profile page.
- App → Layout: shell · Protected areas render inside the shared layout.
- Layout → Nav bar: contains · Layout includes the top navigation.
- Layout → Side nav: contains · Layout includes side navigation.
- Layout → Footer: contains · Layout includes the shared footer.
- Layout → Breadcrumb: contains · Layout includes breadcrumb navigation.
- Layout → Components: uses · Layout and pages share common UI helpers.
- Components → Iterador: includes · Shared helper component.
- Protected route → Auth user: hydrates · Guard relies on current user/session state.
- Protected route → API requests: depends on · Auth checks and data fetches rely on request helpers.
- Students → Student activities: navigates to · Student module leads into activity views.
- Students → Student detail: navigates to · Student module leads into detail screens.
- Students → API requests: fetches · Student pages consume backend data.
- Teachers → Teacher subjects: navigates to · Teacher hub leads to subject management.
- Teachers → Students admin: navigates to · Teacher hub leads to roster management.
- Teachers → Grading: navigates to · Teacher hub leads to grading workflows.
- Teachers → Admin data: navigates to · Teacher hub leads to admin workflows.
- Teachers → CRUD table: uses · Teacher/admin screens reuse the CRUD table.
- Teachers → API requests: fetches · Teacher pages consume backend data.
- Notif handler → Notifications: shows · Notification subsystem exposes a page view.
- Notif handler → Firebase messaging: uses · Notification handling is backed by Firebase messaging.
- Notif handler → SW asset: delivers via · Push notifications can arrive through the worker.
- PWA → Service worker: registers · PWA layer registers the service worker.
- Service worker → SW asset: loads · Service worker runtime is backed by the public worker script.
- PWA → SW asset: uses · Offline behavior depends on the worker asset.
- App → Notif handler: integrates · Notification handling is wired into the app shell.
- App → PWA: integrates · App shell includes PWA behavior.
- App → Global CSS: styles · App shell is styled by global CSS.
- App → App CSS: styles · App shell is styled by app-specific CSS.
