all platforms: ProfileScreen is missing a mutation / optimistic UI #687
Description
Describe the bug
If I am on ProfileScreen and I make a post, the post does not get added to the view.
To Reproduce
Steps to reproduce the behavior:
- Go to your profile
- Make a post
Expected behavior
There is some visual feedback when the post gets sent (added grayed out to TL) and when a response is received (added to TL).
Also on Twitter the "Post Poasted" toast has a "View" link. Which, looking at your own tweet seems pretty useless but there is a use case: you are on a screen without a TL, you post, then you cross-post your tweet somewhere else.
There are probably some other desiderata like persist pending posts on app minimize and retry on reopen, backup to drafts, etc but that probably requires a separate product spec.
Screenshots
N/A
Details
- Platform: tested all platforms
- App version:
main
404b2f0
Additional context
Other places are mutating correctly (Home, PostThread), so can probably take the pattern from there. I'd be happy to provide a fix if this is considered a reasonable issue.