Skip to content

feat: add ROI and performance analytics dashboards - #919

Merged
johdanike merged 4 commits into
SwiftChainn:mainfrom
El-Chapo-Npm:main
Sep 30, 2026
Merged

johdanike merged 4 commits into
SwiftChainn:mainfrom
El-Chapo-Npm:main

Conversation

@El-Chapo-Npm

Copy link
Copy Markdown

Summary

Implement ROI and performance analytics data hooks plus dashboard/widget layout coverage.

Changes

  • Add useRoiMetrics with typed return trends, cost breakdown, driver profitability, loading/error state, filters, caching, and refetch support.
  • Add usePerformanceMetrics with typed delivery-time, completion-rate, regional-volume, and driver-ranking metrics.
  • Add accessible RoiDashboard KPI, trend, cost, and driver-profitability widgets.
  • Add accessible PerformanceMetricsDashboard KPI, delivery-time, completion-rate, regional-volume, and driver-ranking widgets.
  • Add hook and component tests covering API requests, response unwrapping, loading states, error states, retry behavior, and dashboard layout.

Validation

  • Targeted Jest suites: 2 passed, 6 tests passed.
  • ESLint passed for all changed hooks, components, and tests.
  • git diff --check passed.
  • Repository-wide TypeScript checking is currently blocked by five unrelated pre-existing syntax errors in app/page.tsx and components/escrow/__tests__/CheckoutFlow.keyboard.test.tsx; no diagnostics were reported for the changed files before those errors terminated the check.

Closes #861
Closes #865
Closes #867
Closes #863

@drips-wave

drips-wave Bot commented Sep 30, 2026

Copy link
Copy Markdown

@El-Chapo-Npm 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

@johdanike
johdanike merged commit 5e08312 into SwiftChainn:main Sep 30, 2026
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