How khushijagga21/hp-powerlab works
HP Fuel Order Management System is a role-based web platform for rural fuel procurement. Farmers register or sign in, submit an order with fuel, quantity, and delivery location, and drivers manage received orders; admins oversee operations. The README also describes real-time tracking and payment, represented as documented capabilities, though their implementation is not in the sampled source. Supabase handles authentication and user/order data in the inspected flows. The graph reflects observed routing and calls; unsampled feature wiring is intentionally left unspecified.
Main entry points: App.jsx App and routes · supabaseClient.js Supabase client · FarmerOrder.jsx Place fuel order · DriverDeliver.jsx Manage deliveries
Components 22
Access and routing
- App and routes
src/App.jsx - Role navigation
src/Components/Navbar.jsx - Sign in
src/Page/Login.jsx - Registration
src/Page/SignUp.jsx - User and role state
src/Context/UserContext.jsx
Farmer services
- Home and ordering info
src/Page/Home.jsx - Place fuel order
src/Page/FarmerOrder.jsx - Farmer profile
src/Page/FarmerProfile.jsx - Farmer community
src/Page/FarmerCommunity.jsx - Farmer tips
src/Page/Tips.jsx - Fuel prices
src/Page/Prices.jsx
Delivery operations
- Manage deliveries
src/Page/DriverDeliver.jsx - Order tracking
src/Page - Payment
src/Page - Operations dashboard
src/Page/AdminDashboard.jsx - Admin management
src/Page/AdminMangement.jsx
Backend services
- Supabase client
src/utils/supabaseClient.js - Supabase Auth
- Supabase data
Other components
- Farmer
- Driver
- Admin
Connections 28
- Farmer → App and routes: opens
- Driver → App and routes: opens
- Admin → App and routes: opens
- App and routes → Home and ordering info: routes
- App and routes → Sign in: routes
- App and routes → Registration: routes
- App and routes → Place fuel order: routes
- App and routes → Farmer profile: routes
- App and routes → Farmer community: routes
- App and routes → Farmer tips: routes
- App and routes → Fuel prices: routes
- App and routes → Manage deliveries: routes
- App and routes → Operations dashboard: routes
- App and routes → Admin management: routes
- App and routes → Role navigation: renders
- App and routes → User and role state: provides role
- Sign in → Supabase client: signs in
- Registration → Supabase client: registers
- User and role state → Supabase client: loads session and role
- Role navigation → Supabase client: signs out
- Place fuel order → Supabase client: loads user and inserts order
- Supabase client → Supabase Auth: auth requests
- Supabase client → Supabase data: data requests
- Farmer → Place fuel order: submits request
- Driver → Manage deliveries: manages orders
- Admin → Operations dashboard: oversees operations
- Manage deliveries → Order tracking: supports
- Place fuel order → Payment: payment stage