# bebin-tech/kahe-tms architecture

> Architecture diagram of the GitHub repository bebin-tech/kahe-tms, 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/bebin-tech/kahe-tms
- Repository: https://github.com/bebin-tech/kahe-tms

## Overview

KAHE TMS coordinates academic work across Admin, Dean, HOD, and Faculty roles. Users authenticate into independent role sessions, then create and assign tasks, delegate subtasks, submit work, and review or finalize submissions; approved work appears in completed-task history and reporting. The React application presents role-specific dashboards and administration modules, while a Django REST API enforces the workflow and persists its domain records. The README documents the major capabilities; sampled source confirms API routing, persistence models, session handling, and selected UI-to-API relationships.

Main entry points: [`frontend/src/api/axios.js`](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/api/axios.js) (API client), [`frontend/src/App.jsx`](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/App.jsx) (Route application), [`frontend/src/pages/Tasks.jsx`](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/Tasks.jsx) (Tasks and approvals), [`backend/core/views.py`](https://github.com/bebin-tech/kahe-tms/blob/main/backend/core/views.py) (Workflow handlers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and navigation"]
  node_app["Route application<br/>[App.jsx]"]
  node_session["Role sessions<br/>[session.js]"]
  node_auth["Route protection<br/>[ProtectedRoute.jsx]"]
  node_shell["Dashboard navigation"]
end

subgraph group_workflow["Task workflow"]
  node_dashboards["Role dashboards"]
  node_tasks["Tasks and approvals<br/>[Tasks.jsx]"]
  node_hod["HOD work queue<br/>[HODDashboard.jsx]"]
  node_faculty["Faculty dashboard"]
  node_taskdialogs["Task dialogs"]
  node_subtaskdialog["Subtask dialog"]
  node_reviewdialog["Submission review"]
  node_completed["Completed work<br/>[CompletedTasks.jsx]"]
end

subgraph group_admin["Administration and insight"]
  node_usersadmin["User management<br/>[UserManagement.jsx]"]
  node_departments["Department management"]
  node_settings["Settings and access<br/>[Settings.jsx]"]
  node_permissions["Module permissions"]
  node_reports["Reports<br/>[Reports.jsx]"]
  node_calendar["Academic calendar"]
  node_notes["Notes and reminders<br/>[Notes.jsx]"]
end

subgraph group_backend["API and persistence"]
  node_client["API client<br/>[axios.js]"]
  node_api["REST endpoints<br/>[urls.py]"]
  node_views["Workflow handlers<br/>[views.py]"]
  node_serializers["API serializers<br/>[serializers.py]"]
  node_models["Domain records<br/>[models.py]"]
  node_database[("Relational database")]
end

node_users(("Academic users"))

node_users -->|"use"| node_app
node_app -->|"protects routes"| node_auth
node_auth -->|"checks session"| node_session
node_app -->|"wraps pages"| node_shell
node_users -->|"view role dashboard"| node_dashboards
node_shell -->|"navigates"| node_dashboards
node_dashboards -.->|"request data"| node_client
node_users -->|"manage assignments"| node_tasks
node_tasks -->|"request task actions"| node_client
node_tasks -->|"opens"| node_taskdialogs
node_hod -->|"assigns subtasks"| node_subtaskdialog
node_faculty -->|"submit work"| node_client
node_hod -.->|"reviews submissions"| node_reviewdialog
node_users -->|"view finalized work"| node_completed
node_users -->|"manage accounts"| node_usersadmin
node_users -->|"manage departments"| node_departments
node_users -->|"configure access"| node_settings
node_settings -.->|"controls permissions"| node_permissions
node_users -->|"review workflow history"| node_reports
node_users -.->|"view calendar"| node_calendar
node_users -.->|"manage notes"| node_notes
node_client -->|"sends requests"| node_api
node_api -->|"routes requests"| node_views
node_views -->|"validates and formats"| node_serializers
node_serializers -->|"maps records"| node_models
node_views -->|"reads and writes"| node_models
node_models -->|"persisted in"| node_database

click node_app "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/App.jsx"
click node_session "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/utils/session.js"
click node_auth "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/components/ProtectedRoute.jsx"
click node_shell "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/components/DashboardLayout.jsx"
click node_client "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/api/axios.js"
click node_dashboards "https://github.com/bebin-tech/kahe-tms/tree/main/frontend/src/pages"
click node_tasks "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/Tasks.jsx"
click node_hod "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/HODDashboard.jsx"
click node_faculty "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/FacultyDashboard.jsx"
click node_taskdialogs "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/components/CreateTaskDialog.jsx"
click node_subtaskdialog "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/components/CreateSubTaskDialog.jsx"
click node_reviewdialog "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/components/ReviewSubmissionDialog.jsx"
click node_completed "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/CompletedTasks.jsx"
click node_usersadmin "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/UserManagement.jsx"
click node_departments "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/DepartmentManagement.jsx"
click node_settings "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/Settings.jsx"
click node_permissions "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/utils/modulePermissions.js"
click node_reports "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/Reports.jsx"
click node_calendar "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/AcademicCalendar.jsx"
click node_notes "https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/Notes.jsx"
click node_api "https://github.com/bebin-tech/kahe-tms/blob/main/backend/core/urls.py"
click node_views "https://github.com/bebin-tech/kahe-tms/blob/main/backend/core/views.py"
click node_serializers "https://github.com/bebin-tech/kahe-tms/blob/main/backend/core/serializers.py"
click node_models "https://github.com/bebin-tech/kahe-tms/blob/main/backend/core/models.py"

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_session,node_auth,node_shell,node_users toneBlue
class node_dashboards,node_tasks,node_hod,node_faculty,node_taskdialogs,node_subtaskdialog,node_reviewdialog,node_completed toneAmber
class node_usersadmin,node_departments,node_settings,node_permissions,node_reports,node_calendar,node_notes toneMint
class node_client,node_api,node_views,node_serializers,node_models,node_database toneRose
```

## Components

### Access and navigation

- [Route application](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Role sessions](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/utils/session.js): `frontend/src/utils/session.js`
- [Route protection](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/components/ProtectedRoute.jsx): `frontend/src/components/ProtectedRoute.jsx`
- [Dashboard navigation](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/components/DashboardLayout.jsx): `frontend/src/components/DashboardLayout.jsx`

### Task workflow

- [Role dashboards](https://github.com/bebin-tech/kahe-tms/tree/main/frontend/src/pages): `frontend/src/pages`
- [Tasks and approvals](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/Tasks.jsx): `frontend/src/pages/Tasks.jsx`
- [HOD work queue](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/HODDashboard.jsx): `frontend/src/pages/HODDashboard.jsx`
- [Faculty dashboard](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/FacultyDashboard.jsx): `frontend/src/pages/FacultyDashboard.jsx`
- [Task dialogs](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/components/CreateTaskDialog.jsx): `frontend/src/components/CreateTaskDialog.jsx`
- [Subtask dialog](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/components/CreateSubTaskDialog.jsx): `frontend/src/components/CreateSubTaskDialog.jsx`
- [Submission review](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/components/ReviewSubmissionDialog.jsx): `frontend/src/components/ReviewSubmissionDialog.jsx`
- [Completed work](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/CompletedTasks.jsx): `frontend/src/pages/CompletedTasks.jsx`

### Administration and insight

- [User management](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/UserManagement.jsx): `frontend/src/pages/UserManagement.jsx`
- [Department management](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/DepartmentManagement.jsx): `frontend/src/pages/DepartmentManagement.jsx`
- [Settings and access](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/Settings.jsx): `frontend/src/pages/Settings.jsx`
- [Module permissions](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/utils/modulePermissions.js): `frontend/src/utils/modulePermissions.js`
- [Reports](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/Reports.jsx): `frontend/src/pages/Reports.jsx`
- [Academic calendar](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/AcademicCalendar.jsx): `frontend/src/pages/AcademicCalendar.jsx`
- [Notes and reminders](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/pages/Notes.jsx): `frontend/src/pages/Notes.jsx`

### API and persistence

- [API client](https://github.com/bebin-tech/kahe-tms/blob/main/frontend/src/api/axios.js): `frontend/src/api/axios.js`
- [REST endpoints](https://github.com/bebin-tech/kahe-tms/blob/main/backend/core/urls.py): `backend/core/urls.py`
- [Workflow handlers](https://github.com/bebin-tech/kahe-tms/blob/main/backend/core/views.py): `backend/core/views.py`
- [API serializers](https://github.com/bebin-tech/kahe-tms/blob/main/backend/core/serializers.py): `backend/core/serializers.py`
- [Domain records](https://github.com/bebin-tech/kahe-tms/blob/main/backend/core/models.py): `backend/core/models.py`
- **Relational database**

### Other components

- **Academic users**

## Connections

- Academic users → Route application: use (evidence: `README.md`)
- Route application → Route protection: protects routes (evidence: `frontend/src/App.jsx`)
- Route protection → Role sessions: checks session (evidence: `frontend/src/utils/session.js`)
- Route application → Dashboard navigation: wraps pages (evidence: `frontend/src/App.jsx`)
- Academic users → Role dashboards: view role dashboard (evidence: `README.md`)
- Dashboard navigation → Role dashboards: navigates (evidence: `frontend/src/components/DashboardLayout.jsx`)
- Role dashboards → API client: request data (evidence: `frontend/src/pages/Tasks.jsx`)
- Academic users → Tasks and approvals: manage assignments (evidence: `README.md`)
- Tasks and approvals → API client: request task actions (evidence: `frontend/src/pages/Tasks.jsx`)
- Tasks and approvals → Task dialogs: opens (evidence: `frontend/src/pages/Tasks.jsx`)
- HOD work queue → Subtask dialog: assigns subtasks (evidence: `frontend/src/pages/HODDashboard.jsx`)
- Faculty dashboard → API client: submit work (evidence: `README.md`)
- HOD work queue → Submission review: reviews submissions (evidence: `frontend/src/pages/HODDashboard.jsx`)
- Academic users → Completed work: view finalized work (evidence: `README.md`)
- Academic users → User management: manage accounts (evidence: `README.md`)
- Academic users → Department management: manage departments (evidence: `README.md`)
- Academic users → Settings and access: configure access (evidence: `README.md`)
- Settings and access → Module permissions: controls permissions
- Academic users → Reports: review workflow history (evidence: `README.md`)
- Academic users → Academic calendar: view calendar
- Academic users → Notes and reminders: manage notes
- API client → REST endpoints: sends requests (evidence: `frontend/src/api/axios.js`)
- REST endpoints → Workflow handlers: routes requests (evidence: `backend/core/urls.py`)
- Workflow handlers → API serializers: validates and formats (evidence: `backend/core/views.py`)
- API serializers → Domain records: maps records (evidence: `backend/core/serializers.py`)
- Workflow handlers → Domain records: reads and writes (evidence: `backend/core/views.py`)
- Domain records → Relational database: persisted in (evidence: `README.md`)
