# syafariarigayo/yayasan-app architecture

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

- Interactive diagram: https://gitdiagram.com/syafariarigayo/yayasan-app
- Repository: https://github.com/syafariarigayo/yayasan-app

## Overview

Yayasan Wakaf Cendekia is a React-based foundation HR management frontend. Users enter through login or a public internship-registration form; staff then use routed dashboard pages to manage employee records, internship applications, attendance, payroll and performance evaluations. The shared Axios client attaches authentication tokens and targets a backend at port 5100. The graph preserves the documented feature areas, but the excerpts do not establish most page-to-backend calls, so those links are omitted rather than inferred.

Main entry points: [`src/App.js`](https://github.com/syafariarigayo/yayasan-app/blob/main/src/App.js) (Route application), [`src/api/axios.js`](https://github.com/syafariarigayo/yayasan-app/blob/main/src/api/axios.js) (Authenticated API client), [`src/pages/DashboardOverview.jsx`](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/DashboardOverview.jsx) (Dashboard overview), [`src/pages/DataKaryawan.jsx`](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/DataKaryawan.jsx) (Employee records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_app["Route application<br/>[App.js]"]
  node_layout["Dashboard shell"]
  node_login["Login<br/>[Login.jsx]"]
  node_dashboard["Dashboard overview"]
  node_api["Authenticated API client<br/>[axios.js]"]
end

subgraph group_people["People Management"]
  node_employees["Employee records<br/>[DataKaryawan.jsx]"]
  node_employee_form["Employee form modal"]
  node_employee_full_form["Complete employee form"]
  node_edit_employee["Edit employee<br/>[EditKaryawan.jsx]"]
  node_new_employee["New employee form"]
  node_internship_registration["Internship registration"]
  node_internship_management["Internship management"]
end

subgraph group_operations["HR Operations"]
  node_attendance_import["Attendance import<br/>[ImportAbsensi.jsx]"]
  node_attendance_summary["Attendance summary<br/>[RekapAbsensi.jsx]"]
  node_attendance_entry["Attendance entry<br/>[Absensi.jsx]"]
  node_performance["Performance evaluation"]
end

subgraph group_payroll["Payroll"]
  node_payroll["Payroll management<br/>[Penggajian.jsx]"]
  node_salary_calc["Salary calculation<br/>[HitungGaji.jsx]"]
  node_salary_summary["Salary summary<br/>[RekapGaji.jsx]"]
  node_payslip["Payslip<br/>[SlipGaji.jsx]"]
end

node_user(("Staff user"))
node_backend["Backend API"]

node_user -.->|"opens"| node_app
node_app -->|"routes"| node_login
node_app -->|"routes"| node_internship_registration
node_app -->|"wraps routes"| node_layout
node_app -->|"routes"| node_dashboard
node_app -->|"routes"| node_employees
node_app -->|"routes"| node_edit_employee
node_app -->|"routes"| node_internship_management
node_app -->|"routes"| node_performance
node_app -->|"routes"| node_attendance_import
node_app -->|"routes"| node_attendance_summary
node_app -->|"routes"| node_payroll
node_app -->|"routes"| node_salary_summary
node_app -->|"routes"| node_payslip
node_employees -->|"fetches employee data"| node_api
node_employees -->|"opens modal"| node_employee_form
node_employee_form -->|"submits employee data"| node_api
node_employee_full_form -->|"submits employee data"| node_api
node_dashboard -->|"uses client"| node_api
node_dashboard -->|"uses modal"| node_employee_form
node_salary_summary -->|"loads salary data"| node_api
node_internship_registration -->|"posts application"| node_backend
node_api -->|"sends API requests"| node_backend

click node_app "https://github.com/syafariarigayo/yayasan-app/blob/main/src/App.js"
click node_layout "https://github.com/syafariarigayo/yayasan-app/blob/main/src/layouts/DashboardLayout.jsx"
click node_login "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/Login.jsx"
click node_dashboard "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/DashboardOverview.jsx"
click node_api "https://github.com/syafariarigayo/yayasan-app/blob/main/src/api/axios.js"
click node_employees "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/DataKaryawan.jsx"
click node_employee_form "https://github.com/syafariarigayo/yayasan-app/blob/main/src/components/ModalTambahKaryawan.jsx"
click node_employee_full_form "https://github.com/syafariarigayo/yayasan-app/blob/main/src/components/TambahKaryawanLengkap.jsx"
click node_edit_employee "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/EditKaryawan.jsx"
click node_new_employee "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/FormKaryawanBaru.jsx"
click node_internship_registration "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/FormPendaftaranMagang.jsx"
click node_internship_management "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/ManagementMagang.jsx"
click node_attendance_import "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/ImportAbsensi.jsx"
click node_attendance_summary "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/RekapAbsensi.jsx"
click node_attendance_entry "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/Absensi.jsx"
click node_performance "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/PenilaianKinerja.jsx"
click node_payroll "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/Penggajian.jsx"
click node_salary_calc "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/HitungGaji.jsx"
click node_salary_summary "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/RekapGaji.jsx"
click node_payslip "https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/SlipGaji.jsx"

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_layout,node_login,node_dashboard,node_api,node_user toneBlue
class node_employees,node_employee_form,node_employee_full_form,node_edit_employee,node_new_employee,node_internship_registration,node_internship_management toneAmber
class node_attendance_import,node_attendance_summary,node_attendance_entry,node_performance,node_backend toneMint
class node_payroll,node_salary_calc,node_salary_summary,node_payslip toneRose
```

## Components

### Application Shell

- [Route application](https://github.com/syafariarigayo/yayasan-app/blob/main/src/App.js): `src/App.js`
- [Dashboard shell](https://github.com/syafariarigayo/yayasan-app/blob/main/src/layouts/DashboardLayout.jsx): `src/layouts/DashboardLayout.jsx`
- [Login](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/Login.jsx): `src/pages/Login.jsx`
- [Dashboard overview](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/DashboardOverview.jsx): `src/pages/DashboardOverview.jsx`
- [Authenticated API client](https://github.com/syafariarigayo/yayasan-app/blob/main/src/api/axios.js): `src/api/axios.js`

### People Management

- [Employee records](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/DataKaryawan.jsx): `src/pages/DataKaryawan.jsx`
- [Employee form modal](https://github.com/syafariarigayo/yayasan-app/blob/main/src/components/ModalTambahKaryawan.jsx): `src/components/ModalTambahKaryawan.jsx`
- [Complete employee form](https://github.com/syafariarigayo/yayasan-app/blob/main/src/components/TambahKaryawanLengkap.jsx): `src/components/TambahKaryawanLengkap.jsx`
- [Edit employee](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/EditKaryawan.jsx): `src/pages/EditKaryawan.jsx`
- [New employee form](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/FormKaryawanBaru.jsx): `src/pages/FormKaryawanBaru.jsx`
- [Internship registration](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/FormPendaftaranMagang.jsx): `src/pages/FormPendaftaranMagang.jsx`
- [Internship management](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/ManagementMagang.jsx): `src/pages/ManagementMagang.jsx`

### HR Operations

- [Attendance import](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/ImportAbsensi.jsx): `src/pages/ImportAbsensi.jsx`
- [Attendance summary](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/RekapAbsensi.jsx): `src/pages/RekapAbsensi.jsx`
- [Attendance entry](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/Absensi.jsx): `src/pages/Absensi.jsx`
- [Performance evaluation](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/PenilaianKinerja.jsx): `src/pages/PenilaianKinerja.jsx`

### Payroll

- [Payroll management](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/Penggajian.jsx): `src/pages/Penggajian.jsx`
- [Salary calculation](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/HitungGaji.jsx): `src/pages/HitungGaji.jsx`
- [Salary summary](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/RekapGaji.jsx): `src/pages/RekapGaji.jsx`
- [Payslip](https://github.com/syafariarigayo/yayasan-app/blob/main/src/pages/SlipGaji.jsx): `src/pages/SlipGaji.jsx`

### Other components

- **Staff user**
- **Backend API**

## Connections

- Staff user → Route application: opens
- Route application → Login: routes (evidence: `src/App.js`)
- Route application → Internship registration: routes (evidence: `src/App.js`)
- Route application → Dashboard shell: wraps routes (evidence: `src/App.js`)
- Route application → Dashboard overview: routes (evidence: `src/App.js`)
- Route application → Employee records: routes (evidence: `src/App.js`)
- Route application → Edit employee: routes (evidence: `src/App.js`)
- Route application → Internship management: routes (evidence: `src/App.js`)
- Route application → Performance evaluation: routes (evidence: `src/App.js`)
- Route application → Attendance import: routes (evidence: `src/App.js`)
- Route application → Attendance summary: routes (evidence: `src/App.js`)
- Route application → Payroll management: routes (evidence: `src/App.js`)
- Route application → Salary summary: routes (evidence: `src/App.js`)
- Route application → Payslip: routes (evidence: `src/App.js`)
- Employee records → Authenticated API client: fetches employee data (evidence: `src/pages/DataKaryawan.jsx`)
- Employee records → Employee form modal: opens modal (evidence: `src/pages/DataKaryawan.jsx`)
- Employee form modal → Authenticated API client: submits employee data (evidence: `src/components/ModalTambahKaryawan.jsx`)
- Complete employee form → Authenticated API client: submits employee data (evidence: `src/components/TambahKaryawanLengkap.jsx`)
- Dashboard overview → Authenticated API client: uses client (evidence: `src/pages/DashboardOverview.jsx`)
- Dashboard overview → Employee form modal: uses modal (evidence: `src/pages/DashboardOverview.jsx`)
- Salary summary → Authenticated API client: loads salary data (evidence: `src/pages/RekapGaji.jsx`)
- Internship registration → Backend API: posts application (evidence: `src/pages/FormPendaftaranMagang.jsx`)
- Authenticated API client → Backend API: sends API requests (evidence: `src/api/axios.js`)
