How thanh08032004/sba301_badmintonshop_se1986-jv works
This is a Badminton Shop storefront and operations frontend. The customer journey runs from browsing products through cart and order placement to payment, order tracking, and support; staff have separate order, catalog, delivery, ticket, and reporting workflows. The graph includes the app’s routing, authentication, and shared shop state as internal layers. Several screens and data flows are unsampled, so only documented routing and visible calls are connected; the README gives no additional product detail.
Main entry points: public.routes.jsx Public routes · management.routes.jsx Management routes · ShopProvider.jsx Shared shop state · App.jsx Application shell
Components 22
App and access
- Application shell
frontend/src/app/App.jsx - Authentication state
frontend/src/app/provider/AuthsProvider.jsx - Route access control
frontend/src/app/router/ProtectedRouter.jsx - Public routes
frontend/src/app/router/public.routes.jsx - Management routes
frontend/src/app/router/management.routes.jsx
Storefront and orders
- Storefront and catalog
frontend/src/modules/home/pages/HomePage.jsx - Cart and checkout order
frontend/src/modules/shop/CartPage.jsx - Customer orders
frontend/src/modules/shop/OrdersPage.jsx - Order tracking
frontend/src/modules/delivery/pages/OrderTrackingPage.jsx - Customer support tickets
frontend/src/modules/support/pages/CreateSupportTicketPage.jsx
Payments
- Checkout
frontend/src/modules/payment/pages/CheckoutPage.jsx - Payment flow
frontend/src/modules/payment/hooks/usePayment.js - QR and result pages
frontend/src/modules/payment/pages/QrPaymentPage.jsx
Store operations
- Operations dashboard
frontend/src/modules/management/DashboardPage.jsx - Catalog management
frontend/src/modules/management/CatalogPage.jsx - Order management
frontend/src/modules/management/ManagerOrdersPage.jsx - Delivery management
frontend/src/modules/delivery/pages/DeliveryManagementPage.jsx - Ticket management
frontend/src/modules/support/pages/SupportTicketManagementPage.jsx
Shared services
- Shared shop state
frontend/src/modules/shop/ShopProvider.jsx - Shop API
Other components
- Shopper
- Manager or staff
Connections 30
- Application shell → Authentication state: provides auth
frontend/src/app/App.jsx - Application shell → Public routes: loads routes
frontend/src/app/App.jsx - Application shell → Management routes: loads routes
- Public routes → Route access control: guards private pages
frontend/src/app/router/public.routes.jsx - Management routes → Route access control: guards staff pages
frontend/src/app/router/management.routes.jsx - Public routes → Storefront and catalog: routes to
frontend/src/app/router/public.routes.jsx - Public routes → Cart and checkout order: routes to
frontend/src/app/router/public.routes.jsx - Public routes → Customer orders: routes to
frontend/src/app/router/public.routes.jsx - Public routes → Order tracking: routes to
frontend/src/app/router/public.routes.jsx - Public routes → Customer support tickets: routes to
frontend/src/app/router/public.routes.jsx - Public routes → Checkout: routes to
frontend/src/app/router/public.routes.jsx - Public routes → QR and result pages: routes to
frontend/src/app/router/public.routes.jsx - Management routes → Operations dashboard: routes to
frontend/src/app/router/management.routes.jsx - Management routes → Catalog management: routes to
frontend/src/app/router/management.routes.jsx - Management routes → Order management: routes to
frontend/src/app/router/management.routes.jsx - Management routes → Delivery management: routes to
frontend/src/app/router/management.routes.jsx - Management routes → Ticket management: routes to
frontend/src/app/router/management.routes.jsx - Shopper → Storefront and catalog: browses
- Shopper → Cart and checkout order: shops
- Shopper → Checkout: checks out
- Manager or staff → Operations dashboard: manages store
- Checkout → Payment flow: uses payment hook
frontend/src/modules/payment/pages/CheckoutPage.jsx - Payment flow → Shop API: requests shop data
frontend/src/modules/payment/hooks/usePayment.js - Payment flow → QR and result pages: navigates to QR
frontend/src/modules/payment/hooks/usePayment.js - Shared shop state → Shop API: fetches shop data
- Storefront and catalog → Shared shop state: reads shop state
frontend/src/modules/home/pages/HomePage.jsx - Operations dashboard → Shared shop state: reads shop state
frontend/src/modules/management/DashboardPage.jsx - Order management → Shared shop state: reads and updates
frontend/src/modules/management/ManagerOrdersPage.jsx - Ticket management → Shared shop state: uses shop state
frontend/src/modules/support/pages/SupportTicketManagementPage.jsx - Delivery management → Shared shop state: uses shop state
frontend/src/modules/delivery/pages/DeliveryManagementPage.jsx