How nik-coder-10/whatsapp_automation works
Trolift is a B2B equipment ordering platform: customers browse a catalogue, build a cart, check delivery and place an order, submit a UPI payment claim, then track the order. Staff administer products, customers, orders, payments, delivery and fulfillment, and issue invoices or quotations. The graph combines documented capabilities with sampled route and module relationships; unsampled implementation details are represented only at supported subsystem paths.
Main entry points: api API route handlers · (protected) Admin dashboard · delivery Delivery calculation · orders Order creation
Components 22
Customer storefront
- Product catalogue
lib/catalog - Product browsing
app/products - Shopping cart
components/cart - Checkout form
components/checkout/CheckoutForm.tsx
Ordering and fulfillment
- Delivery calculation
lib/delivery - Order creation
lib/orders - Guest order access
lib/guest-access - UPI payment claims
lib/payments - Shipment management
lib/shipments - Invoices and quotes
lib/invoices
Staff operations
- Admin dashboard
app/admin/(protected) - Product and customer admin
lib/admin - Order administration
lib/admin/orders.ts - Delivery configuration
lib/admin/delivery.ts
Platform services
- Payment proof storage
lib/storage/payment-proofs.ts - Supabase database
lib/supabase/server.ts - API route handlers
app/api - API handling
lib/api/handler.ts - Email notifications
lib/notifications
Other components
- B2B customer
- Trolift staff
- UPI payment service
Connections 23
- B2B customer → Product browsing: browses
- Product browsing → Product catalogue: loads products
app/products/page.tsx - B2B customer → Shopping cart: adds items
- Shopping cart → Checkout form: proceeds to
- Checkout form → API route handlers: submits order
- API route handlers → Order creation: creates order
app/api/orders/route.ts - API route handlers → Delivery calculation: checks serviceability
app/api/delivery/check/route.ts - Order creation → Supabase database: persists order
- Order creation → Guest order access: issues access token
app/api/orders/route.ts - B2B customer → UPI payment claims: submits UPI claim
- API route handlers → UPI payment claims: submits claim
app/api/payments/claim/route.ts - API route handlers → Payment proof storage: uploads proof
app/api/payments/claim/route.ts - B2B customer → UPI payment service: pays directly
- Trolift staff → Admin dashboard: manages platform
- Admin dashboard → Product and customer admin: manages products
app/admin/(protected)/page.tsx - Admin dashboard → Order administration: manages orders
- Admin dashboard → Delivery configuration: configures delivery
- Order administration → Shipment management: manages fulfillment
lib/shipments/service.ts - Order administration → Invoices and quotes: issues documents
lib/invoices/service.ts - API route handlers → API handling: wraps requests
app/api/orders/route.ts - API route handlers → Email notifications: sends order notice
app/api/orders/route.ts - Delivery calculation → Supabase database: reads delivery rules
lib/delivery/engine.ts - Delivery calculation → Delivery configuration: uses configured rates