How krudcoding/camdelivery works
This is a Cambodia-focused delivery app for comparing courier options, managing shipments, and tracking deliveries, with supporting account, payment, and convenience features. The main user workflow enters through the app shell, uses the home hub to discover delivery tools, compares carrier quotes, and follows a shipment in live tracking. Account and banking capabilities form a parallel branch. Local persistence, delivery estimates, route optimization, and loyalty logic provide internal support. Relationships involving unsampled components are included only where the source index lists the relevant imports; the README is empty.
Main entry points: HomeHubView.tsx Home hub · App.tsx App shell · LiveTrackingView.tsx Live tracking · CourierCompareView.tsx Courier comparison
Components 23
Shipping and tracking
- Live tracking
src/components/LiveTrackingView.tsx - Courier comparison
src/components/CourierCompareView.tsx - Courier verification
src/components/CourierVerificationModal.tsx - Driver live map
src/components/DriverLiveMap.tsx
Discovery and mobility
- Map dashboard
src/components/MapDashboard.tsx - Quick cost estimator
src/components/QuickCostEstimator.tsx - Route optimization
src/components/RouteOptimizationEngine.tsx - Voice search
src/components/VoiceSearchButton.tsx - Support hub
src/components/SupportHub.tsx
Accounts and engagement
- Account and banking
src/components/AccountAndBankingView.tsx - Bakong KHQR
src/components/BakongKHQRModal.tsx
Data and services
- Carrier data and quotes
src/data/carriers.ts - Delivery history
src/data/deliveryHistory.ts - Delivery calculator
src/utils/deliveryCalculator.ts - Route optimizer utility
src/utils/routeOptimizer.ts - Route locations
src/data/cambodiaRouteLocations.ts - Loyalty service
src/utils/loyaltyService.ts - Offline storage
src/utils/offlineStorage.ts - Notification service
src/services/notificationService.ts - Saved address service
src/utils/savedAddressService.ts
Other components
- Customer
Connections 24
- Customer → App shell: opens
- App shell → Home hub: renders
src/App.tsx - App shell → Live tracking: renders
src/App.tsx - App shell → Courier comparison: renders
src/App.tsx - App shell → Account and banking: renders
src/App.tsx - App shell → Offline storage: reads and saves
src/App.tsx - Home hub → Quick cost estimator: renders
src/components/HomeHubView.tsx - Home hub → Route optimization: renders
src/components/HomeHubView.tsx - Home hub → Map dashboard: renders
src/components/HomeHubView.tsx - Home hub → Voice search: renders
src/components/HomeHubView.tsx - Home hub → Support hub: renders
src/components/HomeHubView.tsx - Home hub → Carrier data and quotes: reads
src/components/HomeHubView.tsx - Live tracking → Notification service: requests permission
src/components/LiveTrackingView.tsx - Live tracking → Courier verification: renders
src/components/LiveTrackingView.tsx - Live tracking → Driver live map: renders
src/components/LiveTrackingView.tsx - Live tracking → Offline storage: reads and saves
src/components/LiveTrackingView.tsx - Courier comparison → Carrier data and quotes: gets quotes
src/components/CourierCompareView.tsx - Courier comparison → Bakong KHQR: renders
src/components/CourierCompareView.tsx - Carrier data and quotes → Delivery calculator: calculates schedules
src/data/carriers.ts - Route optimization → Route optimizer utility: optimizes routes
src/components/RouteOptimizationEngine.tsx - Route optimization → Route locations: uses locations
src/components/RouteOptimizationEngine.tsx - Account and banking → Loyalty service: uses
src/components/AccountAndBankingView.tsx - Account and banking → Delivery history: reads
src/components/AccountAndBankingView.tsx - Loyalty service → Delivery history: reads history
src/utils/loyaltyService.ts