How suresh-jangid/new_saf_foundation_frontend works
This is a Next.js administrative platform for managing community-benefit programs, applicants, agents, payments, and generated documents. The principal workflow is staff entering and managing program applications, recording or collecting payments, then producing PDFs such as applications, receipts, and bonds. The tree also shows agent permissions and commissions, e-pin management, bulk EMI, and WhatsApp integrations. Sampled PDF routes confirm template-based document generation; the README is only a Next.js starter, and unsampled UI-to-API wiring is not asserted.
Main entry points: page.tsx Program Dashboard · dashboard Program Applications · bulk-emi-engine.tsx Bulk EMI · razorpay-payment.tsx Online Payment
Components 20
Program Operations
- Program Dashboard
app/dashboard/page.tsx - Program Applications
app/dashboard - Agent Management
app/dashboard/agent-registration/page.tsx - Worker Search
components/worker-search-selector.tsx
Payments and Finance
- Bulk EMI
components/bulk-emi/bulk-emi-engine.tsx - Payment Management
app/dashboard/payment-management/page.tsx - Payment Controls
components/payment/reusable-payment-components.tsx - Online Payment
components/razorpay-payment.tsx - Create Payment Order
app/api/razorpay/create-order/route.ts - Verify Payment
app/api/razorpay/verify-payment/route.ts
Forms and Documents
- Document Generators
app/api - Fill PDF Form
app/api/fill-pdf-form/route.ts - PDF Image Handling
app/utils/pdfImage.ts
Administration and Integrations
- Program Configuration
app/dashboard/settings/configuration/page.tsx - Permissions
lib/permissions.ts - E-pin Management
lib/epin-service.ts - WhatsApp Integration
lib/whatsapp-service.ts - Fireconnect API
app/api/fireconnect/route.ts
Other components
- Staff
- Razorpay
Connections 17
- Staff → Program Dashboard: uses
- Program Dashboard → Program Applications: opens
- Staff → Agent Management: manages
- Program Applications → Worker Search: selects worker
- Staff → Payment Management: records payments
- Staff → Bulk EMI: manages installments
- Bulk EMI → Online Payment: offers online payment
- Online Payment → Create Payment Order: requests order
- Create Payment Order → Razorpay: creates order
- Razorpay → Verify Payment: returns payment
- Staff → Document Generators: requests documents
- Document Generators → Fill PDF Form: fills templates
- PDF Image Handling → Fill PDF Form: embeds images
- Staff → Program Configuration: configures programs
- Staff → E-pin Management: manages e-pins
- Staff → WhatsApp Integration: uses messaging
- Fireconnect API → WhatsApp Integration: integrates messaging