Skip to content

Fix Scheduled Post displayed status#13656

Closed
bjtitus wants to merge 7 commits intodevelopfrom
fix/post-scheduling-status
Closed

Fix Scheduled Post displayed status#13656
bjtitus wants to merge 7 commits intodevelopfrom
fix/post-scheduling-status

Conversation

@bjtitus
Copy link
Contributor

@bjtitus bjtitus commented Mar 13, 2020

Fixes #13655
Fixes #13654

  • Addresses a few bugs with post status not being changed when scheduling a post.
  • Adds a confirmation prompt when a post is Published (seems like the logic for this was not checking the original post status)

To test:

  • Schedule or update a post and check the resulting labels

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@bjtitus bjtitus added this to the 14.5 milestone Mar 13, 2020
@bjtitus bjtitus self-assigned this Mar 13, 2020
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Mar 13, 2020

You can test the changes on this Pull Request by downloading it from AppCenter here with build number: 25496. IPA is available here. If you need access to this, you can ask a maintainer to add you.

@bjtitus
Copy link
Contributor Author

bjtitus commented Mar 14, 2020

@designsimply Build #24644 should be available here whenever you get a chance to take a look: https://install.appcenter.ms/orgs/automattic/apps/WPiOS-One-Offs/

Copy link
Contributor

@designsimply designsimply left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First, @bjtitus, the publish flow has definitely been improved by this PR to help users by preventing them from publishing posts accidentally if they change a draft to a date in the past and then leave the post. This was a really good change because before it was really easy to accidentally publish a draft, and that part has been fixed—thank you!

Now, the flow is not ideal because this caused a few other places where you could potentially get stuck (for example, it's no longer possible to set a draft to a date in the past and save the draft without publishing) so I would like to ask for an extra design review for these cases to ask about how we should proceed with the immediate upcoming releases (14.4 is in code freeze right now, for example).

Here are my notes from testing build 24644:

Tested with the steps from #13655 and confirmed that the date is now preserved in Post Setting when you use "Move to Draft", however, there's a new problem where the date on the draft in the Posts List appears to be timestamp the draft was last modified and the date in the Post Settings is the publish date before "Move to Draft was used. I really can see how this could be confusing either way so I would like to double check again with @iamthomasbishop on it. (1m56s)

Tested with the steps from #13654 and I found that the "Publish" button and flow is more clear but the problem is that once I've made any date change at all to the draft I'm editing, I'm forced to choose to either publish the post (if the date was set to immediately or to the past) or schedule the post (if the date is set to something in the future). Once I've changed the date in Post Settings for a draft, there's no way to save a draft. @iamthomasbishop this is another area where I would like to get your feedback about what, if anything we should change for the immediate release, which is 14.4 scheduled for App Store Submission on March 20th. (4m32s)

Tested with WPiOS build 24644 from MS App Center WPiOS One-Offs on iPhone 11 iOS 13.3.1.

@bjtitus
Copy link
Contributor Author

bjtitus commented Mar 18, 2020

Thanks @designsimply! I think these are all good points where the flow becomes confusing.

the date on the draft in the Posts List appears to be timestamp the draft was last modified and the date in the Post Settings is the publish date before "Move to Draft was used.

I did cross check this behavior with Calypso on the web because it looked a bit odd to me also. It seems like the modified date is shown for drafts and the scheduled/published date for other sections.

once I've made any date change at all to the draft I'm editing, I'm forced to choose to either publish the post (if the date was set to immediately or to the past) or schedule the post (if the date is set to something in the future). Once I've changed the date in Post Settings for a draft, there's no way to save a draft.

I think there is one unintuitive way around this: you can change the Post Status to Draft from Post Settings. I love the idea of adding a better modal that shows more information and possibly giving more adjustment options.

@loremattei loremattei modified the milestones: 14.5 ❄️, 14.6 Mar 23, 2020
@loremattei
Copy link
Contributor

Hey! I moved this PR to 14.6 as because 14.5 has been cut. If you want this to make it to 14.5, please feel free to ping me!

@yaelirub
Copy link
Contributor

@bjtitus , what is the status on this PR??

@bjtitus bjtitus marked this pull request as ready for review March 24, 2020 04:49
The publish logic needs to be updated for the `nil` dateCreated change to work properly.
@bjtitus
Copy link
Contributor Author

bjtitus commented Mar 24, 2020

@yaelirub

There are really 2 main changes aimed at bug fixes in this PR:

  1. "Publish Immediately" logic being shown when Draft was back scheduled. (seems to be the same issue seen in Cannot back date a draft #13710)
  2. Fixing some issues with the Post button displaying the wrong action after changing the publish date.

A 3rd addition adds a dialog so it is extra clear when a Post moves from a non-published status to Published. I think this addition may need some extra review, so we could remove it for now to try and get a limited change set in to 14.5 if that makes more sense.

bjtitus added 2 commits March 23, 2020 23:36
This logic doesn't match current app behavior, so the test can be removed.
@bjtitus
Copy link
Contributor Author

bjtitus commented Mar 24, 2020

Build 14.5 (25496) from the one-off builds is most up to date with this PR: https://install.appcenter.ms/orgs/automattic/apps/WPiOS-One-Offs/

@designsimply
Copy link
Contributor

A 3rd addition adds a dialog so it is extra clear when a Post moves from a non-published status to Published.

To clarify, the extra dialog you're referring to is the one that says "Are you sure you want to publish?" which appears after backdating a post then tapping "X" then "Update Post"? (2m13s)

Screen Shot 2020-03-24 at Mar 24 3 32 23 PM Screen Shot 2020-03-24 at Mar 24 3 32 29 PM
Tested with WPiOS build 14.5 (25496) from MS App Center on iPhone 11 iOS 13.3.1.

@bjtitus
Copy link
Contributor Author

bjtitus commented Mar 25, 2020

@designsimply Yep! That's the confirmation dialog I was referring to.

I think an option could be added to Save as Draft to that menu to make it easier to switch from Published to Draft instead of having to go back to Post Settings to make the change. I think that's better for a future release, though.

@bjtitus
Copy link
Contributor Author

bjtitus commented Mar 27, 2020

Merged into release 14.5: #13726

@bjtitus bjtitus closed this Mar 27, 2020
@bjtitus bjtitus deleted the fix/post-scheduling-status branch March 27, 2020 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Move to Draft" removes date and time from post settings Cannot change a draft to a use a date in the past without publishing it

4 participants