How chandru2017/interview-learning works
Frontend Interview Prep is a Next.js interview-practice dashboard. Users browse a topic or search for a question, open its structured answer, navigate between questions, and track completion; the dashboard summarizes topic coverage and progress. The app combines a static question catalog with client-side progress and theme preferences. The graph follows documented routes and features and sampled imports/calls; several UI implementations and the question registry were not excerpted, so their internal connections are omitted where not evidenced.
Main entry points: data.ts Catalog and queries · progress-provider.tsx Progress state · AppShell.tsx App shell · QuestionDetail.tsx Question detail
Components 20
App routes
- Dashboard route
src/app/page.tsx - Topic route
src/app/[topic]/page.tsx - Question route
src/app/[topic]/[questionId]/page.tsx - App shell
src/components/AppShell.tsx
Practice experience
- Dashboard
src/components/HomeDashboard.tsx - Topic questions
src/components/QuestionList.tsx - Question detail
src/components/QuestionDetail.tsx - Question search
src/components/SearchBar.tsx - Header
src/components/Header.tsx - Topic navigation
src/components/Sidebar.tsx - Answer renderer
src/components/AnswerContent.tsx - Inline markup
src/components/InlineMarkup.tsx - Code formatter
src/components/FormatCode.tsx
Question content
- Catalog and queries
src/lib/data.ts - Topic question sets
src/lib/questions - Question normalizer
src/lib/questions/create-question.ts
App state
- Progress state
src/components/providers/progress-provider.tsx - Theme preference
src/components/providers/theme-provider.tsx - Browser localStorage
Other components
- Learner
Connections 29
- Learner → Dashboard route: opens dashboard
- Learner → Topic route: browses topic
- Learner → Question route: opens question
- Dashboard route → Dashboard: renders
src/app/page.tsx - Topic route → Catalog and queries: looks up topic
src/app/[topic]/page.tsx - Topic route → Topic questions: renders
src/app/[topic]/page.tsx - Question route → Catalog and queries: looks up question
src/app/[topic]/[questionId]/page.tsx - Question route → Question detail: renders
src/app/[topic]/[questionId]/page.tsx - App shell → Header: renders
src/components/AppShell.tsx - App shell → Topic navigation: renders
src/components/AppShell.tsx - App shell → Question search: renders
src/components/AppShell.tsx - App shell → Progress state: provides state
src/components/AppShell.tsx - App shell → Theme preference: provides theme
src/components/AppShell.tsx - Dashboard → Catalog and queries: reads catalog
src/components/HomeDashboard.tsx - Dashboard → Progress state: reads progress
src/components/HomeDashboard.tsx - Topic questions → Catalog and queries: reads questions
src/components/QuestionList.tsx - Topic questions → Progress state: reads and resets
src/components/QuestionList.tsx - Question detail → Catalog and queries: gets neighbors
src/components/QuestionDetail.tsx - Question detail → Answer renderer: renders answers
src/components/QuestionDetail.tsx - Question detail → Progress state: updates status
src/components/QuestionDetail.tsx - Question search → Catalog and queries: searches questions
src/components/SearchBar.tsx - Question search → Progress state: enriches results
src/components/SearchBar.tsx - Answer renderer → Inline markup: renders markup
src/components/AnswerContent.tsx - Answer renderer → Code formatter: formats code
src/components/AnswerContent.tsx - Catalog and queries → Topic question sets: loads sets
src/lib/data.ts - Topic question sets → Question normalizer: creates entries
src/lib/questions/git-cicd/git-questions-set-2.ts - Progress state → Catalog and queries: reads questions
src/components/providers/progress-provider.tsx - Progress state → Browser localStorage: persists progress
- Theme preference → Browser localStorage: persists theme