Tech Stack

Frontend
Vanilla HTML/CSS/JS
No build step · Netlify hosted
Database + Auth
Supabase
RLS policies · Edge Functions
AI Sandbox
Gemini 2.5 Flash
Via Supabase Edge Function
Deployment
Netlify
netlify deploy --dir . --prod
Supabase Project
zytsecuplezkpfqndsqm
AI Literacy Platform project
Brand
EnhanceED AI
Navy #1e3a5f · Sky #0ea5e9 · ENHANCE NOT REPLACE

Module Status

AI Foundations Track (Required for all)
✓ Live
Mission 1: What AI Is
Pattern predictor · LinkedIn 5-level model · Human advantage · 2 quizzes · Accordion sections
✓ Live
Mission 2: AI in Your Classroom
15 subject tabs · 3 copy-to-clipboard prompts each · 3 knowledge checks · Numbered TOC
✓ Live
Mission 3: Prompt Like a Pro
COSTAR framework · AI sandbox (Gemini 2.5 Flash) · Copy/Print/Clear/Starter chips · Accordion
✓ Live
Mission 4: Privacy, Ethics & AI Integrity
FERPA focus · Stoplight 3-card grid · Process-based grading · MLA/APA citation · Accordion
Beginner Track
Planned
Beg 1: Your First AI Interaction
Coming soon — shows on dashboard
Planned
Beg 2: Classroom Applications
Coming soon
Planned
Beg 3: Student Introduction
Coming soon
Medium Track
Planned
Med 1: Advanced Prompting
Coming soon
Planned
Med 2: Hallucination Detection
Research files ready (SIFT, ZODIAC, Socratic Audit)
Planned
Med 3: Assignment Design
Coming soon
Advanced Track
Planned
Adv 1: CoSN Maturity Tool
Coming soon
Planned
Adv 2: District Policy
Coming soon
Planned
Adv 3: Collab Hub
Coming soon

Platform Features

Live
Auth — Sign up / Sign in / Sign outSupabase email auth · Email confirmation disabled · requireAuth() guard on all module pages
Live
Pretest — 10-question placement testScores 0–3 → Beginner · 4–6 → Medium · 7–10 → Advanced · Hard gate: teachers must complete before dashboard · sessionStorage + localStorage + Supabase triple-save
Live
Dashboard — Learner HubAI Foundations always visible · User's track unlocked after pretest · Other tracks grayed · Coming Soon state for unbuilt modules · Confetti on completion · "Did You Know" fact bar
Live
Progress TrackingmarkModuleComplete() saves to Supabase + localStorage (fallback) · slug-based getCompletedSlugs() merges both · Dashboard checks BUILT_MODULES set
Live
AI Sandbox (Mission 3)Gemini 2.5 Flash via Supabase Edge Function · 4096 token limit · System prompt with educator guardrails · Copy / Print / Clear buttons · 4 COSTAR starter chips
Live
Admin Panelsuper_admin: all users + district breakdown + CSV export · district_admin: own district only · teacher/student: redirected
Live
Accordion + Smart TOC (all modules)Sections collapse/expand via h2 click · First section open by default · TOC dots → numbered circles · IntersectionObserver: sky = active, green = completed
Live
Premium BrandingNavy gradient + dot texture + sky radial glow on all module headers · Heroicons SVG library (js/icons.js) · Confetti animation
Next
Photos — Landing page + module accentsDALL-E 3 generated · hero-educators.png + classroom-ai.png · In progress
Next
Beginner Track Modules (beg1–beg3)Currently show "Coming Soon" on dashboard
Planned
Custom DomainMichael will provide — update Netlify domain settings
Planned
Supabase modules table — update cc2 titleSlug cc2-ai-landscape title still shows "The AI Landscape" — update to "AI in Your Classroom: Starting Monday" in Supabase Table Editor

Change Log

June 19, 2026 — Active Session
Fixed pretest infinite loop — sessionStorage triple-save (session + localStorage + Supabase); gate reads sessionStorage first regardless of userProfile null state
Mission 3 renamed "Prompt Like a Pro" · CLEAR framework removed · AI-TPACK reframed without acronym · Quiz 2 updated to COSTAR Audience question · Time 25→15 min
Mission 4 renamed "Privacy, Ethics & AI Integrity" · SOPPA/COPPA removed · FERPA-only focus with practical can/can't table · Stoplight redesigned as 3-card light-background grid · Quiz 1 updated to FERPA scenario · Time 30→15 min
AI Sandbox fixed — model updated from retired gemini-2.0-flash to gemini-2.5-flash · maxOutputTokens 1024→4096 (was cutting off responses)
Sandbox UX — Copy button · Print button (EnhanceED AI branded print page) · Clear button · 4 COSTAR starter chips (Lesson Plan, Rubric, Parent Email, Differentiation)
Accordion added to CC1/CC3/CC4 — content sections collapse/expand via h2 click · first section open by default · quizzes always visible
TOC upgraded all modules — dots → numbered circles · IntersectionObserver drives sky (active) and green (completed) states
Status log page created (this page)
June 18, 2026
Mission 2 fully rebuilt — 15 subject tabs (ELA, Math, Science, Social Studies, Visual Art, Music, PE/Health, CTE, World Language, Skilled Trades, SPED, Admin, Library/Media, Counselor/SW, ESL/ELL) · 3 copy-to-clipboard prompts per subject · SUBJECTS array drives all rendering
Premium module header CSS — dark navy gradient + dot texture + sky radial glow across all 4 modules (main.css) · CC3 green + CC4 violet headers normalized
Bypass navigation buttons removed from CC1 footer and CC4 completion card
Mission 2 module title renamed in display (slug cc2-ai-landscape kept for DB)
June 10, 2026
Pretest gate added — hard redirect to pretest.html for teachers who haven't completed · admins and students bypass
Pretest score + track not showing in dashboard — fixed: Supabase update silently failing due to RLS; added localStorage fallback in pretest.html + merge in dashboard init()
Track unlock after CC4 — fixed: dashboard now reads BUILT_MODULES set + getCompletedSlugs() merges DB + localStorage
markModuleComplete() — saves to localStorage immediately (fallback), then Supabase async
"Common Core" renamed to "AI Foundations" in all display text (DB key unchanged)
Emoji icons → Heroicons SVG via js/icons.js · Track dots replace emoji · Confetti animation added
Dashboard shows Coming Soon state for unbuilt track modules
June 9, 2026 — Initial Build
Platform scaffolded — Supabase schema (districts, user_profiles, modules, progress, assessments, certificates, hub_activities + RLS + triggers)
Auth flow — index.html landing + sign-in modal · dashboard.html · all module pages
All 4 AI Foundations modules built (CC1–CC4)
Admin panel built — super_admin + district_admin roles · CSV export
Supabase Edge Function deployed — ai-sandbox (Gemini)
Deployed to Netlify — mt-innovations-ai-literacy.netlify.app

Known Issues & Blockers

Action needed
Supabase modules table — cc2 titleTable Editor → modules → slug "cc2-ai-landscape" → update title to "AI in Your Classroom: Starting Monday"
Action needed
Michael's Supabase roleShould be set to "super_admin" in user_profiles table to bypass pretest gate and access admin panel. If not set, will be caught in pretest loop.
Action needed
Imagen 3 image generationAQ. Gemini key works for text (sandbox) but not Imagen API — that endpoint requires OAuth2 credentials. Using DALL-E 3 (OpenAI key) as substitute for image generation.
Planned
Supabase RLS — pretest savesavePretestResult() silently fails for some users due to RLS policy on user_profiles table. Triple-save fallback (sessionStorage + localStorage + Supabase) handles this but root cause (policy) should be investigated.