Defines application-level routes and global state management for user identity,
uploaded images, and generated try-on results.
Each route maps to a distinct user-facing page such as login, registration, virtual try-on, and closet history.
Global state includes image data and user session information used across different components.
Home
App.js
ClothesDetail.js
Displays item metadata, allows adding to closet, and shows recommendations.
Handles multiple effects such as fetching details, recording history, and showing similar items.
- Source:
FullCloset.js
Allows searching, filtering by category, and viewing popular recommendations.
Integrates with backend APIs for dynamic content updates and user interaction tracking.
- Source:
History.js
Fetches and displays historical clothing interactions for the logged-in user.
Uses the query string, props, or localStorage to determine user identity.
- Source:
Home.js
Login.js
Register.js
Handles new user signup, form validation, and backend communication.
Redirects to login page upon successful registration.
- Source:
SendImage.js
Displays the final result image and provides a form for users to email it to themselves.
Validates email input, handles backend API interaction, and displays feedback messages.
- Source:
TryOn.js
UploadImage.js
Allows users to preview an image (from camera or file),
confirm submission, and upload to backend. Delays global state changes
until the user confirms submission.
- Source: