Add average fee to client care dashboard

Objective

  • Surface average fee as a first-class metric on the Client Care dashboard (Attik Admin) so users do not derive it manually from revenue and job counts.

Background

  • Dashboard review: revenue and confirmed jobs exist, but average fee is still missing despite being a core KPI.
  • The codebase already models averageFee in shared dashboard types (attik-frontend/src/components/dashboard/dashboardTypes.ts) and displays it in components like InspectionVolumeFee.tsx; the gap is exposing it in the client-care dashboard grid (KPIStatsGrid / related view wiring).

Scope

Frontend

  • attik-frontend/src/app/admin/client-care-dashboard/ including CCDashboardClient.tsx and _components/KPIStatsGrid.tsx, plus any data-fetch layer that populates KpiMetrics in _types.
  • Reuse patterns from src/components/dashboard/InspectionVolumeFee/InspectionVolumeFee.tsx where averageFee is already formatted.

Backend

  • Ensure aggregations feeding the client-care dashboard API include average fee consistently with other metrics (Decision needed on exact endpoint—trace from admin client-care server actions or routes).

References

  • attik-frontend/src/app/admin/client-care-dashboard/_components/KPIStatsGrid.tsx
  • attik-frontend/src/components/dashboard/InspectionVolumeFee/InspectionVolumeFee.tsx
  • attik-frontend/src/components/dashboard/dashboardTypes.ts

Original description

Average fee should be available as a first-class dashboard metric instead of requiring users to derive it manually.

Transcript Context

During dashboard review, the team called out that average fee is missing even though it is considered one of the more important metrics. They noted that revenue and confirmed jobs are visible, but calculating average fee manually is not enough for everyday use. The request was to surface average fee directly in the dashboard, potentially in a prominent position near other core scheduler metrics.

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
🏠

Main App

Date

26 days ago

Author

Linear

Subscribe to post

Get notified by email when there are changes.