ballerine
ballerine copied to clipboard
Welcome - Statistics tab
- 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
andto
search query parameters to filter the results by date range. - Display the number of assigned cases in a card component.
- Create a new endpoint in the backend API:
- Implement the "Completed Cases" feature:
- Extend the
/case-management/metrics/user/cases
endpoint to support astatus
search query parameter. - When
status=completed
is provided, return only the completed cases. - Display the number of completed cases in a card component.
- Extend the
- 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
andto
search query parameters to filter the results by date range. - Display the data in a pie chart using the
recharts
library.
- Create a new endpoint in the backend API:
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.
- Create a new endpoint in the backend API:
-
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.
- 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.