scientist-softserv / britishlibrary

Other
3 stars 0 forks source link

Download all button for csv exports #561

Open grahamjevon opened 2 months ago

grahamjevon commented 2 months ago

Situation

When a csv exporter is run it will generate one or more csv files (each with a maximum of 1000 rows).

Problem

If the exporter returns 10,000 rows, it will generate 10 separate csv files.

Problem 1

It is not obvious to a user that more than one csv has been generated.

Image

Only when a user actively clicks on the dropdown do they see that there is more than one file to download (this is very easy to miss).

Image

There is therefore a high risk that a user will only download the first csv file and miss subsequent ones.

Problem 2

Even if a user spots that there are multiple export files, it is cumbersome and time consuming to download each one separately.

Solution

Replace the "Download" button with a "Download all" button.

I can't think of a scenario when anyone will only want to select and download only one export file because each csv file is only relevant as a whole export.

It would be preferable if the Download all button concatenated each of the csv files into a single csv file. At the very least it should generate a single zip file containing all of the csv files generated by that export. The current situation of generating a separate zip for each csv file adds an additional layer of cumber.