kblincoe / QualOpt_SE701

2 stars 15 forks source link

Displaying of bounced emails #36. #130

Closed will-molloy closed 6 years ago

will-molloy commented 6 years ago

Solution to #36. This PR builds on #114 and contains the front-end changes. I used a new package (sweetalert), please run npm install and maybe npm install --save sweetalert.

Changes:

Screenshot: Alert: screenshot from 2018-03-23 22-44-44

New study detail component field: screenshot from 2018-03-23 22-45-05

Test:

  1. Login as admin (admin:admin).
  2. Create some participants (some with invalid emails e.g. invalid123123123123123123@gmail.com). (invalid address will throw an exception; this is another issue.)
  3. Create a study and add the participants.
  4. Send the study.
  5. Wait for it to be sent.
  6. The alert should come up (whether you stayed viewing the study or went to another page).
  7. Viewing the study should show the bounced participant email address field.
  8. Editing out the bad participants and resending the invitation should remove the bounced participant email address field from the study view. (Make sure you include at least one good email address.)

Limitations:

will-molloy commented 6 years ago

@Karim-C @AprajitGandhi test and review code thanks :)