How aditisahu-cs/easydrop- works
EasyDrop is a delivery-booking and dispatch demo: customers select a delivery window, submit a booking, and can review or cancel deliveries; dispatchers manage slot capacity and AI capacity suggestions. Address normalization and DropBot chat extend the booking workflow, while rover telemetry is presented in the delivery UI. The React app coordinates the views and booking state; the AI service calls backend endpoints. The server is substantial, but its endpoint wiring is not visible in the supplied excerpts, so that connection is marked unverified.
Main entry points: App.tsx App Coordinator · aiService.ts AI Service · BookDeliveryView.tsx Book Delivery · types.ts Domain Types
Components 17
Customer App
- App Coordinator
src/App.tsx - Book Delivery
src/components/BookDeliveryView.tsx - Slot Confirmation
src/components/SlotConfirmationModal.tsx - Deliveries View
src/components/DeliveriesView.tsx - Rover Display
src/components/RoboticsRover.tsx - Address Review
src/components/AddressCleanupModal.tsx - Header
src/components/Header.tsx - Bottom Navigation
src/components/BottomNavigation.tsx
Dispatch Operations
- Admin Portal
src/components/AdminPortalView.tsx
AI Assistance
- DropBot Chat
src/components/DropBotChatModal.tsx - AI Service
src/services/aiService.ts
Shared Runtime
- Demo Data
src/data/mockData.ts - Domain Types
src/types.ts - API Server
server.ts - React Entry
src/main.tsx
Other components
- Customer
- Dispatcher
Connections 23
- Customer → App Coordinator: uses
- Dispatcher → App Coordinator: uses
- React Entry → App Coordinator: renders
src/main.tsx - App Coordinator → Book Delivery: renders
src/App.tsx - App Coordinator → Deliveries View: renders
src/App.tsx - App Coordinator → Admin Portal: renders
src/App.tsx - App Coordinator → Header: renders
src/App.tsx - App Coordinator → Bottom Navigation: renders
src/App.tsx - App Coordinator → Address Review: renders
src/App.tsx - App Coordinator → Slot Confirmation: renders
src/App.tsx - App Coordinator → DropBot Chat: renders
src/App.tsx - Book Delivery → Rover Display: renders
src/components/BookDeliveryView.tsx - Deliveries View → Rover Display: shows telemetry
- App Coordinator → Demo Data: loads demo state
src/App.tsx - Book Delivery → Demo Data: calculates recommendation
src/components/BookDeliveryView.tsx - App Coordinator → AI Service: normalizes address
src/App.tsx - App Coordinator → AI Service: syncs slot capacity
src/App.tsx - DropBot Chat → AI Service: sends chat
src/components/DropBotChatModal.tsx - AI Service → API Server: requests API
- App Coordinator → Domain Types: uses domain models
src/App.tsx - Book Delivery → Domain Types: uses domain models
src/components/BookDeliveryView.tsx - Deliveries View → Domain Types: uses booking model
src/components/DeliveriesView.tsx - AI Service → Domain Types: uses response models
src/services/aiService.ts