# 2024328642-ai/sigo-ifam architecture

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

- Interactive diagram: https://gitdiagram.com/2024328642-ai/sigo-ifam
- Repository: https://github.com/2024328642-ai/sigo-ifam

## Overview

SIGO is an installable web front-end for recording and reviewing student incidents at IFAM. The demonstrated workflow is staff sign-in, student lookup, occurrence entry, and review; DEP-facing screens cover alerts, documented disciplinary actions, social assistance, notifications, and reporting. The README says these are demonstration screens backed by in-memory test data: there is no API, authentication enforcement, or database yet. Most UI responsibilities share the large `app/page.tsx`; `src/App.tsx` also contains a substantial UI implementation, but the excerpts do not establish how it is used.

Main entry points: [`app/page.tsx`](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx) (Screen navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and navigation"]
  node_login["Profile login<br/>[page.tsx]"]
  node_shell["Screen navigation<br/>[page.tsx]"]
  node_dashboard["Dashboard<br/>[page.tsx]"]
  node_localstate["In-memory state<br/>[page.tsx]"]
  node_alternateui["Additional UI implementation<br/>[App.tsx]"]
end

subgraph group_records["Student and incident records"]
  node_studentsearch["Student lookup<br/>[page.tsx]"]
  node_students["Student records<br/>[page.tsx]"]
  node_profile["Student history<br/>[page.tsx]"]
  node_entry["Occurrence entry<br/>[page.tsx]"]
  node_occurrences["Occurrence review<br/>[page.tsx]"]
end

subgraph group_response["Review and response"]
  node_alerts["DEP alerts<br/>[page.tsx]"]
  node_progression["Disciplinary progression<br/>[page.tsx]"]
  node_social["Social assistance<br/>[page.tsx]"]
  node_notifications["Guardian notices<br/>[page.tsx]"]
end

subgraph group_administration["Administration and reporting"]
  node_reports["Reports and exports<br/>[page.tsx]"]
  node_settings["Rule settings<br/>[page.tsx]"]
  node_users["User management<br/>[page.tsx]"]
end

node_staff(("School staff"))

node_staff -->|"opens"| node_login
node_login -->|"enters app"| node_shell
node_shell -->|"routes to"| node_dashboard
node_shell -->|"routes to"| node_entry
node_shell -->|"routes to"| node_students
node_shell -->|"routes to"| node_occurrences
node_shell -.->|"routes to"| node_alerts
node_shell -.->|"routes to"| node_progression
node_shell -.->|"routes to"| node_social
node_shell -.->|"routes to"| node_notifications
node_shell -.->|"routes to"| node_reports
node_shell -.->|"routes to"| node_settings
node_shell -.->|"routes to"| node_users
node_entry -->|"searches"| node_studentsearch
node_entry -.->|"adds record"| node_localstate
node_occurrences -->|"updates record"| node_localstate
node_students -->|"opens history"| node_profile
node_localstate -.->|"counts incidents"| node_alerts
node_alerts -.->|"requests review"| node_progression
node_social -.->|"informs decision"| node_progression

click node_login "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_shell "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_dashboard "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_localstate "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_studentsearch "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_students "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_profile "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_entry "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_occurrences "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_alerts "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_progression "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_social "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_notifications "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_reports "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_settings "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_users "https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx"
click node_alternateui "https://github.com/2024328642-ai/sigo-ifam/blob/main/src/App.tsx"

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_shell,node_dashboard,node_localstate,node_alternateui toneBlue
class node_studentsearch,node_students,node_profile,node_entry,node_occurrences toneAmber
class node_alerts,node_progression,node_social,node_notifications toneMint
class node_reports,node_settings,node_users toneRose
class node_staff toneIndigo
```

## Components

### Access and navigation

- [Profile login](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Screen navigation](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Dashboard](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [In-memory state](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Additional UI implementation](https://github.com/2024328642-ai/sigo-ifam/blob/main/src/App.tsx): `src/App.tsx`

### Student and incident records

- [Student lookup](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Student records](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Student history](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Occurrence entry](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Occurrence review](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`

### Review and response

- [DEP alerts](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Disciplinary progression](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Social assistance](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Guardian notices](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`

### Administration and reporting

- [Reports and exports](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [Rule settings](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`
- [User management](https://github.com/2024328642-ai/sigo-ifam/blob/main/app/page.tsx): `app/page.tsx`

### Other components

- **School staff**

## Connections

- School staff → Profile login: opens (evidence: `README.md`)
- Profile login → Screen navigation: enters app (evidence: `app/page.tsx`)
- Screen navigation → Dashboard: routes to (evidence: `app/page.tsx`)
- Screen navigation → Occurrence entry: routes to (evidence: `app/page.tsx`)
- Screen navigation → Student records: routes to (evidence: `app/page.tsx`)
- Screen navigation → Occurrence review: routes to (evidence: `app/page.tsx`)
- Screen navigation → DEP alerts: routes to (evidence: `README.md`)
- Screen navigation → Disciplinary progression: routes to (evidence: `README.md`)
- Screen navigation → Social assistance: routes to (evidence: `README.md`)
- Screen navigation → Guardian notices: routes to (evidence: `README.md`)
- Screen navigation → Reports and exports: routes to (evidence: `README.md`)
- Screen navigation → Rule settings: routes to (evidence: `README.md`)
- Screen navigation → User management: routes to (evidence: `README.md`)
- Occurrence entry → Student lookup: searches (evidence: `app/page.tsx`)
- Occurrence entry → In-memory state: adds record (evidence: `README.md`)
- Occurrence review → In-memory state: updates record (evidence: `app/page.tsx`)
- Student records → Student history: opens history (evidence: `app/page.tsx`)
- In-memory state → DEP alerts: counts incidents (evidence: `README.md`)
- DEP alerts → Disciplinary progression: requests review (evidence: `README.md`)
- Social assistance → Disciplinary progression: informs decision (evidence: `README.md`)
