Skip to content

feat: add payroll analytics API endpoint and interactive chart UI (#7…#843

Merged
Wilfred007 merged 1 commit into
Gildado:mainfrom
leojay-net:feat/issues-751-645-analytics
May 29, 2026
Merged

feat: add payroll analytics API endpoint and interactive chart UI (#7…#843
Wilfred007 merged 1 commit into
Gildado:mainfrom
leojay-net:feat/issues-751-645-analytics

Conversation

@leojay-net
Copy link
Copy Markdown
Contributor

  • backend: add analyticsController with payroll trends, currency breakdown, payment metrics, department breakdown, and summary queries via PostgreSQL
  • backend: add analyticsRoutes with Swagger JSDoc and register under /api/v1/analytics
  • frontend: wire PayrollAnalytics to real API with graceful mock fallback
  • frontend: add chart type toggle (line/area), quick date presets (3M/6M/YTD/1Y), department breakdown horizontal bar chart, CSV export, and refresh button
  • frontend: add PayrollAnalytics unit tests covering rendering, presets, chart toggle, and API fallback behaviour

Closes #751
Closes #645
Closes #768
Closes #716

Pull Request

Summary

What Changed

Checklist

  • I linked the relevant issue(s) in the summary.
  • I added or updated tests for the change.
  • I ran the relevant test suite locally.
  • I updated documentation where needed, or explained why it was not needed.
  • If this change touches the UI, I verified responsive behavior and accessibility.
  • I included screenshots, logs, or other proof when they help review.

Testing

Documentation

Accessibility / Responsiveness

Notes

…ldado#751, Gildado#645)

- backend: add analyticsController with payroll trends, currency breakdown,
  payment metrics, department breakdown, and summary queries via PostgreSQL
- backend: add analyticsRoutes with Swagger JSDoc and register under /api/v1/analytics
- frontend: wire PayrollAnalytics to real API with graceful mock fallback
- frontend: add chart type toggle (line/area), quick date presets (3M/6M/YTD/1Y),
  department breakdown horizontal bar chart, CSV export, and refresh button
- frontend: add PayrollAnalytics unit tests covering rendering, presets,
  chart toggle, and API fallback behaviour

Closes Gildado#751
Closes Gildado#645

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@leojay-net Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Wilfred007 Wilfred007 merged commit c63f6d7 into Gildado:main May 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants