How juvelasquez-dev/eclipse-inventory-system works
This is a React inventory-management application with inventory, point-of-sale, outlet-management, IAO order, and administration areas. The main evidenced workflow is staff using POS to browse products and stock, assemble a cart, and submit a transaction through Supabase; inventory state and outlet data are provided by the shared context. The graph also preserves the other route-based product areas. The README is Vite template material, and unsampled page internals are represented only by their routes and names.
Main entry points: App.tsx Route application · POS.tsx Point of sale · InventoryContext.tsx Inventory context · supabase.ts Supabase
Components 28
Access and shell
- Route application
src/App.tsx - Login
src/pages/Login/Login.tsx - Route guards
src/components/auth/ProtectedRoute.tsx - Module layout
src/components/layout/MainLayout.tsx - System selection
src/pages/System/System.tsx - Administration
src/pages/Admin/Admin.tsx - User management
src/pages/Admin/UserManagement.tsx - Audit logs
src/pages/Admin/AuditLogs.tsx
Inventory operations
- Inventory dashboard
src/pages/Inventory/Dashboard.tsx - Product catalog
src/pages/Inventory/Products.tsx - Stock in
src/pages/Inventory/StockIn.tsx - Stock out
src/pages/Inventory/StockOut.tsx - Inventory view
src/pages/Inventory/Inventory.tsx - Stock adjustment
src/pages/Inventory/StockAdjustment.tsx - Transaction history
src/pages/Inventory/History.tsx
Sales and outlets
- Point of sale
src/pages/POS/POS.tsx - POS history
src/pages/POS/POSHistory.tsx - Outlet management
src/pages/Outlets/Outlets.tsx - Outlet dashboard
src/pages/Outlets/Dashboard.tsx - Outlet reports
src/pages/Outlets/Reports.tsx - IAO orders
src/pages/IAOOutletOrders/IAOOutletOrders.tsx - IAO order history
src/pages/IAOOutletHistory/IAOOutletHistory.tsx
Shared data
- Inventory context
src/context/InventoryContext.tsx - Stock calculation
src/utils/inventory.ts - Inventory helpers
src/hooks/useInventory.ts - Supabase
src/lib/supabase.ts
Other components
- Staff / admin
- Supabase service
Connections 28
- Staff / admin → Route application: uses
- Route application → Login: routes
- Route application → Route guards: protects routes
- Route application → System selection: routes
- Route application → Administration: routes
- Route application → User management: routes
- Route application → Audit logs: routes
- Route application → IAO orders: routes
- Route application → IAO order history: routes
- Route application → Module layout: wraps modules
- Route application → Inventory dashboard: routes
- Route application → Product catalog: routes
- Route application → Stock in: routes
- Route application → Stock out: routes
- Route application → Inventory view: routes
- Route application → Stock adjustment: routes
- Route application → Transaction history: routes
- Route application → Point of sale: routes
- Route application → POS history: routes
- Route application → Outlet management: routes
- Route application → Outlet dashboard: routes
- Route application → Outlet reports: routes
- Point of sale → Inventory helpers: reads shared data
- Inventory helpers → Inventory context: reads state
- Inventory context → Stock calculation: derives stock
- Inventory context → Supabase: queries and writes
- Point of sale → Supabase: creates POS transaction
- Supabase → Supabase service: calls