How raaaj07/waste-management works
Waste Management is a role-based marketplace where consumers browse waste listings and manage orders, while producers list materials and manage sales. Both roles also have profiles and messaging; producer tools include operational dashboards and analytics. Supabase provides authentication and the shared data client. The graph preserves the major route areas and sampled integrations, but several page implementations and database interactions were not excerpted, so their internal calls and some workflow links are not asserted.
Main entry points: supabaseClient.ts Supabase Client · signin/page.tsx Sign In · consumer/page.tsx Consumer Home · MessagingInterface.tsx Messaging UI
Components 23
Consumer Marketplace
- Consumer Home
app/consumer/page.tsx - Browse Products
app/consumer/products/page.tsx - Product Details
app/consumer/products/[id]/page.tsx - Consumer Orders
app/consumer/orders/page.tsx - Order Tracking
app/consumer/orders/[id]/page.tsx - Consumer Profile
app/consumer/profile/page.tsx - Consumer Messages
app/consumer/messages/page.tsx
Producer Tools
- Producer Dashboard
app/producer/dashboard/page.tsx - Manage Listings
app/producer/products/page.tsx - Manage Orders
app/producer/orders/page.tsx - Producer Analytics
app/producer/analytics/page.tsx - Producer Profile
app/producer/profile/page.tsx - Producer Messages
app/producer/messages/page.tsx
Shared Services
- Supabase Client
src/lib/supabaseClient.ts - Supabase
- Messaging UI
components/MessagingInterface.tsx - Map View
components/Map.tsx - Order Map
components/OrderTrackingMap.tsx - Theme Provider
components/theme-provider.tsx - Theme Toggle
components/theme-toggle.tsx
Other components
- Visitor
Connections 24
- Visitor → Sign Up: registers
app/signup/page.tsx - Visitor → Sign In: signs in
app/signin/page.tsx - Sign Up → Supabase Client: creates account
app/signup/page.tsx - Sign In → Supabase Client: authenticates
app/signin/page.tsx - Sign In → Consumer Home: redirects consumer
app/signin/page.tsx - Sign In → Producer Dashboard: redirects producer
app/signin/page.tsx - Consumer Home → Browse Products: links to listings
app/consumer/page.tsx - Consumer Home → Consumer Orders: links to orders
app/consumer/page.tsx - Consumer Home → Consumer Profile: links to profile
app/consumer/page.tsx - Browse Products → Supabase Client: queries data
app/consumer/products/page.tsx - Product Details → Supabase Client: queries data
app/consumer/products/[id]/page.tsx - Consumer Orders → Supabase Client: queries orders
app/consumer/orders/page.tsx - Order Tracking → Supabase Client: queries data
app/consumer/orders/[id]/page.tsx - Consumer Profile → Supabase Client: reads profile
app/consumer/profile/page.tsx - Producer Dashboard → Supabase Client: queries data
app/producer/dashboard/page.tsx - Manage Listings → Supabase Client: manages listings
app/producer/products/page.tsx - Manage Orders → Supabase Client: queries orders
app/producer/orders/page.tsx - Producer Analytics → Supabase Client: queries data
app/producer/analytics/page.tsx - Producer Profile → Supabase Client: reads profile
app/producer/profile/page.tsx - Consumer Messages → Messaging UI: renders
app/consumer/messages/page.tsx - Producer Messages → Messaging UI: renders
app/producer/messages/page.tsx - Messaging UI → Supabase Client: loads conversations
components/MessagingInterface.tsx - Supabase Client → Supabase: connects
- Theme Provider → Theme Toggle: provides theme