How sm85-code/frontend-marketplace-erp works
This is a private, staff-facing multi-marketplace ERP panel, not a storefront. Users authenticate, then manage shops and catalog/listings, process and ship orders, reconcile settlements, manage inventory, and administer ads and staff through routed pages backed by the Marketplace ERP API. The graph preserves README-documented screens even where their page implementations were not sampled; those paths come from the tree and those links are documented capabilities, not claims of source inspection.
Main entry points: endpoints.ts Route API client · App.tsx Routes and access · PesananPage.tsx Order inbox · auth.tsx Authentication state
Components 26
Application access
- Routes and access
src/App.tsx - Navigation shell
src/components/Layout.tsx - Authentication state
src/lib/auth.tsx - Sign in
src/pages/LoginPage.tsx - Staff administration
src/pages/StaffPage.tsx - User profile
src/pages/ProfilePage.tsx
Commerce operations
- Marketplace shops
src/pages/AkunPage.tsx - Shopee OAuth return
src/pages/ShopeeCallbackPage.tsx - Product catalog
src/pages/ProdukPage.tsx - Catalog views
src/pages/KatalogPage.tsx - Shop listings
src/pages/ListingPage.tsx - Sales dashboard
src/pages/DashboardPage.tsx
Orders and inventory
- Order inbox
src/pages/PesananPage.tsx - Order processing
src/pages/PesananDetailPage.tsx - Warehouse and stock
src/pages/GudangPage.tsx
Finance and growth
- Payout reconciliation
src/pages/SettlementPage.tsx - Campaign management
src/pages/IklanPage.tsx - Campaign performance
src/pages/IklanDetailPage.tsx
API and shared UI
- Route API client
src/api/endpoints.ts - HTTP transport
src/api/client.ts - API data contracts
src/api/types.ts - Shared list toolkit
src/components/daftar/index.ts - Order rules
src/lib/pesanan.ts - Campaign rules
src/lib/iklanKampanye.ts
Other components
- Panel user
- Marketplace ERP API
Connections 30
- Panel user → Routes and access: opens panel
src/App.tsx - Routes and access → Authentication state: provides auth
src/App.tsx - Routes and access → Sign in: routes to
src/App.tsx - Routes and access → Navigation shell: wraps protected pages
src/App.tsx - Sign in → Authentication state: signs in through
- Authentication state → Route API client: requests identity
src/lib/auth.tsx - Navigation shell → Panel user: presents navigation
src/components/Layout.tsx - Marketplace shops → Route API client: manages shops
- Marketplace shops → Shopee OAuth return: starts connection
- Shopee OAuth return → Route API client: completes OAuth
- Product catalog → Route API client: manages products
- Catalog views → Route API client: loads catalog
- Shop listings → Route API client: manages listings
- Order inbox → Route API client: loads and mutates
src/pages/PesananPage.tsx - Order inbox → Shared list toolkit: renders lists with
src/pages/PesananPage.tsx - Order inbox → Order rules: applies transitions
src/pages/PesananPage.tsx - Order processing → Route API client: updates shipment
- Warehouse and stock → Route API client: manages stock
src/pages/GudangPage.tsx - Warehouse and stock → Shared list toolkit: renders lists with
src/pages/GudangPage.tsx - Sales dashboard → Route API client: loads summaries
- Payout reconciliation → Route API client: reconciles payouts
- Payout reconciliation → Shared list toolkit: renders lists with
- Campaign management → Route API client: manages campaigns
- Campaign management → Campaign rules: uses campaign rules
- Campaign performance → Route API client: loads performance
- Staff administration → Route API client: manages staff
- User profile → Route API client: updates profile
- Route API client → HTTP transport: sends requests through
src/api/endpoints.ts - Route API client → API data contracts: uses contracts
src/api/endpoints.ts - HTTP transport → Marketplace ERP API: sends API requests
src/api/client.ts