Wordpress-android: Webviews: confusion over existing behavior for viewing published posts from the post list

Created on 17 Apr 2019  路  11Comments  路  Source: wordpress-mobile/WordPress-Android

Expected behavior

When users go to My Site > Blog Posts > View to view a published post on their site, they expect the post to behave the same as it does when they view the post on the front of their site or when they view the post from the same place in Calypso web.

Actual behavior

All posts (published or not) are shown in preview mode (with ?preview=true appended to the post URL). This changes the way the post behaves, e.g. doesn't show sharing buttons (see https://github.com/wordpress-mobile/WordPress-Android/issues/8007) and shows comments as closed even if they aren't.

This makes sense for previewing unpublished posts, but it goes against user expectations for published posts and causes confusion. Is there a better way to manage these expectations, or should we change the behavior for viewing published posts?

Steps to reproduce the behavior

  1. Go to My Sites in the app.
  2. Open Blog Posts.
  3. Select "View" to view a published post.
  4. Try to interact with the post like a published post, e.g. share, comment.
Tested on [moto e5 play], Android [8.1.0], WPAndroid [alpha-163]
Post List Webviews [Type] Enhancement

Most helpful comment

Hi @designsimply I haven't forgotten about this. I am just busy with the File Block project for mobile Gutenberg and I haven't gotten to this task in my list as yet. I am just giving you an update so you know I remember about it.

All 11 comments

This makes sense for previewing unpublished posts, but it goes against user expectations for published posts and causes confusion. Is there a better way to manage these expectations, or should we change the behavior for viewing published posts?

I agree that this is confusing and goes against the users' expectations. My recommendation would be to change the behavior for viewing published posts.

Tested with WPAndroid alpha-173 (12.6 alpha) on Pixel 3 Android 9 and found that while I can now leave a comment via Site > Blog Posts > View, the share, likes, and related posts do not show up in a webview unless I first leave a comment (because after a comment is submitted the ?preview=true query string is dropped in favor of #comment-1234).

Before leaving a comment:|After leaving a comment:
---|---
Screenshot_20190614-010430|Screenshot_20190614-010503

Note: the update recommended in https://github.com/wordpress-mobile/WordPress-Android/issues/8884#issuecomment-501893588 would solve the remaining problems noted in this issue.

I'd like to add an additional ticket which is somewhat related - the user wasn't sure why they couldn't enter the password for a protected post in this preview.
Ticket: 2127352-zen

Note: https://github.com/wordpress-mobile/WordPress-Android/tree/master-auto-upload contains a lot of changes to remote previews. It should be merged in the next few weeks and I have made a note to check back in here at that time.

Sharing buttons not showing in previews came up in 14.1 beta testing. See https://github.com/wordpress-mobile/WordPress-Android/issues/11199.

@designsimply I am currently looking into this issue and the solution would be to exclude the preview parameter when a post is published (and has no local changes?). My question is, would the user be fine with their view count going up when they are viewing their own page? because including the preview within the URL avoids this.

@jd-alexander I'm looking back to this because some similar issues have come up for the iOS app recently. Regarding the view count, if the site owner is authenticated shouldn't that also avoid their own visit from getting counted in stats?

Views by logged-in members of your site, including yourself, are only counted in your stats for sites that are set to private.

Source: https://wordpress.com/support/stats/

cc @guarani as it's tangentially related to https://github.com/wordpress-mobile/WordPress-iOS/issues/15296 on iOS.

@jd-alexander I'm looking back to this because some similar issues have come up for the iOS app recently. Regarding the view count, if the site owner is authenticated shouldn't that also avoid their own visit from getting counted in stats?

Yes, I would expect that to be the behavior @designsimply :) I am going to have a look at this on Monday to see what's happening inside the Android app.

Hi @designsimply I haven't forgotten about this. I am just busy with the File Block project for mobile Gutenberg and I haven't gotten to this task in my list as yet. I am just giving you an update so you know I remember about it.

No problem! Thank you for looking at it when you have time, that's perfect. It will be good to wrap this one up so we can let the mobile happiness engineers know if anything with the view counts is awry as I know users bring that up from time to time. They love stats!! It will also be good to be aware of the recent iOS changes to Previews and make sure both platforms are consistent. We have some changes being worked on for 16.2. See https://github.com/wordpress-mobile/WordPress-iOS/issues/15296.

Not urgent. Medium priority (because it's come up elsewhere recently).

Was this page helpful?
0 / 5 - 0 ratings