AI‑based farmer assistant for Ethiopian smallholders – corn disease detection (offline TFLite), market prices, weather forecasts, SMS alerts (AfroMessage), push notifications (Firebase), and admin dashboard (React). Built with Flutter, Node.js, Supabase.
# DaApp — AI-Based Farmer Assistant Admin Dashboard
A full-stack admin dashboard for managing the **DaApp** platform — an AI-powered farming assistant built for Ethiopian farmers in the Jimma Zone (Oromia Region).
**Live Admin Panel:**
daappfarmeradmin.netlify.app
**Backend API:**
daapp-admin.onrender.com
---
## Overview
DaApp helps Ethiopian farmers by providing:
- 🌽 **AI-powered corn/maize disease detection** via image upload
- 📈 **Real-time market prices** for crops across Oromia Region
- 🌤️ **Weather forecasts** for farming decisions
- 🤖 **AI chatbot** supporting English, Amharic, and Afan Oromo
- 📱 **Mobile app** for farmers (Flutter) + **Admin web panel** (React)
- 🔔 **Push notifications** via Firebase Cloud Messaging
---
## Role System
| Role | Access |
|------|--------|
| `super_admin` | Full access to all pages and features |
| `market_admin` | Market Prices page only (Dashboard + Settings also visible) |
| `expert` (farmer) | Mobile app — can delete any community post/comment |
| `farmer` | Mobile app — own posts/comments only |
> **Note:** `market_admin` is a restricted admin role. They can only manage market prices and view the dashboard. They cannot access Farmers, Disease Detection, Community, Reports, Notifications, Administrators, or System Logs pages.
---
## Features
### Dashboard
- Real-time stats: total farmers, market listings, disease detections, notifications sent
- Farmer registration growth chart (last 6 months)
- Disease detection trend chart
- Role Management card (Market Admins + Expert Farmers) — visible to `super_admin` only
- Regional weather widget
- Recent activity feed
### Farmer Management
- View, search, filter, and manage registered farmers
- Edit farmer details (name, phone, region, crop types, farm size)
- Toggle expert status (promotes farmer to expert role)
- Send individual or bulk push notifications
- Phone number validation and status management
### Market Prices
- Real-time crop price tra …