# danielgomezso/dsw4-2026-equipo02-edumentor-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend
- Repository: https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend

## Overview

EduMentor Hub is an Angular frontend for tutoring discovery and session management, with login/registration and role-based views. Users enter through routed screens; authentication is held client-side and the feature service provides tutoring data and actions through either a demo implementation or HTTP requests to the backend. The README documents auth and role-specific views; sampled service code also shows subject, availability, session, resource, and evaluation operations. Some feature wiring is supported only by the SOURCE INDEX, so unsampled page-to-service links are omitted; the API’s external backend relationship is documented and visible in the service excerpt.

Main entry points: [`src/app/app.routes.ts`](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/app.routes.ts) (Route dispatch), [`src/app/shared/hub/page.ts`](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/shared/hub/page.ts) (Page behavior), [`src/app/core/services/auth.service.ts`](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/core/services/auth.service.ts) (Auth session), [`src/app/features/edumentor/identity.service.ts`](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/identity.service.ts) (Role identity)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_routes["Route dispatch<br/>[app.routes.ts]"]
  node_root["App shell<br/>[app.component.ts]"]
  node_navbar["Role navbar"]
end

subgraph group_auth["Authentication"]
  node_login["Login<br/>[login.component.ts]"]
  node_registration["Registration"]
  node_authservice["Auth session<br/>[auth.service.ts]"]
  node_guards["Route guards<br/>[auth.guard.ts]"]
  node_identity["Role identity"]
end

subgraph group_tutoring["Tutoring workflows"]
  node_home["Hub home<br/>[home.component.ts]"]
  node_dashboard["Role dashboard"]
  node_subjects["Subjects"]
  node_tutors["Tutors"]
  node_availability["Tutor schedules"]
  node_sessions["Sessions"]
  node_sessiondetail["Session detail"]
  node_api["Tutoring API / demo<br/>[api.service.ts]"]
end

subgraph group_shared["Shared UI"]
  node_hubpage["Page behavior<br/>[page.ts]"]
  node_field["Form field<br/>[field.component.ts]"]
  node_feedback["Request feedback"]
  node_i18n["Translations<br/>[i18n.service.ts]"]
end

node_user(("Visitor / user"))
node_backend{{"EduMentor backend"}}

node_user -->|"opens views"| node_routes
node_routes -->|"routes to"| node_login
node_routes -->|"routes to"| node_registration
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_dashboard
node_routes -->|"routes to"| node_subjects
node_routes -->|"routes to"| node_tutors
node_routes -->|"routes to"| node_availability
node_routes -->|"routes to"| node_sessions
node_routes -->|"routes to"| node_sessiondetail
node_routes -->|"checks access"| node_guards
node_routes -->|"checks role"| node_identity
node_root -->|"renders"| node_navbar
node_login -->|"submits credentials"| node_authservice
node_registration -->|"submits registration"| node_authservice
node_authservice -->|"auth HTTP requests"| node_backend
node_guards -->|"checks session"| node_authservice
node_identity -->|"reads identity"| node_authservice
node_navbar -->|"reads role"| node_identity
node_home -->|"reads role"| node_identity
node_subjects -->|"extends"| node_hubpage
node_tutors -->|"extends"| node_hubpage
node_availability -->|"extends"| node_hubpage
node_sessions -->|"extends"| node_hubpage
node_sessiondetail -->|"extends"| node_hubpage
node_dashboard -->|"uses page UI"| node_hubpage
node_hubpage -->|"requests data"| node_api
node_subjects -->|"uses fields"| node_field
node_availability -->|"uses fields"| node_field
node_sessions -->|"uses fields"| node_field
node_sessiondetail -->|"uses fields"| node_field
node_subjects -->|"uses feedback"| node_feedback
node_tutors -->|"uses feedback"| node_feedback
node_availability -->|"uses feedback"| node_feedback
node_sessions -->|"uses feedback"| node_feedback
node_sessiondetail -->|"uses feedback"| node_feedback
node_api -->|"sends feature requests"| node_backend
node_login -->|"reads translations"| node_i18n
node_registration -->|"reads translations"| node_i18n
node_hubpage -->|"uses localization"| node_i18n
node_api -->|"selects demo mode"| node_identity

click node_routes "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/app.routes.ts"
click node_root "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/app.component.ts"
click node_navbar "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/shared/navbar/navbar.component.ts"
click node_login "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/auth/login/login.component.ts"
click node_registration "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/auth/registro/registro.component.ts"
click node_authservice "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/core/services/auth.service.ts"
click node_guards "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/core/guards/auth.guard.ts"
click node_identity "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/identity.service.ts"
click node_home "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/home.component.ts"
click node_dashboard "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/dashboard.component.ts"
click node_subjects "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/materias.component.ts"
click node_tutors "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/tutores.component.ts"
click node_availability "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/horarios.component.ts"
click node_sessions "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/sesiones.component.ts"
click node_sessiondetail "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/detalle.component.ts"
click node_api "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/api.service.ts"
click node_hubpage "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/shared/hub/page.ts"
click node_field "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/shared/hub/field.component.ts"
click node_feedback "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/shared/hub/feedback.component.ts"
click node_i18n "https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/i18n/i18n.service.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_routes,node_root,node_navbar,node_user toneBlue
class node_login,node_registration,node_authservice,node_guards,node_identity toneAmber
class node_home,node_dashboard,node_subjects,node_tutors,node_availability,node_sessions,node_sessiondetail,node_api toneMint
class node_hubpage,node_field,node_feedback,node_i18n toneRose
class node_backend toneIndigo
```

## Components

### App navigation

- [Route dispatch](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/app.routes.ts): `src/app/app.routes.ts`
- [App shell](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/app.component.ts): `src/app/app.component.ts`
- [Role navbar](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/shared/navbar/navbar.component.ts): `src/app/shared/navbar/navbar.component.ts`

### Authentication

- [Login](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/auth/login/login.component.ts): `src/app/features/auth/login/login.component.ts`
- [Registration](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/auth/registro/registro.component.ts): `src/app/features/auth/registro/registro.component.ts`
- [Auth session](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/core/services/auth.service.ts): `src/app/core/services/auth.service.ts`
- [Route guards](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/core/guards/auth.guard.ts): `src/app/core/guards/auth.guard.ts`
- [Role identity](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/identity.service.ts): `src/app/features/edumentor/identity.service.ts`

### Tutoring workflows

- [Hub home](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/home.component.ts): `src/app/features/edumentor/home.component.ts`
- [Role dashboard](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/dashboard.component.ts): `src/app/features/edumentor/dashboard.component.ts`
- [Subjects](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/materias.component.ts): `src/app/features/edumentor/materias.component.ts`
- [Tutors](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/tutores.component.ts): `src/app/features/edumentor/tutores.component.ts`
- [Tutor schedules](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/horarios.component.ts): `src/app/features/edumentor/horarios.component.ts`
- [Sessions](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/sesiones.component.ts): `src/app/features/edumentor/sesiones.component.ts`
- [Session detail](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/detalle.component.ts): `src/app/features/edumentor/detalle.component.ts`
- [Tutoring API / demo](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/features/edumentor/api.service.ts): `src/app/features/edumentor/api.service.ts`

### Shared UI

- [Page behavior](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/shared/hub/page.ts): `src/app/shared/hub/page.ts`
- [Form field](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/shared/hub/field.component.ts): `src/app/shared/hub/field.component.ts`
- [Request feedback](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/shared/hub/feedback.component.ts): `src/app/shared/hub/feedback.component.ts`
- [Translations](https://github.com/danielgomezso/dsw4-2026-equipo02-edumentor-frontend/blob/feature/inicializar-frontend/src/app/i18n/i18n.service.ts): `src/app/i18n/i18n.service.ts`

### Other components

- **Visitor / user**
- **EduMentor backend**

## Connections

- Visitor / user → Route dispatch: opens views (evidence: `README.md`)
- Route dispatch → Login: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatch → Registration: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatch → Hub home: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatch → Role dashboard: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatch → Subjects: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatch → Tutors: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatch → Tutor schedules: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatch → Sessions: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatch → Session detail: routes to (evidence: `src/app/app.routes.ts`)
- Route dispatch → Route guards: checks access (evidence: `src/app/app.routes.ts`)
- Route dispatch → Role identity: checks role (evidence: `src/app/app.routes.ts`)
- App shell → Role navbar: renders (evidence: `src/app/app.component.ts`)
- Login → Auth session: submits credentials (evidence: `src/app/features/auth/login/login.component.ts`)
- Registration → Auth session: submits registration (evidence: `src/app/features/auth/registro/registro.component.ts`)
- Auth session → EduMentor backend: auth HTTP requests (evidence: `src/app/core/services/auth.service.ts`)
- Route guards → Auth session: checks session (evidence: `src/app/core/guards/auth.guard.ts`)
- Role identity → Auth session: reads identity (evidence: `src/app/features/edumentor/identity.service.ts`)
- Role navbar → Role identity: reads role (evidence: `src/app/shared/navbar/navbar.component.ts`)
- Hub home → Role identity: reads role (evidence: `src/app/features/edumentor/home.component.ts`)
- Subjects → Page behavior: extends (evidence: `src/app/features/edumentor/materias.component.ts`)
- Tutors → Page behavior: extends (evidence: `src/app/features/edumentor/tutores.component.ts`)
- Tutor schedules → Page behavior: extends (evidence: `src/app/features/edumentor/horarios.component.ts`)
- Sessions → Page behavior: extends (evidence: `src/app/features/edumentor/sesiones.component.ts`)
- Session detail → Page behavior: extends (evidence: `src/app/features/edumentor/detalle.component.ts`)
- Role dashboard → Page behavior: uses page UI (evidence: `src/app/features/edumentor/dashboard.component.ts`)
- Page behavior → Tutoring API / demo: requests data (evidence: `src/app/shared/hub/page.ts`)
- Subjects → Form field: uses fields (evidence: `src/app/features/edumentor/materias.component.ts`)
- Tutor schedules → Form field: uses fields (evidence: `src/app/features/edumentor/horarios.component.ts`)
- Sessions → Form field: uses fields (evidence: `src/app/features/edumentor/sesiones.component.ts`)
- Session detail → Form field: uses fields (evidence: `src/app/features/edumentor/detalle.component.ts`)
- Subjects → Request feedback: uses feedback (evidence: `src/app/features/edumentor/materias.component.ts`)
- Tutors → Request feedback: uses feedback (evidence: `src/app/features/edumentor/tutores.component.ts`)
- Tutor schedules → Request feedback: uses feedback (evidence: `src/app/features/edumentor/horarios.component.ts`)
- Sessions → Request feedback: uses feedback (evidence: `src/app/features/edumentor/sesiones.component.ts`)
- Session detail → Request feedback: uses feedback (evidence: `src/app/features/edumentor/detalle.component.ts`)
- Tutoring API / demo → EduMentor backend: sends feature requests (evidence: `src/app/features/edumentor/api.service.ts`)
- Login → Translations: reads translations (evidence: `src/app/features/auth/login/login.component.ts`)
- Registration → Translations: reads translations (evidence: `src/app/features/auth/registro/registro.component.ts`)
- Page behavior → Translations: uses localization (evidence: `src/app/shared/hub/page.ts`)
- Tutoring API / demo → Role identity: selects demo mode (evidence: `src/app/features/edumentor/api.service.ts`)
