coracle-social / coracle

An experimental Nostr client focused on unlocking the full potential of multiple relays. Browse, filter, zap, and create custom feeds to create a curated Nostr experience.
https://app.coracle.social
MIT License
281 stars 71 forks source link

Improve submission status for new responses #235

Open dtonon opened 9 months ago

dtonon commented 9 months ago

Following up #233 (Replies don't show up immediately) I propose a new UI to show the posting/posted status of a note. The note is placed in the correct position on the thread and the bottom bar is replaced with a loading animated component:

Screenshot 2024-01-15 alle 21 16 21



After the submission procedure ends the summary is displayed on the same bar, on the left a buttons permit to see the details (current bottom sheet modal):

Screenshot 2024-01-15 alle 21 23 03



The bar can be replaced after a certain amount of time (ex. 30 seconds) or if the note receives an event (reply, reaction, zap).

dtonon commented 9 months ago

We should probably add the case of an unsuccessful submission (e.g. network error) or one with a high percentage of missing relays, giving the user the option of retrying the submission with a click.