How devsayagroup/hub-aromabiji works
Aroma Biji Hub is a browser-based operations application for purchasing, vendors, production, and warehouse inventory. Users sign in, then work through these domain areas; the dashboard summarizes operational data, while barcode scanning supports item lookup. Domain stores coordinate application state and Supabase access. The README is only a generic Next.js template, so product capabilities are inferred from the supplied tree and source index. Several workflow pages are unsampled; their internal transitions are therefore not asserted here.
Main entry points: useWarehouseStore.ts Inventory state · page.tsx Purchase orders · CameraScanner.tsx Camera scanner · useAuthStore.ts Session and roles
Components 28
Access and navigation
- Sign in
app/(auth)/login/page.tsx - Session and roles
store/useAuthStore.ts - Auth lifecycle
components/providers/AuthProvider.tsx
Operations overview
- Operations dashboard
app/(dashboard)/page.tsx - Overview data
store/useOverviewStore.ts - KPI and stock panels
components/features/overview
Procurement and vendors
- Purchase orders
app/(dashboard)/purchasing/page.tsx - PO workflows
components/features/purchase/purchasing - Purchasing state
store/usePurchaseStore.ts - Deliveries
app/(dashboard)/purchasing/deliveries/page.tsx - Receipt log
app/(dashboard)/purchasing/receipt-log/page.tsx - Vendor directory
app/(dashboard)/vendors/page.tsx - Vendor profile and catalog
components/features/vendors/detail/VendorDetailClient.tsx - Vendor state
store/useVendorStore.ts
Production and inventory
- Manufacturing orders
app/(dashboard)/production/page.tsx - MO create and detail
components/features/production/MoCreateModal.tsx - Production state
store/useProductionStore.ts - Warehouse hub
app/(dashboard)/warehouse/page.tsx - Warehouse stock table
components/features/warehouse/hub/WhStockTable.tsx - Raw and finished goods
app/(dashboard)/warehouse - Inventory state
store/useWarehouseStore.ts - Scan page
app/(dashboard)/warehouse/scan/page.tsx - Camera scanner
components/ui/CameraScanner.tsx - Barcode result
components/ui/GlobalBarcodeModal.tsx
Application services
- Supabase
- Global search
components/features/search/GlobalSearchModal.tsx - Notifications
components/features/notifications/NotificationDropdown.tsx
Other components
- Staff user
Connections 24
- Staff user → Sign in: signs in
- Sign in → Session and roles: authenticates
app/(auth)/login/page.tsx - Auth lifecycle → Session and roles: checks session
components/providers/AuthProvider.tsx - Auth lifecycle → Supabase: listens for auth
components/providers/AuthProvider.tsx - Session and roles → Supabase: reads and signs in
store/useAuthStore.ts - Operations dashboard → Overview data: loads data
app/(dashboard)/page.tsx - Operations dashboard → KPI and stock panels: renders panels
app/(dashboard)/page.tsx - Purchase orders → Purchasing state: loads orders
app/(dashboard)/purchasing/page.tsx - Purchase orders → Inventory state: loads hubs and materials
app/(dashboard)/purchasing/page.tsx - Purchase orders → PO workflows: renders workflow
app/(dashboard)/purchasing/page.tsx - PO workflows → Purchasing state: uses order actions
components/features/purchase/purchasing/PoDetailModal.tsx - Purchasing state → Supabase: reads and writes orders
store/usePurchaseStore.ts - Vendor directory → Vendor state: loads vendor data
- Vendor profile and catalog → Vendor state: loads vendor catalog
components/features/vendors/detail/VendorDetailClient.tsx - Vendor state → Supabase: reads and writes vendors
store/useVendorStore.ts - Manufacturing orders → MO create and detail: renders workflow
app/(dashboard)/production/page.tsx - MO create and detail → Production state: uses MO actions
components/features/production/MoCreateModal.tsx - Production state → Supabase: reads and writes orders
store/useProductionStore.ts - Warehouse hub → Warehouse stock table: renders stock view
app/(dashboard)/warehouse/page.tsx - Warehouse stock table → Inventory state: reads inventory
components/features/warehouse/hub/WhStockTable.tsx - Inventory state → Supabase: reads and writes inventory
store/useWarehouseStore.ts - Scan page → Camera scanner: renders scanner
app/(dashboard)/warehouse/scan/page.tsx - Camera scanner → Inventory state: looks up inventory
components/ui/CameraScanner.tsx - Camera scanner → Barcode result: opens scan result
components/ui/CameraScanner.tsx