Skip to content

all platforms: ProfileScreen is missing a mutation / optimistic UI #687

Open
@llllvvuu

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:

  1. Go to your profile
  2. 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.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingx:on-the-roadmapWe're planning to do this but it may be a bit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions