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

return total user count #135

Merged
merged 4 commits into from
Sep 25, 2023
Merged

return total user count #135

merged 4 commits into from
Sep 25, 2023

Conversation

ericsheng495
Copy link
Collaborator

What is this?

  • Update backend/src/pages/api/admin/user.ts so that the returned data is in the format of
{
   users: Users[],
   total: number
}

where total is the count of the total number of users

  • Make sure that the total is calculated using the filters applied to the request

Setup

  • added frontend testing code in AdminUserListScreen, should delete before merging

Steps to Test

  1. Generate Admin User Token
  2. Navigate to Admin Dashboard & check each user list to see total # of users for each filter

Associated Issues

closes #129

Additional Instructions

@netlify
Copy link

netlify bot commented Sep 21, 2023

Deploy Preview for healing4heroes-mobile ready!

Name Link
🔨 Latest commit 751c72e
🔍 Latest deploy log https://app.netlify.com/sites/healing4heroes-mobile/deploys/650c500f51bbe80008960054
😎 Deploy Preview https://deploy-preview-135--healing4heroes-mobile.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Sep 21, 2023

Deploy Preview for healing4heroes-backend ready!

Name Link
🔨 Latest commit 751c72e
🔍 Latest deploy log https://app.netlify.com/sites/healing4heroes-backend/deploys/650c500fa0ff880008d3318e
😎 Deploy Preview https://deploy-preview-135--healing4heroes-backend.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ericsheng495 ericsheng495 deleted the eric/129-total-user-count branch September 21, 2023 14:29
@ericsheng495 ericsheng495 restored the eric/129-total-user-count branch September 21, 2023 14:41
@ericsheng495 ericsheng495 reopened this Sep 21, 2023
Copy link
Member

@dpang314 dpang314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

@dpang314 dpang314 merged commit a037946 into main Sep 25, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Backend] API to get the total number of users
2 participants