How anhtuans-project/cotvian works
This is a React storefront and operations portal for regional fish-sauce products, with product discovery, customization, checkout, traceability, and separate administrative workflows. Browser navigation enters through the app shell; route components provide the user-facing stages. Operational pages share a batch model and detail view, while product pages use a local product catalog. The excerpts show authentication submitting to an API, but do not establish persistence or backend connections for the other workflows.
Main entry points: App.tsx App router · products.ts Product catalog data · DataEntryAdmin.tsx Batch data entry · ProductionManager.tsx Production review
Components 24
Application shell
- App router
app/src/App.tsx - Navigation and sign-in
app/src/components/Navbar.tsx - Site footer
app/src/components/Footer.tsx
Customer storefront
- Product discovery
app/src/pages/Home.tsx - Product details
app/src/pages/ProductDetail.tsx - Product comparison
app/src/pages/Compare.tsx - Product customization
app/src/pages/Customize.tsx - Checkout
app/src/pages/Checkout.tsx - Order confirmation
app/src/pages/OrderSuccess.tsx - Customer profile
app/src/pages/Profile.tsx - Product traceability
app/src/pages/Traceability.tsx - Distributor directory
app/src/pages/Distributors.tsx - Articles
app/src/pages/Blog.tsx - Article detail
app/src/pages/BlogDetail.tsx
Operations portal
- Store administration
app/src/pages/Admin.tsx - Batch data entry
app/src/pages/DataEntryAdmin.tsx - Production review
app/src/pages/ProductionManager.tsx - Warehouse and orders
app/src/pages/WarehouseAdmin.tsx
Shared domain components
- Product catalog data
app/src/data/products.ts - Batch record model
app/src/types/batch.ts - Batch detail view
app/src/components/BatchDetailsModal.tsx - Authentication form
app/src/components/AuthModal.tsx
Other components
- Web visitor
- Authentication API
Connections 31
- Web visitor → App router: opens
- App router → Navigation and sign-in: renders
app/src/App.tsx - App router → Site footer: renders
app/src/App.tsx - App router → Product discovery: routes to
app/src/App.tsx - App router → Product details: routes to
app/src/App.tsx - App router → Product comparison: routes to
app/src/App.tsx - App router → Product customization: routes to
app/src/App.tsx - App router → Checkout: routes to
app/src/App.tsx - App router → Order confirmation: routes to
app/src/App.tsx - App router → Customer profile: routes to
app/src/App.tsx - App router → Product traceability: routes to
app/src/App.tsx - App router → Distributor directory: routes to
app/src/App.tsx - App router → Articles: routes to
app/src/App.tsx - App router → Article detail: routes to
app/src/App.tsx - App router → Store administration: routes to
app/src/App.tsx - App router → Batch data entry: routes to
app/src/App.tsx - App router → Production review: routes to
app/src/App.tsx - App router → Warehouse and orders: routes to
app/src/App.tsx - Navigation and sign-in → Authentication form: opens
app/src/components/Navbar.tsx - Authentication form → Authentication API: posts credentials
app/src/components/AuthModal.tsx - Product discovery → Product catalog data: reads
app/src/pages/Home.tsx - Product details → Product catalog data: reads
app/src/pages/ProductDetail.tsx - Product comparison → Product catalog data: reads
app/src/pages/Compare.tsx - Product traceability → Product catalog data: reads
app/src/pages/Traceability.tsx - Distributor directory → Product catalog data: reads
app/src/pages/Distributors.tsx - Batch data entry → Batch record model: uses
app/src/pages/DataEntryAdmin.tsx - Production review → Batch record model: uses
app/src/pages/ProductionManager.tsx - Warehouse and orders → Batch record model: uses
app/src/pages/WarehouseAdmin.tsx - Batch data entry → Batch detail view: renders
app/src/pages/DataEntryAdmin.tsx - Production review → Batch detail view: renders
app/src/pages/ProductionManager.tsx - Warehouse and orders → Batch detail view: renders
app/src/pages/WarehouseAdmin.tsx