wordpress-mobile / wordpress-mobile/WordPress-Android

Preview Out-Of-Date if Save is In Progress

Open
#13,361 20 comments 1 reaction 2 assignees View on GitHub

@mkevins is already working on this.

Since Mar 7, 2022.

[Pri] High [Type] Bug Posting/Editing
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

A post preview should always represent the current content in the editor.

Actual behavior

If an autosave is in progress when the user attempts to preview the post, the currently-being-saved changes will not be uploaded and included in the preview.

Steps to reproduce the behavior
  1. Open a very long post, ideally on a slow device (so it will be slow to save)
  2. Add some content,
  3. Wait at least 0.5 seconds (so the autosave delay has passed), but not much more than that (because we don't want the save to finish) and tap the "Preview" menu button.
  4. Observe that the post is not uploaded (assuming there was no other updated content saved apart from what was added just before the preview was opened) and the preview does not include the just-added content.

preview-save-in-progress mp4

Tested on Pixel 1, Android 11, WPAndroid 125b3984af

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.