GWS Platform V2 — Land Surveying & Property Management Platform for Uganda/East Africa
# GWS Platform V2
Land surveying and property management platform built for Uganda and East Africa.
## Tech Stack
| Layer | Technology |
|-------|-----------|
| Framework | Next.js 16 (App Router) |
| Language | TypeScript 5 |
| Database | PostgreSQL (Prisma v7 ORM) |
| UI | shadcn/ui + Tailwind CSS 4 |
| Charts | Recharts |
| Maps | Leaflet + React Leaflet |
| Icons | Lucide React |
| Auth | NextAuth.js (ready to wire) |
| State | Zustand (available) |
## Features
### Core Modules
- **Dashboard** — KPI metrics, revenue charts, project pipeline, activity feed
- **Clients** — Full CRM with inline editing, financial summary, location map
- **Survey Projects** — Project lifecycle tracking with approval workflows
- **Finance** — Invoicing, quotations, payment tracking, UGX currency support
- **Approvals** — Multi-step approval chains with approve/defer/reject actions
- **Workflows** — Dynamic workflow builder with configurable steps and triggers
### Operations
- **Spatial OS** — Interactive map with layers and annotations
- **Field Sync** — Mobile data collection sync with conflict tracking
- **Document Vault** — Secure document storage with verification
- **Communications** — SMS, email, and WhatsApp messaging with delivery tracking
### Intelligence
- **AI & Insights** — Model management, prompt templates, call logging
- **Audit Trail** — Domain event tracking with full payload history
- **Reports** — Multi-dimensional reporting engine
### System
- **Organizations** — Multi-tenant with branch management
- **Roles & Permissions** — Dynamic role-based access control
- **Settings** — Profile, organization, database, appearance, notifications, regional
- **Database Configuration** — Connect to any PostgreSQL database from the UI
## Project Structure
```
├── prisma/
│ └── schema.prisma # 20-model database schema
├── src/
│ ├── app/
│ │ ├── page.tsx # Main application shell
│ │ ├── layout.tsx # Root layout
│ │ └── api/ …