# antoniochyngon/ssm-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/antoniochyngon/ssm-frontend
- Repository: https://github.com/antoniochyngon/ssm-frontend

## Overview

SSM is a role-based frontend for tracking academic improvement plans at FES Acatlán. Administrators manage cycles and users, review plans and reports, and consult audit/history views; licenciatura users capture plans, configure goals, upload evidence, and follow observations. The workflow runs through Next.js screens and a shared API client, which can use demo data or the documented NestJS backend. The README and source index establish the major screens and modules; several page-to-service connections are not shown in excerpts, so those links are omitted or marked unverified.

Main entry points: [`src/components/layout/AppShell.tsx`](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/components/layout/AppShell.tsx) (Role-based app shell), [`src/app/licenciatura/plan/page.tsx`](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/licenciatura/plan/page.tsx) (Plan capture), [`src/lib/api.ts`](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/lib/api.ts) (HTTP API client), [`src/app/admin/dashboard/page.tsx`](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/dashboard/page.tsx) (Admin dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and shell"]
  node_auth["Sign-in and recovery<br/>[page.tsx]"]
  node_shell["Role-based app shell<br/>[AppShell.tsx]"]
  node_notifications["Notification center"]
  node_profile["User profile<br/>[page.tsx]"]
end

subgraph group_admin["Administration"]
  node_admin_overview["Admin dashboard<br/>[page.tsx]"]
  node_cycles["Cycle management<br/>[page.tsx]"]
  node_users["User management<br/>[page.tsx]"]
  node_plan_review["Plan review<br/>[ValidacionPlan.tsx]"]
  node_report_review["Report review"]
  node_admin_reports["Reports and history"]
  node_transversal["Cross-cutting recommendations<br/>[page.tsx]"]
  node_audit["Audit log<br/>[page.tsx]"]
end

subgraph group_capture["Licenciatura workflow"]
  node_plan_capture["Plan capture<br/>[page.tsx]"]
  node_goals["Goal configuration<br/>[page.tsx]"]
  node_evidence["Evidence upload<br/>[page.tsx]"]
  node_observations["Observations and milestones<br/>[page.tsx]"]
end

subgraph group_services["Shared services"]
  node_api["HTTP API client<br/>[api.ts]"]
  node_mock[("Demo data<br/>[mock-data.ts]")]
  node_contracts["Shared data contracts<br/>[types.ts]"]
end

node_user(("Staff user"))
node_backend{{"SSM backend"}}

node_user -->|"signs in"| node_auth
node_user -.->|"uses role app"| node_shell
node_shell -->|"opens panel"| node_notifications
node_shell -.->|"routes by role"| node_admin_overview
node_shell -.->|"routes by role"| node_plan_capture
node_admin_overview -->|"links for review"| node_plan_review
node_admin_overview -.->|"shows summaries"| node_admin_reports
node_user -->|"manages cycles"| node_cycles
node_user -->|"manages accounts"| node_users
node_user -->|"reviews reports"| node_report_review
node_user -->|"consults recommendations"| node_transversal
node_user -->|"consults audit log"| node_audit
node_user -->|"captures plan"| node_plan_capture
node_plan_capture -->|"saves and submits"| node_api
node_user -->|"configures goals"| node_goals
node_user -->|"uploads evidence"| node_evidence
node_user -->|"checks feedback"| node_observations
node_user -->|"manages profile"| node_profile
node_notifications -.->|"requests notifications"| node_api
node_api -->|"uses demo data"| node_mock
node_api -->|"calls endpoints"| node_backend
node_plan_capture -->|"uses plan types"| node_contracts
node_backend -->|"shares DTO contract"| node_contracts

click node_auth "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/(publico)/login/page.tsx"
click node_shell "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/components/layout/AppShell.tsx"
click node_notifications "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/components/layout/NotificationPanel.tsx"
click node_admin_overview "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/dashboard/page.tsx"
click node_cycles "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/ciclos/page.tsx"
click node_users "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/usuarios/page.tsx"
click node_plan_review "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/planes/%5Bid%5D/ValidacionPlan.tsx"
click node_report_review "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/informes/%5Bid%5D/ValidacionInforme.tsx"
click node_admin_reports "https://github.com/antoniochyngon/ssm-frontend/tree/main/src/app/admin/reportes"
click node_transversal "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/transversales/page.tsx"
click node_audit "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/bitacora/page.tsx"
click node_plan_capture "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/licenciatura/plan/page.tsx"
click node_goals "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/licenciatura/metas/page.tsx"
click node_evidence "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/licenciatura/evidencias/page.tsx"
click node_observations "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/licenciatura/observaciones/page.tsx"
click node_profile "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/perfil/page.tsx"
click node_api "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/lib/api.ts"
click node_mock "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/lib/mock-data.ts"
click node_contracts "https://github.com/antoniochyngon/ssm-frontend/blob/main/src/lib/types.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_auth,node_shell,node_notifications,node_profile,node_user toneBlue
class node_admin_overview,node_cycles,node_users,node_plan_review,node_report_review,node_admin_reports,node_transversal,node_audit toneAmber
class node_plan_capture,node_goals,node_evidence,node_observations toneMint
class node_api,node_mock,node_contracts toneRose
class node_backend toneIndigo
```

## Components

### Access and shell

- [Sign-in and recovery](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/(publico)/login/page.tsx): `src/app/(publico)/login/page.tsx`
- [Role-based app shell](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/components/layout/AppShell.tsx): `src/components/layout/AppShell.tsx`
- [Notification center](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/components/layout/NotificationPanel.tsx): `src/components/layout/NotificationPanel.tsx`
- [User profile](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/perfil/page.tsx): `src/app/perfil/page.tsx`

### Administration

- [Admin dashboard](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/dashboard/page.tsx): `src/app/admin/dashboard/page.tsx`
- [Cycle management](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/ciclos/page.tsx): `src/app/admin/ciclos/page.tsx`
- [User management](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/usuarios/page.tsx): `src/app/admin/usuarios/page.tsx`
- [Plan review](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/planes/%5Bid%5D/ValidacionPlan.tsx): `src/app/admin/planes/[id]/ValidacionPlan.tsx`
- [Report review](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/informes/%5Bid%5D/ValidacionInforme.tsx): `src/app/admin/informes/[id]/ValidacionInforme.tsx`
- [Reports and history](https://github.com/antoniochyngon/ssm-frontend/tree/main/src/app/admin/reportes): `src/app/admin/reportes`
- [Cross-cutting recommendations](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/transversales/page.tsx): `src/app/admin/transversales/page.tsx`
- [Audit log](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/admin/bitacora/page.tsx): `src/app/admin/bitacora/page.tsx`

### Licenciatura workflow

- [Plan capture](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/licenciatura/plan/page.tsx): `src/app/licenciatura/plan/page.tsx`
- [Goal configuration](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/licenciatura/metas/page.tsx): `src/app/licenciatura/metas/page.tsx`
- [Evidence upload](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/licenciatura/evidencias/page.tsx): `src/app/licenciatura/evidencias/page.tsx`
- [Observations and milestones](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/app/licenciatura/observaciones/page.tsx): `src/app/licenciatura/observaciones/page.tsx`

### Shared services

- [HTTP API client](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/lib/api.ts): `src/lib/api.ts`
- [Demo data](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/lib/mock-data.ts): `src/lib/mock-data.ts`
- [Shared data contracts](https://github.com/antoniochyngon/ssm-frontend/blob/main/src/lib/types.ts): `src/lib/types.ts`

### Other components

- **Staff user**
- **SSM backend**

## Connections

- Staff user → Sign-in and recovery: signs in
- Staff user → Role-based app shell: uses role app
- Role-based app shell → Notification center: opens panel (evidence: `src/components/layout/AppShell.tsx`)
- Role-based app shell → Admin dashboard: routes by role
- Role-based app shell → Plan capture: routes by role
- Admin dashboard → Plan review: links for review
- Admin dashboard → Reports and history: shows summaries
- Staff user → Cycle management: manages cycles (evidence: `src/app/admin/ciclos/page.tsx`)
- Staff user → User management: manages accounts
- Staff user → Report review: reviews reports
- Staff user → Cross-cutting recommendations: consults recommendations
- Staff user → Audit log: consults audit log
- Staff user → Plan capture: captures plan
- Plan capture → HTTP API client: saves and submits (evidence: `src/app/licenciatura/plan/page.tsx`)
- Staff user → Goal configuration: configures goals
- Staff user → Evidence upload: uploads evidence
- Staff user → Observations and milestones: checks feedback
- Staff user → User profile: manages profile
- Notification center → HTTP API client: requests notifications (evidence: `src/components/layout/NotificationPanel.tsx`)
- HTTP API client → Demo data: uses demo data (evidence: `src/lib/api.ts`)
- HTTP API client → SSM backend: calls endpoints
- Plan capture → Shared data contracts: uses plan types (evidence: `src/app/licenciatura/plan/page.tsx`)
- SSM backend → Shared data contracts: shares DTO contract (evidence: `src/lib/types.ts`)
