Add mobile and tablet screenshots in previews and thumbnails#15688
Add mobile and tablet screenshots in previews and thumbnails#15688
Conversation
|
You can trigger an installable build for these changes by visiting CircleCI here. |
...es/ViewRelated/Site Creation/DesignSelection/SiteDesignContentCollectionViewController.swift
Outdated
Show resolved
Hide resolved
...es/ViewRelated/Site Creation/DesignSelection/SiteDesignContentCollectionViewController.swift
Outdated
Show resolved
Hide resolved
...sses/ViewRelated/Site Creation/DesignSelection/Preview/SiteDesignPreviewViewController.swift
Outdated
Show resolved
Hide resolved
...sses/ViewRelated/Site Creation/DesignSelection/Preview/SiteDesignPreviewViewController.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Post/Preview/PreviewDeviceSelectionViewController.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Post/Preview/PreviewDeviceSelectionViewController.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Post/Preview/PreviewDeviceSelectionViewController.swift
Outdated
Show resolved
Hide resolved
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
WordPress/Classes/ViewRelated/Post/Preview/PreviewDeviceSelectionViewController.swift
Outdated
Show resolved
Hide resolved
...sses/ViewRelated/Site Creation/DesignSelection/Preview/SiteDesignPreviewViewController.swift
Outdated
Show resolved
Hide resolved
antonis
left a comment
There was a problem hiding this comment.
Great work @mkevins 👍
This PR actually resolves three issues: wordpress-mobile/gutenberg-mobile#2978, wordpress-mobile/gutenberg-mobile#2977 and part of wordpress-mobile/gutenberg-mobile#3009 🎉
I tested on an iPhone SE 2020 with iOS 14.2 and on iPad simulator and the app behaves as expected 👍
The code is consistent and LGTM 🎉
- I notice a minor issue (probably unrelated with this PR). When you open the preview and get back the selection overlay is missing. I feel that this is the only thing that would be nice to be resolved before merging.
selectionoverlay.mov
-
On Android I used a preview mode indication (at the bottom right corner) on the HPP preview screen but I don't think it is necessary
-
Regarding the code duplication in the popover delegate methods we discussed, I don't see an easy way to avoid it. I made a draft attempt to extract the logic in a separate class but I feel it gets too complicated and does not worth it.
Good catch Antonis! This was happening when the Also, previously, the content collection view was not updating to the device mode selected in the preview screen when the preview was dismissed by swiping down. It only updated when tapping the close button. I've pushed changes to address this as well. Thanks for reviewing and testing! Ready for another look. |
|
Hello @mkevins 👋
Thank you for looking into this. I noticed a minor related issue with the checkmark disappearing after the re-selection of the design. checkmark.movI think this might be some kind of synchronisation issue between animations. Setting the |
|
👋 Howdy! We are cutting the Because of that, this PR will be bumped to |
You are right that there was a synchronization issue. I didn't encounter it at first, but after trying a few times, I observed the same. The animation completion for the checkmark is setting "stale" values for Thanks for reviewing again. Ready for another look. 😄 |
|
Thank you Antonis for reviewing and testing. 😄 |
Fixes: wordpress-mobile/gutenberg-mobile#2978, wordpress-mobile/gutenberg-mobile#2977
Related PR
WordPressKit-iOS: wordpress-mobile/WordPressKit-iOS#330Description
This PR adds mobile and tablet previews and thumbnails to the site design steps, and also adds the same options in the post editor preview.
Testing steps
To start the Home Page Picker screen
Site design thumbnails
Tests
Initial Mode on a Phone
Initial Mode on a Tablet
Thumbnail options availability
Change to Tablet
Change to Desktop
Change to Mobile
Site design previews
Tests
Preview options availability
Mobile preview
Tablet preview
Desktop preview
Mode between steps
Tests
Change mode on the preview screen
Change mode from the design screen
Preview in the editor
Tests
Opening the editor preview
Initial Mode on a Phone
Initial Mode on a Tablet
Change modes in the editor on a phone
Change modes in the editor on a tablet
PR submission checklist:
RELEASE-NOTES.txtif necessary.