Skip to content
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

Themes: Fix theme url to include the correct image resized url #15060

Merged
merged 3 commits into from
Aug 5, 2021

Conversation

antonis
Copy link

@antonis antonis commented Jul 23, 2021

This PR fixes the URL that we genetate to display the theme screenshots.

Before: https://i2.wp.com/s2.wp.com/wp-content/themes/pub/blank-canvas/screenshot.png?ssl=1?w=409
After: https://i2.wp.com/s2.wp.com/wp-content/themes/pub/blank-canvas/screenshot.png?ssl=1&w=409

The fix should download smaller images for each of the themes saving bandwidth and mobile data.

This issue was discoverd while trying to clear the screenshot image cache for the blank-canvas theme.

To test:
Navigate to the theme selection screen for a .com site. Notice that the screenshots show up as expected.
.org sites do not have the theme selection as an option.
Navigate to an atomic and jetpack site notice that the themes show up as expected.

Regression Notes

  1. Potential unintended areas of impact
    None

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    N/A

  3. What automated tests I added (or what prevented me from doing so)
    Adding a test for the code change would require changing the architecture of the specific part of the code. The effort needed for this might not be justified by the task at hand.

PR submission checklist:

  • I have completed the Regression Notes.
  • 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.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jul 23, 2021

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@antonis antonis self-assigned this Jul 23, 2021
@antonis antonis added this to the 17.9 milestone Jul 23, 2021
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jul 23, 2021

You can test the changes on this Pull Request by downloading the APKs:

@antonis antonis marked this pull request as ready for review July 23, 2021 06:38
@antonis antonis requested review from chipsnyder and enejb July 23, 2021 06:38
@antonis
Copy link
Author

antonis commented Jul 23, 2021

Matching iOS PR wordpress-mobile/WordPress-iOS#16914

@antonis antonis modified the milestones: 17.9, 18.0 Jul 26, 2021
Copy link
Contributor

@chipsnyder chipsnyder left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks for porting this over @antonis.

I added a release note for @enejb's PR I'm not sure if you'll want to copy that here or not.

@antonis
Copy link
Author

antonis commented Aug 5, 2021

Thank you for the review Chip 🙏

I added a release note for @enejb's PR I'm not sure if you'll want to copy that here or not.

That's a good idea. I've copied the release note with e0d1b56

@antonis antonis enabled auto-merge August 5, 2021 06:25
@antonis antonis merged commit 9c90554 into develop Aug 5, 2021
@antonis antonis deleted the fix/themes-screenshots-url branch August 5, 2021 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants