# ramhemanth09/student_analysis architecture

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

- Interactive diagram: https://gitdiagram.com/ramhemanth09/student_analysis
- Repository: https://github.com/ramhemanth09/student_analysis

## Overview

DAV EduVision is a B.Tech student-performance analytics dashboard. Users navigate role-aware views, filter a cohort, inspect performance and support needs, and manage student data, reports, and institutional settings. AppContent routes to the feature pages; DataContext supplies shared data, filters, configuration, and review state, while analytics utilities calculate filtered cohorts and KPIs. The tree and source index document capabilities beyond the sampled excerpts; those are included, but their internal interactions are not asserted where source evidence is unavailable.

Main entry points: [`src/AppContent.tsx`](https://github.com/ramhemanth09/student_analysis/blob/main/src/AppContent.tsx) (Page navigation), [`src/context/DataContext.tsx`](https://github.com/ramhemanth09/student_analysis/blob/main/src/context/DataContext.tsx) (Shared data context), [`src/pages/DashboardOverview.tsx`](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/DashboardOverview.tsx) (Dashboard overview), [`src/utils/analytics.ts`](https://github.com/ramhemanth09/student_analysis/blob/main/src/utils/analytics.ts) (Analytics calculations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application Shell"]
  node_app["App provider<br/>[App.tsx]"]
  node_router["Page navigation<br/>[AppContent.tsx]"]
  node_nav["Navigation bar<br/>[Navbar.tsx]"]
  node_sidebar["Role-aware sidebar<br/>[Sidebar.tsx]"]
  node_role["Role switching"]
  node_about["About modal<br/>[AboutModal.tsx]"]
end

subgraph group_insights["Academic Insights"]
  node_dashboard["Dashboard overview"]
  node_directory["Student directory"]
  node_profile["Student profile<br/>[StudentProfile.tsx]"]
  node_class["Class analytics"]
  node_subject["Subject analysis"]
  node_attendance["Attendance analytics"]
  node_assignments["Assignment habits"]
  node_support["Academic support"]
end

subgraph group_operations["Data and Operations"]
  node_import["Data import<br/>[DataImport.tsx]"]
  node_reports["Reports and export<br/>[ReportsExport.tsx]"]
  node_settings["User management"]
end

subgraph group_shared["Shared Data and UI"]
  node_context["Shared data context<br/>[DataContext.tsx]"]
  node_seed["Initial dataset<br/>[initialData.json]"]
  node_analytics["Analytics calculations<br/>[analytics.ts]"]
  node_mapping["Academic mappings<br/>[davMapping.ts]"]
  node_filters["Cohort filters<br/>[FilterBar.tsx]"]
  node_cards["Cards and badges<br/>[Card.tsx]"]
  node_kpi["KPI card<br/>[KpiCard.tsx]"]
end

node_educators(("Educators and students"))

node_educators -->|"use dashboard"| node_app
node_app -->|"provides data"| node_context
node_app -->|"renders"| node_router
node_router -->|"renders"| node_nav
node_router -->|"renders"| node_sidebar
node_router -->|"renders"| node_role
node_router -->|"renders"| node_about
node_router -->|"routes to"| node_dashboard
node_router -->|"routes to"| node_directory
node_router -->|"routes to"| node_profile
node_router -->|"routes to"| node_class
node_router -->|"routes to"| node_subject
node_router -->|"routes to"| node_attendance
node_router -->|"routes to"| node_assignments
node_router -->|"routes to"| node_support
node_router -->|"routes to"| node_import
node_router -->|"routes to"| node_reports
node_router -->|"routes to"| node_settings
node_context -->|"loads seed"| node_seed
node_context -->|"calculates cohort"| node_analytics
node_context -->|"calculates KPIs"| node_analytics
node_context -->|"formats years"| node_mapping
node_dashboard -->|"reads data"| node_context
node_directory -->|"reads data"| node_context
node_profile -->|"reads data"| node_context
node_class -->|"reads data"| node_context
node_subject -->|"reads data"| node_context
node_attendance -->|"reads data"| node_context
node_assignments -->|"reads data"| node_context
node_support -->|"reads data"| node_context
node_import -->|"imports data"| node_context
node_reports -->|"reads data"| node_context
node_settings -->|"reads data"| node_context
node_filters -->|"updates filters"| node_context
node_dashboard -->|"renders"| node_filters
node_dashboard -->|"gets subject stats"| node_analytics
node_reports -->|"computes reports"| node_analytics
node_dashboard -->|"renders"| node_kpi
node_dashboard -->|"renders"| node_cards
node_reports -->|"renders"| node_cards
node_analytics -->|"formats years"| node_mapping

click node_app "https://github.com/ramhemanth09/student_analysis/blob/main/src/App.tsx"
click node_router "https://github.com/ramhemanth09/student_analysis/blob/main/src/AppContent.tsx"
click node_nav "https://github.com/ramhemanth09/student_analysis/blob/main/src/components/layout/Navbar.tsx"
click node_sidebar "https://github.com/ramhemanth09/student_analysis/blob/main/src/components/layout/Sidebar.tsx"
click node_role "https://github.com/ramhemanth09/student_analysis/blob/main/src/components/common/RoleSwitcherModal.tsx"
click node_about "https://github.com/ramhemanth09/student_analysis/blob/main/src/components/common/AboutModal.tsx"
click node_dashboard "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/DashboardOverview.tsx"
click node_directory "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/StudentDirectory.tsx"
click node_profile "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/StudentProfile.tsx"
click node_class "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/ClassSectionAnalytics.tsx"
click node_subject "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/SubjectWiseAnalysis.tsx"
click node_attendance "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/AttendanceAnalytics.tsx"
click node_assignments "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/AssignmentHabitsAnalytics.tsx"
click node_support "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/AcademicSupport.tsx"
click node_import "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/DataImport.tsx"
click node_reports "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/ReportsExport.tsx"
click node_settings "https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/SettingsUserManagement.tsx"
click node_context "https://github.com/ramhemanth09/student_analysis/blob/main/src/context/DataContext.tsx"
click node_seed "https://github.com/ramhemanth09/student_analysis/blob/main/src/data/initialData.json"
click node_analytics "https://github.com/ramhemanth09/student_analysis/blob/main/src/utils/analytics.ts"
click node_mapping "https://github.com/ramhemanth09/student_analysis/blob/main/src/utils/davMapping.ts"
click node_filters "https://github.com/ramhemanth09/student_analysis/blob/main/src/components/common/FilterBar.tsx"
click node_cards "https://github.com/ramhemanth09/student_analysis/blob/main/src/components/common/Card.tsx"
click node_kpi "https://github.com/ramhemanth09/student_analysis/blob/main/src/components/common/KpiCard.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_app,node_router,node_nav,node_sidebar,node_role,node_about toneBlue
class node_dashboard,node_directory,node_profile,node_class,node_subject,node_attendance,node_assignments,node_support toneAmber
class node_import,node_reports,node_settings toneMint
class node_context,node_seed,node_analytics,node_mapping,node_filters,node_cards,node_kpi toneRose
class node_educators toneIndigo
```

## Components

### Application Shell

- [App provider](https://github.com/ramhemanth09/student_analysis/blob/main/src/App.tsx): `src/App.tsx`
- [Page navigation](https://github.com/ramhemanth09/student_analysis/blob/main/src/AppContent.tsx): `src/AppContent.tsx`
- [Navigation bar](https://github.com/ramhemanth09/student_analysis/blob/main/src/components/layout/Navbar.tsx): `src/components/layout/Navbar.tsx`
- [Role-aware sidebar](https://github.com/ramhemanth09/student_analysis/blob/main/src/components/layout/Sidebar.tsx): `src/components/layout/Sidebar.tsx`
- [Role switching](https://github.com/ramhemanth09/student_analysis/blob/main/src/components/common/RoleSwitcherModal.tsx): `src/components/common/RoleSwitcherModal.tsx`
- [About modal](https://github.com/ramhemanth09/student_analysis/blob/main/src/components/common/AboutModal.tsx): `src/components/common/AboutModal.tsx`

### Academic Insights

- [Dashboard overview](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/DashboardOverview.tsx): `src/pages/DashboardOverview.tsx`
- [Student directory](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/StudentDirectory.tsx): `src/pages/StudentDirectory.tsx`
- [Student profile](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/StudentProfile.tsx): `src/pages/StudentProfile.tsx`
- [Class analytics](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/ClassSectionAnalytics.tsx): `src/pages/ClassSectionAnalytics.tsx`
- [Subject analysis](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/SubjectWiseAnalysis.tsx): `src/pages/SubjectWiseAnalysis.tsx`
- [Attendance analytics](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/AttendanceAnalytics.tsx): `src/pages/AttendanceAnalytics.tsx`
- [Assignment habits](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/AssignmentHabitsAnalytics.tsx): `src/pages/AssignmentHabitsAnalytics.tsx`
- [Academic support](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/AcademicSupport.tsx): `src/pages/AcademicSupport.tsx`

### Data and Operations

- [Data import](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/DataImport.tsx): `src/pages/DataImport.tsx`
- [Reports and export](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/ReportsExport.tsx): `src/pages/ReportsExport.tsx`
- [User management](https://github.com/ramhemanth09/student_analysis/blob/main/src/pages/SettingsUserManagement.tsx): `src/pages/SettingsUserManagement.tsx`

### Shared Data and UI

- [Shared data context](https://github.com/ramhemanth09/student_analysis/blob/main/src/context/DataContext.tsx): `src/context/DataContext.tsx`
- [Initial dataset](https://github.com/ramhemanth09/student_analysis/blob/main/src/data/initialData.json): `src/data/initialData.json`
- [Analytics calculations](https://github.com/ramhemanth09/student_analysis/blob/main/src/utils/analytics.ts): `src/utils/analytics.ts`
- [Academic mappings](https://github.com/ramhemanth09/student_analysis/blob/main/src/utils/davMapping.ts): `src/utils/davMapping.ts`
- [Cohort filters](https://github.com/ramhemanth09/student_analysis/blob/main/src/components/common/FilterBar.tsx): `src/components/common/FilterBar.tsx`
- [Cards and badges](https://github.com/ramhemanth09/student_analysis/blob/main/src/components/common/Card.tsx): `src/components/common/Card.tsx`
- [KPI card](https://github.com/ramhemanth09/student_analysis/blob/main/src/components/common/KpiCard.tsx): `src/components/common/KpiCard.tsx`

### Other components

- **Educators and students**

## Connections

- Educators and students → App provider: use dashboard (evidence: `src/App.tsx`)
- App provider → Shared data context: provides data (evidence: `src/App.tsx`)
- App provider → Page navigation: renders (evidence: `src/App.tsx`)
- Page navigation → Navigation bar: renders (evidence: `src/AppContent.tsx`)
- Page navigation → Role-aware sidebar: renders (evidence: `src/AppContent.tsx`)
- Page navigation → Role switching: renders (evidence: `src/AppContent.tsx`)
- Page navigation → About modal: renders (evidence: `src/AppContent.tsx`)
- Page navigation → Dashboard overview: routes to (evidence: `src/AppContent.tsx`)
- Page navigation → Student directory: routes to (evidence: `src/AppContent.tsx`)
- Page navigation → Student profile: routes to (evidence: `src/AppContent.tsx`)
- Page navigation → Class analytics: routes to (evidence: `src/AppContent.tsx`)
- Page navigation → Subject analysis: routes to (evidence: `src/AppContent.tsx`)
- Page navigation → Attendance analytics: routes to (evidence: `src/AppContent.tsx`)
- Page navigation → Assignment habits: routes to (evidence: `src/AppContent.tsx`)
- Page navigation → Academic support: routes to (evidence: `src/AppContent.tsx`)
- Page navigation → Data import: routes to (evidence: `src/AppContent.tsx`)
- Page navigation → Reports and export: routes to (evidence: `src/AppContent.tsx`)
- Page navigation → User management: routes to (evidence: `src/AppContent.tsx`)
- Shared data context → Initial dataset: loads seed (evidence: `src/context/DataContext.tsx`)
- Shared data context → Analytics calculations: calculates cohort (evidence: `src/context/DataContext.tsx`)
- Shared data context → Analytics calculations: calculates KPIs (evidence: `src/context/DataContext.tsx`)
- Shared data context → Academic mappings: formats years (evidence: `src/context/DataContext.tsx`)
- Dashboard overview → Shared data context: reads data (evidence: `src/pages/DashboardOverview.tsx`)
- Student directory → Shared data context: reads data (evidence: `src/pages/StudentDirectory.tsx`)
- Student profile → Shared data context: reads data (evidence: `src/pages/StudentProfile.tsx`)
- Class analytics → Shared data context: reads data (evidence: `src/pages/ClassSectionAnalytics.tsx`)
- Subject analysis → Shared data context: reads data (evidence: `src/pages/SubjectWiseAnalysis.tsx`)
- Attendance analytics → Shared data context: reads data (evidence: `src/pages/AttendanceAnalytics.tsx`)
- Assignment habits → Shared data context: reads data (evidence: `src/pages/AssignmentHabitsAnalytics.tsx`)
- Academic support → Shared data context: reads data (evidence: `src/pages/AcademicSupport.tsx`)
- Data import → Shared data context: imports data (evidence: `src/pages/DataImport.tsx`)
- Reports and export → Shared data context: reads data (evidence: `src/pages/ReportsExport.tsx`)
- User management → Shared data context: reads data (evidence: `src/pages/SettingsUserManagement.tsx`)
- Cohort filters → Shared data context: updates filters (evidence: `src/components/common/FilterBar.tsx`)
- Dashboard overview → Cohort filters: renders (evidence: `src/pages/DashboardOverview.tsx`)
- Dashboard overview → Analytics calculations: gets subject stats (evidence: `src/pages/DashboardOverview.tsx`)
- Reports and export → Analytics calculations: computes reports (evidence: `src/pages/ReportsExport.tsx`)
- Dashboard overview → KPI card: renders (evidence: `src/pages/DashboardOverview.tsx`)
- Dashboard overview → Cards and badges: renders (evidence: `src/pages/DashboardOverview.tsx`)
- Reports and export → Cards and badges: renders (evidence: `src/pages/ReportsExport.tsx`)
- Analytics calculations → Academic mappings: formats years (evidence: `src/utils/analytics.ts`)
