How lostnseeker/lavinahome works
This is a React storefront for Levina Home, with an Express backend supporting account and order APIs plus PlentyONE/Shopify integrations. The customer workflow is browsing and filtering products, inspecting a product, managing a cart, and submitting checkout. The graph also preserves account, localization, and integration-status capabilities. Some backend routes and App behavior were only partially excerpted, so uncertain links are omitted or marked dashed.
Main entry points: App.tsx Storefront App · server.js Express API · AuthModal.tsx Account UI · integrationService.ts Integration Orchestrator
Components 23
Storefront
- Storefront App
src/App.tsx - Navigation
src/components/Navbar.tsx - Localization
src/i18n/i18n.ts - Account UI
src/components/AuthModal.tsx - Legal Information
src/components/LegalModal.tsx
Shopping
- Product Catalog
src/App.tsx - Product Search
src/components/SearchModal.tsx - Product Details
src/components/ProductDetailPage.tsx - Product Quick View
src/components/ProductDetailModal.tsx - Editorial & Stories
src/components/SanctuaryStoryPage.tsx - Instagram Gallery
src/components/InstagramGallery.tsx
Commerce
Services
- Order Service
src/services/orderService.ts - Integration Status UI
src/components/IntegrationStatusModal.tsx - Integration Orchestrator
src/services/integrationService.ts - Shopify Service
src/services/shopifyService.ts - PlentyONE Service
src/services/plentyoneService.ts
Backend
- Express API
server.js
Other components
- Customer
- PlentyONE ERP
- Shopify Platform
Connections 25
- Customer → Storefront App: browses
- Storefront App → Navigation: renders
src/App.tsx - Storefront App → Product Catalog: filters products
src/App.tsx - Storefront App → Product Details: renders
src/App.tsx - Storefront App → Product Search: renders
src/App.tsx - Storefront App → Cart: renders
src/App.tsx - Storefront App → Wishlist: renders
src/App.tsx - Storefront App → Checkout: renders
src/App.tsx - Storefront App → Editorial & Stories: renders
src/App.tsx - Storefront App → Instagram Gallery: renders
src/App.tsx - Storefront App → Account UI: renders
src/App.tsx - Storefront App → Legal Information: renders
src/App.tsx - Storefront App → Product Quick View: renders
- Navigation → Localization: switches language
src/components/Navbar.tsx - Account UI → Express API: requests account API
- Account UI → Storefront App: updates session
src/App.tsx - Checkout → Order Service: places order
src/components/CheckoutModal.tsx - Order Service → Express API: submits checkout
src/services/orderService.ts - Integration Status UI → Integration Orchestrator: loads status
src/components/IntegrationStatusModal.tsx - Integration Status UI → PlentyONE Service: checks ERP
src/components/IntegrationStatusModal.tsx - Integration Orchestrator → Shopify Service: creates checkout
src/services/integrationService.ts - Integration Orchestrator → PlentyONE Service: syncs order
src/services/integrationService.ts - PlentyONE Service → Express API: calls API
src/services/plentyoneService.ts - Express API → PlentyONE ERP: syncs catalog and orders
- Shopify Service → Shopify Platform: requests checkout