How yunha2604-hub/battle-study works
Battle Study is a student quiz-battle and teacher assessment prototype built as a Next.js app. Students enter through the landing page, reach the lobby, choose a battle mode, answer questions, and view results; teachers configure assessments and review student outcomes. The README also describes school rankings, analytics, custom rooms, and AI-assisted quiz/report generation. The supplied source excerpts show client-side state and route/component wiring, but no backend or external AI integration; README-only capabilities are represented without implying those services exist.
Main entry points: BattleStudyContext.tsx Shared app state · Lobby.tsx Lobby and rankings · GlobalHeader.tsx Global navigation · page.tsx Landing route
Components 23
Student experience
- Landing route
src/app/page.tsx - Landing screen
src/components/LandingPage.tsx - Lobby route
src/app/lobby/page.tsx - Lobby and rankings
src/components/Lobby.tsx - Analytics route
src/app/analytics/page.tsx - Player analytics
src/components/PlayerAnalytics.tsx
Battle modes
- Dungeon route
src/app/shadow-raid/page.tsx - Battle route
src/app/battle/page.tsx - Quiz battle
src/components/BattleArena.tsx - Battle confirmation
src/components/BattleConfirmModal.tsx - Custom room
src/components/CustomRoomWaiting.tsx - School match route
src/app/deathmatch/page.tsx - School deathmatch
src/components/SchoolDeathmatchArena.tsx - Result route
src/app/result/page.tsx - Match results
src/components/ResultPage.tsx
Teacher assessment
- Teacher route
src/app/teacher/page.tsx - Assessment dashboard
src/components/TeacherDashboard.tsx - Assessment route
src/app/assessment-test/page.tsx - Assessment exam
src/components/AssessmentExamView.tsx
App coordination
- Shared app state
src/context/BattleStudyContext.tsx - Global navigation
src/components/GlobalHeader.tsx
Other components
- Student
- Teacher
Connections 35
- Student → Landing route: opens
README.md - Teacher → Landing route: opens
README.md - Landing route → Landing screen: renders
src/app/page.tsx - Landing route → Shared app state: invokes entry
src/app/page.tsx - Landing screen → Global navigation: renders
src/components/LandingPage.tsx - Shared app state → Battle route: navigates
src/context/BattleStudyContext.tsx - Shared app state → Battle confirmation: opens
src/context/BattleStudyContext.tsx - Lobby route → Lobby and rankings: renders
src/app/lobby/page.tsx - Lobby route → Shared app state: reads state
src/app/lobby/page.tsx - Lobby and rankings → Global navigation: renders
src/components/Lobby.tsx - Lobby and rankings → Battle confirmation: renders
src/components/Lobby.tsx - Lobby and rankings → Player analytics: renders
src/components/Lobby.tsx - Lobby and rankings → Dungeon route: offers dungeon
README.md - Lobby and rankings → School match route: offers team match
README.md - Analytics route → Lobby and rankings: renders
src/app/analytics/page.tsx - Dungeon route → Lobby and rankings: renders
src/app/shadow-raid/page.tsx - Battle route → Quiz battle: renders
src/app/battle/page.tsx - Battle route → Shared app state: reads match state
src/app/battle/page.tsx - Quiz battle → Global navigation: renders
src/components/BattleArena.tsx - Quiz battle → Shared app state: finishes match
src/app/battle/page.tsx - School match route → School deathmatch: renders
src/app/deathmatch/page.tsx - School match route → Shared app state: reads state
src/app/deathmatch/page.tsx - School deathmatch → Global navigation: renders
src/components/SchoolDeathmatchArena.tsx - Result route → Match results: renders
src/app/result/page.tsx - Result route → Shared app state: reads results
src/app/result/page.tsx - Shared app state → Result route: navigates
src/context/BattleStudyContext.tsx - Teacher route → Assessment dashboard: renders
src/app/teacher/page.tsx - Teacher route → Shared app state: reads assessment state
src/app/teacher/page.tsx - Assessment dashboard → Global navigation: renders
src/components/TeacherDashboard.tsx - Assessment dashboard → Assessment route: starts assessment
- Assessment route → Assessment exam: renders
src/app/assessment-test/page.tsx - Assessment exam → Assessment dashboard: uses assessment types
src/components/AssessmentExamView.tsx - Global navigation → Lobby route: navigates
src/components/GlobalHeader.tsx - Global navigation → School match route: navigates
src/components/GlobalHeader.tsx - Global navigation → Analytics route: navigates
src/components/GlobalHeader.tsx