How prodromos522-bot/s works
SERVERA is an online beauty and fragrance shop. Shoppers browse the home, category, search, and product pages, add items to a persistent cart or wishlist, then submit checkout; checkout records orders locally and requests central order persistence. The account page exposes order/payment-related information, and PayPal has a separate integration path. The graph follows shown imports, calls, and documented route registration; unsampled route and integration internals are represented only where the source index supports them.
Main entry points: products.ts Product catalog · cart.tsx Cart and wishlist · checkout.tsx Checkout · ProductCard.tsx Product card
Components 26
Storefront
- Home page
src/routes/index.tsx - Category page
src/routes/category.$slug.tsx - Search page
src/routes/search.tsx - Product page
src/routes/product.$id.tsx - Account page
src/routes/account.tsx - Wishlist page
src/routes/wishlist.tsx - Hero carousel
src/components/shop/HeroCarousel.tsx
Product discovery
- Product rail
src/components/shop/ProductRail.tsx - Product grid
src/components/shop/ProductGrid.tsx - Product catalog
src/lib/products.ts - Product card
src/components/shop/ProductCard.tsx
Cart and checkout
- Cart and wishlist
src/lib/cart.tsx - Cart sheet
src/components/shop/CartSheet.tsx - Checkout
src/routes/checkout.tsx - PayPal button
src/components/shop/PaypalButton.tsx
Commerce services
- Pricing rules
src/lib/pricing.ts - Local orders
src/lib/orders.ts - Order persistence
src/lib/orders.functions.ts - Payment methods
src/lib/payments.ts - PayPal functions
src/lib/paypal.functions.ts - Supabase client
src/lib/supabase.server.ts
Application shell
- Router
src/router.tsx - Site shell
- Site header
src/components/shop/SiteHeader.tsx - Site footer
src/components/shop/SiteFooter.tsx
Other components
- Shopper
Connections 39
- Router → Site shell: routes through
- Shopper → Router: opens shop
- Site shell → Site header: renders
- Site shell → Site footer: renders
- Site shell → Cart sheet: renders
- Home page → Hero carousel: renders
src/routes/index.tsx - Home page → Product rail: renders
src/routes/index.tsx - Home page → Product catalog: reads
src/routes/index.tsx - Category page → Product catalog: reads
src/routes/category.$slug.tsx - Category page → Product grid: renders
src/routes/category.$slug.tsx - Search page → Product catalog: reads
src/routes/search.tsx - Search page → Product grid: renders
src/routes/search.tsx - Product page → Product catalog: reads
src/routes/product.$id.tsx - Product page → Product rail: renders
src/routes/product.$id.tsx - Product page → Product card: uses badges
src/routes/product.$id.tsx - Product rail → Product catalog: reads
src/components/shop/ProductRail.tsx - Product rail → Product card: renders
src/components/shop/ProductRail.tsx - Product card → Product catalog: reads
src/components/shop/ProductCard.tsx - Product card → Cart and wishlist: updates
src/components/shop/ProductCard.tsx - Site header → Cart and wishlist: reads
src/components/shop/SiteHeader.tsx - Site header → Product catalog: reads
src/components/shop/SiteHeader.tsx - Cart sheet → Cart and wishlist: reads and updates
src/components/shop/CartSheet.tsx - Cart and wishlist → Product catalog: resolves items
src/lib/cart.tsx - Cart and wishlist → Pricing rules: computes totals
src/lib/cart.tsx - Cart sheet → Pricing rules: formats totals
src/components/shop/CartSheet.tsx - Wishlist page → Product card: renders
src/routes/wishlist.tsx - Wishlist page → Cart and wishlist: reads
src/routes/wishlist.tsx - Account page → Local orders: reads
src/routes/account.tsx - Account page → Payment methods: reads
src/routes/account.tsx - Checkout → Cart and wishlist: reads and clears
src/routes/checkout.tsx - Checkout → Local orders: saves order
src/routes/checkout.tsx - Checkout → Order persistence: persists order
src/routes/checkout.tsx - Checkout → Payment methods: uses methods
src/routes/checkout.tsx - Checkout → Pricing rules: formats totals
src/routes/checkout.tsx - Checkout → PayPal button: renders
src/routes/checkout.tsx - PayPal button → PayPal functions: invokes
src/components/shop/PaypalButton.tsx - Order persistence → Product catalog: uses
src/lib/orders.functions.ts - Order persistence → Pricing rules: uses
src/lib/orders.functions.ts - Order persistence → Supabase client: uses client
src/lib/orders.functions.ts