How mkl168-system/mkl-system- works
Mekong Laundry Stock System is a browser-based inventory and operations application. Staff sign in, work through inventory, stock movement, purchasing, audit, supplier, and laundry-wood tracking screens, then review operational reports or export/share them. App.tsx owns application state and selects the active views; it loads persisted data through networkDb. The README also describes automatic local-storage saving and JSON backup/restore. Several large view modules are indexed but only partly sampled, so their documented capabilities are represented while unsupported call paths are omitted.
Main entry points: App.tsx Application State and Routing · ReportsView.tsx Reports · InventoryView.tsx Product Inventory · telegramBot.ts Telegram Reporting
Components 26
Application Shell
- Application State and Routing
src/App.tsx - Network Data Loading
src/utils/networkDb.ts - Firebase
src/lib/firebase.ts
Inventory Operations
- Product Inventory
src/components/InventoryView.tsx - Stock Movements
src/components/StockMovementView.tsx - Barcode Studio
src/components/BarcodeStudioView.tsx - Camera Scanner
src/components/CameraScannerModal.tsx - CSV Import
src/components/CsvImportModal.tsx - Stock Audit
src/components/StockAuditView.tsx
Business Workflows
- Purchase Orders
src/components/PurchaseOrdersView.tsx - Supplier Management
src/components/SuppliersView.tsx - Wood Tracking
src/components/WoodTrackerView.tsx - Daily Usage
src/components/DailyUsageModal.tsx
Reports and Integrations
- Dashboard
src/components/DashboardView.tsx - Reports
src/components/ReportsView.tsx - PDF Export
src/utils/pdfExporter.ts - Telegram Reporting
src/utils/telegramBot.ts - Google Sheets
src/utils/googleSheets.ts - AI Advisor
src/components/AIAdvisorView.tsx - Backup and Restore
src/components/BackupRestoreModal.tsx
Shared Services
- Domain Types
src/types.ts - Inventory and Report Helpers
src/utils/helpers.ts - Initial Data
src/data/initialData.ts - Scan Voice Feedback
src/utils/voiceSynthesizer.ts - Translations
src/utils/translations.ts
Other components
- Staff
Connections 34
- Staff → Application State and Routing: uses
README.md - Application State and Routing → Network Data Loading: loads data
src/App.tsx - Network Data Loading → Firebase: uses
src/utils/networkDb.ts - Application State and Routing → Wood Tracking: renders
src/App.tsx - Application State and Routing → Dashboard: renders
src/App.tsx - Product Inventory → Camera Scanner: opens
src/components/InventoryView.tsx - Product Inventory → CSV Import: imports
src/components/InventoryView.tsx - Barcode Studio → Camera Scanner: uses
src/components/BarcodeStudioView.tsx - Barcode Studio → Scan Voice Feedback: announces scans
src/components/BarcodeStudioView.tsx - Stock Movements → PDF Export: exports report
src/components/StockMovementView.tsx - Reports → PDF Export: exports reports
src/components/ReportsView.tsx - Reports → Telegram Reporting: sends report
src/components/ReportsView.tsx - Application State and Routing → Telegram Reporting: sends weekly report
src/App.tsx - Telegram Reporting → PDF Export: generates documents
src/utils/telegramBot.ts - Product Inventory → Inventory and Report Helpers: uses
src/components/InventoryView.tsx - Reports → Google Sheets: integrates
src/components/ReportsView.tsx - Application State and Routing → Initial Data: initializes from
src/App.tsx - Application State and Routing → Backup and Restore: opens
src/App.tsx - Application State and Routing → Purchase Orders: renders
src/App.tsx - Application State and Routing → Supplier Management: renders
src/App.tsx - Application State and Routing → Stock Movements: renders
src/App.tsx - Application State and Routing → Product Inventory: renders
src/App.tsx - Application State and Routing → Barcode Studio: renders
src/App.tsx - Application State and Routing → Stock Audit: renders
src/App.tsx - Application State and Routing → Reports: renders
src/App.tsx - Application State and Routing → AI Advisor: renders
src/App.tsx - Application State and Routing → Daily Usage: opens
src/App.tsx - Application State and Routing → Domain Types: models state
src/App.tsx - Product Inventory → Domain Types: uses
src/components/InventoryView.tsx - Reports → Domain Types: uses
src/components/ReportsView.tsx - Application State and Routing → Inventory and Report Helpers: reads settings
src/App.tsx - Wood Tracking → Telegram Reporting: uses
src/components/WoodTrackerView.tsx - Purchase Orders → Inventory and Report Helpers: uses
src/components/PurchaseOrdersView.tsx - Reports → Inventory and Report Helpers: uses
src/components/ReportsView.tsx