How fleetbase/navigator-app works
Fleetbase Navigator is a driver-and-agent mobile app for managing orders, routes, and field operations. The principal workflow is to authenticate, load assigned or scheduled work from Fleetbase, inspect routes and destinations, then update order activity and submit proof or reports. The app also supports chat, location tracking, account and fleet views, and notifications. The current React Native entry point composes shared providers around navigation. README capabilities inform the feature branches; only sampled source supports the specific provider composition, order-query, persistence, and route-query links shown here.
Main entry points: App.tsx Provider shell · OrderScreen.tsx Order screens · AppNavigator.tsx App navigator · OrderManagerContext.tsx Order manager
Components 18
App and navigation
- Provider shell
App.tsx - App navigator
src/navigation/AppNavigator.tsx - Authentication screens
src/navigation/stacks/AuthStack.tsx
Orders and routing
- Order screens
src/screens/OrderScreen.tsx - Order manager
src/contexts/OrderManagerContext.tsx - Order details and proof
src/components/OrderProofOfDelivery.tsx - Route planning
src/legacy/features/Core/screens/RoutesScreen.js
Field operations
- Chat screens
src/screens/ChatHomeScreen.tsx - Fuel and issue reports
src/screens/CreateFuelReportScreen.tsx
Shared services
- Authentication state
src/contexts/AuthContext.tsx - Fleetbase data access
src/hooks/use-fleetbase.ts - Chat state
src/contexts/ChatContext.tsx - Realtime connection
src/contexts/SocketClusterContext.native.tsx - Location services
src/contexts/LocationContext.tsx - Local persistence
src/hooks/use-storage.ts - Notifications
src/contexts/NotificationContext.tsx
Other components
- Driver or agent
- Fleetbase services
Connections 18
- Driver or agent → Provider shell: opens
- Provider shell → App navigator: renders
- Provider shell → Authentication state: provides state
- App navigator → Authentication screens: routes to
- App navigator → Order screens: routes to
- Driver or agent → Authentication screens: signs in
- Order screens → Order manager: reads orders
- Order manager → Fleetbase data access: queries orders
- Route planning → Fleetbase data access: queries route orders
- Fleetbase data access → Fleetbase services: calls
- Order screens → Order details and proof: collects proof
- Order manager → Local persistence: persists order state
- Provider shell → Chat state: provides
- Chat screens → Chat state: uses
- Chat state → Realtime connection: uses realtime
- Provider shell → Location services: provides
- Order screens → Fuel and issue reports: opens reports
- Provider shell → Notifications: provides