Tech Stack
+-
+
- 7 page views, 9 reusable components +
- 3 composables for shared logic +
- Custom SVG charts (no chart library) +
- EN / JA internationalization +
- Singleton filter state (useFilters) +
-
+
- 17 REST endpoints across 6 resource groups +
- 8 Pydantic response models +
- CORS open for local development +
- Auto-generated OpenAPI docs at /docs +
- Pure filter functions (no mutations) +
-
+
- 7 JSON files loaded at startup +
- Data resets on server restart +
- Warehouses: San Francisco, London, Tokyo +
- 5 product categories +
- Months: Jan–Dec 2025 +
Request Data Flow
+Frontend Component Structure
+Views (Pages)
+Components & Composables
+Filter System
+| View | +Warehouse | +Category | +Status | +Month / Period | +Notes | +
|---|---|---|---|---|---|
| Dashboard | +✓ | +✓ | +✓ | +✓ | +All 4 filters applied to summary stats | +
| Inventory | +✓ | +✓ | +— | +— | +Local text search applied on top | +
| Orders | +✓ | +✓ | +✓ | +✓ | +Full filter support | +
| Spending | +— | +— | +— | +— | +Static aggregated data | +
| Reports | +— | +— | +— | +— | +Pre-aggregated quarterly/monthly | +
| Demand | +— | +— | +— | +— | +No filtering | +
| Backlog | +— | +— | +— | +— | +No filtering; PO creation available | +
API Endpoints
+Core Data Models (Pydantic)
+InventoryItem
+Order
+BacklogItem
+DemandForecast
+PurchaseOrder
+DashboardSummary
++ Low stock = qty ≤ reorder_point +