# davi-renan-bender/eduwatch architecture

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

- Interactive diagram: https://gitdiagram.com/davi-renan-bender/eduwatch
- Repository: https://github.com/davi-renan-bender/eduwatch

## Overview

EduWatch is a browser-based academic-performance monitoring prototype. Users sign in with temporary credentials and reach role-specific views for students, teachers, or coordination; the dashboards organize grades, attendance, class/student summaries, progress indicators, and follow-up alerts. The administrator view selects among those environments. Dashboard data is currently mocked and calculations/rendering run in the browser; the README describes rules and calculations, not AI/ML. Shared session and UI helpers support the views. HTML wiring was not sampled, so the graph focuses on evidenced JavaScript behavior.

Main entry points: [`js/auth.js`](https://github.com/davi-renan-bender/eduwatch/blob/main/js/auth.js) (Session and profiles), [`js/admin.js`](https://github.com/davi-renan-bender/eduwatch/blob/main/js/admin.js) (Admin environment selector), [`js/aluno.js`](https://github.com/davi-renan-bender/eduwatch/blob/main/js/aluno.js) (Student dashboard), [`js/professor.js`](https://github.com/davi-renan-bender/eduwatch/blob/main/js/professor.js) (Teacher dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and sessions"]
  node_login["Credential login<br/>[script.js]"]
  node_session["Session and profiles<br/>[auth.js]"]
  node_admin["Admin environment selector<br/>[admin.js]"]
end

subgraph group_student["Student monitoring"]
  node_studentview["Student dashboard<br/>[aluno.js]"]
  node_studentdata["Grades and attendance<br/>[aluno.js]"]
  node_studentinsights["Progress and follow-up<br/>[aluno.js]"]
end

subgraph group_teaching["Teacher monitoring"]
  node_teacherview["Teacher dashboard<br/>[professor.js]"]
  node_classreview["Class performance<br/>[professor.js]"]
  node_studentreview["Student follow-up<br/>[professor.js]"]
end

subgraph group_coordination["School oversight"]
  node_coordview["Coordination dashboard<br/>[coordenacao.js]"]
  node_schoolindicators["School indicators<br/>[coordenacao.js]"]
  node_studentoversight["Student oversight<br/>[coordenacao.js]"]
end

subgraph group_shared["Shared interface"]
  node_sharedui["Dashboard UI helpers<br/>[components.js]"]
end

node_user(("User"))

node_user -->|"submits credentials"| node_login
node_login -->|"stores session"| node_session
node_session -->|"validates profile"| node_admin
node_session -->|"validates profile"| node_studentview
node_session -->|"validates profile"| node_teacherview
node_session -->|"validates profile"| node_coordview
node_admin -->|"offers preview"| node_studentview
node_admin -->|"offers preview"| node_teacherview
node_admin -->|"offers preview"| node_coordview
node_studentview -->|"renders"| node_studentdata
node_studentview -->|"renders"| node_studentinsights
node_teacherview -->|"renders"| node_classreview
node_teacherview -->|"renders"| node_studentreview
node_coordview -->|"renders"| node_schoolindicators
node_coordview -->|"renders"| node_studentoversight
node_studentview -->|"uses helpers"| node_sharedui
node_teacherview -->|"uses helpers"| node_sharedui
node_coordview -->|"uses helpers"| node_sharedui
node_admin -->|"uses helpers"| node_sharedui

click node_login "https://github.com/davi-renan-bender/eduwatch/blob/main/script.js"
click node_session "https://github.com/davi-renan-bender/eduwatch/blob/main/js/auth.js"
click node_admin "https://github.com/davi-renan-bender/eduwatch/blob/main/js/admin.js"
click node_studentview "https://github.com/davi-renan-bender/eduwatch/blob/main/js/aluno.js"
click node_studentdata "https://github.com/davi-renan-bender/eduwatch/blob/main/js/aluno.js"
click node_studentinsights "https://github.com/davi-renan-bender/eduwatch/blob/main/js/aluno.js"
click node_teacherview "https://github.com/davi-renan-bender/eduwatch/blob/main/js/professor.js"
click node_classreview "https://github.com/davi-renan-bender/eduwatch/blob/main/js/professor.js"
click node_studentreview "https://github.com/davi-renan-bender/eduwatch/blob/main/js/professor.js"
click node_coordview "https://github.com/davi-renan-bender/eduwatch/blob/main/js/coordenacao.js"
click node_schoolindicators "https://github.com/davi-renan-bender/eduwatch/blob/main/js/coordenacao.js"
click node_studentoversight "https://github.com/davi-renan-bender/eduwatch/blob/main/js/coordenacao.js"
click node_sharedui "https://github.com/davi-renan-bender/eduwatch/blob/main/js/components.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_login,node_session,node_admin,node_user toneBlue
class node_studentview,node_studentdata,node_studentinsights toneAmber
class node_teacherview,node_classreview,node_studentreview toneMint
class node_coordview,node_schoolindicators,node_studentoversight toneRose
class node_sharedui toneIndigo
```

## Components

### Access and sessions

- [Credential login](https://github.com/davi-renan-bender/eduwatch/blob/main/script.js): `script.js`
- [Session and profiles](https://github.com/davi-renan-bender/eduwatch/blob/main/js/auth.js): `js/auth.js`
- [Admin environment selector](https://github.com/davi-renan-bender/eduwatch/blob/main/js/admin.js): `js/admin.js`

### Student monitoring

- [Student dashboard](https://github.com/davi-renan-bender/eduwatch/blob/main/js/aluno.js): `js/aluno.js`
- [Grades and attendance](https://github.com/davi-renan-bender/eduwatch/blob/main/js/aluno.js): `js/aluno.js`
- [Progress and follow-up](https://github.com/davi-renan-bender/eduwatch/blob/main/js/aluno.js): `js/aluno.js`

### Teacher monitoring

- [Teacher dashboard](https://github.com/davi-renan-bender/eduwatch/blob/main/js/professor.js): `js/professor.js`
- [Class performance](https://github.com/davi-renan-bender/eduwatch/blob/main/js/professor.js): `js/professor.js`
- [Student follow-up](https://github.com/davi-renan-bender/eduwatch/blob/main/js/professor.js): `js/professor.js`

### School oversight

- [Coordination dashboard](https://github.com/davi-renan-bender/eduwatch/blob/main/js/coordenacao.js): `js/coordenacao.js`
- [School indicators](https://github.com/davi-renan-bender/eduwatch/blob/main/js/coordenacao.js): `js/coordenacao.js`
- [Student oversight](https://github.com/davi-renan-bender/eduwatch/blob/main/js/coordenacao.js): `js/coordenacao.js`

### Shared interface

- [Dashboard UI helpers](https://github.com/davi-renan-bender/eduwatch/blob/main/js/components.js): `js/components.js`

### Other components

- **User**

## Connections

- User → Credential login: submits credentials (evidence: `script.js`)
- Credential login → Session and profiles: stores session (evidence: `script.js`)
- Session and profiles → Admin environment selector: validates profile (evidence: `js/admin.js`)
- Session and profiles → Student dashboard: validates profile (evidence: `js/aluno.js`)
- Session and profiles → Teacher dashboard: validates profile (evidence: `js/professor.js`)
- Session and profiles → Coordination dashboard: validates profile (evidence: `js/coordenacao.js`)
- Admin environment selector → Student dashboard: offers preview (evidence: `js/admin.js`)
- Admin environment selector → Teacher dashboard: offers preview (evidence: `js/admin.js`)
- Admin environment selector → Coordination dashboard: offers preview (evidence: `js/admin.js`)
- Student dashboard → Grades and attendance: renders (evidence: `js/aluno.js`)
- Student dashboard → Progress and follow-up: renders (evidence: `js/aluno.js`)
- Teacher dashboard → Class performance: renders (evidence: `js/professor.js`)
- Teacher dashboard → Student follow-up: renders (evidence: `js/professor.js`)
- Coordination dashboard → School indicators: renders (evidence: `js/coordenacao.js`)
- Coordination dashboard → Student oversight: renders (evidence: `js/coordenacao.js`)
- Student dashboard → Dashboard UI helpers: uses helpers (evidence: `js/components.js`)
- Teacher dashboard → Dashboard UI helpers: uses helpers (evidence: `js/components.js`)
- Coordination dashboard → Dashboard UI helpers: uses helpers (evidence: `js/components.js`)
- Admin environment selector → Dashboard UI helpers: uses helpers (evidence: `js/admin.js`)
