human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

3093 product drive export

Open shen-sat opened this issue 2 years ago • 1 comments

Resolves https://github.com/rubyforgood/human-essentials/issues/3093

Description

Adds a button to the product drives page to give the user the ability to download a csv of product drives, filtered by date.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Request specs added. I have also tested the feature locally (see screenshots)

Screenshots

Product Drives page now includes an "Export Product Drives" button: image

When button is clicked on the above page, the following csv is downloaded: image

shen-sat avatar Sep 10 '22 21:09 shen-sat

It seems pretty good to me - the one thing that puzzles me is the "Product-Drives-2022-09-10" appearing at the top of the screenshot of the csv -- is that just an artifact of how you're viewing it?

That's the date (10th September) that I implemented the feature and tested it locally - I use the date the file was downloaded in the filename. It displays the filename like that (as per the screenshot) when I open the csv using a specific Mac app (ie Numbers).

shen-sat avatar Sep 18 '22 12:09 shen-sat