How spectator-code/umakonekta works
UMAKONEKTA is a Philippine agricultural machinery exchange and agrarian operations suite. Its core workflow is farmers discovering cooperative equipment, submitting field or repair requests, and operators/providers managing dispatches; related pages support field-ticket verification, farmer records, grain settlement, and community notices. The API excerpts establish request, dashboard, provider, mechanic, dispatch-slip, authentication, and security behavior. Page-to-API wiring and implementations of several documented screens were not sampled, so those connections are shown only where supported by the route purpose or README.
Main entry points: prisma.js Application database · [...nextauth]/route.js Authentication API · dashboard/route.js Dashboard aggregates · page.js Administration
Components 28
Equipment exchange
- Agrarian home
src/app/page.js - Equipment marketplace
src/app/marketplace/page.js - Provider directory API
src/app/api/providers/route.js - Request management API
src/app/api/requests/route.js - Farmer dashboard
src/app/farmer-dashboard/page.js - Provider dashboard
src/app/provider-dashboard/page.js - Dashboard aggregates
src/app/api/dashboard/route.js
Field operations
- Mechanic dashboard
src/app/mechanic-dashboard/page.js - Repair work orders
src/app/api/mechanics/route.js - Dispatch slip
src/app/dispatch-slip/page.js - Ticket verification
src/app/api/dispatch-slip/route.js - Operations calendar API
src/app/api/operations/calendar/route.js
Agrarian records
- SACCO receipt
src/app/sacco-receipt/page.js - Barangay bulletin
src/app/bulletin-notice/page.js
Identity and security
- Administration
src/app/admin/page.js - Farmer administration API
src/app/api/admin/farmers/route.js - Authentication API
src/app/api/auth/[...nextauth]/route.js - Registration API
src/app/api/auth/register/route.js - Security operations APIs
src/app/api/x9f-ops - Security event logging
src/lib/siem.js
Offline platform
- Application database
src/lib/prisma.js - Offline service worker
public/sw.js
Other components
- Farmer
- Provider
- Mechanic
- Administrator
- SecOps
- IP geolocation service
Connections 39
- Farmer → Agrarian home: opens
- Farmer → Equipment marketplace: searches equipment
- Equipment marketplace → Provider directory API: loads providers
- Farmer → Request management API: submits request
- Provider → Request management API: updates request
- Farmer → Farmer dashboard: views ledger
- Provider → Provider dashboard: views workload
- Farmer dashboard → Dashboard aggregates: loads aggregates
- Provider dashboard → Dashboard aggregates: loads aggregates
- Administration → Dashboard aggregates: loads aggregates
- Mechanic → Mechanic dashboard: manages repairs
- Mechanic dashboard → Repair work orders: claims and closes
- Farmer → Dispatch slip: views field ticket
- Dispatch slip → Ticket verification: verifies ticket
- Provider → Operations calendar API: views fleet schedule
- Farmer → SACCO receipt: records grain settlement
- Farmer → Barangay bulletin: reads notices
- Administrator → Administration: manages platform
- Administration → Farmer administration API: manages farmers
- Farmer → Registration API: registers
- Farmer → Authentication API: authenticates
- Provider → Authentication API: authenticates
- Mechanic → Authentication API: authenticates
- Authentication API → Application database: reads users
- Registration API → Application database: creates user
- Request management API → Application database: reads and writes
- Provider directory API → Application database: reads directory
- Dashboard aggregates → Application database: aggregates records
- Repair work orders → Application database: updates work orders
- Ticket verification → Application database: reads ticket
- Operations calendar API → Application database: reads fleet schedule
- Farmer administration API → Application database: manages accounts
- SecOps → Security operations APIs: investigates threats
- Security operations APIs → Application database: reads and updates security data
- Authentication API → Security event logging: logs security events
- Farmer administration API → Security event logging: logs security events
- Security operations APIs → Security event logging: records firewall changes
- Registration API → IP geolocation service: checks IP location
- Farmer → Offline service worker: uses offline experience