How afxs1114/lods-mobile works
LODS is a role-based delivery companion for clients, merchants, and riders. Users sign in or register, after which App routes them to a role-specific workspace. The client workflow covers creating an order and tracking/rating it; merchants manage menus and orders, while riders handle assigned deliveries. Screens share Supabase-backed authentication and data access, with push-notification support. The excerpts establish navigation, session handling, and selected screen capabilities; several screen implementations are indexed but not sampled, so uncertain calls between those features are omitted.
Main entry points: supabase.js Supabase service · App.js Role router · ClientStack.js Client tabs · MerchantStack.js Merchant stack
Components 19
App and navigation
- Role router
App.js - Auth navigation
navigation/AuthStack.js - Client tabs
navigation/ClientStack.js - Merchant stack
navigation/MerchantStack.js - Rider stack
navigation/RiderStack.js
Identity and shared services
- Sign in and signup
screens/LoginScreen.js - Session and profiles
shared/AuthContext.js - Supabase service
shared/supabase.js - Push notifications
shared/notificationService.js
Client workflow
- Place order
screens/client/ClientOrderScreen.js - Track and rate
screens/client/ClientProgressScreen.js - Client profile
screens/client/ClientProfileScreen.js
Merchant operations
- Merchant dashboard
screens/merchant/MerchantDashboardScreen.js - Menu management
screens/merchant/MerchantMenuScreen.js - Merchant profile
screens/merchant/MerchantProfileScreen.js
Rider operations
- Rider dashboard
screens/rider/RiderDashboardScreen.js - Delivery orders
screens/rider/RiderOrdersScreen.js - Rider profile
screens/rider/RiderProfileScreen.js
Other components
- App user
Connections 30
- App user → Role router: opens app
App.js - Role router → Session and profiles: reads session
App.js - Role router → Auth navigation: routes signed-out
App.js - Role router → Client tabs: routes client
App.js - Role router → Merchant stack: routes merchant
App.js - Role router → Rider stack: routes rider
App.js - Auth navigation → Sign in and signup: shows login
navigation/AuthStack.js - Client tabs → Place order: shows tab
navigation/ClientStack.js - Client tabs → Track and rate: shows tab
navigation/ClientStack.js - Client tabs → Client profile: shows tab
navigation/ClientStack.js - Sign in and signup → Session and profiles: authenticates
screens/LoginScreen.js - Sign in and signup → Push notifications: registers token
screens/LoginScreen.js - Session and profiles → Supabase service: reads auth and profiles
shared/AuthContext.js - Place order → Supabase service: reads and writes
screens/client/ClientOrderScreen.js - Track and rate → Supabase service: loads orders
screens/client/ClientProgressScreen.js - Client profile → Supabase service: updates profile
screens/client/ClientProfileScreen.js - Merchant stack → Merchant dashboard: shows screen
navigation/MerchantStack.js - Merchant stack → Menu management: shows screen
navigation/MerchantStack.js - Merchant stack → Merchant profile: shows screen
navigation/MerchantStack.js - Merchant dashboard → Supabase service: uses data service
screens/merchant/MerchantDashboardScreen.js - Menu management → Supabase service: manages menu
screens/merchant/MerchantMenuScreen.js - Merchant profile → Session and profiles: uses user context
screens/merchant/MerchantProfileScreen.js - Rider stack → Rider dashboard: shows screen
navigation/RiderStack.js - Rider stack → Delivery orders: shows screen
navigation/RiderStack.js - Rider stack → Rider profile: shows screen
navigation/RiderStack.js - Rider dashboard → Supabase service: uses data service
screens/rider/RiderDashboardScreen.js - Delivery orders → Supabase service: updates deliveries
screens/rider/RiderOrdersScreen.js - Delivery orders → Push notifications: uses notifications
screens/rider/RiderOrdersScreen.js - Rider profile → Supabase service: uses data service
screens/rider/RiderProfileScreen.js - Push notifications → Supabase service: saves push token
shared/notificationService.js