Description
Add GET /api/commitments/overview?ownerAddress=... returning aggregates (counts, totals, average compliance, fees, violations) for dashboard KPI cards.
Requirements and context
- Must be secure, tested, and documented
- Must require auth for ownerAddress
Suggested execution
- Implement aggregator (reuse analytics code where possible)
- Add docs and tests
Test and commit
- Add tests for empty and non-empty datasets
Example commit message
feat: add commitments overview aggregates endpoint for dashboard
Guidelines
- Minimum 95 percent test coverage
- Timeframe: 72 hours
Description
Add
GET /api/commitments/overview?ownerAddress=...returning aggregates (counts, totals, average compliance, fees, violations) for dashboard KPI cards.Requirements and context
Suggested execution
Test and commit
Example commit message
feat: add commitments overview aggregates endpoint for dashboard
Guidelines