How sapikkk/muhammadsyafiq213510100 works
Kokonus Farm is a role-based hydroponic farm operations and production-cost management web application. Farmers record production-cycle progress and harvests; admins manage operations and approve harvest reports; owners review financial and hydroponic KPIs, journals, and reports. The tree shows distinct production, sales, inventory, infrastructure, and accounting capabilities. The source excerpts confirm selected authentication, API, journal, harvest-approval, and dashboard relationships; links for unsampled areas are marked unverified rather than inferred as call chains.
Main entry points: route.ts HTTP API routes · owner/page.tsx Role dashboards · app/page.tsx Home and login · [id]/page.tsx Production cycles
Components 22
Access and interface
- Home and login
app/page.tsx - Role dashboards
app/owner/page.tsx - Shared UI components
components/ui/button.tsx
Farm production
- Production cycles
app/petani/siklus/[id]/page.tsx - Growth and failure logs
lib/monitor-produksi.ts - Harvest reports
lib/laporan-panen.ts - Harvest review
app/admin/harvest/[id]/client-approval.tsx - Variety management
lib/varietas.ts
Operations and sales
- Inventory management
lib/inventaris.ts - Farm infrastructure
lib/infrastruktur.ts - Sales orders
lib/sales-order.ts - Customer records
lib/pelanggan.ts
Accounting and insight
- Journal workflow
lib/jurnal.ts - Production costs
app/actions/biaya.ts - Financial reports
lib/cash-flow.ts - Owner insights
lib/monthly-summary.ts
Application services
- HTTP API routes
app/api/transactions/route.ts - API role checks
lib/api-auth.ts - Session authentication
lib/auth.ts - API response handling
lib/api-response.ts - Application database
lib/prisma.ts
Other components
- Farm users
Connections 26
- Farm users → Home and login: opens
app/page.tsx - Home and login → Role dashboards: routes by role
app/page.tsx - Home and login → Session authentication: loads session
app/page.tsx - Farm users → Production cycles: records progress
- Production cycles → Growth and failure logs: records activity
- Production cycles → Harvest reports: submits harvest
app/petani/siklus/[id]/page.tsx - Harvest review → Harvest reports: reviews report
- Harvest review → HTTP API routes: posts approval
- Farm users → Variety management: manages varieties
- Farm users → Inventory management: tracks stock
- Farm users → Farm infrastructure: manages facilities
- Farm users → Sales orders: manages orders
- Sales orders → Customer records: uses customer records
- HTTP API routes → API role checks: checks roles
app/api/transactions/route.ts - HTTP API routes → API response handling: wraps responses
app/api/transactions/route.ts - HTTP API routes → Journal workflow: invokes journal actions
app/api/transactions/route.ts - HTTP API routes → Variety management: invokes variety operations
- API role checks → Session authentication: loads session
lib/api-auth.ts - Session authentication → Application database: reads user
lib/auth.ts - Journal workflow → Application database: uses persistence
lib/jurnal.ts - Role dashboards → Inventory management: loads stock alerts
app/owner/page.tsx - Role dashboards → Owner insights: loads summary
app/owner/page.tsx - Role dashboards → Application database: queries staff
app/owner/page.tsx - Farm users → Shared UI components: uses application
- Journal workflow → Financial reports: feeds reporting
- Production costs → Financial reports: feeds reporting