react-client icon indicating copy to clipboard operation
react-client copied to clipboard

Visualize API request progress

Open ErikMichelson opened this issue 3 years ago • 3 comments

Which part of the project should be enhanced? UI dialogs where user input is processed by the backend.

Describe the solution you'd like Whenever an API request is performed after the user submitted something, show a spinner or similar loading icon to visualize that something is happening. This is especially important with slow (or mobile) internet where e.g. modals stay open for a few seconds after submitting data.

Describe alternatives you've considered Immediately close modals, do the request in the backend and inform the user about its success with a notification.

Additional context https://github.com/hedgedoc/react-client/pull/1636#discussion_r753799530

ErikMichelson avatar Nov 21 '21 23:11 ErikMichelson

I like the idea and would like to suggest the HedgeDoc Logo with the animation of the circle of https://cssfx.netlify.app/

https://user-images.githubusercontent.com/3978662/145690346-f993d647-54a6-4f0f-9e58-157cf3aad8df.mp4

This could either be added as an overlay on top of the modal or alternatively it could replace the submit button.

DerMolly avatar Dec 11 '21 20:12 DerMolly

Don't show the app logo when something is loading. That will cause the users to associate slowness with the app. Show a generic spinner instead.

davidmehren avatar Dec 11 '21 22:12 davidmehren

This seems to be good advice

DerMolly avatar Dec 12 '21 04:12 DerMolly