How barwaqt/customer_web works
Barwaqt is a demo online shop. The main customer journey runs from browsing the home page and product categories, through product detail and cart management, into checkout with delivery, scheduling, and payment steps. Account sign-in, profile management, and wishlists are supporting capabilities. The graph reflects documented imports and sampled calls; the location-search endpoint is shown as an optional integration because its caller was not visible in the excerpts.
Main entry points: product-details.tsx Product details · page.tsx Home page · shop-store.ts Cart and wishlist state · shop-shell.tsx Shop shell
Components 26
Storefront
- Home page
app/page.tsx - Home sections
app/components/home-sections.tsx - Shop shell
app/components/shop-shell.tsx - Brand elements
app/components/brand.tsx
Catalog
- Category data
app/categories.ts - Category navigation
app/components/category-navigation.tsx - Category page
app/category/[slug]/page.tsx - Category listing
app/components/category-listing.tsx - Shop catalog data
app/shop-data.json - Product page
app/product/[id]/page.tsx - Product details
app/components/product-details.tsx - Product sections
app/components/product-sections.tsx
Commerce
- Cart and wishlist state
app/components/shop-store.ts - Wishlist page
app/components/wishlist.tsx - Checkout page
app/checkout/page.tsx - Checkout
app/components/checkout.tsx - Delivery flow
app/components/delivery-flow.tsx - Delivery map
app/components/delivery-map.tsx - Location search API
app/api/location-search/route.ts - Payment method logos
app/components/payment-logos.tsx
Account
- Authentication
app/components/auth-provider.tsx - Profile page
app/profile/page.tsx - Customer profile
app/components/customer-profile.tsx - Account panels
app/components/account-panels.tsx
Other components
- Shopper
- Location provider
Connections 40
- Shopper → Home page: browses
app/page.tsx - Home page → Home sections: renders
app/page.tsx - Home page → Category navigation: renders
app/page.tsx - Home page → Brand elements: uses
app/page.tsx - Home page → Cart and wishlist state: reads cart state
app/page.tsx - Home page → Shop shell: links to checkout
app/page.tsx - Shop shell → Category navigation: renders
app/components/shop-shell.tsx - Shop shell → Brand elements: renders
app/components/shop-shell.tsx - Shop shell → Authentication: uses sign-in button
app/components/shop-shell.tsx - Shop shell → Cart and wishlist state: reads cart state
app/components/shop-shell.tsx - Category navigation → Category data: resolves links
app/components/category-navigation.tsx - Category page → Category data: uses categories
app/category/[slug]/page.tsx - Category page → Category listing: renders
app/category/[slug]/page.tsx - Category listing → Cart and wishlist state: updates cart and wishlist
app/components/category-listing.tsx - Category listing → Shop catalog data: reads products
app/components/category-listing.tsx - Category listing → Category data: resolves links
app/components/category-listing.tsx - Shopper → Product page: opens product
- Product page → Product details: renders
app/product/[id]/page.tsx - Product page → Shop catalog data: reads product
app/product/[id]/page.tsx - Product details → Cart and wishlist state: updates cart and wishlist
app/components/product-details.tsx - Product details → Product sections: uses sections
app/components/product-details.tsx - Product details → Shop catalog data: reads products
app/components/product-details.tsx - Shopper → Wishlist page: opens wishlist
- Wishlist page → Cart and wishlist state: reads saved items
app/components/wishlist.tsx - Wishlist page → Product details: uses product details
app/components/wishlist.tsx - Shopper → Checkout page: starts checkout
app/checkout/page.tsx - Checkout page → Checkout: renders
app/checkout/page.tsx - Checkout → Cart and wishlist state: reads and updates cart
app/components/checkout.tsx - Checkout → Delivery flow: renders delivery flow
app/components/checkout.tsx - Checkout → Product details: uses product art
app/components/checkout.tsx - Delivery flow → Delivery map: renders map
app/components/delivery-flow.tsx - Delivery flow → Product details: uses product art
app/components/delivery-flow.tsx - Delivery flow → Payment method logos: renders payment options
app/components/delivery-flow.tsx - Delivery flow → Location search API: searches locations
- Location provider → Location search API: may provide results
- Shopper → Profile page: opens account
app/profile/page.tsx - Profile page → Customer profile: renders
app/profile/page.tsx - Customer profile → Authentication: reads account state
app/components/customer-profile.tsx - Customer profile → Cart and wishlist state: reads wishlist
app/components/customer-profile.tsx - Customer profile → Account panels: renders panels
app/components/customer-profile.tsx