How pranathiireddy/cat-personality-test works
This is a browser-based cat-personality quiz and cat-discovery experience. Users start at the landing view, answer a 31-question quiz, receive a calculated cat personality, and can continue through match results and a prompt to meet the full cat roster. The main app coordinates view state and result calculation; data modules supply quiz content and personality profiles, while shared UI and audio modules support the experience. Source excerpts show the principal workflow, but not every view-to-view callback or persistence detail.
Main entry points: App.tsx App coordinator · MeetAllCatsView.tsx All cats view · ResultDealView.tsx Personality result · CatAvatar.tsx Cat avatar
Components 18
Quiz experience
- App coordinator
src/App.tsx - Landing view
src/components/LandingView.tsx - Quiz view
src/components/QuizView.tsx - Personality result
src/components/ResultDealView.tsx - Match results
src/components/ResultMatchesView.tsx - Meet prompt
src/components/MeetPromptView.tsx - All cats view
src/components/MeetAllCatsView.tsx
Quiz and cat content
- Quiz questions
src/data/questions.ts - Personality profiles
src/data/personalities.ts - Cat asset map
src/data/catAssets.ts - Domain types
src/types.ts
Shared interface and audio
- Top navigation
src/components/TopNavBar.tsx - Cat background
src/components/CatBackgroundPattern.tsx - Cat avatar
src/components/CatAvatar.tsx - Typing cat
src/components/TypingCat.tsx - Retro button
src/components/RetroImageButton.tsx - Sound engine
src/utils/audio.ts
Other components
- Visitor
Connections 31
- Visitor → App coordinator: starts and navigates
- App coordinator → Landing view: renders
src/App.tsx - App coordinator → Quiz view: renders
src/App.tsx - App coordinator → Personality result: renders
src/App.tsx - App coordinator → Match results: renders
src/App.tsx - App coordinator → Meet prompt: renders
src/App.tsx - App coordinator → All cats view: renders
src/App.tsx - App coordinator → Quiz questions: calculates result
src/App.tsx - App coordinator → Sound engine: reads mute state
src/App.tsx - App coordinator → Top navigation: renders
src/App.tsx - App coordinator → Cat background: renders
src/App.tsx - Landing view → Typing cat: renders
src/components/LandingView.tsx - Quiz view → Typing cat: renders
src/components/QuizView.tsx - Quiz view → Retro button: renders
src/components/QuizView.tsx - Personality result → Cat avatar: renders
src/components/ResultDealView.tsx - Personality result → Retro button: renders
src/components/ResultDealView.tsx - Match results → Cat avatar: uses image map
src/components/ResultMatchesView.tsx - Match results → Personality result: uses trait slider
src/components/ResultMatchesView.tsx - Match results → Retro button: renders
src/components/ResultMatchesView.tsx - Meet prompt → Cat avatar: uses image map
src/components/MeetPromptView.tsx - Meet prompt → Typing cat: renders
src/components/MeetPromptView.tsx - All cats view → Personality profiles: displays profiles
src/components/MeetAllCatsView.tsx - All cats view → Cat avatar: uses image map
src/components/MeetAllCatsView.tsx - All cats view → Personality result: uses trait slider
src/components/MeetAllCatsView.tsx - All cats view → Retro button: renders
src/components/MeetAllCatsView.tsx - Cat avatar → Sound engine: plays cat sounds
src/components/CatAvatar.tsx - Typing cat → Sound engine: plays cat sounds
src/components/TypingCat.tsx - Retro button → Sound engine: plays click sounds
src/components/RetroImageButton.tsx - Quiz questions → Domain types: uses domain types
src/data/questions.ts - Personality profiles → Domain types: uses domain types
src/data/personalities.ts - Cat asset map → Domain types: uses domain types
src/data/catAssets.ts