-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement Restore Revision dialog iOS #12141
Comments
@guarani will be working on this. |
Moved this out of the Offline Posting board to keep the board focused on “posting”. |
@yaelirub, regarding #12141 (comment):
[emphasis added] After reading wordpress-mobile/WordPress-Android#9812 (comment), I'm wondering if the above comment should read: "If the post has NO local changes and a remote autosave, we are going to show a dialog to the user." I think this is what was done in Android: |
That's correct, @guarani. |
@yaelirub, the acceptance criteria has evolved through a couple of Android issues and pull requests, so I'm just updating here for completeness:
|
Thanks, @guarani :) |
I don't seem to have edit permission on the issue description - is that something you could enable, @yaelirub? |
I'm cross-posting a prototype for the dialog here for design approval: For the same reasons we’re using a system dialog on Android, the proposal here is to use the system alert on iOS. I don’t have many customization options here – apart from adding empty lines, changing the button order, and marking one button as “destructive” – in that it will be an alternative color (e.g. red). (originally posted on P2) cc: @osullivanchris @mattmiklic |
@guarani , no worries. I updated the description. |
@guarani thanks for digging around and finding the other relevant tickets, particularly the Android issue. As we have a number of similar and related scenarios, it takes me some time to recall which is which when I encounter these issues again. However I can see that this is one I already worked through on Android with Jirka. I am happy to go ahead with the proposal here, the only change I would ask is to change the button copy to Sentence case. The all caps styling is just an Android/Material thing. One question I have is what happens if the text on those buttons gets too long? Is it truncated? I can see that the text is smaller in the longer string here, so maybe that's the solution. Is that part of the system component and a common pattern to use, in your opinion? Thanks! |
I have a hunch that the amount of text used for those buttons isn't going to work well in some other languages; they're not even working that well in English at the moment. Could we try giving the two versions labels in the text of the alert, and then using those labels for the two buttons? The labels could be "From another device" or "From this device". We could also try "Previous" and "Most Recent". Or label them "Version A" and "Version B" -- anything that could make those labels less verbose. |
@mattmiklic good point - it could vary a lot by language. Personally I find the "From another device"/"From this device" to be the most user friendly. |
Ah tricky! For @mattmiklic's second option, I think its hard to come up with good labels. And its tricky because the user has to parse the information in the dialog and then match it back to the options in the buttons. As I explored in option 2 here, I thought the way to make selection easier was to provide metadata and action next to each other, so the user can make a direction selection and not to need an abstract name. But as we've found its not supported by the native dialog implementation on either iOS or Android and would require too much customisation. So I would go with the simpler suggestion from @mattmiklic just shortening it to "From another device" and "From this app" which at least avoids some truncation/localisation issues. |
@osullivanchris what do you think about "From this device" instead of "From this app"? I'm thinking that the choice between "this device" / "another device" seems clearer than "this app" / "another device". |
I like it! |
For discovery history - wordpress-mobile/WordPress-Android#10008, wordpress-mobile/WordPress-Android#9812
If the post has no local changes and a remote autosave, we are going to show a dialog to the user.
This issue is for implementing the design for this dialog.
Matching Android Issue:
wordpress-mobile/WordPress-Android#10108
Known Tasks
###UPDATE - 10/21/19
the acceptance criteria has evolved through a couple of Android issues and pull requests:
The text was updated successfully, but these errors were encountered: