How codewithcrafter/yatiya works
This is a Next.js storefront for couture fashion, with product discovery, cart and checkout, customer account features, and an administrative area. The main shopping flow runs from the home page or catalog through product browsing, cart, and checkout; cart and customer state are held in browser local storage. The repository also contains account, wishlist, and admin routes. Several route implementations were not sampled, so their internal calls are omitted; their major route areas are still represented.
Main entry points: app/page.tsx Home experience · cart/page.tsx Cart page · ProductCard.tsx Product card · mockData.ts Catalog data
Components 20
Storefront
- Home experience
src/app/page.tsx - Home sections
src/components/home - Site navigation
src/components/header/Header.tsx - Site footer
src/components/footer/Footer.tsx
Shopping
- Catalog routes
src/app/products/page.tsx - Catalog data
src/data/mockData.ts - Product records
src/data/products.ts - Search and filters
src/components/shop/ProductFilters.tsx - Product grid
src/components/shop/ProductGrid.tsx - Product card
src/components/shop/ProductCard.tsx - Product details
src/components/shop/ProductDetail.tsx - Cart page
src/app/cart/page.tsx - Cart state
src/context/CartContext.tsx - Checkout
src/app/checkout/page.tsx
Customer
- Account routes
src/app/account - Customer state
src/context/CustomerContext.tsx - Wishlist routes
src/app/wishlist/page.tsx - Wishlist state
src/context/WishlistContext.tsx
Operations
- Admin routes
src/app/admin
Other components
- Shopper
Connections 22
- Shopper → Home experience: opens
README.md - Home experience → Home sections: renders
src/app/page.tsx - Home experience → Site navigation: links to
- Home experience → Site footer: links to
- Home experience → Product records: reads products
src/app/page.tsx - Catalog routes → Catalog data: loads catalog
src/app/products/page.tsx - Catalog routes → Search and filters: renders
src/app/products/page.tsx - Catalog routes → Product grid: renders results
src/app/products/page.tsx - Product grid → Product card: renders cards
src/components/shop/ProductGrid.tsx - Product card → Catalog data: reads product
src/components/shop/ProductCard.tsx - Product card → Cart state: adds item
src/components/shop/ProductCard.tsx - Product card → Wishlist state: toggles wishlist
src/components/shop/ProductCard.tsx - Cart page → Cart state: updates cart
src/app/cart/page.tsx - Cart page → Wishlist state: moves item
src/app/cart/page.tsx - Cart page → Catalog data: looks up product
src/app/cart/page.tsx - Cart page → Checkout: links to
src/app/cart/page.tsx - Checkout → Cart state: reads and clears
src/app/checkout/page.tsx - Checkout → Customer state: creates order
src/app/checkout/page.tsx - Account routes → Customer state: uses customer state
src/app/account/page.tsx - Account routes → Wishlist state: uses wishlist
src/app/account/page.tsx - Wishlist routes → Wishlist state: uses wishlist
- Admin routes → Catalog data: reads catalog
src/app/admin/products/page.tsx