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

🎨 Frontend: Improve UX for "Download of Study Data" #3963

Merged
merged 18 commits into from
Mar 13, 2023

Conversation

odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Mar 13, 2023

What do these changes do?

This PR changes the way files are downloaded in the File Browser window.

Until now, we were downloading files using XMLHttpRequest and the given (presigned) URL. This meant that first the response had to be loaded, then convert it into the file blob and finally download it.

Now, we simply create a virtual HTML <a> tag, make it point to the given (presigned) URL and virtually click it, which directly starts the download process.

DownloadFile

Related issue/s

closes ITISFoundation/osparc-issues#899

How to test

Checklist

@odeimaiz odeimaiz added a:frontend issue affecting the front-end (area group) changelog:🎨enhancement labels Mar 13, 2023
@odeimaiz odeimaiz self-assigned this Mar 13, 2023
@odeimaiz odeimaiz changed the title Ux/study data WIP 🎨 Frontend: Improve UX for "Download of Study Data" Mar 13, 2023
@odeimaiz odeimaiz changed the title WIP 🎨 Frontend: Improve UX for "Download of Study Data" 🎨 Frontend: Improve UX for "Download of Study Data" Mar 13, 2023
@odeimaiz odeimaiz marked this pull request as ready for review March 13, 2023 17:50
@sonarcloud
Copy link

sonarcloud bot commented Mar 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@codeclimate
Copy link

codeclimate bot commented Mar 13, 2023

Code Climate has analyzed commit 2e6b577 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Member

@mguidon mguidon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thanks.

@odeimaiz odeimaiz enabled auto-merge (squash) March 13, 2023 17:58
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice

@odeimaiz odeimaiz merged commit 6032512 into ITISFoundation:master Mar 13, 2023
@odeimaiz odeimaiz deleted the ux/study-data branch March 13, 2023 20:22
@pcrespov pcrespov mentioned this pull request Mar 23, 2023
31 tasks
@elisabettai
Copy link
Collaborator

Hi @odeimaiz, I'm getting this dialog when clicking on Download:
bug_data_download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:frontend issue affecting the front-end (area group)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve UX for "Download of Study Data"
4 participants