plebbit / plebbit-react

A GUI for plebbit
https://plebbitapp.eth.limo
GNU General Public License v2.0
35 stars 6 forks source link

When publishing a reply, instantly publish it as "pending" instead of waiting for challenge #240

Closed estebanabaroa closed 1 year ago

estebanabaroa commented 1 year ago

This is the current UX:

Screenshot 2023-04-08 at 06-23-12 plebbit

It is not very good, the user has to wait until they receive the challenge and they are blocked from doing anything else.

It is possible to use the same UX for publish replies as for publishing posts. It is possible to add the pending account comments inside the replies components instantly, and add a label "pending" to it. So the user feels like posting was instant.

There is an example of the code in the hooks readme https://github.com/plebbit/plebbit-react-hooks/#get-replies-to-a-post-nested

estebanabaroa commented 1 year ago

Screenshot 2023-04-28 at 23-42-23 is there a correlation between anime watching and autism

After the pending reply is posted, the text input of the comment should be reset.

In the screenshot, I wrote "Yes", then my pending comment was added, but the text input still says "Yes"