How rajaselvam19/smart-dress-advisor works
This is a client-side fashion outfit recommendation app. A visitor starts from the landing page, opens a six-step preference wizard, and receives a locally generated outfit with clothing, footwear, accessories, and styling guidance. The wizard owns preference state and invokes the recommendation logic; the result view renders that response. The graph emphasizes this workflow and its reusable UI layer. Source excerpts establish the main calls; unsampled peripheral UI components and styling details are omitted.
Main entry points: FashionWizard.tsx Preference Wizard · Index.tsx Landing Page · OptionCard.tsx Option Card · RecommendationDisplay.tsx Recommendation Display
Components 20
App Shell
- React Entry
src/main.tsx - App Routes
src/App.tsx
User Journey
- Landing Page
src/pages/Index.tsx - Header
src/components/Header.tsx - Hero Section
src/components/HeroSection.tsx - Preference Wizard
src/components/FashionWizard.tsx - Occasion Step
src/components/steps/OccasionStep.tsx - Gender Step
src/components/steps/GenderStep.tsx - Age Step
src/components/steps/AgeStep.tsx - Body Type Step
src/components/steps/BodyTypeStep.tsx - Skin Tone Step
src/components/steps/SkinToneStep.tsx - Budget Step
src/components/steps/BudgetStep.tsx
Recommendation
- Preference Types
src/types/fashion.ts - Outfit Generator
src/lib/fashionRecommendations.ts - Recommendation Display
src/components/RecommendationDisplay.tsx
Reusable UI
- Step Indicator
src/components/StepIndicator.tsx - Outfit Card
src/components/OutfitCard.tsx - Option Card
src/components/OptionCard.tsx - Button
src/components/ui/button.tsx
Other components
- Visitor
Connections 26
- Visitor → Landing Page: opens app
src/pages/Index.tsx - React Entry → App Routes: renders
src/main.tsx - App Routes → Landing Page: routes to
src/App.tsx - Landing Page → Header: renders
src/pages/Index.tsx - Landing Page → Hero Section: renders
src/pages/Index.tsx - Landing Page → Preference Wizard: shows on start
src/pages/Index.tsx - Hero Section → Landing Page: starts wizard
src/pages/Index.tsx - Preference Wizard → Step Indicator: renders
src/components/FashionWizard.tsx - Preference Wizard → Occasion Step: renders step
src/components/FashionWizard.tsx - Preference Wizard → Gender Step: renders step
src/components/FashionWizard.tsx - Preference Wizard → Age Step: renders step
src/components/FashionWizard.tsx - Preference Wizard → Body Type Step: renders step
src/components/FashionWizard.tsx - Preference Wizard → Skin Tone Step: renders step
src/components/FashionWizard.tsx - Preference Wizard → Budget Step: renders step
src/components/FashionWizard.tsx - Preference Wizard → Preference Types: tracks values
src/components/FashionWizard.tsx - Preference Wizard → Outfit Generator: requests recommendation
src/components/FashionWizard.tsx - Outfit Generator → Preference Types: uses types
src/lib/fashionRecommendations.ts - Preference Wizard → Recommendation Display: passes result
src/components/FashionWizard.tsx - Recommendation Display → Outfit Card: renders sections
src/components/RecommendationDisplay.tsx - Occasion Step → Option Card: renders options
src/components/steps/OccasionStep.tsx - Gender Step → Option Card: renders options
src/components/steps/GenderStep.tsx - Age Step → Option Card: renders options
src/components/steps/AgeStep.tsx - Body Type Step → Option Card: renders options
src/components/steps/BodyTypeStep.tsx - Budget Step → Option Card: renders options
src/components/steps/BudgetStep.tsx - Preference Wizard → Button: uses controls
src/components/FashionWizard.tsx - Recommendation Display → Button: uses actions
src/components/RecommendationDisplay.tsx