How reinhardtmarta/logiflow works
LogiFlow is a responsive food-rescue marketplace connecting sellers and consumers. The main workflow moves from browsing or searching surplus food, through seller inventory and listing management, to buyer–seller chat and local pickup coordination. Seller plans, AI-assisted rescue insights, and account management are additional capabilities. The graph reflects documented features and indexed imports; unsampled screens and service internals are represented at their exact paths, but their unverified connections are omitted or dashed.
Main entry points: store.ts Application Store · App.tsx App Navigation · GeneralFeedScreen.tsx Public Food Feed · MarketplaceScreen.tsx Marketplace
Components 34
Application
- App Navigation
src/App.tsx - Header and Account Controls
src/components/Header.tsx - Bottom Navigation
src/components/BottomNav.tsx
Food Marketplace
- Public Food Feed
src/screens/GeneralFeedScreen.tsx - AI Rescue Feed
src/screens/FeedBotScreen.tsx - Zero-Waste Assistant
src/screens/AiAssistantScreen.tsx - Marketplace
src/screens/MarketplaceScreen.tsx - Food Search
src/screens/SearchScreen.tsx - Buyer-Seller Chat
src/screens/ChatScreen.tsx - Distance Bot
src/services/distanceBot.ts - Distance Guidance
src/components/DistanceBotModal.tsx
Seller Operations
- Product Listing
src/screens/AddProductModal.tsx - Stock Management
src/screens/StockScreen.tsx - Seller Dashboard
src/screens/SellerDashboard.tsx - Featured Products
src/screens/SelectFeaturedScreen.tsx
Platform Services
- Application Store
src/services/store.ts - Firebase Services
src/services/firebase.ts - Gemma AI Service
src/services/gemmaService.ts - Location and Distance
src/utils/distance.ts - Language Context
src/context/LanguageContext.tsx - Translations
src/services/i18n.ts - Translation Strings
src/res/strings.ts - Google Pay Service
src/services/googlePay.ts
Account and Plans
- User Profile
src/screens/UserProfileScreen.tsx - Google Sign-In
src/screens/AuthScreen.tsx - Terms and Privacy
src/components/TermsModal.tsx - Account Deletion
src/components/AccountDeletionModal.tsx - Seller Plans
src/screens/UpgradeScreen.tsx - Payment Security Flow
src/components/MercadoPagoSecurityBot.tsx - Payment Configuration
src/config/payment.ts
Other components
- Consumer or Seller
- Browser Geolocation
- Google Identity
- Mercado Pago
Connections 48
- Consumer or Seller → App Navigation: uses
- App Navigation → Header and Account Controls: renders
src/App.tsx - App Navigation → Bottom Navigation: renders
src/App.tsx - App Navigation → Public Food Feed: routes to
src/App.tsx - App Navigation → Marketplace: routes to
src/App.tsx - App Navigation → Food Search: routes to
src/App.tsx - App Navigation → Seller Dashboard: routes to
src/App.tsx - App Navigation → AI Rescue Feed: routes to
src/App.tsx - App Navigation → User Profile: routes to
src/App.tsx - App Navigation → Application Store: reads user
src/App.tsx - App Navigation → Google Sign-In: opens sign-in
src/App.tsx - Public Food Feed → Application Store: reads products
src/screens/GeneralFeedScreen.tsx - Public Food Feed → Distance Bot: requests guidance
src/screens/GeneralFeedScreen.tsx - Public Food Feed → Distance Guidance: opens modal
src/screens/GeneralFeedScreen.tsx - AI Rescue Feed → Application Store: reads products
src/screens/FeedBotScreen.tsx - AI Rescue Feed → Location and Distance: uses distance
src/screens/FeedBotScreen.tsx - Zero-Waste Assistant → Gemma AI Service: requests AI insights
- Marketplace → Application Store: reads products
src/screens/MarketplaceScreen.tsx - Marketplace → Location and Distance: uses distance
src/screens/MarketplaceScreen.tsx - Food Search → Application Store: searches products
src/screens/SearchScreen.tsx - Food Search → Location and Distance: formats distance
src/screens/SearchScreen.tsx - Marketplace → Buyer-Seller Chat: opens chat
src/App.tsx - Food Search → Buyer-Seller Chat: opens chat
src/screens/SearchScreen.tsx - Buyer-Seller Chat → Application Store: exchanges messages
src/screens/ChatScreen.tsx - Consumer or Seller → Browser Geolocation: shares location
- Location and Distance → Browser Geolocation: requests coordinates
src/utils/distance.ts - Seller Dashboard → Application Store: reads seller metrics
src/screens/SellerDashboard.tsx - Seller Dashboard → Product Listing: opens listing
src/App.tsx - Seller Dashboard → Stock Management: opens inventory
src/App.tsx - Stock Management → Application Store: updates stock
src/screens/StockScreen.tsx - Product Listing → Application Store: adds product
src/screens/AddProductModal.tsx - Featured Products → Application Store: updates featured item
src/screens/SelectFeaturedScreen.tsx - User Profile → Application Store: updates profile
src/screens/UserProfileScreen.tsx - User Profile → Account Deletion: opens deletion
src/screens/UserProfileScreen.tsx - User Profile → Terms and Privacy: opens terms
src/screens/UserProfileScreen.tsx - Google Sign-In → Google Identity: signs in with
src/screens/AuthScreen.tsx - Google Sign-In → Firebase Services: reads profile
src/screens/AuthScreen.tsx - Google Sign-In → Application Store: sets user
src/screens/AuthScreen.tsx - Application Store → Firebase Services: reads and writes
src/services/store.ts - Seller Plans → Application Store: updates plan
src/screens/UpgradeScreen.tsx - Seller Plans → Google Pay Service: uses payment service
src/screens/UpgradeScreen.tsx - Seller Plans → Payment Security Flow: opens payment flow
src/screens/UpgradeScreen.tsx - Payment Security Flow → Application Store: completes payment
src/components/MercadoPagoSecurityBot.tsx - Payment Security Flow → Payment Configuration: reads settings
src/components/MercadoPagoSecurityBot.tsx - Payment Security Flow → Mercado Pago: opens checkout
- App Navigation → Application Store: records payment return
src/App.tsx - Language Context → Translations: subscribes and translates
src/context/LanguageContext.tsx - Translations → Translation Strings: reads translations
src/services/i18n.ts