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

Add Functionality for Export Volunteer Data #192

Closed
NwinNwin opened this issue May 2, 2024 · 0 comments · Fixed by #196
Closed

Add Functionality for Export Volunteer Data #192

NwinNwin opened this issue May 2, 2024 · 0 comments · Fixed by #196
Assignees

Comments

@NwinNwin
Copy link
Collaborator

NwinNwin commented May 2, 2024

image

Description:

  • Log into an Admin Account and go to http://localhost:3000/volunteers
  • Our Export All Volunteer Data does not work right now

Instruction:

Backend:

  • Create an endpoint /stats/export/volunteers/
  • This end point will return
    • All volunteers information (Name, email, etc)
    • The total trash they collected (name the column total_trash)
    • The list of events they attended (name it events_attended)

Frontend

  • To add export CSV functionality, use CSVLink component in react-csv
    • For code example, pleasure visit ImpactSummary.jsx to see how export button work in Admin Home Page
  • Call the endpoint you created in the last step export it as CSV
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 a pull request may close this issue.

3 participants