Skip to content

Integrate Total Applications, Pending Review, Rejected, Approved - numbers with backend #200

@SamNie2027

Description

@SamNie2027

Motivation
Now that we have backend routes, we can use real numbers for this visual
Image

Acceptance Criteria

Backend

  • Create an endpoint to get the number of total applications - make it efficient by using count instead of returning entire objects.
  • Create an endpoint to get the number of total applications under the status "In Review"
  • Create an endpoint to get the number of total applications under the status "Rejected"
  • Create an endpoint to get the number of total applications under the status "Accepted" or "Active"

Frontend

  • Create four hooks in apiClient.ts that call your respective endpoints you created
  • Where the four tiles in the image are situated in the frontend, instead of using the hardcoded numbers replace it with the numbers returned from the hooks.

Remember to test end 2 end and add unit tests as usual.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Changes Requested

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions