Wordpress-android: Drop local preview feature completely

Created on 26 Apr 2019  ·  9Comments  ·  Source: wordpress-mobile/WordPress-Android

Local (offline) previews of posts and pages are currently useless, they're not showing what the post is going to look on the user's site. Local preview is just showing a post HTML output with a very simple CSS style and looks almost like the view in the visual/block editor.

Local previews are only available on local drafts. Local drafts will be very rare soon as we're going to synchronize them as soon as the app can, and local drafts will exist only while the app is in offline.

Note: Rendering the theme locally is way out of scope (it needs more than just a CSS file).

No Estimation Offline Support Previews [Pri] Low [Type] Enhancement

Most helpful comment

@designsimply , By dropping local previews we mean dropping the "fake" previews and instead showing remote previews similarly to what we did in iOS:
https://github.com/wordpress-mobile/WordPress-iOS/issues/9282

All 9 comments

Update: we'll drop the "local preview" feature, but we can keep the "preview button", in this case the following scenario should happen while the app is offline:

  • User edits an existing post, a new post or a draft,
  • User taps “Preview”,
  • App auto-saves the post locally,
  • App notifies the user we can’t show a preview while offline.

Note: I added the "Previews" label on this one. When we finally close this ticket, we should browse all issues labeled "Previews" and close those related to local previews (most of them probably).

Epic ticket for removing local previews.

@maxme - I was trying to figure out if we have issues that request this work be done for pages, and the only one I found referencing pages specifically was this one. Can you check if we need to create more specific issues for doing the same work for pages in Android?

Here his the list of tickets/tasks that needs to be done before we can close this one. In dependency order:

Related tickets, but not necessary to close this issue:

While kind of relevant, I'm not sure how these two issues are a dependency to remove remote previews.

Restore trashed posts - #10106
Restore trashed pages - #10219

The real dependency IMHO is that previews shouldn't be available in trashed posts which could be handled by showing a "Preview Unavailable" screen like in iOS.

We can then consider opening a separate issue to standardize across the iOS and Android UIs for trashed post lists (see below).

Do you agree @maxme ?

iOS:

IMG_0337

Android:

Screenshot_20190715-142839

The real dependency IMHO is that previews shouldn't be available in trashed posts which could be handled by showing a "Preview Unavailable" screen like in iOS.

Yes I agree we could solve it this way for previews. But it was also great to force trashed posts restore to avoid having trashed posts with local modifications (offline issue), so it's kind of fixing 2 issues at the same time.

The fix has already been merged for posts in #10185 - I'm not sure we should drop the ball now for pages.

To make sure I understand correctly, the proposal here is to drop local previews while offline but previews while online would still continue to work the same way they do now?

@designsimply , By dropping local previews we mean dropping the "fake" previews and instead showing remote previews similarly to what we did in iOS:
https://github.com/wordpress-mobile/WordPress-iOS/issues/9282

Was this page helpful?
0 / 5 - 0 ratings