# afaanya/positron-2026 architecture

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

- Interactive diagram: https://gitdiagram.com/afaanya/positron-2026
- Repository: https://github.com/afaanya/positron-2026

## Overview

POSITRON 2026 is a role-based event and mentoring portal. Users enter through login, then access shared event information or role-specific pages; mentors review students and save assessments, while students maintain biodata and view scores. The graph reflects routes and calls visible in excerpts and the SOURCE INDEX; unsampled page and feature implementations are represented only at their supported directory paths.

Main entry points: [`routes/web.php`](https://github.com/afaanya/positron-2026/blob/syumm/routes/web.php) (Web routes), [`resources/js/mentor/assessment.js`](https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/assessment.js) (Assessment workflow), [`app/Http/Controllers/MentorController.php`](https://github.com/afaanya/positron-2026/blob/syumm/app/Http/Controllers/MentorController.php) (Mentor portal logic), [`app/Http/Controllers/Auth/LoginController.php`](https://github.com/afaanya/positron-2026/blob/syumm/app/Http/Controllers/Auth/LoginController.php) (Role login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry and access"]
  node_routes["Web routes<br/>[web.php]"]
  node_bootstrap["App bootstrap<br/>[app.php]"]
  node_login["Role login"]
  node_access["Role middleware"]
  node_accounts["Role accounts"]
end

subgraph group_event["Event information"]
  node_landing["Landing and event pages"]
  node_eventcontent["Event content interactions"]
end

subgraph group_mentor["Mentor assessment"]
  node_mentorportal["Mentor portal pages"]
  node_mentorcontroller["Mentor portal logic"]
  node_assessment["Assessment workflow<br/>[assessment.js]"]
  node_dashboard["Mentor dashboard<br/>[dashboard.js]"]
  node_mentorstate["Portal state and config<br/>[state.js]"]
  node_mentornav["Portal navigation<br/>[nav.js]"]
  node_mentorutils["Portal utilities<br/>[utils.js]"]
end

subgraph group_student["Student services"]
  node_studentcontroller["Student profile and scores"]
  node_studentpages["Student service pages"]
end

node_visitor(("Browser visitor"))
node_database[("Application database")]

node_visitor -->|"requests pages"| node_routes
node_routes -->|"configured by"| node_bootstrap
node_routes -->|"routes login"| node_login
node_bootstrap -->|"registers middleware"| node_access
node_routes -->|"gates pages"| node_access
node_login -->|"checks credentials"| node_database
node_login -.->|"sets role sessions"| node_accounts
node_routes -->|"renders event pages"| node_landing
node_landing -.->|"uses page interactions"| node_eventcontent
node_routes -->|"routes portal actions"| node_mentorcontroller
node_mentorcontroller -->|"reads students and scores"| node_database
node_mentorcontroller -->|"renders mentor home"| node_mentorportal
node_mentorportal -.->|"provides assessment UI"| node_assessment
node_assessment -->|"uses state and sections"| node_mentorstate
node_assessment -->|"refreshes dashboard"| node_dashboard
node_assessment -->|"changes portal page"| node_mentornav
node_assessment -->|"uses UI helpers"| node_mentorutils
node_assessment -->|"posts saved scores"| node_mentorcontroller
node_routes -->|"routes student actions"| node_studentcontroller
node_studentcontroller -->|"reads and updates records"| node_database
node_studentcontroller -->|"renders profile and scores"| node_studentpages
node_routes -->|"routes student pages"| node_studentpages

click node_routes "https://github.com/afaanya/positron-2026/blob/syumm/routes/web.php"
click node_bootstrap "https://github.com/afaanya/positron-2026/blob/syumm/bootstrap/app.php"
click node_login "https://github.com/afaanya/positron-2026/blob/syumm/app/Http/Controllers/Auth/LoginController.php"
click node_access "https://github.com/afaanya/positron-2026/tree/syumm/app/Http/Middleware"
click node_accounts "https://github.com/afaanya/positron-2026/tree/syumm/app/Models"
click node_landing "https://github.com/afaanya/positron-2026/tree/syumm/resources/views"
click node_eventcontent "https://github.com/afaanya/positron-2026/tree/syumm/resources/js"
click node_mentorportal "https://github.com/afaanya/positron-2026/tree/syumm/resources/views/mentor"
click node_mentorcontroller "https://github.com/afaanya/positron-2026/blob/syumm/app/Http/Controllers/MentorController.php"
click node_assessment "https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/assessment.js"
click node_dashboard "https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/dashboard.js"
click node_mentorstate "https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/state.js"
click node_mentornav "https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/nav.js"
click node_mentorutils "https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/utils.js"
click node_studentcontroller "https://github.com/afaanya/positron-2026/blob/syumm/app/Http/Controllers/MahasiswaController.php"
click node_studentpages "https://github.com/afaanya/positron-2026/tree/syumm/resources/views"

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_routes,node_bootstrap,node_login,node_access,node_accounts,node_visitor toneBlue
class node_landing,node_eventcontent,node_database toneAmber
class node_mentorportal,node_mentorcontroller,node_assessment,node_dashboard,node_mentorstate,node_mentornav,node_mentorutils toneMint
class node_studentcontroller,node_studentpages toneRose
```

## Components

### Web entry and access

- [Web routes](https://github.com/afaanya/positron-2026/blob/syumm/routes/web.php): `routes/web.php`
- [App bootstrap](https://github.com/afaanya/positron-2026/blob/syumm/bootstrap/app.php): `bootstrap/app.php`
- [Role login](https://github.com/afaanya/positron-2026/blob/syumm/app/Http/Controllers/Auth/LoginController.php): `app/Http/Controllers/Auth/LoginController.php`
- [Role middleware](https://github.com/afaanya/positron-2026/tree/syumm/app/Http/Middleware): `app/Http/Middleware`
- [Role accounts](https://github.com/afaanya/positron-2026/tree/syumm/app/Models): `app/Models`

### Event information

- [Landing and event pages](https://github.com/afaanya/positron-2026/tree/syumm/resources/views): `resources/views`
- [Event content interactions](https://github.com/afaanya/positron-2026/tree/syumm/resources/js): `resources/js`

### Mentor assessment

- [Mentor portal pages](https://github.com/afaanya/positron-2026/tree/syumm/resources/views/mentor): `resources/views/mentor`
- [Mentor portal logic](https://github.com/afaanya/positron-2026/blob/syumm/app/Http/Controllers/MentorController.php): `app/Http/Controllers/MentorController.php`
- [Assessment workflow](https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/assessment.js): `resources/js/mentor/assessment.js`
- [Mentor dashboard](https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/dashboard.js): `resources/js/mentor/dashboard.js`
- [Portal state and config](https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/state.js): `resources/js/mentor/state.js`
- [Portal navigation](https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/nav.js): `resources/js/mentor/nav.js`
- [Portal utilities](https://github.com/afaanya/positron-2026/blob/syumm/resources/js/mentor/utils.js): `resources/js/mentor/utils.js`

### Student services

- [Student profile and scores](https://github.com/afaanya/positron-2026/blob/syumm/app/Http/Controllers/MahasiswaController.php): `app/Http/Controllers/MahasiswaController.php`
- [Student service pages](https://github.com/afaanya/positron-2026/tree/syumm/resources/views): `resources/views`

### Other components

- **Browser visitor**
- **Application database**

## Connections

- Browser visitor → Web routes: requests pages (evidence: `routes/web.php`)
- Web routes → App bootstrap: configured by (evidence: `bootstrap/app.php`)
- Web routes → Role login: routes login (evidence: `routes/web.php`)
- App bootstrap → Role middleware: registers middleware (evidence: `bootstrap/app.php`)
- Web routes → Role middleware: gates pages (evidence: `routes/web.php`)
- Role login → Application database: checks credentials (evidence: `app/Http/Controllers/Auth/LoginController.php`)
- Role login → Role accounts: sets role sessions
- Web routes → Landing and event pages: renders event pages (evidence: `routes/web.php`)
- Landing and event pages → Event content interactions: uses page interactions
- Web routes → Mentor portal logic: routes portal actions (evidence: `routes/web.php`)
- Mentor portal logic → Application database: reads students and scores (evidence: `app/Http/Controllers/MentorController.php`)
- Mentor portal logic → Mentor portal pages: renders mentor home (evidence: `app/Http/Controllers/MentorController.php`)
- Mentor portal pages → Assessment workflow: provides assessment UI
- Assessment workflow → Portal state and config: uses state and sections (evidence: `resources/js/mentor/assessment.js`)
- Assessment workflow → Mentor dashboard: refreshes dashboard (evidence: `resources/js/mentor/assessment.js`)
- Assessment workflow → Portal navigation: changes portal page (evidence: `resources/js/mentor/assessment.js`)
- Assessment workflow → Portal utilities: uses UI helpers (evidence: `resources/js/mentor/assessment.js`)
- Assessment workflow → Mentor portal logic: posts saved scores (evidence: `resources/js/mentor/assessment.js`)
- Web routes → Student profile and scores: routes student actions (evidence: `routes/web.php`)
- Student profile and scores → Application database: reads and updates records (evidence: `app/Http/Controllers/MahasiswaController.php`)
- Student profile and scores → Student service pages: renders profile and scores (evidence: `app/Http/Controllers/MahasiswaController.php`)
- Web routes → Student service pages: routes student pages (evidence: `routes/web.php`)
