-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exploration: should we prevent user to leave the editor without publishing changes? #9810
Comments
My gut feeling is we shouldn't and perform an auto-save instead. However, for self-hosted sites, they don't have auto-save right? So we have to show it. I think it will be confusing if have different behaviors so my recommendation is to show the dialog. 😄 It looks like this is what we do on iOS too. |
Subscribing @wordpress-mobile/ravenclaw |
I think we should define what's the expected behavior in the most common cases and direct the user to that behavior. To me, the expected behavior is to publish your changes [1], so if the user hit back we should give them the option to publish. Also having a dialog is not a huge flow breaker and it's a good reminder that the back/close button won't publish your changes. [1] only in certain cases you don't want to, like if you are in a middle of an edit and want to check another post or browse the reader, but I think this is not the most common behavior.
I agree, this is confusing. |
Based on the funnels you created in paCBwp-84-p2, it looks like users generally Discard the changes. For my personal experience with other editors, whenever I press Close, I'm always in a hurry. If there is a Publish button in the confirmation dialog, I might accidentally press it. I usually don't read confirmation dialogs when closing something. 😄 What do you think, @megsfulton? |
@iamthomasbishop this overlaps with online editing behaviors so would like to get your thoughts on it. For high impact actions (like publishing) and destructive actions (like discarding changes), I like to err on the side of giving the user control over what happens rather than deciding for them. In this case, where the user has made changes to a published post, the options they have are:
If they want to publish the changes they've made - tapping the "Update" button is the most straightforward path to that. When they tap the close button, I think the choice is between saving the changes as a local revision or discarding the changes. |
Yep, I totally agree!
💯
When we save the changes as a local revision/locally, we can also remote-auto-save them, right? What might ruin the UX a bit is that the remote-auto-save stores just |
I totally agree with this! I LOVE our current approach in Android in that it doesn't require any action from you to actually close the editor. Currently:
We could improve this further by incorporating autosaves (when supported) for published and scheduled posts. But I digress. |
Sorry for the delay in my response! I've got a lot of thoughts on this, but I'll try to condense to the most relevant to this discussion 😄 My opinion (short version):In the context of Aztec/single "mode" editing, @megsfulton proposal makes sense. With that said, I'm hesitant to recommend any structural changes that might be discarded (😉) with mobile Gutenberg, so fair warning. My opinion (the long version):As a preface: There will most likely be some big changes to the writing/viewing flow coming up in Mobile Gutenberg, my gut is to be cautious about structural changes here. Also, my preference differs between the current Aztec flow (single "mode") and Gutenberg (which will be a split-mode editing flow). To the issue at hand: do we alert the user that they might have unsaved changes to a published post? If we're talking about the current structure (Aztec, or a single editing "mode"), I think Megs' proposal makes the most sense. As much as I find it convenient that Android doesn't bother you while exiting – it might be useful to confirm with the user what they'd like to do. I also agree that we probably don't need to add the Moving forward with GB, once we move to a split flow ( |
I know it's a minor thing, but just for the record.
They can still hit the "back" (hw/sw) button on the device, right? |
They can but it's a bit more complex. A couple of scenarios in If typing:
Else:
See Google Docs on Android for reference. |
This has been on my list to get through and I've finally found time to think it through. As I pick it up though, I'm not 100% sure why its an offline issue. Seems like a both offline and online issue. Anyway my two cents on this Draft Posts
Proposal:
The most important thing in this proposal is that I believe the flow is frictionless in the happy path. Whereas today there is friction in both paths on iOS (have to make a decision every time). Updating a draft is a reasonably non-destructive non-committal action so I feel its not gonna cause too much pain as a default. Published Posts And if the user doesn't like the changes they made to their published post, and didn't get to the toast in time, they still have two means of retribution:
Offline Side Note
|
@osullivanchris This is a great approach and it lines up well with the approach I was imagining on Gutenberg – well done! I especially like the flow you described attached to your sketch. A couple of very minor thoughts:
|
@iamthomasbishop Thanks really glad to hear it lines up with what you're thinking! Those two are totally fair bits of feedback. Will take into account when I work on this further, will just wait for any other feedback from the team before I iterate. The iOS icon for example, might not be necessary as part of this task. But I think it would be an improvement. The copy I'll get reviewed before we build in any case. |
Thank you, @osullivanchris. The proposal is looking good. I'm concerned about this. I consider "Revert" to be a destructive action. I would guess that users would probably not use this a lot. As a user, I would also worry about not tapping on that and might pause for a bit to let the snackbar disappear. Self-hosted sites do not have revisions history. Were you thinking that they would rely on manual changes instead? Just curious about your thoughts on that. 🙂 |
I tested out the revision history. If I have a v1 and a v2, and I revert to v1; v2 is still there also. It might feel destructive, and so we could somehow make that more usable/obvious. But I didn't intend that reverting would delete the work, it would just roll back a version.
I didn't think that through. I didn't realise that Self-hosted sites don't have revision history. I'll have to think that through - but if you have any ideas I'd be happy to hear! |
Thanks for reporting! 👍 |
In Calypso, when a user edits a published post (classic or block editor), if the user click on "Close", they'll get a dialog asking
When the device is online, should we show a similar dialog and ask the user if they want to update their post?
Note: when the user does this on an unpublished post, Calypso won't prevent the exit, it will save changes as a draft (or update)
The text was updated successfully, but these errors were encountered: