Couchers-org / couchers

The next-generation couch surfing platform. Free forever. Community‑led. Non‑profit. Modern. Chuck us a star :)
https://couchers.org
MIT License
389 stars 78 forks source link

Clicking "save" before profile image has finished upload terminates upload #5184

Open jesseallhands opened 6 days ago

jesseallhands commented 6 days ago

Problem When a user is editing their profile and their profile image is taking a while to upload (after clicking the checkmark) and the spinner is spinning, if the user clicks "save" it will kill the upload and navigate back to the "my profile" page without having saved your new profile picture. There is no warning.

Solution

A warning should alert the user that their profile picture has not finished uploading yet and they should wait until it is complete before saving their profile.

Warning text: Your profile picture is not uploaded yet! Please wait and click "save" after it has finished uploading. [Okay]

If the user clicks "okay" on the aforementioned warning and then tries to click away to navigate somewhere else on the site, they will still get the same warning as currently appears: image