# gideon-jacob/pec-student-client architecture

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

- Interactive diagram: https://gitdiagram.com/gideon-jacob/pec-student-client
- Repository: https://github.com/gideon-jacob/pec-student-client

## Overview

PEC Student Hub is a student-facing academic portal. Students enter through the responsive React app, navigate to a page, and use the Home dashboard to view daily classes and summary metrics. The dashboard loads timetable data from the backend or reuses browser-cached data, then renders weekday controls and subject cards. The Profile page provides theme selection and a manual timetable refresh; Assignments and Performance are currently placeholders. The graph reflects the sampled implementation and documented current features; planned capabilities are not implemented here. The timetable data module’s contents and purpose were not shown, so it is omitted.

Main entry points: [`src/App.tsx`](https://github.com/gideon-jacob/pec-student-client/blob/main/src/App.tsx) (Route Shell), [`src/pages/Home/index.tsx`](https://github.com/gideon-jacob/pec-student-client/blob/main/src/pages/Home/index.tsx) (Home Dashboard), [`src/pages/Profile/index.tsx`](https://github.com/gideon-jacob/pec-student-client/blob/main/src/pages/Profile/index.tsx) (Profile Settings), [`src/main.tsx`](https://github.com/gideon-jacob/pec-student-client/blob/main/src/main.tsx) (App Bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application Shell"]
  node_bootstrap["App Bootstrap<br/>[main.tsx]"]
  node_router["Route Shell<br/>[App.tsx]"]
  node_nav["Navigation Link<br/>[index.tsx]"]
end

subgraph group_dashboard["Timetable Dashboard"]
  node_home["Home Dashboard<br/>[index.tsx]"]
  node_browsercache[("Browser Cache")]
end

subgraph group_pages["Student Pages"]
  node_assignments["Assignments Page<br/>[index.tsx]"]
  node_performance["Performance Page<br/>[index.tsx]"]
  node_profile["Profile Settings<br/>[index.tsx]"]
end

subgraph group_display["Dashboard Components"]
  node_weekday["Weekday Selector<br/>[index.tsx]"]
  node_subject["Subject Card<br/>[index.tsx]"]
  node_progress["Attendance Gauge<br/>[index.tsx]"]
  node_stats["Quick Stats<br/>[index.tsx]"]
end

node_student(("Student"))
node_backend["Timetable Backend"]

node_student -->|"opens app"| node_bootstrap
node_bootstrap -->|"renders"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_assignments
node_router -->|"routes to"| node_performance
node_router -->|"routes to"| node_profile
node_router -->|"renders"| node_nav
node_student -->|"selects page"| node_nav
node_home -->|"requests timetable"| node_backend
node_home -->|"reads and writes"| node_browsercache
node_profile -->|"refreshes timetable"| node_backend
node_profile -->|"writes timetable"| node_browsercache
node_home -->|"renders"| node_weekday
node_home -->|"renders filtered classes"| node_subject
node_home -->|"renders metrics"| node_stats
node_subject -->|"renders attendance"| node_progress

click node_bootstrap "https://github.com/gideon-jacob/pec-student-client/blob/main/src/main.tsx"
click node_router "https://github.com/gideon-jacob/pec-student-client/blob/main/src/App.tsx"
click node_nav "https://github.com/gideon-jacob/pec-student-client/blob/main/src/components/NavItem/index.tsx"
click node_home "https://github.com/gideon-jacob/pec-student-client/blob/main/src/pages/Home/index.tsx"
click node_weekday "https://github.com/gideon-jacob/pec-student-client/blob/main/src/components/WeekDayNavItem/index.tsx"
click node_subject "https://github.com/gideon-jacob/pec-student-client/blob/main/src/components/SubjectCard/index.tsx"
click node_progress "https://github.com/gideon-jacob/pec-student-client/blob/main/src/components/ProgressBar/index.tsx"
click node_stats "https://github.com/gideon-jacob/pec-student-client/blob/main/src/components/StatsCard/index.tsx"
click node_assignments "https://github.com/gideon-jacob/pec-student-client/blob/main/src/pages/Assignments/index.tsx"
click node_performance "https://github.com/gideon-jacob/pec-student-client/blob/main/src/pages/Performance/index.tsx"
click node_profile "https://github.com/gideon-jacob/pec-student-client/blob/main/src/pages/Profile/index.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_bootstrap,node_router,node_nav toneBlue
class node_home,node_browsercache toneAmber
class node_assignments,node_performance,node_profile toneMint
class node_weekday,node_subject,node_progress,node_stats toneRose
class node_student,node_backend toneIndigo
```

## Components

### Application Shell

- [App Bootstrap](https://github.com/gideon-jacob/pec-student-client/blob/main/src/main.tsx): `src/main.tsx`
- [Route Shell](https://github.com/gideon-jacob/pec-student-client/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation Link](https://github.com/gideon-jacob/pec-student-client/blob/main/src/components/NavItem/index.tsx): `src/components/NavItem/index.tsx`

### Timetable Dashboard

- [Home Dashboard](https://github.com/gideon-jacob/pec-student-client/blob/main/src/pages/Home/index.tsx): `src/pages/Home/index.tsx`
- **Browser Cache**

### Student Pages

- [Assignments Page](https://github.com/gideon-jacob/pec-student-client/blob/main/src/pages/Assignments/index.tsx): `src/pages/Assignments/index.tsx`
- [Performance Page](https://github.com/gideon-jacob/pec-student-client/blob/main/src/pages/Performance/index.tsx): `src/pages/Performance/index.tsx`
- [Profile Settings](https://github.com/gideon-jacob/pec-student-client/blob/main/src/pages/Profile/index.tsx): `src/pages/Profile/index.tsx`

### Dashboard Components

- [Weekday Selector](https://github.com/gideon-jacob/pec-student-client/blob/main/src/components/WeekDayNavItem/index.tsx): `src/components/WeekDayNavItem/index.tsx`
- [Subject Card](https://github.com/gideon-jacob/pec-student-client/blob/main/src/components/SubjectCard/index.tsx): `src/components/SubjectCard/index.tsx`
- [Attendance Gauge](https://github.com/gideon-jacob/pec-student-client/blob/main/src/components/ProgressBar/index.tsx): `src/components/ProgressBar/index.tsx`
- [Quick Stats](https://github.com/gideon-jacob/pec-student-client/blob/main/src/components/StatsCard/index.tsx): `src/components/StatsCard/index.tsx`

### Other components

- **Student**
- **Timetable Backend**

## Connections

- Student → App Bootstrap: opens app (evidence: `src/main.tsx`)
- App Bootstrap → Route Shell: renders (evidence: `src/main.tsx`)
- Route Shell → Home Dashboard: routes to (evidence: `src/App.tsx`)
- Route Shell → Assignments Page: routes to (evidence: `src/App.tsx`)
- Route Shell → Performance Page: routes to (evidence: `src/App.tsx`)
- Route Shell → Profile Settings: routes to (evidence: `src/App.tsx`)
- Route Shell → Navigation Link: renders (evidence: `src/App.tsx`)
- Student → Navigation Link: selects page (evidence: `src/components/NavItem/index.tsx`)
- Home Dashboard → Timetable Backend: requests timetable (evidence: `src/pages/Home/index.tsx`)
- Home Dashboard → Browser Cache: reads and writes (evidence: `src/pages/Home/index.tsx`)
- Profile Settings → Timetable Backend: refreshes timetable (evidence: `src/pages/Profile/index.tsx`)
- Profile Settings → Browser Cache: writes timetable (evidence: `src/pages/Profile/index.tsx`)
- Home Dashboard → Weekday Selector: renders (evidence: `src/pages/Home/index.tsx`)
- Home Dashboard → Subject Card: renders filtered classes (evidence: `src/pages/Home/index.tsx`)
- Home Dashboard → Quick Stats: renders metrics (evidence: `src/pages/Home/index.tsx`)
- Subject Card → Attendance Gauge: renders attendance (evidence: `src/components/SubjectCard/index.tsx`)
