A comprehensive React.js frontend application for managing agricultural farmers with role-based access control, KYC processing, and real-time dashboard features.
- Full visibility into data and assignment (no delete access)
- View All Farmer & Employee Profiles with separate tables/tabs
- Advanced Filters: State, District, Region, KYC Status, Assignment Status
- Add Farmer / Add Employee with embedded forms
- Assign Farmers to Employees with multi-select functionality
- Track KYC Progress by Employee with detailed breakdowns
- Admin To-Do List Panel showing unassigned farmers and overdue cases
- Filter by Employee with dropdown selection
- Inherits all Admin features plus additional capabilities
- Delete Access for farmer profiles, employee profiles, and user accounts
- Confirm delete modal with optional reason logging
- Audit Trail View showing deleted records with filters
- Role-based access control using ROLE_SUPERADMIN
- Focused on KYC review and task tracking
- View Assigned Farmers with color-coded status indicators
- KYC Actions: Approve, Refer Back, Reject with reasons
- To-Do Panel for new assignments and pending reviews
- Stats Summary with progress visualization
- Real-time sync with admin/superadmin dashboards
- Node.js (v14 or higher)
- npm or yarn
-
Clone the repository
git clone <repository-url> cd agristack-farmer-management
-
Install dependencies
npm install
-
Start the development server
npm start
-
Open your browser Navigate to
http://localhost:3000
- Admin:
admin@agri.com
/password123
- Super Admin:
superadmin@agri.com
/password123
- Employee:
employee@agri.com
/password123
src/
├── components/ # Reusable UI components
│ ├── StatsCard.jsx
│ ├── DataTable.jsx
│ ├── FarmerForm.jsx
│ ├── EmployeeForm.jsx
│ ├── AssignmentModal.jsx
│ ├── KYCModal.jsx
│ ├── DeleteModal.jsx
│ └── ProtectedRoute.jsx
├── contexts/ # React Context providers
│ └── AuthContext.js
├── pages/ # Main application pages
│ ├── Login.jsx
│ ├── AdminDashboard.jsx
│ ├── SuperAdminDashboard.jsx
│ └── EmployeeDashboard.jsx
├── styles/ # CSS stylesheets
│ ├── Login.css
│ ├── Dashboard.css
│ └── Forms.css
├── App.js # Main application component
├── App.css # Global styles
└── index.js # Application entry point
- ADMIN: Full visibility, no delete access
- SUPER_ADMIN: All admin features + delete capabilities
- EMPLOYEE: KYC-focused dashboard with assignment management
- Real-time Statistics with animated cards
- Interactive Data Tables with sorting and filtering
- Modal Forms for adding/editing data
- Progress Tracking with visual indicators
- Responsive Design for all screen sizes
- Status Tracking: Approved, Pending, Refer Back, Rejected
- Assignment System: Farmers assigned to employees
- Progress Monitoring: Real-time updates across dashboards
- Reason Logging: Detailed notes for status changes
- Farmer Profiles: Complete agricultural information
- Employee Management: Role-based access and performance tracking
- Assignment Tracking: Employee-farmer relationships
- Audit Trail: Complete history of changes and deletions
- React 18 - Modern React with hooks
- React Router 6 - Client-side routing
- CSS3 - Modern styling with gradients and animations
- JavaScript ES6+ - Modern JavaScript features
- Local Storage - Client-side data persistence
The application is fully responsive and works on:
- Desktop computers
- Tablets
- Mobile phones
- All modern browsers
- Create new components in
src/components/
- Add corresponding styles in
src/styles/
- Update routing in
App.js
- Add role-based access control in
ProtectedRoute.jsx
- All styles use modern CSS with gradients and animations
- Color scheme can be customized in CSS variables
- Responsive breakpoints are defined for mobile-first design
- Replace mock data with actual API calls
- Update authentication logic in
AuthContext.js
- Modify form validation schemas as needed
npm run build
The build folder can be deployed to:
- Netlify
- Vercel
- AWS S3
- GitHub Pages
- Any static hosting service
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Create an issue in the repository
- Contact the development team
- Check the documentation
- v1.0.0 - Initial release with complete dashboard functionality
- Role-based access control
- KYC management system
- Real-time statistics
- Responsive design
Built with ❤️ for Agricultural Excellence