wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.96k stars 1.31k forks source link

Reader: Can't unfollow site that was followed in Calypso Reader from post card #13601

Closed khaykov closed 6 months ago

khaykov commented 3 years ago

Steps to reproduce:

I have a feeling that the response of this method does not include a feed ID, which we use to determine if the site is followed.

designsimply commented 3 years ago

I noticed that in https://github.com/wordpress-mobile/WordPress-Android/issues/11358 it says the expected behavior is:

In Reader > Settings > Followed Sites, when unfollow a site and make a configuration change, we want the unfollowed site to remain listed.

It's confusing though. @develric can you help me understand the intended behavior? I have seen the behavior @khaykov reported above and had assumed the purpose was to give people time to re-follow a site if they unfollow it by mistake, but that's really only an assumption I had made on my part.

Also 🙂 https://github.com/wordpress-mobile/WordPress-Android/issues/11856 might be worth a look if you're fiddling with the follow/unfollow actions.

develric commented 3 years ago

Hey @designsimply 👋 .

had assumed the purpose was to give people time to re-follow a site if they unfollow it by mistake

Yep that is correct. Currently we keep a site in the list when unfollowed in case the user changes his mind and we remove it once the user leave that screen; what happens is that we end up removing it from the list also on config changes in that same screen that seems an unwanted behaviour.

Maybe it's superfluous but to be sure we are on the same page 😄 , just want to notice that the #11358 is related to the Followed Sites list in the reader settings (that seems to work for Klym), while if I'm not wrong, the issue here is in changing follow site state in the reader post cards menu like here

UPDATE: added the above note in the original issue so to make it clearer.

develric commented 3 years ago

Was thinking to the #11856 and I remember that I noticed something similar at some point in the past where the followed site button is disabled while waiting for the response confirmation from the endpoint, that can take some time. Not sure how well it fits with the current implementation of the follow site button behaviour in the various app places, but wondering if we should use a similar approach to what we did with the following conversation button recently, where we present a shimmer effect to the user while waiting for the endpoint response like here below. wdyt?

khaykov commented 3 years ago

As @develric said the issue is in changing the Follow state from the post menu. The problem is not that the posts remain in the Reader (that's expected) but that the site is not actually being Unfollowed.

designsimply commented 3 years ago

Okay! Yeah, I think it can actually be kind of hard to tell whether something really was unfollowed in this context. 🙂

Thank you everyone for the explanations!

wondering if we should use a similar approach to what we did with the following conversation button recently, where we present a shimmer effect to the user while waiting for the endpoint response

I totally noticed that tapping the "following conversation" felt like it worked a million times better when I tested it in beta, so I am in favor of this. 😊

stale[bot] commented 2 years ago

This issue has been marked as stale because:

Please comment with an update if you believe this issue is still valid or if it can be closed. This issue will also be reviewed for validity and priority during regularly scheduled triage sessions.

daniloercoli commented 6 months ago

I was unable to reproduce the problem on version 24.2 and later. Closing this issue.