ballerine icon indicating copy to clipboard operation
ballerine copied to clipboard

Welcome - Statistics tab

Open alonp99 opened this issue 10 months ago • 0 comments

  1. Implement Statistics view

1.1. Personal Statistics Section:

  • Implement the "Assigned to Cases" feature:
    • Create a new endpoint in the backend API: GET /case-management/metrics/user/cases.
    • Retrieve the number of cases assigned to the authenticated user.
    • Add support for from and to search query parameters to filter the results by date range.
    • Display the number of assigned cases in a card component.

Image

  • Implement the "Completed Cases" feature:
    • Extend the /case-management/metrics/user/cases endpoint to support a status search query parameter.
    • When status=completed is provided, return only the completed cases.
    • Display the number of completed cases in a card component.

Image

  • Implement the "Assigned Workflows per Workflow" feature:
    • Create a new endpoint in the backend API: GET /case-management/metrics/user/cases-per-workflow.
    • Retrieve the number of cases assigned to each workflow for the authenticated user.
    • Add support for from and to search query parameters to filter the results by date range.
    • Display the data in a pie chart using the recharts library.

Image

1.2. Overall Statistics Section:

  • Implement the "Active Cases by Tags" feature:
    • Create a new endpoint in the backend API: /case-management/metrics/cases-per-tag.
    • Retrieve the number of active cases grouped by tags (manual_review, collection_flow, data_enrichment).
    • Display the data in a pie chart using the Recharts library.

Image

  • Implement the "Assignees" feature:

    • Create a new endpoint in the backend API to retrieve the number of workflows assigned to each assignee.
    • Display the assignees' names, avatars, and the number of cases assigned to them in a card component.
  • Implement the "Cases in Tags and per Workflow" feature:

    • Use the data from the previous endpoints to display the number of cases in each tag and workflow.
    • Display the data in a combined pie chart using the recharts library.

Image

  • Implement the "Completed Cases by Month" feature:
    • Extend the backend API endpoint to support filtering completed cases by month.
    • Retrieve the number of completed cases for the last 6 months.
    • Display the data in a bar graph using the recharts library.

Image

alonp99 avatar Mar 31 '24 21:03 alonp99