How centre-for-open-societal-systems/oan_dashboards works
ATI Farmer Profile Dashboard is a Next.js application for exploring farmer registries and related crop, livestock, catalog, credit-access, and infrastructure data. Users enter through a dashboard selector, choose a dashboard, apply filters, and inspect tables, charts, or maps; registry views also support export. The backend serves dashboard and chart requests through an API route into Elysia handlers, data services, and PostgreSQL queries. The README documents additional dashboard data domains, but their storage and detailed runtime wiring are not fully shown in the excerpts.
Main entry points: dashboard-client.tsx Dashboard selector · use-data.ts Dashboard data hooks · farmer-overview-dashboard.tsx Registry views · crop-sown-dashboard.tsx Crop registry
Components 25
Dashboard experience
- Dashboard entry
app/page.tsx - Dashboard selector
components/dashboard-client.tsx - Global filters
components/global-filters-sidebar.tsx
Dashboard domains
- Registry views
components/farmer-overview-dashboard.tsx - Crop registry
components/crop-sown-dashboard.tsx - Livestock registry
components/livestock-dashboard.tsx - Catalogs
components/catalogs-dashboard.tsx - Access to Credit
components/a2c-dashboard.tsx - DevOps monitoring
components/devops-dashboard.tsx
Maps and exports
- Indicator charts
components/indicator-charts.tsx - Visible map loader
components/lazy/map-when-visible.tsx - Map loader
components/lazy/map-loader.tsx - Ethiopia map
components/ethiopia-map.tsx - Registry export
components/registry/export-button.tsx - Registry shaping
components/registry/registry-data.ts
API and data
- Dashboard data hooks
hooks/use-data.ts - API route adapter
app/api/[[...slugs]]/route.ts - Elysia API handlers
server/elysia-app.ts - Dashboard data service
lib/data-service.ts - Chart data service
lib/chart-data-service.ts - Chart queries
lib/chart-queries.ts - Map level endpoint
app/api/maps/[level]/route.ts
Data storage
- Database access
lib/database.ts - PostgreSQL
Other components
- Dashboard user
Connections 34
- Dashboard user → Dashboard entry: opens
README.md - Dashboard entry → Dashboard selector: renders
app/page.tsx - Dashboard selector → Registry views: selects
components/dashboard-client.tsx - Dashboard selector → Crop registry: selects
components/dashboard-client.tsx - Dashboard selector → Livestock registry: selects
components/dashboard-client.tsx - Dashboard selector → Catalogs: selects
components/dashboard-client.tsx - Dashboard selector → Access to Credit: selects
components/dashboard-client.tsx - Dashboard selector → DevOps monitoring: selects
components/dashboard-client.tsx - Dashboard selector → Global filters: renders
components/dashboard-client.tsx - Registry views → Dashboard data hooks: loads data
components/farmer-overview-dashboard.tsx - Crop registry → Dashboard data hooks: loads data
components/crop-sown-dashboard.tsx - Livestock registry → Dashboard data hooks: loads data
- Catalogs → Dashboard data hooks: loads data
components/catalogs-dashboard.tsx - Access to Credit → Dashboard data hooks: loads data
components/a2c-dashboard.tsx - DevOps monitoring → Dashboard data hooks: loads data
components/devops-dashboard.tsx - Dashboard data hooks → API route adapter: fetches API
hooks/use-data.ts - API route adapter → Elysia API handlers: forwards requests
app/api/[[...slugs]]/route.ts - Elysia API handlers → Dashboard data service: calls
server/elysia-app.ts - Elysia API handlers → Chart data service: validates charts
server/elysia-app.ts - Elysia API handlers → Chart queries: executes queries
server/elysia-app.ts - Elysia API handlers → Database access: queries locations
server/elysia-app.ts - Dashboard data service → Database access: fetches records
lib/data-service.ts - Database access → PostgreSQL: reads and writes
README.md - Chart data service → Chart queries: runs queries
lib/chart-data-service.ts - Registry views → Visible map loader: renders map
components/farmer-overview-dashboard.tsx - Crop registry → Visible map loader: renders map
components/crop-sown-dashboard.tsx - Access to Credit → Visible map loader: renders map
components/a2c-dashboard.tsx - Visible map loader → Map loader: loads when visible
components/lazy/map-when-visible.tsx - Map loader → Ethiopia map: loads map
components/lazy/map-loader.tsx - Registry views → Registry export: offers export
components/farmer-overview-dashboard.tsx - Crop registry → Registry export: offers export
components/crop-sown-dashboard.tsx - Livestock registry → Registry export: offers export
- Registry views → Registry shaping: shapes trends
components/farmer-overview-dashboard.tsx - Crop registry → Registry shaping: shapes trends
components/crop-sown-dashboard.tsx