# luisv-25/educonecta_frontend architecture

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

- Interactive diagram: https://gitdiagram.com/luisv-25/educonecta_frontend
- Repository: https://github.com/luisv-25/educonecta_frontend

## Overview

EduConecta is a role-based education marketplace frontend. Students discover subjects and tutors, book and manage sessions, pay, and follow progress; tutors maintain profiles and availability, handle requests, and share materials; administrators manage verification, accounts, payments, and analytics. The AppShell dispatches role-specific tabs, while shared authentication and API layers support the interface. The README documents gateway routing and major capabilities; links between unsampled screens and their services are omitted where source evidence was unavailable.

Main entry points: [`educonecta-frontend/components/AppShell.tsx`](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/AppShell.tsx) (Role dashboard), [`educonecta-frontend/lib/api.ts`](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/lib/api.ts) (Gateway API client), [`educonecta-frontend/components/tabs/ReservasTab.tsx`](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/ReservasTab.tsx) (Booking management), [`educonecta-frontend/components/tabs/MateriasTab.tsx`](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/MateriasTab.tsx) (Subject catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Role experience"]
  node_shell["Role dashboard<br/>[AppShell.tsx]"]
  node_authscreen["Sign-in screen<br/>[AuthScreen.tsx]"]
end

subgraph group_learning["Learning marketplace"]
  node_subjects["Subject catalog<br/>[MateriasTab.tsx]"]
  node_tutors["Tutor directory<br/>[TutoresTab.tsx]"]
  node_bookings["Booking management<br/>[ReservasTab.tsx]"]
  node_bookingmodal["Booking dialog<br/>[BookingModal.tsx]"]
  node_requests["Tutor requests<br/>[SolicitudesTab.tsx]"]
  node_profile["Tutor profile<br/>[PerfilTab.tsx]"]
  node_students["Tutor students<br/>[EstudiantesTab.tsx]"]
  node_materials["Session materials<br/>[MaterialsPanel.tsx]"]
  node_session["Session actions<br/>[SessionActions.tsx]"]
  node_rating["Session ratings<br/>[RatingModal.tsx]"]
  node_progress["Student progress<br/>[ProgresoTab.tsx]"]
end

subgraph group_operations["Platform operations"]
  node_payments["Payments and payouts<br/>[PagosTab.tsx]"]
  node_paypal["PayPal checkout<br/>[PayPalCheckout.tsx]"]
  node_verification["Credential verification"]
  node_analytics["Platform analytics<br/>[AnaliticaTab.tsx]"]
  node_notifications["Notifications"]
  node_paymenttab["Payment overview<br/>[PagosTab.tsx]"]
end

subgraph group_foundation["Shared foundation"]
  node_root["Next app layout<br/>[layout.tsx]"]
  node_apiclient["Gateway API client<br/>[api.ts]"]
  node_config["Service configuration<br/>[config.ts]"]
  node_auth["Session and roles<br/>[auth-context.tsx]"]
  node_availability["Availability conversion<br/>[availability.ts]"]
end

node_user(("EduConecta users"))
node_gateway{{"API Gateway"}}

node_user -.->|"signs in"| node_authscreen
node_user -.->|"uses dashboard"| node_shell
node_root -->|"provides"| node_auth
node_root -.->|"renders"| node_shell
node_shell -->|"renders"| node_subjects
node_shell -->|"renders"| node_tutors
node_shell -->|"renders"| node_students
node_shell -->|"renders"| node_bookings
node_shell -->|"renders"| node_requests
node_shell -->|"renders"| node_profile
node_shell -->|"renders"| node_verification
node_shell -->|"renders"| node_paymenttab
node_shell -->|"renders"| node_progress
node_shell -->|"renders"| node_notifications
node_shell -->|"renders"| node_analytics
node_auth -->|"loads tutor profile"| node_apiclient
node_profile -->|"loads and saves"| node_availability
node_availability -->|"reads and writes"| node_apiclient
node_subjects -->|"requests catalog"| node_apiclient
node_tutors -->|"requests directory"| node_apiclient
node_bookings -->|"requests bookings"| node_apiclient
node_paymenttab -->|"requests payments"| node_apiclient
node_apiclient -->|"uses endpoints"| node_config
node_apiclient -->|"sends requests"| node_gateway
node_bookings -->|"shows materials"| node_materials
node_bookings -->|"offers session actions"| node_session
node_bookings -.->|"opens rating"| node_rating
node_subjects -.->|"starts booking"| node_bookingmodal
node_paymenttab -.->|"offers checkout"| node_paypal

click node_root "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/app/layout.tsx"
click node_shell "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/AppShell.tsx"
click node_authscreen "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/AuthScreen.tsx"
click node_subjects "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/MateriasTab.tsx"
click node_tutors "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/TutoresTab.tsx"
click node_bookings "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/ReservasTab.tsx"
click node_bookingmodal "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/modals/BookingModal.tsx"
click node_requests "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/SolicitudesTab.tsx"
click node_profile "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/PerfilTab.tsx"
click node_students "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/EstudiantesTab.tsx"
click node_materials "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/MaterialsPanel.tsx"
click node_session "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/SessionActions.tsx"
click node_rating "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/modals/RatingModal.tsx"
click node_progress "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/ProgresoTab.tsx"
click node_payments "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/PagosTab.tsx"
click node_paypal "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/PayPalCheckout.tsx"
click node_verification "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/VerificacionesTab.tsx"
click node_analytics "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/AnaliticaTab.tsx"
click node_notifications "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/NotificacionesTab.tsx"
click node_paymenttab "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/PagosTab.tsx"
click node_apiclient "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/lib/api.ts"
click node_config "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/lib/config.ts"
click node_auth "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/lib/auth-context.tsx"
click node_availability "https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/lib/availability.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_shell,node_authscreen,node_user toneBlue
class node_subjects,node_tutors,node_bookings,node_bookingmodal,node_requests,node_profile,node_students,node_materials,node_session,node_rating,node_progress toneAmber
class node_payments,node_paypal,node_verification,node_analytics,node_notifications,node_paymenttab,node_gateway toneMint
class node_root,node_apiclient,node_config,node_auth,node_availability toneRose
```

## Components

### Role experience

- [Role dashboard](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/AppShell.tsx): `educonecta-frontend/components/AppShell.tsx`
- [Sign-in screen](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/AuthScreen.tsx): `educonecta-frontend/components/AuthScreen.tsx`

### Learning marketplace

- [Subject catalog](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/MateriasTab.tsx): `educonecta-frontend/components/tabs/MateriasTab.tsx`
- [Tutor directory](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/TutoresTab.tsx): `educonecta-frontend/components/tabs/TutoresTab.tsx`
- [Booking management](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/ReservasTab.tsx): `educonecta-frontend/components/tabs/ReservasTab.tsx`
- [Booking dialog](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/modals/BookingModal.tsx): `educonecta-frontend/components/modals/BookingModal.tsx`
- [Tutor requests](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/SolicitudesTab.tsx): `educonecta-frontend/components/tabs/SolicitudesTab.tsx`
- [Tutor profile](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/PerfilTab.tsx): `educonecta-frontend/components/tabs/PerfilTab.tsx`
- [Tutor students](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/EstudiantesTab.tsx): `educonecta-frontend/components/tabs/EstudiantesTab.tsx`
- [Session materials](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/MaterialsPanel.tsx): `educonecta-frontend/components/MaterialsPanel.tsx`
- [Session actions](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/SessionActions.tsx): `educonecta-frontend/components/SessionActions.tsx`
- [Session ratings](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/modals/RatingModal.tsx): `educonecta-frontend/components/modals/RatingModal.tsx`
- [Student progress](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/ProgresoTab.tsx): `educonecta-frontend/components/tabs/ProgresoTab.tsx`

### Platform operations

- [Payments and payouts](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/PagosTab.tsx): `educonecta-frontend/components/tabs/PagosTab.tsx`
- [PayPal checkout](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/PayPalCheckout.tsx): `educonecta-frontend/components/PayPalCheckout.tsx`
- [Credential verification](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/VerificacionesTab.tsx): `educonecta-frontend/components/tabs/VerificacionesTab.tsx`
- [Platform analytics](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/AnaliticaTab.tsx): `educonecta-frontend/components/tabs/AnaliticaTab.tsx`
- [Notifications](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/NotificacionesTab.tsx): `educonecta-frontend/components/tabs/NotificacionesTab.tsx`
- [Payment overview](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/components/tabs/PagosTab.tsx): `educonecta-frontend/components/tabs/PagosTab.tsx`

### Shared foundation

- [Next app layout](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/app/layout.tsx): `educonecta-frontend/app/layout.tsx`
- [Gateway API client](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/lib/api.ts): `educonecta-frontend/lib/api.ts`
- [Service configuration](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/lib/config.ts): `educonecta-frontend/lib/config.ts`
- [Session and roles](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/lib/auth-context.tsx): `educonecta-frontend/lib/auth-context.tsx`
- [Availability conversion](https://github.com/luisv-25/educonecta_frontend/blob/main/educonecta-frontend/lib/availability.ts): `educonecta-frontend/lib/availability.ts`

### Other components

- **EduConecta users**
- **API Gateway**

## Connections

- EduConecta users → Sign-in screen: signs in
- EduConecta users → Role dashboard: uses dashboard
- Next app layout → Session and roles: provides (evidence: `educonecta-frontend/app/layout.tsx`)
- Next app layout → Role dashboard: renders
- Role dashboard → Subject catalog: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Role dashboard → Tutor directory: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Role dashboard → Tutor students: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Role dashboard → Booking management: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Role dashboard → Tutor requests: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Role dashboard → Tutor profile: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Role dashboard → Credential verification: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Role dashboard → Payment overview: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Role dashboard → Student progress: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Role dashboard → Notifications: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Role dashboard → Platform analytics: renders (evidence: `educonecta-frontend/components/AppShell.tsx`)
- Session and roles → Gateway API client: loads tutor profile (evidence: `educonecta-frontend/lib/auth-context.tsx`)
- Tutor profile → Availability conversion: loads and saves (evidence: `educonecta-frontend/components/tabs/PerfilTab.tsx`)
- Availability conversion → Gateway API client: reads and writes (evidence: `educonecta-frontend/lib/availability.ts`)
- Subject catalog → Gateway API client: requests catalog (evidence: `educonecta-frontend/components/tabs/MateriasTab.tsx`)
- Tutor directory → Gateway API client: requests directory (evidence: `educonecta-frontend/components/tabs/TutoresTab.tsx`)
- Booking management → Gateway API client: requests bookings (evidence: `educonecta-frontend/components/tabs/ReservasTab.tsx`)
- Payment overview → Gateway API client: requests payments (evidence: `educonecta-frontend/components/tabs/PagosTab.tsx`)
- Gateway API client → Service configuration: uses endpoints (evidence: `educonecta-frontend/lib/api.ts`)
- Gateway API client → API Gateway: sends requests (evidence: `README.md`)
- Booking management → Session materials: shows materials (evidence: `educonecta-frontend/components/tabs/ReservasTab.tsx`)
- Booking management → Session actions: offers session actions (evidence: `educonecta-frontend/components/tabs/ReservasTab.tsx`)
- Booking management → Session ratings: opens rating
- Subject catalog → Booking dialog: starts booking
- Payment overview → PayPal checkout: offers checkout
