OpenChain-Project / Online-Self-Certification-Web-App

This is the source code for the OpenChain Project Conformance Online Self-Certification Web App
https://certification.openchainproject.org/
Apache License 2.0
12 stars 5 forks source link

Warn users when download CSV if there are unsaved answers #149

Open goneall opened 5 years ago

goneall commented 5 years ago

Currently, when downloading answers from the questionnaire page the CSV will only include answers which are saved.

If a user has unsaved answers, it would be confusing to have the download CSV only contain the answers that were saved.

We could do one of 3 things:

  1. Automatically save the answers
  2. Download the questions which are not saved and include them in the CSV
  3. If there are unsaved questions and the user selects the Download Answers, ask the user if they would like to save them and include them in the CSV

I prefer approach 3. I would not want to save their answers without asking (as in 1). Downloading unsaved answers in 2 could also be confusing if they exit the application without saving.

Propose a message "You have unsaved answers. Do you want to save and include in the answers download?"

goneall commented 5 years ago

@theopenchainproject Let me know your thoughts on the approach.

Note: This is a moderate amount of work and will require localization of the messages.

shanecoughlan commented 5 years ago

I concur with your approach and suggest using the wording from issue 151

shanecoughlan commented 5 years ago

FYI, if this additional work falls outside the scope of what can be done as a volunteer, please ping me and we’ll set something up.