Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welcome - Statistics tab #2268

Closed
alonp99 opened this issue Mar 31, 2024 · 0 comments
Closed

Welcome - Statistics tab #2268

alonp99 opened this issue Mar 31, 2024 · 0 comments

Comments

@alonp99
Copy link
Collaborator

alonp99 commented Mar 31, 2024

  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

@Omri-Levy Omri-Levy changed the title Welcome - Analytics tab Welcome - Statistics tab Apr 1, 2024
@alonp99 alonp99 closed this as completed Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant