Skip to content

feat(dashboard)#58

Closed
KvsNikhil wants to merge 2 commits into
masterfrom
kotapativenkatsainikhil/feature/dashboard-api
Closed

feat(dashboard)#58
KvsNikhil wants to merge 2 commits into
masterfrom
kotapativenkatsainikhil/feature/dashboard-api

Conversation

@KvsNikhil
Copy link
Copy Markdown
Collaborator

PR Summary — Dashboard API
Overview
Implemented the complete Dashboard API module with:

  • Role-based access control
  • Real-time data aggregation from the database
  • Swagger documentation for all endpoints
  • Unit and integration tests
  • Lint fixes and controller/service improvements

Features Added

End points:

  1. /dashboard/totals
  2. /dashboard/tree-counts
  3. /dashboard/scan-stats

Role-Based Access Control

  • Admin: Full access to all dashboard data
  • Other roles: See only their own/project-specific data

Data Aggregation

  • Totals: Users, projects, trees, partners
  • Tree counts: By species, role-aware
  • Scan stats: By status, daily, role-aware

Swagger Documentation

  • Complete request/response schemas
  • Authorization requirements
  • Example responses for each endpoint
WhatsApp Image 2026-05-17 at 2 22 22 AM WhatsApp Image 2026-05-17 at 2 22 47 AM WhatsApp Image 2026-05-17 at 2 22 34 AM

Testing

  • Unit and integration tests for all endpoints and role logic
  • All tests passing
WhatsApp Image 2026-05-17 at 1 56 07 AM

@KvsNikhil KvsNikhil closed this May 16, 2026
@KvsNikhil KvsNikhil deleted the kotapativenkatsainikhil/feature/dashboard-api branch May 16, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants