How rekovohq-commits/rekovohq works
RekovoHQ is a recycling and circular-economy operations platform: its interface supports recycler deposits and rewards alongside staff, collection, inventory, sales, finance, and regional administration. The main user workflow enters through role-aware application views; the deposit experience and broader operational features are represented by their substantial modules, but their internal call paths were not sampled. The excerpts show shared context using the API client, server routers persisting operational state, and offline scan synchronization. Unsampled feature-to-backend links are omitted rather than inferred.
Main entry points: App.tsx Role-aware app · AppContext.tsx Shared app context · offlineScanStorage.ts Offline scan sync · api.ts Client API and sockets
Components 20
Application and access
- Role-aware app
src/App.tsx - Authentication
src/components/LoginPage.tsx
Recycling and rewards
- Recycling deposits
src/components/DepositFlow.tsx - Rewards program
src/components/RewardsView.tsx - Offline scan sync
src/utils/offlineScanStorage.ts
Operational management
- Operations dashboard
src/components/DashboardView.tsx - Collection management
src/components/Collections/CollectionsManagementView.tsx - Operations control
src/components/OperationsView.tsx - Finance and treasury
src/components/Finance/FinanceDashboard.tsx - Offtaker sales
src/components/OffTakers/OffTakerSalesView.tsx - User administration
src/components/Users/UsersManagementView.tsx - Platform administration
src/components/SuperAdmin/SuperAdminDashboard.tsx
Services and state
- Shared app context
src/context/AppContext.tsx - Client API and sockets
src/lib/api.ts - Operations API
src/server/operationsRouter.ts - Finance API
src/server/financeRouter.ts - Operational state store
src/server/store.ts - Firebase services
src/lib/firebase.ts - Seeded domain data
src/data/mockData.ts
Other components
- Platform user
Connections 14
- Platform user → Role-aware app: uses
src/App.tsx - Role-aware app → Authentication: shows
src/App.tsx - Role-aware app → Operations dashboard: renders
src/App.tsx - Role-aware app → Finance and treasury: renders
src/App.tsx - Role-aware app → Operations control: routes to
src/App.tsx - Role-aware app → Collection management: routes to
src/App.tsx - Role-aware app → Offtaker sales: routes to
src/App.tsx - Shared app context → Client API and sockets: calls
src/context/AppContext.tsx - Shared app context → Seeded domain data: imports
src/context/AppContext.tsx - Operations API → Operational state store: persists via
src/server/operationsRouter.ts - Offline scan sync → Client API and sockets: syncs through
src/utils/offlineScanStorage.ts - Offline scan sync → Firebase services: writes scans
src/utils/offlineScanStorage.ts - Role-aware app → Shared app context: provides state
src/App.tsx - Finance API → Operational state store: may persist