# sejalfakare/web-dev-nayi-disha architecture

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

- Interactive diagram: https://gitdiagram.com/sejalfakare/web-dev-nayi-disha
- Repository: https://github.com/sejalfakare/web-dev-nayi-disha

## Overview

NayiDisha is a teacher-and-parent child-support portal. The teacher workflow records a classroom voice note, prepares a transcript and behavior tags for teacher review, then saves it for display in classroom and parent views. The sampled code shows local sample data and component state rather than a backend or persistent store; login is also UI-only. The tree contains overlapping Next.js and Vite app entry points, so both are shown without assuming how they are deployed together.

Main entry points: [`components/dashboard-shell.tsx`](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/dashboard-shell.tsx) (Dashboard shell), [`lib/students.ts`](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/lib/students.ts) (Student and voice logs), [`components/portal-login.tsx`](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/portal-login.tsx) (Role login), [`src/App.jsx`](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/src/App.jsx) (Vite app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry points"]
  node_vite_mount["Vite mount<br/>[main.jsx]"]
  node_vite_app["Vite app<br/>[App.jsx]"]
  node_login["Role login<br/>[portal-login.tsx]"]
  node_teacher_route["Teacher route<br/>[page.tsx]"]
  node_parent_route["Parent route<br/>[page.tsx]"]
  node_landing["Landing page<br/>[landing-page.tsx]"]
end

subgraph group_teacher["Teacher workspace"]
  node_teacher_dashboard["Teacher dashboard"]
  node_dashboard_shell["Dashboard shell"]
  node_voice_note["Voice note review"]
  node_child_detail["Child detail"]
  node_student_card["Student card<br/>[student-card.tsx]"]
end

subgraph group_family["Parent portal"]
  node_parent_portal["Parent portal<br/>[parent-portal.tsx]"]
end

subgraph group_shared["Shared domain data"]
  node_student_data["Student and voice logs<br/>[students.ts]"]
end

node_teacher_actor(("Teacher"))
node_parent_actor(("Parent"))

node_vite_mount -->|"renders"| node_vite_app
node_vite_app -->|"renders"| node_teacher_dashboard
node_teacher_route -->|"renders"| node_dashboard_shell
node_parent_route -->|"renders"| node_parent_portal
node_teacher_actor -->|"signs in"| node_login
node_parent_actor -->|"signs in"| node_login
node_login -->|"redirects"| node_teacher_route
node_teacher_dashboard -->|"uses sample data"| node_student_data
node_dashboard_shell -->|"uses student data"| node_student_data
node_dashboard_shell -->|"opens"| node_voice_note
node_dashboard_shell -->|"opens"| node_child_detail
node_dashboard_shell -->|"renders"| node_student_card
node_voice_note -->|"uses data types"| node_student_data
node_child_detail -->|"reads logs"| node_student_data
node_parent_portal -->|"reads child logs"| node_student_data
node_landing -.->|"links to"| node_login

click node_vite_mount "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/src/main.jsx"
click node_vite_app "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/src/App.jsx"
click node_teacher_dashboard "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/src/TeacherDashboard.jsx"
click node_login "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/portal-login.tsx"
click node_teacher_route "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/app/teacher/page.tsx"
click node_dashboard_shell "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/dashboard-shell.tsx"
click node_voice_note "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/voice-note-modal.tsx"
click node_child_detail "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/child-detail-panel.tsx"
click node_student_card "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/student-card.tsx"
click node_parent_route "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/app/parent/page.tsx"
click node_parent_portal "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/parent-portal.tsx"
click node_student_data "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/lib/students.ts"
click node_landing "https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/landing-page.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_vite_mount,node_vite_app,node_login,node_teacher_route,node_parent_route,node_landing toneBlue
class node_teacher_dashboard,node_dashboard_shell,node_voice_note,node_child_detail,node_student_card toneAmber
class node_parent_portal toneMint
class node_student_data toneRose
class node_teacher_actor,node_parent_actor toneIndigo
```

## Components

### App entry points

- [Vite mount](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/src/main.jsx): `src/main.jsx`
- [Vite app](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/src/App.jsx): `src/App.jsx`
- [Role login](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/portal-login.tsx): `components/portal-login.tsx`
- [Teacher route](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/app/teacher/page.tsx): `app/teacher/page.tsx`
- [Parent route](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/app/parent/page.tsx): `app/parent/page.tsx`
- [Landing page](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/landing-page.tsx): `components/landing-page.tsx`

### Teacher workspace

- [Teacher dashboard](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/src/TeacherDashboard.jsx): `src/TeacherDashboard.jsx`
- [Dashboard shell](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/dashboard-shell.tsx): `components/dashboard-shell.tsx`
- [Voice note review](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/voice-note-modal.tsx): `components/voice-note-modal.tsx`
- [Child detail](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/child-detail-panel.tsx): `components/child-detail-panel.tsx`
- [Student card](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/student-card.tsx): `components/student-card.tsx`

### Parent portal

- [Parent portal](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/components/parent-portal.tsx): `components/parent-portal.tsx`

### Shared domain data

- [Student and voice logs](https://github.com/sejalfakare/web-dev-nayi-disha/blob/main/lib/students.ts): `lib/students.ts`

### Other components

- **Teacher**
- **Parent**

## Connections

- Vite mount → Vite app: renders (evidence: `src/main.jsx`)
- Vite app → Teacher dashboard: renders (evidence: `src/App.jsx`)
- Teacher route → Dashboard shell: renders (evidence: `app/teacher/page.tsx`)
- Parent route → Parent portal: renders (evidence: `app/parent/page.tsx`)
- Teacher → Role login: signs in (evidence: `components/portal-login.tsx`)
- Parent → Role login: signs in (evidence: `components/portal-login.tsx`)
- Role login → Teacher route: redirects (evidence: `components/portal-login.tsx`)
- Teacher dashboard → Student and voice logs: uses sample data (evidence: `src/TeacherDashboard.jsx`)
- Dashboard shell → Student and voice logs: uses student data (evidence: `components/dashboard-shell.tsx`)
- Dashboard shell → Voice note review: opens (evidence: `components/dashboard-shell.tsx`)
- Dashboard shell → Child detail: opens (evidence: `components/dashboard-shell.tsx`)
- Dashboard shell → Student card: renders (evidence: `components/dashboard-shell.tsx`)
- Voice note review → Student and voice logs: uses data types (evidence: `components/voice-note-modal.tsx`)
- Child detail → Student and voice logs: reads logs (evidence: `components/child-detail-panel.tsx`)
- Parent portal → Student and voice logs: reads child logs (evidence: `components/parent-portal.tsx`)
- Landing page → Role login: links to
