plebbit / plebbit-react

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

Add "pending edit" label to edited comments instantly after publishing a comment edit #243

Closed estebanabaroa closed 1 year ago

estebanabaroa commented 1 year ago

After an author or mod publishes a comment edit, they must wait 5-10 minutes (or more) for the update to be confirmed and reflected in their UI. This is very bad UX.

It is possible to know the status of an edit, as well as show the comment with the edited properties in the UI instantly, without waiting for the edit to be published fully. This can be done using the useEditedComment hook.

There is an example in the hooks readme https://github.com/plebbit/plebbit-react-hooks/#view-the-status-of-a-comment-edit

estebanabaroa commented 1 year ago

pending removed posts in the feed should hide the full card media or thumbnail media.

example I removed a post because it was adult content but the image is still showing in the feed while it's pending:

Screenshot 2023-05-07 at 23-49-30 plebbit