# sayedfaseeh/ai-design-class architecture

> Architecture diagram of the GitHub repository sayedfaseeh/ai-design-class, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sayedfaseeh/ai-design-class
- Repository: https://github.com/sayedfaseeh/ai-design-class
- Video tour (about a minute): https://gitdiagram.com/sayedfaseeh/ai-design-class/video

## Overview

This appears to be a classroom quest and student-engagement product, with student-facing, administrative, and projector pages backed by Supabase. The migration filenames indicate support for quest submissions and review, student and PIN management, login streaks, XP, badges, announcements, and administrative statistics. No README or application source was provided, so page-to-backend calls and the detailed user workflow cannot be verified; the graph shows the known surfaces and capabilities without assuming how they are wired.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_surfaces["Product surfaces"]
  node_student_portal["Student entry<br/>[index.html]"]
  node_projector["Projector view<br/>[projector.html]"]
end

subgraph group_student["Student experience"]
  node_student_dashboard["Student dashboard<br/>[dashboard.html]"]
end

subgraph group_admin["Administration"]
  node_admin_portal["Admin console<br/>[admin.html]"]
end

subgraph group_backend["Supabase capabilities"]
  node_db[("Supabase database")]
  node_submissions["Quest submissions and review"]
  node_review_history["Reviewed submission history"]
  node_student_accounts["Student registration and bulk creation"]
  node_pin_reset["Self-service PIN reset"]
  node_engagement["Streaks, XP, and undo"]
  node_admin_stats["Quest completion statistics"]
  node_admin_tools["Announcements, quests, and badges"]
end

click node_student_portal "https://github.com/sayedfaseeh/ai-design-class/blob/main/index.html"
click node_student_dashboard "https://github.com/sayedfaseeh/ai-design-class/blob/main/dashboard.html"
click node_projector "https://github.com/sayedfaseeh/ai-design-class/blob/main/projector.html"
click node_admin_portal "https://github.com/sayedfaseeh/ai-design-class/blob/main/admin.html"
click node_db "https://github.com/sayedfaseeh/ai-design-class/tree/main/supabase/migrations"
click node_submissions "https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921054500_add_submissions_reviewed_at_and_rising_star.sql"
click node_review_history "https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921060000_add_admin_reviewed_submissions_history.sql"
click node_student_accounts "https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921061500_add_bulk_create_students.sql"
click node_pin_reset "https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921051500_add_self_service_pin_reset.sql"
click node_engagement "https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921053000_add_daily_login_streak.sql"
click node_admin_stats "https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921063000_add_admin_quest_completion_stats.sql"
click node_admin_tools "https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260925100000_add_announcement_quest_and_badge_admin_rpcs.sql"

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_student_portal,node_projector toneBlue
class node_student_dashboard toneAmber
class node_admin_portal toneMint
class node_db,node_submissions,node_review_history,node_student_accounts,node_pin_reset,node_engagement,node_admin_stats,node_admin_tools toneRose
```

## Components

### Product surfaces

- [Student entry](https://github.com/sayedfaseeh/ai-design-class/blob/main/index.html): `index.html`
- [Projector view](https://github.com/sayedfaseeh/ai-design-class/blob/main/projector.html): `projector.html`

### Student experience

- [Student dashboard](https://github.com/sayedfaseeh/ai-design-class/blob/main/dashboard.html): `dashboard.html`

### Administration

- [Admin console](https://github.com/sayedfaseeh/ai-design-class/blob/main/admin.html): `admin.html`

### Supabase capabilities

- [Supabase database](https://github.com/sayedfaseeh/ai-design-class/tree/main/supabase/migrations): `supabase/migrations`
- [Quest submissions and review](https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921054500_add_submissions_reviewed_at_and_rising_star.sql): `supabase/migrations/20260921054500_add_submissions_reviewed_at_and_rising_star.sql`
- [Reviewed submission history](https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921060000_add_admin_reviewed_submissions_history.sql): `supabase/migrations/20260921060000_add_admin_reviewed_submissions_history.sql`
- [Student registration and bulk creation](https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921061500_add_bulk_create_students.sql): `supabase/migrations/20260921061500_add_bulk_create_students.sql`
- [Self-service PIN reset](https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921051500_add_self_service_pin_reset.sql): `supabase/migrations/20260921051500_add_self_service_pin_reset.sql`
- [Streaks, XP, and undo](https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921053000_add_daily_login_streak.sql): `supabase/migrations/20260921053000_add_daily_login_streak.sql`
- [Quest completion statistics](https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260921063000_add_admin_quest_completion_stats.sql): `supabase/migrations/20260921063000_add_admin_quest_completion_stats.sql`
- [Announcements, quests, and badges](https://github.com/sayedfaseeh/ai-design-class/blob/main/supabase/migrations/20260925100000_add_announcement_quest_and_badge_admin_rpcs.sql): `supabase/migrations/20260925100000_add_announcement_quest_and_badge_admin_rpcs.sql`
