How youssefali123/sari3_app works
This is an Expo/React Native food-ordering and delivery app with customer, authentication, and driver route groups. The main customer journey is area-based discovery and search, selecting products, then checking out with an address and coupon to create an order; customers can also revisit orders and favorites. Drivers manage availability, claim and progress deliveries, and view history. The graph uses the source index for documented imports and the sampled driver repository for its Supabase operations; unsampled driver-screen wiring is left unverified.
Main entry points: (home)/index.tsx Discovery home · checkout/index.tsx Checkout · supabase.ts Supabase · SupabaseOrderRepository.ts Customer orders
Components 23
Customer commerce
- Customer routes
src/app/(customer) - Discovery home
src/app/(customer)/(home)/index.tsx - Catalog search
src/features/search/application/hooks/useSearch.ts - Stores and products
src/features/restaurants/infrastructure/SupabaseStoreRepository.ts - Delivery areas
src/features/areas/application/hooks/useAreas.ts - Cart state
src/features/cart/application/cartSlice.ts - Checkout
src/app/(customer)/checkout/index.tsx - Saved addresses
src/features/addresses/infrastructure/SupabaseAddressRepository.ts - Coupons and promotions
src/features/promotions/infrastructure/SupabaseCouponRepository.ts - Customer orders
src/features/orders/infrastructure/SupabaseOrderRepository.ts - Favorites
src/features/favorites/infrastructure/SupabaseFavoritesRepository.ts
Identity and profile
- Authentication
src/features/auth/application/hooks/useAuth.ts - User profiles
src/features/profile/infrastructure/SupabaseProfileRepository.ts
Driver fulfillment
- Driver routes
src/app/(driver) - Driver fulfillment
src/features/drivers/infrastructure/SupabaseDriverFulfillmentRepository.ts - Delivery realtime
src/features/drivers/infrastructure/SupabaseDriverRealtimeService.ts
Backend services
- Push notifications
src/features/notifications/infrastructure/ExpoNotificationService.ts - Order status notifier
supabase/functions/notify-order-status/index.ts - Supabase
src/shared/lib/supabase.ts
App foundation
- App providers
src/providers/AppProviders.tsx - Query client
src/shared/lib/queryClient.ts
Other components
- App user
- Push service
Connections 19
- App user → Discovery home: browses
src/app/(customer)/(home)/index.tsx - Discovery home → Delivery areas: selects area
src/app/(customer)/(home)/index.tsx - Discovery home → Catalog search: searches catalog
src/app/(customer)/(home)/index.tsx - Discovery home → Stores and products: loads stores
src/app/(customer)/(home)/index.tsx - App user → Checkout: checks out
src/app/(customer)/checkout/index.tsx - Checkout → Saved addresses: loads addresses
src/app/(customer)/checkout/index.tsx - Checkout → Coupons and promotions: applies coupon
src/app/(customer)/checkout/index.tsx - Checkout → Customer orders: creates order
src/app/(customer)/checkout/index.tsx - Checkout → Cart state: reads cart
src/app/(customer)/checkout/index.tsx - Discovery home → Customer orders: reorders
src/app/(customer)/(home)/index.tsx - App user → Authentication: signs in
- Driver routes → Driver fulfillment: manages deliveries
- Driver fulfillment → Supabase: queries and updates
src/features/drivers/infrastructure/SupabaseDriverFulfillmentRepository.ts - Catalog search → Supabase: searches catalog
- Customer orders → Supabase: reads and writes
src/features/orders/infrastructure/SupabaseOrderRepository.ts - App providers → Authentication: provides auth
src/providers/AppProviders.tsx - App providers → Query client: configures queries
src/providers/AppProviders.tsx - Push notifications → Supabase: registers device
src/features/notifications/infrastructure/ExpoNotificationService.ts - Order status notifier → Push service: sends notification