-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Theme Details: Show the theme image instead of demo site for a8c themes #99675
Theme Details: Show the theme image instead of demo site for a8c themes #99675
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~13 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I haven't tested it because I don't have access to the site, but it shouldn't cause any problems.
I haven't found any regressions either so it should be safe to deploy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels like isWpcomOnlyTheme
would be clearer if renamed. Intuitively a theme starting with a8c/
feels very much like it is going to be a wpcom-only theme.
We can't use |
The theme is being used on WordPress.com though - the site discussed in slack is a wordpress.com site and is using it. The theme probably will never be used anywhere else in the world but wpcom. I'd name it something like |
Changed here: |
Proposed Changes
We add a check so that themes with the a8c prefix are not counted as WPCom themes. This change avoids rendering the demo site for a8c sites (which don't have demo sites) and loading the preview image instead.
You can find the full context here: p1739377020906119-slack-C04DZ8M0GHW
Why are these changes being made?
Testing Instructions
preview-working.mp4
Pre-merge Checklist