How ezzademir/quackmaster works
This is a restaurant operations application for managing procurement, production, inventory, outlet distribution, sales, and operational oversight. Users enter through authenticated routes, then work in domain pages that read or update Supabase-backed data; production and distribution services also apply workflow rules and record ledger activity. The graph preserves the major operational and reporting areas present in the route map and source tree. Relationships for unsampled pages are limited to documented routing or imports; their internal behavior is not inferred.
Main entry points: App.tsx Application routes · supabase.ts Supabase client · Production.tsx Production · productionService.ts Production workflow
Components 25
Access and navigation
- Application routes
src/App.tsx - Authentication
src/utils/auth.tsx - Application layout
src/components/Layout.tsx
Supply and production
- Procurement
src/pages/Procurement.tsx - Production
src/pages/Production.tsx - Production workflow
src/utils/productionService.ts - Production planning
src/components/ProductionPlanningPanel.tsx
Inventory and distribution
- Inventory
src/pages/Inventory.tsx - Stock take
src/pages/StockTake.tsx - Outlet stock take
src/components/outletStockTake/OutletStockTakeTab.tsx - Distribution
src/pages/Distribution.tsx - Distribution workflow
src/utils/distributionService.ts - Outlet reorder suggestions
src/utils/parService.ts
Sales and oversight
- Sales
src/pages/Sales.tsx - POS comparison
src/pages/PosCompare.tsx - Overview dashboard
src/pages/Overview.tsx - Reconciliation
src/pages/Reconciliation.tsx - Lot genealogy
src/pages/Genealogy.tsx - Audit ledger
src/pages/Ledger.tsx
Data and workflow services
- Ledger service
src/utils/ledger.ts - Supabase client
src/utils/supabase.ts - Date filtering
src/components/DateFilter.tsx - Date range logic
src/utils/dateRange.ts
Other components
- Staff or admin
- Supabase data service
Connections 29
- Staff or admin → Application routes: opens
src/App.tsx - Application routes → Authentication: provides auth
src/App.tsx - Application routes → Application layout: routes through
src/App.tsx - Application routes → Procurement: routes to
src/App.tsx - Application routes → Production: routes to
src/App.tsx - Application routes → Inventory: routes to
src/App.tsx - Application routes → Distribution: routes to
src/App.tsx - Application routes → Sales: routes to
src/App.tsx - Application routes → POS comparison: routes to
src/App.tsx - Application routes → Overview dashboard: routes to
src/App.tsx - Application routes → Stock take: routes to
src/App.tsx - Application routes → Reconciliation: routes to
src/App.tsx - Application routes → Lot genealogy: routes to
src/App.tsx - Application routes → Audit ledger: routes to
src/App.tsx - Authentication → Supabase client: uses
src/utils/auth.tsx - Supabase client → Supabase data service: connects to
src/utils/supabase.ts - Procurement → Supabase client: reads and writes
src/pages/Procurement.tsx - Production → Production workflow: invokes
src/pages/Production.tsx - Production → Production planning: renders
src/pages/Production.tsx - Production workflow → Supabase client: updates data
src/utils/productionService.ts - Production workflow → Ledger service: records events
src/utils/productionService.ts - Distribution → Distribution workflow: invokes
src/pages/Distribution.tsx - Distribution → Outlet reorder suggestions: uses suggestions
src/pages/Distribution.tsx - Distribution workflow → Supabase client: updates data
src/utils/distributionService.ts - Distribution workflow → Ledger service: records events
src/utils/distributionService.ts - Outlet reorder suggestions → Supabase client: reads inventory
src/utils/parService.ts - Outlet stock take → Supabase client: reads and writes
src/components/outletStockTake/OutletStockTakeTab.tsx - Date filtering → Date range logic: uses
src/components/DateFilter.tsx - Ledger service → Supabase client: writes entries
src/utils/ledger.ts