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

[Download Data] Button that downloads filtered projects into a CSV file #123

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nathanhuynhers
Copy link
Collaborator

…cts into a CSV file

What's new in this PR

Description

Create a button that downloads filtered projects into a CSV file

  • New DownloadData component
  • Component has functionality that splits the filteredProjects json variable and converts it to a CSV string, which then is uploaded to the website in a BLOB (Binary Large Object)
  • Create testing folder under app/testing to display the button

Screenshots

image

image

How to review

Go onto http://localhost:3000/testing and click the download button. A csv should have downloaded. (This should have all the projects since MapViewScreen has all the filtering logic) If you want to test with the filtering logic, add a DownloadData component into the return value of MapViewScreen, find the button, apply your filters, and then click the button. FIltered projects csv should have downloaded.

Definitely remove testing folder before deploying

CC: @jjstnlee @nehaahussain

@jjstnlee jjstnlee reopened this Mar 3, 2025
@jjstnlee jjstnlee linked an issue Mar 3, 2025 that may be closed by this pull request
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.

Implement Downloading Data
2 participants