# kesi-ram/capstone_sana_matapos architecture

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

- Interactive diagram: https://gitdiagram.com/kesi-ram/capstone_sana_matapos
- Repository: https://github.com/kesi-ram/capstone_sana_matapos

## Overview

CFMS is a small React campus room-management prototype. A user reaches the dashboard through a sign-in screen, then can review room counts, search and filter rooms, and add, edit, or delete room records held in dashboard state. The README also names automated room assignments, but the sampled dashboard shows schedules and users only as placeholders; no assignment workflow or persistent backend is evidenced. Paths and links reflect the supplied tree and excerpts, including the dashboard’s local sample data.

Main entry points: [`capstone/src/components/dashboard/dashboardComponents/mainDash.jsx`](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/mainDash.jsx) (Dashboard), [`capstone/src/App.jsx`](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/App.jsx) (App gate), [`capstone/src/components/SIgnInPage/signin.jsx`](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/SIgnInPage/signin.jsx) (Sign-in form), [`capstone/src/components/dashboard/dashboardComponents/roomTable.jsx`](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/roomTable.jsx) (Room table)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["App gate<br/>[App.jsx]"]
  node_signin["Sign-in form<br/>[signin.jsx]"]
  node_sidebar["Page navigation<br/>[sidebar.jsx]"]
end

subgraph group_rooms["Room management"]
  node_dashboard["Dashboard<br/>[mainDash.jsx]"]
  node_roomdata["Sample rooms<br/>[rooms.js]"]
  node_roomtable["Room table<br/>[roomTable.jsx]"]
  node_roommodal["Room editor<br/>[editRoomModal.jsx]"]
end

subgraph group_placeholders["Other capabilities"]
  node_schedules["Schedule placeholder<br/>[mainDash.jsx]"]
  node_users["User placeholder<br/>[mainDash.jsx]"]
end

node_user(("Administrator"))

node_user -->|"enters credentials"| node_signin
node_app -->|"renders when logged out"| node_signin
node_app -->|"renders when logged in"| node_dashboard
node_signin -->|"triggers login callback"| node_app
node_dashboard -->|"initializes from"| node_roomdata
node_dashboard -->|"renders room lists"| node_roomtable
node_roomtable -->|"requests edits or deletion"| node_dashboard
node_dashboard -->|"renders editor"| node_roommodal
node_roommodal -->|"submits room data"| node_dashboard
node_dashboard -->|"renders navigation"| node_sidebar
node_dashboard -->|"shows placeholder for"| node_schedules
node_dashboard -->|"shows placeholder for"| node_users

click node_app "https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/App.jsx"
click node_signin "https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/SIgnInPage/signin.jsx"
click node_dashboard "https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/mainDash.jsx"
click node_roomdata "https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/data/rooms.js"
click node_roomtable "https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/roomTable.jsx"
click node_roommodal "https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/editRoomModal.jsx"
click node_sidebar "https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/sidebar.jsx"
click node_schedules "https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/mainDash.jsx"
click node_users "https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/mainDash.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_signin,node_sidebar toneBlue
class node_dashboard,node_roomdata,node_roomtable,node_roommodal toneAmber
class node_schedules,node_users toneMint
class node_user toneIndigo
```

## Components

### App entry

- [App gate](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/App.jsx): `capstone/src/App.jsx`
- [Sign-in form](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/SIgnInPage/signin.jsx): `capstone/src/components/SIgnInPage/signin.jsx`
- [Page navigation](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/sidebar.jsx): `capstone/src/components/dashboard/dashboardComponents/sidebar.jsx`

### Room management

- [Dashboard](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/mainDash.jsx): `capstone/src/components/dashboard/dashboardComponents/mainDash.jsx`
- [Sample rooms](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/data/rooms.js): `capstone/src/components/dashboard/data/rooms.js`
- [Room table](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/roomTable.jsx): `capstone/src/components/dashboard/dashboardComponents/roomTable.jsx`
- [Room editor](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/editRoomModal.jsx): `capstone/src/components/dashboard/dashboardComponents/editRoomModal.jsx`

### Other capabilities

- [Schedule placeholder](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/mainDash.jsx): `capstone/src/components/dashboard/dashboardComponents/mainDash.jsx`
- [User placeholder](https://github.com/kesi-ram/capstone_sana_matapos/blob/main/capstone/src/components/dashboard/dashboardComponents/mainDash.jsx): `capstone/src/components/dashboard/dashboardComponents/mainDash.jsx`

### Other components

- **Administrator**

## Connections

- Administrator → Sign-in form: enters credentials (evidence: `capstone/src/components/SIgnInPage/signin.jsx`)
- App gate → Sign-in form: renders when logged out (evidence: `capstone/src/App.jsx`)
- App gate → Dashboard: renders when logged in (evidence: `capstone/src/App.jsx`)
- Sign-in form → App gate: triggers login callback (evidence: `capstone/src/App.jsx`)
- Dashboard → Sample rooms: initializes from (evidence: `capstone/src/components/dashboard/dashboardComponents/mainDash.jsx`)
- Dashboard → Room table: renders room lists (evidence: `capstone/src/components/dashboard/dashboardComponents/mainDash.jsx`)
- Room table → Dashboard: requests edits or deletion (evidence: `capstone/src/components/dashboard/dashboardComponents/roomTable.jsx`)
- Dashboard → Room editor: renders editor (evidence: `capstone/src/components/dashboard/dashboardComponents/mainDash.jsx`)
- Room editor → Dashboard: submits room data (evidence: `capstone/src/components/dashboard/dashboardComponents/editRoomModal.jsx`)
- Dashboard → Page navigation: renders navigation (evidence: `capstone/src/components/dashboard/dashboardComponents/mainDash.jsx`)
- Dashboard → Schedule placeholder: shows placeholder for (evidence: `capstone/src/components/dashboard/dashboardComponents/mainDash.jsx`)
- Dashboard → User placeholder: shows placeholder for (evidence: `capstone/src/components/dashboard/dashboardComponents/mainDash.jsx`)
