# research-and-creativity/zescore architecture

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

- Interactive diagram: https://gitdiagram.com/research-and-creativity/zescore
- Repository: https://github.com/research-and-creativity/zescore

## Overview

ZeScore is a web-based expo evaluation and voting kiosk with public registration, evaluator voting/scoring, and an admin console. The main flow is evaluator identification and kiosk evaluation, with category availability and submission coordinated through kiosk state and API calls. Admins sign in, manage teams and users, inspect dashboard analytics, and review score recaps. The README describes participant device-lock mode, but the shown routes and source do not establish a separate participant workflow; backend behavior is external to this frontend.

Main entry points: [`src/App.tsx`](https://github.com/research-and-creativity/zescore/blob/main/src/App.tsx) (Route Application), [`src/config/api.ts`](https://github.com/research-and-creativity/zescore/blob/main/src/config/api.ts) (API Client), [`src/features/kiosk/KioskPage.tsx`](https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskPage.tsx) (Kiosk Workflow), [`src/store/useKioskStore.ts`](https://github.com/research-and-creativity/zescore/blob/main/src/store/useKioskStore.ts) (Kiosk Session State)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App Entry"]
  node_app["Route Application<br/>[App.tsx]"]
  node_kiosk_layout["Kiosk Layout<br/>[KioskLayout.tsx]"]
  node_admin_layout["Admin Layout<br/>[AdminLayout.tsx]"]
end

subgraph group_kiosk["Kiosk Evaluation"]
  node_kiosk_page["Kiosk Workflow<br/>[KioskPage.tsx]"]
  node_kiosk_main["Evaluator Identification<br/>[KioskMain.tsx]"]
  node_team_select["Team Selection"]
  node_category_select["Category Selection"]
  node_score["Lecturer Scoring"]
  node_success["Submission Success<br/>[KioskSuccess.tsx]"]
end

subgraph group_admin["Admin Console"]
  node_login["Admin Login<br/>[LoginPage.tsx]"]
  node_dashboard["Dashboard Analytics<br/>[DashboardPage.tsx]"]
  node_teams["Team Management<br/>[TeamPage.tsx]"]
  node_users["Evaluator Management<br/>[UsersPage.tsx]"]
  node_recap["Score Recap<br/>[RecapPage.tsx]"]
  node_sidebar["Admin Navigation<br/>[Sidebar.tsx]"]
end

subgraph group_public["Public Expo"]
  node_landing["Landing Page<br/>[LandingPage.tsx]"]
  node_registration["Expo Registration"]
end

subgraph group_shared["Shared Services"]
  node_auth_state[("Admin Auth State<br/>[authStore.ts]")]
  node_kiosk_state[("Kiosk Session State<br/>[useKioskStore.ts]")]
  node_api["API Client<br/>[api.ts]"]
end

node_visitor(("Visitor / Evaluator"))
node_backend{{"Evaluation Backend"}}

node_visitor -->|"opens app"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_registration
node_app -->|"wraps kiosk"| node_kiosk_layout
node_app -->|"routes kiosk"| node_kiosk_page
node_app -->|"protects admin"| node_admin_layout
node_app -->|"routes admin"| node_dashboard
node_app -->|"routes admin"| node_teams
node_app -->|"routes admin"| node_users
node_app -->|"routes admin"| node_recap
node_admin_layout -->|"renders"| node_sidebar
node_login -->|"sets session"| node_auth_state
node_login -->|"authenticates via"| node_api
node_landing -->|"loads expo data"| node_api
node_registration -->|"submits application"| node_api
node_kiosk_page -->|"renders stage"| node_kiosk_main
node_kiosk_page -->|"renders stage"| node_team_select
node_kiosk_page -->|"renders stage"| node_category_select
node_kiosk_page -->|"renders stage"| node_score
node_kiosk_page -->|"renders stage"| node_success
node_kiosk_main -->|"updates evaluator"| node_kiosk_state
node_kiosk_main -->|"validates identity"| node_api
node_team_select -->|"sets selected team"| node_kiosk_state
node_team_select -->|"loads teams"| node_api
node_category_select -->|"sets category"| node_kiosk_state
node_category_select -->|"checks and submits"| node_api
node_score -->|"reads session"| node_kiosk_state
node_score -->|"submits scores"| node_api
node_success -->|"resets session"| node_kiosk_state
node_dashboard -->|"loads statistics"| node_api
node_teams -->|"manages teams"| node_api
node_users -->|"manages evaluators"| node_api
node_recap -->|"loads recap"| node_api
node_sidebar -->|"logs out"| node_auth_state
node_api -->|"sends requests"| node_backend

click node_app "https://github.com/research-and-creativity/zescore/blob/main/src/App.tsx"
click node_kiosk_layout "https://github.com/research-and-creativity/zescore/blob/main/src/layouts/KioskLayout.tsx"
click node_admin_layout "https://github.com/research-and-creativity/zescore/blob/main/src/layouts/AdminLayout.tsx"
click node_login "https://github.com/research-and-creativity/zescore/blob/main/src/features/auth/LoginPage.tsx"
click node_auth_state "https://github.com/research-and-creativity/zescore/blob/main/src/store/authStore.ts"
click node_landing "https://github.com/research-and-creativity/zescore/blob/main/src/features/landing/LandingPage.tsx"
click node_registration "https://github.com/research-and-creativity/zescore/blob/main/src/features/registration/RegistrationPage.tsx"
click node_kiosk_page "https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskPage.tsx"
click node_kiosk_main "https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskMain.tsx"
click node_team_select "https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskTeamSelect.tsx"
click node_category_select "https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskCategorySelect.tsx"
click node_score "https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskScoreDosen.tsx"
click node_success "https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskSuccess.tsx"
click node_kiosk_state "https://github.com/research-and-creativity/zescore/blob/main/src/store/useKioskStore.ts"
click node_dashboard "https://github.com/research-and-creativity/zescore/blob/main/src/features/admin/DashboardPage.tsx"
click node_teams "https://github.com/research-and-creativity/zescore/blob/main/src/features/admin/TeamPage.tsx"
click node_users "https://github.com/research-and-creativity/zescore/blob/main/src/features/admin/UsersPage.tsx"
click node_recap "https://github.com/research-and-creativity/zescore/blob/main/src/features/admin/RecapPage.tsx"
click node_sidebar "https://github.com/research-and-creativity/zescore/blob/main/src/components/common/Sidebar.tsx"
click node_api "https://github.com/research-and-creativity/zescore/blob/main/src/config/api.ts"

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_kiosk_layout,node_admin_layout toneBlue
class node_kiosk_page,node_kiosk_main,node_team_select,node_category_select,node_score,node_success toneAmber
class node_login,node_dashboard,node_teams,node_users,node_recap,node_sidebar toneMint
class node_landing,node_registration toneRose
class node_auth_state,node_kiosk_state,node_api,node_visitor,node_backend toneIndigo
```

## Components

### App Entry

- [Route Application](https://github.com/research-and-creativity/zescore/blob/main/src/App.tsx): `src/App.tsx`
- [Kiosk Layout](https://github.com/research-and-creativity/zescore/blob/main/src/layouts/KioskLayout.tsx): `src/layouts/KioskLayout.tsx`
- [Admin Layout](https://github.com/research-and-creativity/zescore/blob/main/src/layouts/AdminLayout.tsx): `src/layouts/AdminLayout.tsx`

### Kiosk Evaluation

- [Kiosk Workflow](https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskPage.tsx): `src/features/kiosk/KioskPage.tsx`
- [Evaluator Identification](https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskMain.tsx): `src/features/kiosk/KioskMain.tsx`
- [Team Selection](https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskTeamSelect.tsx): `src/features/kiosk/KioskTeamSelect.tsx`
- [Category Selection](https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskCategorySelect.tsx): `src/features/kiosk/KioskCategorySelect.tsx`
- [Lecturer Scoring](https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskScoreDosen.tsx): `src/features/kiosk/KioskScoreDosen.tsx`
- [Submission Success](https://github.com/research-and-creativity/zescore/blob/main/src/features/kiosk/KioskSuccess.tsx): `src/features/kiosk/KioskSuccess.tsx`

### Admin Console

- [Admin Login](https://github.com/research-and-creativity/zescore/blob/main/src/features/auth/LoginPage.tsx): `src/features/auth/LoginPage.tsx`
- [Dashboard Analytics](https://github.com/research-and-creativity/zescore/blob/main/src/features/admin/DashboardPage.tsx): `src/features/admin/DashboardPage.tsx`
- [Team Management](https://github.com/research-and-creativity/zescore/blob/main/src/features/admin/TeamPage.tsx): `src/features/admin/TeamPage.tsx`
- [Evaluator Management](https://github.com/research-and-creativity/zescore/blob/main/src/features/admin/UsersPage.tsx): `src/features/admin/UsersPage.tsx`
- [Score Recap](https://github.com/research-and-creativity/zescore/blob/main/src/features/admin/RecapPage.tsx): `src/features/admin/RecapPage.tsx`
- [Admin Navigation](https://github.com/research-and-creativity/zescore/blob/main/src/components/common/Sidebar.tsx): `src/components/common/Sidebar.tsx`

### Public Expo

- [Landing Page](https://github.com/research-and-creativity/zescore/blob/main/src/features/landing/LandingPage.tsx): `src/features/landing/LandingPage.tsx`
- [Expo Registration](https://github.com/research-and-creativity/zescore/blob/main/src/features/registration/RegistrationPage.tsx): `src/features/registration/RegistrationPage.tsx`

### Shared Services

- [Admin Auth State](https://github.com/research-and-creativity/zescore/blob/main/src/store/authStore.ts): `src/store/authStore.ts`
- [Kiosk Session State](https://github.com/research-and-creativity/zescore/blob/main/src/store/useKioskStore.ts): `src/store/useKioskStore.ts`
- [API Client](https://github.com/research-and-creativity/zescore/blob/main/src/config/api.ts): `src/config/api.ts`

### Other components

- **Visitor / Evaluator**
- **Evaluation Backend**

## Connections

- Visitor / Evaluator → Route Application: opens app (evidence: `src/App.tsx`)
- Route Application → Landing Page: routes to (evidence: `src/App.tsx`)
- Route Application → Admin Login: routes to (evidence: `src/App.tsx`)
- Route Application → Expo Registration: routes to (evidence: `src/App.tsx`)
- Route Application → Kiosk Layout: wraps kiosk (evidence: `src/App.tsx`)
- Route Application → Kiosk Workflow: routes kiosk (evidence: `src/App.tsx`)
- Route Application → Admin Layout: protects admin (evidence: `src/App.tsx`)
- Route Application → Dashboard Analytics: routes admin (evidence: `src/App.tsx`)
- Route Application → Team Management: routes admin (evidence: `src/App.tsx`)
- Route Application → Evaluator Management: routes admin (evidence: `src/App.tsx`)
- Route Application → Score Recap: routes admin (evidence: `src/App.tsx`)
- Admin Layout → Admin Navigation: renders (evidence: `src/layouts/AdminLayout.tsx`)
- Admin Login → Admin Auth State: sets session (evidence: `src/features/auth/LoginPage.tsx`)
- Admin Login → API Client: authenticates via (evidence: `src/features/auth/LoginPage.tsx`)
- Landing Page → API Client: loads expo data (evidence: `src/features/landing/LandingPage.tsx`)
- Expo Registration → API Client: submits application (evidence: `src/features/registration/RegistrationPage.tsx`)
- Kiosk Workflow → Evaluator Identification: renders stage (evidence: `src/features/kiosk/KioskPage.tsx`)
- Kiosk Workflow → Team Selection: renders stage (evidence: `src/features/kiosk/KioskPage.tsx`)
- Kiosk Workflow → Category Selection: renders stage (evidence: `src/features/kiosk/KioskPage.tsx`)
- Kiosk Workflow → Lecturer Scoring: renders stage (evidence: `src/features/kiosk/KioskPage.tsx`)
- Kiosk Workflow → Submission Success: renders stage (evidence: `src/features/kiosk/KioskPage.tsx`)
- Evaluator Identification → Kiosk Session State: updates evaluator (evidence: `src/features/kiosk/KioskMain.tsx`)
- Evaluator Identification → API Client: validates identity (evidence: `src/features/kiosk/KioskMain.tsx`)
- Team Selection → Kiosk Session State: sets selected team (evidence: `src/features/kiosk/KioskTeamSelect.tsx`)
- Team Selection → API Client: loads teams (evidence: `src/features/kiosk/KioskTeamSelect.tsx`)
- Category Selection → Kiosk Session State: sets category (evidence: `src/features/kiosk/KioskCategorySelect.tsx`)
- Category Selection → API Client: checks and submits (evidence: `src/features/kiosk/KioskCategorySelect.tsx`)
- Lecturer Scoring → Kiosk Session State: reads session (evidence: `src/features/kiosk/KioskScoreDosen.tsx`)
- Lecturer Scoring → API Client: submits scores (evidence: `src/features/kiosk/KioskScoreDosen.tsx`)
- Submission Success → Kiosk Session State: resets session (evidence: `src/features/kiosk/KioskSuccess.tsx`)
- Dashboard Analytics → API Client: loads statistics (evidence: `src/features/admin/DashboardPage.tsx`)
- Team Management → API Client: manages teams (evidence: `src/features/admin/TeamPage.tsx`)
- Evaluator Management → API Client: manages evaluators (evidence: `src/features/admin/UsersPage.tsx`)
- Score Recap → API Client: loads recap (evidence: `src/features/admin/RecapPage.tsx`)
- Admin Navigation → Admin Auth State: logs out (evidence: `src/components/common/Sidebar.tsx`)
- API Client → Evaluation Backend: sends requests (evidence: `src/config/api.ts`)
