StreetLight Study Buddy

This document is restricted. Please sign in to continue.

StreetLight Study Buddy

End-to-End Product Flow — All 6 Phases

PHASE 1

App Launch

JWT check — route to onboarding or home
Splash Screen
App opens, branding shown, JWT check fires
JWT Check
Valid → Home | Invalid → Onboarding
Splash Screen
Duration~1–2s, non-blocking
What firesJWT validity check in background
JWT Check — ADR-009
Valid tokenSkip onboarding → Home Dashboard
Invalid / expired→ Onboarding Phase 2
New User Only ↓
PHASE 2

Onboarding

New users only — one-time setup
Phone OTP
Firebase Auth, Supabase session issued
Avatar Picker
Character + name + class / grade selection
Profile Saved
Supabase write → JWT issued → Home
Phone OTP
ProviderFirebase Auth
SessionSupabase session issued on success
Avatar Picker
FieldsCharacter, Display Name, Class / Grade
Profile Saved
ActionSupabase write → JWT issued → Redirect Home
All Sessions Land Here ↓
PHASE 3

Home Dashboard

Universal hub — every session starts and ends here
Challenge Inbox
10-min TTL • Synchronized countdown
Challenge Inbox — ADR-013 / v5.0
Card Data FieldsChallenger name/avatar, Subject, Chapter, Topic, Estimated duration
TTL10 minutes — auto-cancelled if not accepted
On AcceptSynchronized 10-second countdown → both enter battle
3 Learning Paths ↓
PHASE 4

Learning Paths

Study · Doubt · Challenge
Path A — Study
Chapter list → AI tutor chat
Path B — Doubt Upload
Photo or typed doubt → AI explanation
Path C — Challenge
Find classmate → pick mode → send challenge
Path A — Study
FlowSelect Chapter → AI Tutor Chat
Path B — Doubt Upload
InputPhoto or typed question
OutputAI-generated explanation
Path C — Challenge
StepsFind classmate → Pick mode → Send challenge
Path C → Battle ↓
PHASE 5

Quiz Battle

Real-time 1v1 — v5.0 Mode System
Battle Modes
Standard vs Rapid (v5.0)
Adaptive XP Matrix
Gold / Silver / Base tiers
Timer UX Zones
Color-coded zones per mode
Battle Modes — v5.0
ParameterStandardRapid
Questions810
Question Timer90 seconds30 seconds
Max Duration12 minutes5 minutes
ObjectiveDeep AnalysisSpeed Recall
Adaptive XP Matrix (v5.0)
ModeTierTime WindowXP
StandardGold0–30s2.50
Silver31–60s2.25
Base61–90s2.00
RapidGold0–15s2.50
Base16–30s2.00
Timer UX Zones
Standard (90s)🟢 0–30s → 🟡 31–60s → 🔴 61–80s → ⚡ 81–90s
Rapid (30s)🟢 0–15s → 🔴 16–25s → ⚡ 26–30s
Battle Ends ↓
PHASE 6

Battle End & Review

Results • Recovery • Olympiad
Review Mistakes
Recovery Quest +3 XP
Olympiad & Leaderboard
Weekend Event + Rewards
Review Mistakes — Recovery Quest (ADR-014)
StepActionXP
1 — FreeAnswer 1 clone question correctly+1 XP
2 — AdWatch 10s ad to unlock 2 more Qs
3 — CompletionEach subsequent correct answer+1 XP each
Total RecoveryUp to +3 XP
Premium ShortcutSkip ad → 60–90s Masterclass video
Olympiad & Leaderboard Ecosystem — ADR-015
CadenceFriday – Sunday (Weekend Event)
RankingAll battle XP aggregated → Global Top 10
RewardsAutomated verified certificates
CosmeticsFire Aura + Gold Profile Frame
BadgesConcept Master Badges (Masterclass progress)