How butuanev123-lab/butuanev works
This is a client-side inventory-management application for parts, shipments, stock movements, assemblies, damaged goods, returns, units, and reporting. The user navigates from the app shell into operational views, reviews inventory or inbound activity, and uses forms and detail dialogs to record changes; dashboard and reports provide visibility into that activity. The sampled code shows local React state and seeded example data, not a backend or persistent store. Some view-to-dialog wiring is not visible in the excerpts, so those links are marked unverified.
Main entry points: App.tsx App state and routing · inventory.ts Inventory domain types · ShipmentsView.tsx Shipments and requisitions · ShipmentDetailModal.tsx Shipment detail
Components 24
App shell
- App state and routing
src/App.tsx - Header and search
src/components/Header.tsx - Sidebar navigation
src/components/Sidebar.tsx - Inventory domain types
src/types/inventory.ts - Sample inventory data
src/data/initialData.ts - Toast notifications
src/components/Toast.tsx
Inventory operations
- Parts inventory
src/components/InventoryView.tsx - Stock-out records
src/components/StockOutView.tsx - Assembly tracking
src/components/AssemblyView.tsx - Units tracking
src/components/UnitsView.tsx - Add part form
src/components/modals/AddPartModal.tsx - Stock adjustment form
src/components/modals/StockAdjustModal.tsx - Part detail
src/components/modals/PartDetailModal.tsx
Inbound and procurement
- Shipments and requisitions
src/components/ShipmentsView.tsx - Add shipment form
src/components/modals/AddShipmentModal.tsx - Combined inbound form
src/components/modals/CombinedInboundModal.tsx - Shipment receipt
src/components/modals/ReceiveShipmentModal.tsx - Shipment detail
src/components/modals/ShipmentDetailModal.tsx - Purchase requisition
src/components/modals/PurchaseRequisitionModal.tsx
Tracking and insights
- Dashboard
src/components/DashboardView.tsx - Damaged goods
src/components/DamagedView.tsx - Returns
src/components/ReturnsView.tsx - Reports
src/components/ReportsView.tsx
Other components
- Operator
Connections 32
- Operator → App state and routing: uses
- App state and routing → Sample inventory data: loads initial data
src/App.tsx - App state and routing → Dashboard: routes to
src/App.tsx - App state and routing → Parts inventory: routes to
src/App.tsx - App state and routing → Shipments and requisitions: routes to
src/App.tsx - App state and routing → Stock-out records: routes to
src/App.tsx - App state and routing → Assembly tracking: routes to
src/App.tsx - App state and routing → Units tracking: routes to
src/App.tsx - App state and routing → Damaged goods: routes to
src/App.tsx - App state and routing → Returns: routes to
src/App.tsx - App state and routing → Reports: renders
src/App.tsx - App state and routing → Header and search: renders
src/App.tsx - App state and routing → Sidebar navigation: renders
src/App.tsx - App state and routing → Add part form: opens
src/App.tsx - App state and routing → Add shipment form: opens
src/App.tsx - App state and routing → Shipment receipt: opens
src/App.tsx - App state and routing → Stock adjustment form: opens
src/App.tsx - App state and routing → Part detail: opens
src/App.tsx - App state and routing → Combined inbound form: opens
- App state and routing → Shipment detail: opens
src/App.tsx - App state and routing → Purchase requisition: opens
- Parts inventory → Inventory domain types: uses types
src/components/InventoryView.tsx - Shipments and requisitions → Inventory domain types: uses types
src/components/ShipmentsView.tsx - Dashboard → Inventory domain types: uses types
src/components/DashboardView.tsx - Shipment receipt → Inventory domain types: uses types
src/components/modals/ReceiveShipmentModal.tsx - Shipment detail → Inventory domain types: uses types
src/components/modals/ShipmentDetailModal.tsx - Stock-out records → Inventory domain types: uses types
src/components/StockOutView.tsx - Shipments and requisitions → Purchase requisition: opens
src/components/ShipmentsView.tsx - Shipments and requisitions → Combined inbound form: opens
src/components/ShipmentsView.tsx - Parts inventory → Combined inbound form: opens
src/components/InventoryView.tsx - Shipments and requisitions → Shipment detail: opens
- Shipment detail → Shipment receipt: opens
src/components/modals/ShipmentDetailModal.tsx