How kienkuon2k4/nexhshop works
NextShop is a client-rendered marketplace prototype. The central workflow starts at the marketplace page: shoppers browse and search products, inspect details, add items to a cart, and access buyer account features; seller and admin views provide separate management workflows. Authentication, conversations, and sample product data are implemented in client-side contexts and modules rather than backed by a documented server or payment integration. The graph reflects documented imports and sampled calls; unsampled behavior is not inferred.
Main entry points: page.tsx Marketplace Entry · AuthContext.tsx Identity and Account State · ProductDetailView.tsx Product Details · SupportPopup.tsx Support Chat UI
Components 22
Marketplace UI
- Marketplace Entry
src/app/page.tsx - Navigation and Search
src/components/layout/Header.tsx - Marketplace Footer
src/components/layout/Footer.tsx - Hero Banner
src/components/home/HeroBanner.tsx - Category Cards
src/components/home/CardQuad.tsx - Product Slider
src/components/home/ProductSlider.tsx - Product Grid
src/components/home/ProductGrid.tsx - Product Details
src/components/pdp/ProductDetailView.tsx - Purchase Controls
src/components/pdp/BuyBox.tsx - Cart and Checkout
src/components/cart/CartView.tsx
Accounts and Support
- Login and Seller Signup
src/components/auth/LoginModal.tsx - Access Denied View
src/components/auth/AccessDeniedView.tsx - Support Chat UI
src/components/support/SupportPopup.tsx - Identity and Account State
src/context/AuthContext.tsx - Conversation State
src/context/ChatContext.tsx
Marketplace Operations
- Buyer Dashboard
src/components/buyer/BuyerDashboard.tsx - Seller Dashboard
src/components/seller/SellerDashboard.tsx - Admin Dashboard
src/components/admin/AdminDashboard.tsx
Shared Data
- Mock Product Catalog
src/data/mockData.ts - Price Formatting
src/utils/format.ts
Other components
- Shopper
- Browser Local Storage
Connections 29
- Shopper → Marketplace Entry: opens marketplace
README.md - Marketplace Entry → Navigation and Search: renders
src/app/page.tsx - Marketplace Entry → Marketplace Footer: renders
src/app/page.tsx - Marketplace Entry → Hero Banner: renders
src/app/page.tsx - Marketplace Entry → Category Cards: renders
src/app/page.tsx - Marketplace Entry → Product Slider: renders
src/app/page.tsx - Marketplace Entry → Product Grid: renders
src/app/page.tsx - Marketplace Entry → Product Details: renders
src/app/page.tsx - Marketplace Entry → Cart and Checkout: renders
src/app/page.tsx - Marketplace Entry → Buyer Dashboard: routes to
src/app/page.tsx - Marketplace Entry → Seller Dashboard: routes to
src/app/page.tsx - Marketplace Entry → Admin Dashboard: routes to
src/app/page.tsx - Marketplace Entry → Login and Seller Signup: renders
src/app/page.tsx - Marketplace Entry → Access Denied View: renders
src/app/page.tsx - Marketplace Entry → Support Chat UI: renders
src/app/page.tsx - Product Details → Purchase Controls: renders
src/components/pdp/ProductDetailView.tsx - Product Details → Mock Product Catalog: reads samples
src/components/pdp/ProductDetailView.tsx - Navigation and Search → Identity and Account State: reads account state
src/components/layout/Header.tsx - Login and Seller Signup → Identity and Account State: uses account actions
src/components/auth/LoginModal.tsx - Access Denied View → Identity and Account State: reads account state
src/components/auth/AccessDeniedView.tsx - Buyer Dashboard → Identity and Account State: uses account state
src/components/buyer/BuyerDashboard.tsx - Cart and Checkout → Identity and Account State: uses account state
src/components/cart/CartView.tsx - Seller Dashboard → Price Formatting: formats values
src/components/seller/SellerDashboard.tsx - Admin Dashboard → Identity and Account State: uses account state
src/components/admin/AdminDashboard.tsx - Admin Dashboard → Conversation State: uses conversations
src/components/admin/AdminDashboard.tsx - Support Chat UI → Identity and Account State: reads account state
src/components/support/SupportPopup.tsx - Support Chat UI → Conversation State: uses conversations
src/components/support/SupportPopup.tsx - Conversation State → Identity and Account State: reads current user
src/context/ChatContext.tsx - Identity and Account State → Browser Local Storage: reads and writes
src/context/AuthContext.tsx