fairDataSociety / fairdrive-theapp

The main app to browse Fairdrive.
GNU General Public License v3.0
21 stars 7 forks source link

Improve UX for file sharing modal #462

Closed IgorShadurin closed 1 year ago

IgorShadurin commented 1 year ago

The current file sharing modal could be more user-friendly. Right now, the sharing code appears a bit later after the modal shows, which might confuse the user. Here's what needs to be done to improve this:

  1. Show a spinner while waiting for the sharing code to be generated.
  2. Hide the "Copy" button during this time.
  3. Once the sharing code is available, hide the spinner and show the "Copy" button.

Also, the button labeled "Complete Sharing" only closes the modal and doesn't actually complete any sharing process. I suggest renaming it to just "OK" for clarity.

https://github.com/fairDataSociety/fairdrive-theapp/assets/1595061/888fee02-346d-4278-96a4-15804062fe85