frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Change the red bar under data size that indicates data size is bigger than the download limit

Open LAShemilt opened this issue 2 years ago • 8 comments

Change the red bar that indicates data size is bigger than the download limit

Summary

In the datasize column there is a red/green bar that indicates if the data is larger or smaller than the 5GB size limit. Many datasets are much larger than the 5GB limit, and most institutes offer a different download mechanism to download this size, however to the user it appears that their data is in an errored state.

It would be nice to change the colour or the experience to indicate which download mechanism to use, rather than having an unexplained red bar. For our users it is important to know the size of data.

Extra Details

image

LAShemilt avatar Jul 21 '23 08:07 LAShemilt

@LAShemilt I would remove it completely as it is misleading and does not provide additional information to the user. It is misleading because the color red indicates that it is not downloadable through the zip-service provided the limit imposed in configuration. It is not a relevant information for facilities that are not using the zip-service. Also it does not mean that the dataset has problems.

nitrosx avatar Jul 21 '23 14:07 nitrosx

255120388-4daa8f7e-fff6-42ae-95a6-3c78be38b1e7

nitrosx avatar Jul 21 '23 14:07 nitrosx

Something like the image before

nitrosx avatar Jul 21 '23 14:07 nitrosx

That is already possible today just by changing the config.json:

"fileColorEnabled": false

stephan271 avatar Jul 24 '23 08:07 stephan271

@stephan271 Thank you for the info. This need to be documented.

nitrosx avatar Jul 24 '23 09:07 nitrosx

I just checked the code. This functionality is implemented here.

Color and sizes are hard coded.

If we want to keep the functionality, we should make color and sizes configurable. Also, we should investigate a better visualization of the size.

nitrosx avatar Jul 24 '23 09:07 nitrosx

To elaborate further, currently there are the following two entries in the frontend configuration:

  "fileColorEnabled": false,
  "fileDownloadEnabled": true,

I propose to add the following configuration options:

  "fileColorNoIssuesColor": <color> //default to green
  "fileColorWarningLimit": <file_size_limit_in_bytes>
  "fileColorWarningColor": <color> //default to orange
  "fileColorErrorLimit": <file_size_limit_in_bytes>
  "fileColorErrorColor": <color> //default to red

This are colors do not indicate an error in the dataset itself, they just warn the user about transfer (download) time, which is dependent on the type of data, file size and facility IT infrastructure

nitrosx avatar Jul 24 '23 12:07 nitrosx

Sounds reasonable to me

bpedersen2 avatar Jul 24 '23 12:07 bpedersen2