# CE4HOW Taka ni Mali - Geospatial Waste Management M&E Dashboard v2
A full-stack Monitoring & Evaluation (M&E) system for tracking waste collection across Kakamega Municipality. Built with React, TypeScript, Tailwind CSS, tRPC, and Drizzle ORM.
## 🎯 Overview
**Taka ni Mali** (Money in Waste) is a geospatial dashboard that extends the original static Leaflet waste map into a comprehensive M&E system. It enables:
- **Data Collectors** to securely submit waste collection records with geospatial coordinates
- **Public Users** to view aggregated analytics, trends, and interactive maps
- **Administrators** to manage data, users, and system configuration
## ✨ Key Features
### Public Dashboard (No Authentication Required)
- **Interactive Map**: Leaflet-based visualization of waste collection sites in Kakamega County
- **Dynamic Filtering**: Filter by waste type, date range, and collection site
- **Data Table**: View detailed collection records with sorting and pagination
- **Trend Analysis**: Chart.js line chart showing waste collection volumes over time
- **Summary Statistics**: Total records, volume aggregates, and waste type breakdown
### Collector Interface (Authenticated)
- **Data Submission Form**: Submit waste collection records with:
- Collection date and site name
- Waste type (Organic, Inorganic, Mixed)
- Total volume and separation status
- Separated volumes (organic/inorganic) when applicable
- Number of collections
- Geospatial coordinates (latitude/longitude)
- **Form Validation**: Client and server-side validation with volume constraints
- **My Records**: View all submitted records with filtering and export options
### Authentication & Security
- **Manus OAuth Integration**: Secure user authentication with 24-hour JWT tokens
- **Role-Based Access Control (RBAC)**:
- `admin`: Full system access
- `collector`: Data submission and record management
- `user`: Public dashboard access only
- **Encrypted Passwords**: bcrypt hashing for all credentials
- **C …