How andrianllmm/hack-iloilo works
SACKTO is a web application for post-harvest planning and services at the Iloilo Rice Processing Complex. Its user-facing workflows include public booking, rice buying and selling, and staff operations for clients, capacity, gate batches, prices, and messaging. The graph preserves these distinct domain areas and the forecast capability visible in the tree. Several connections rely on the SOURCE INDEX rather than full excerpts; uncertain links are omitted, and the forecast implementation is represented only at the supported directory level.
Main entry points: pricing Prices and costs · buy/page.tsx Public rice buying · sell/page.tsx Public selling · (app) Staff workspace
Components 25
User entry points
- Public home
src/app/page.tsx - Public booking
src/app/book/page.tsx - Public rice buying
src/app/buy/page.tsx - Public selling
src/app/sell/page.tsx - Staff workspace
src/app/(app)
Facility operations
- Client accounts
src/modules/accounts - Capacity planning
src/modules/capacity - Gate and batches
src/modules/gate - Facility setup
src/modules/setup - Forecasting
src/modules/forecast
Commercial services
- Rice orders
src/modules/orders - Palay offers
src/modules/buying - Prices and costs
src/modules/pricing - Prescriptions
src/modules/prescriptions
Shared platform
- Supabase database
Messaging and forecasting
- SMS processing
src/modules/sms - SMS process endpoint
src/app/api/sms/process/route.ts - Inbound webhook
services/sms-webhook/api/inbound.ts - Webhook relay
services/sms-webhook/lib/relay.ts - Webhook verification
services/sms-webhook/lib/verify.ts - Forecast training
data/forecast/src/forecast/train.py - Forecast model and parsing
data/forecast/src/forecast
Other components
- Public visitor
- Facility staff
- SMS sender
Connections 31
- Public visitor → Public home: opens services
- Public visitor → Public booking: requests booking
- Public visitor → Public rice buying: requests rice
- Public visitor → Public selling: offers palay
- Facility staff → Staff workspace: uses operations
- Public home → Prices and costs: reads prices
src/app/page.tsx - Public rice buying → Gate and batches: tracks batch
src/app/buy/page.tsx - Public rice buying → Rice orders: checks stock
src/app/buy/page.tsx - Public rice buying → Prices and costs: reads prices
src/app/buy/page.tsx - Public rice buying → Rice orders: renders order form
src/app/buy/page.tsx - Public selling → Palay offers: renders offer form
src/app/sell/page.tsx - Public selling → Prices and costs: reads prices
src/app/sell/page.tsx - Public booking → Supabase database: submits booking
- Staff workspace → Client accounts: uses client tools
src/app/(app)/prices/page.tsx - Staff workspace → Prices and costs: loads price tools
src/app/(app)/prices/page.tsx - Client accounts → Supabase database: reads and writes
- Prices and costs → Supabase database: reads price records
src/modules/pricing/queries.ts - Prices and costs → Facility setup: reads facility
src/modules/pricing/queries.ts - Prices and costs → Palay offers: reads purchase cost
src/modules/pricing/queries.ts - Rice orders → Supabase database: reads order stock
- Capacity planning → Supabase database: reads facility load
- Gate and batches → Supabase database: manages batches
- Facility setup → Supabase database: manages facility
- Prescriptions → Supabase database: manages prescriptions
- SMS sender → Inbound webhook: sends message
- Inbound webhook → Webhook relay: relays request
services/sms-webhook/api/inbound.ts - Webhook relay → Webhook verification: verifies request
services/sms-webhook/lib/relay.ts - SMS process endpoint → SMS processing: loads message data
src/app/api/sms/process/route.ts - SMS processing → Supabase database: reads message records
- Forecast training → Forecast model and parsing: uses model and parser
data/forecast/src/forecast/train.py - Forecasting → Supabase database: uses forecast data