# rvinodsarna/qms29 architecture

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

- Interactive diagram: https://gitdiagram.com/rvinodsarna/qms29
- Repository: https://github.com/rvinodsarna/qms29

## Overview

This repository appears to be a collection of browser-side extensions and fixes for UNIMY QMS RISE, rather than a conventional modular application. The visible workflows cover student services, AI assistance, staff dashboards and awards, and passwordless face login. The excerpts show direct Supabase access for several features; they do not establish how the scripts are loaded or how unsampled modules connect. The graph keeps those capabilities distinct and omits speculative links.

Main entry points: [`clubs.js`](https://github.com/rvinodsarna/qms29/blob/main/clubs.js) (Clubs and Roles), [`ai-chat.js`](https://github.com/rvinodsarna/qms29/blob/main/ai-chat.js) (AI Chat), [`ai-smart.js`](https://github.com/rvinodsarna/qms29/blob/main/ai-smart.js) (AI Tool Assistant), [`dean_dashboard_patch.js`](https://github.com/rvinodsarna/qms29/blob/main/dean_dashboard_patch.js) (Dean Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_student["Student Services"]
  node_clubs["Clubs and Roles<br/>[clubs.js]"]
  node_courses["Course Enrollment"]
  node_dashboard_drag["Dashboard Drag and Drop<br/>[dash-drag.js]"]
end

subgraph group_assistant["AI Assistance"]
  node_ai_chat["AI Chat<br/>[ai-chat.js]"]
  node_ai_smart["AI Tool Assistant<br/>[ai-smart.js]"]
  node_local_faq["Local FAQ Matching<br/>[ai-faq-local.js]"]
end

subgraph group_staff["Staff Operations"]
  node_dean_dashboard["Dean Dashboard"]
  node_award_admin["Award Administration<br/>[award-admin.js]"]
  node_award_page["Awards Page<br/>[award-page.js]"]
end

subgraph group_identity["Identity"]
  node_face_auth["Face Authentication<br/>[face-auth.js]"]
  node_face_dedupe["Face Descriptor Deduplication<br/>[dedupe_faces.js]"]
end

node_student(("Student"))
node_browser["QMS RISE Browser UI"]
node_supabase[("Supabase")]

node_student -->|"requests clubs"| node_clubs
node_student -->|"rearranges tiles"| node_dashboard_drag
node_student -->|"asks questions"| node_ai_chat
node_clubs -->|"reads and writes"| node_supabase
node_ai_chat -->|"loads FAQs"| node_supabase
node_ai_smart -->|"queries FAQs and records"| node_supabase
node_dean_dashboard -->|"reads summaries"| node_supabase
node_award_admin -->|"matches students"| node_supabase
node_face_auth -->|"calls face-auth function"| node_supabase
node_face_dedupe -->|"reads and deletes descriptors"| node_supabase

click node_clubs "https://github.com/rvinodsarna/qms29/blob/main/clubs.js"
click node_courses "https://github.com/rvinodsarna/qms29/blob/main/enrolled-courses.js"
click node_dashboard_drag "https://github.com/rvinodsarna/qms29/blob/main/dash-drag.js"
click node_ai_chat "https://github.com/rvinodsarna/qms29/blob/main/ai-chat.js"
click node_ai_smart "https://github.com/rvinodsarna/qms29/blob/main/ai-smart.js"
click node_local_faq "https://github.com/rvinodsarna/qms29/blob/main/ai-faq-local.js"
click node_dean_dashboard "https://github.com/rvinodsarna/qms29/blob/main/dean_dashboard_patch.js"
click node_award_admin "https://github.com/rvinodsarna/qms29/blob/main/award-admin.js"
click node_award_page "https://github.com/rvinodsarna/qms29/blob/main/award-page.js"
click node_face_auth "https://github.com/rvinodsarna/qms29/blob/main/face-auth.js"
click node_face_dedupe "https://github.com/rvinodsarna/qms29/blob/main/dedupe_faces.js"

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_clubs,node_courses,node_dashboard_drag,node_browser toneBlue
class node_ai_chat,node_ai_smart,node_local_faq,node_supabase toneAmber
class node_dean_dashboard,node_award_admin,node_award_page toneMint
class node_face_auth,node_face_dedupe toneRose
class node_student toneIndigo
```

## Components

### Student Services

- [Clubs and Roles](https://github.com/rvinodsarna/qms29/blob/main/clubs.js): `clubs.js`
- [Course Enrollment](https://github.com/rvinodsarna/qms29/blob/main/enrolled-courses.js): `enrolled-courses.js`
- [Dashboard Drag and Drop](https://github.com/rvinodsarna/qms29/blob/main/dash-drag.js): `dash-drag.js`

### AI Assistance

- [AI Chat](https://github.com/rvinodsarna/qms29/blob/main/ai-chat.js): `ai-chat.js`
- [AI Tool Assistant](https://github.com/rvinodsarna/qms29/blob/main/ai-smart.js): `ai-smart.js`
- [Local FAQ Matching](https://github.com/rvinodsarna/qms29/blob/main/ai-faq-local.js): `ai-faq-local.js`

### Staff Operations

- [Dean Dashboard](https://github.com/rvinodsarna/qms29/blob/main/dean_dashboard_patch.js): `dean_dashboard_patch.js`
- [Award Administration](https://github.com/rvinodsarna/qms29/blob/main/award-admin.js): `award-admin.js`
- [Awards Page](https://github.com/rvinodsarna/qms29/blob/main/award-page.js): `award-page.js`

### Identity

- [Face Authentication](https://github.com/rvinodsarna/qms29/blob/main/face-auth.js): `face-auth.js`
- [Face Descriptor Deduplication](https://github.com/rvinodsarna/qms29/blob/main/dedupe_faces.js): `dedupe_faces.js`

### Other components

- **Student**
- **QMS RISE Browser UI**
- **Supabase**

## Connections

- Student → Clubs and Roles: requests clubs (evidence: `clubs.js`)
- Student → Dashboard Drag and Drop: rearranges tiles (evidence: `dash-drag.js`)
- Student → AI Chat: asks questions (evidence: `ai-chat.js`)
- Clubs and Roles → Supabase: reads and writes (evidence: `clubs.js`)
- AI Chat → Supabase: loads FAQs (evidence: `ai-chat.js`)
- AI Tool Assistant → Supabase: queries FAQs and records (evidence: `ai-smart.js`)
- Dean Dashboard → Supabase: reads summaries (evidence: `dean_dashboard_patch.js`)
- Award Administration → Supabase: matches students (evidence: `award-admin.js`)
- Face Authentication → Supabase: calls face-auth function (evidence: `face-auth.js`)
- Face Descriptor Deduplication → Supabase: reads and deletes descriptors (evidence: `dedupe_faces.js`)
