How jadabkkd/gof-saleforce works
This is a Next.js business operations application spanning sales, production, inventory, quality, customer operations, and management reporting. A representative workflow is production-request data feeding production-order and lot management, with production status updates reflected in monitoring. The tree shows separate interfaces and server actions/API routes for these domains, while sampled code confirms MongoDB-backed operations. The README is a generic Next.js starter and documents no product capabilities; several UI-to-server connections are therefore left unasserted where source excerpts do not show them.
Main entry points: mongodb.ts MongoDB · doFiltProcRequest.ts Request actions · useSearchProdReq.ts Request lot search · doUpdateMonitData.ts Production orders
Components 24
Sales workflow
- Sales workspace
src/app/(saleforce)/saleforce/page.tsx - Quotations
src/app/(saleforce)/saleforce/manage-qt/page.tsx - Production requests
src/app/(saleforce)/saleforce/production-request/page.tsx
Production operations
- Request state
src/states/procRequest/useProcRequestData.ts - Request actions
src/app/_actions/ProductionRequest/doFiltProcRequest.ts - Production orders
src/app/_actions/ProductionOrder/doUpdateMonitData.ts - Order state
src/states/prodOrder/useProdOrderData.ts - Serial lots
src/modules/SerialLot/SerialLotManager.ts - Lot persistence
src/app/_actions/SerialLot/CreateLot/doSaveSerialLot.ts - Process workspace
src/app/(process_part)/process/page.tsx - Process flows
src/app/api/process/filt-process/route.ts - Request lot search
src/states/SerialLot/useSearchProdReq.ts
Quality and specifications
- COA workspace
src/app/(process_part)/process/coa/page.tsx - COA services
src/app/api/coa/save-coa-form/route.ts - Specifications
src/app/(dcc)/specify/page.tsx
Inventory and monitoring
- Ingredient management
src/app/(ingre)/all-ingre/page.tsx - Stock activity
src/app/(storev2)/stock-activity/page.tsx - Production monitoring
src/app/(prod_monitor)/prod-monitor/page.tsx - Monitor updates
src/app/_actions/ProductionOrder/doUpdateMonitData.ts
Management and support
- Customer operations
src/app/(operator)/operator/page.tsx - Financial analysis
src/app/api/president/finance-data/route.ts - Employee voting
src/app/(voting)/voting/page.tsx - MongoDB
src/libs/mongodb.ts
Other components
- Operator user
Connections 21
- Operator user → Sales workspace: uses
- Operator user → Process workspace: uses
- Operator user → COA workspace: uses
- Operator user → Specifications: uses
- Operator user → Ingredient management: uses
- Operator user → Stock activity: uses
- Operator user → Production monitoring: uses
- Operator user → Customer operations: uses
- Operator user → Financial analysis: views
- Operator user → Employee voting: uses
- Request state → Request actions: references
src/app/_actions/ProductionRequest/doFiltProcRequest.ts - Request lot search → Request actions: filters requests
src/states/SerialLot/useSearchProdReq.ts - Request lot search → Production orders: fetches request data
src/states/SerialLot/useSearchProdReq.ts - Serial lots → Lot persistence: saves lot
src/modules/SerialLot/SerialLotManager.ts - Lot persistence → MongoDB: reads and writes
src/app/_actions/SerialLot/CreateLot/doSaveSerialLot.ts - Request actions → MongoDB: queries
src/app/_actions/ProductionRequest/doFiltProcRequest.ts - Production orders → MongoDB: updates
src/app/_actions/ProductionOrder/doUpdateMonitData.ts - Production monitoring → Monitor updates: receives updates
- Process flows → MongoDB: queries flows
src/app/api/process/filt-process/route.ts - COA services → MongoDB: persists results
- Financial analysis → MongoDB: queries