pacio-core / smartbugs

Public place to collect issues and enhancements for Smartlike client apps.
0 stars 1 forks source link

no visual feedback of making comment in info - view #108

Open marcellpacio opened 4 years ago

marcellpacio commented 4 years ago

Screenshot 2020-03-08 09 26 48

If i make a comment here and press enter, I won't see my comment. Auto-reload of the page?

malj commented 4 years ago

This is currently unresolved UX, because there is no way to know exactly when the comments will be synced from the DHT. We have a few options:

  1. "Optimistically" create a comment in the browser when receiving a success response from the node. That would give users a sense of immediacy, but the comment would be lost when reloading the view if it still hasn't been synced to the DB by that point, which might lead to some confusing problems ("my comments sometimes disappear", etc.)
  2. Show users a message that the comment has been received for processing and close the overlay or just hide/unfocus the input they used to submit it. This would be safer, but it's inferior UX.

cc @vadim-frolov @bumTomica

vadim-frolov commented 4 years ago

wait for a solution

bumTomica commented 4 years ago

The best UX scenario would be that we remember the created comment in the local browser/app cache (database) and add it again on view reload (if it is not already in API response data). But I think this is too much work for MVP, so maybe we start with a toast like notification that kindly says something in the words of "your comment is being processed and it will be published soon".