-
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
Themes Showcase: Display the page for the user without any site #82917
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~10 bytes removed 📉 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~4763 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. Async-loaded Components (~2665 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. 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. |
d00aae7
to
266f0f8
Compare
1a4fa20
to
0dc83c1
Compare
0dc83c1
to
1665827
Compare
05906e0
to
3cb04ff
Compare
@arthur791004 could you check if the no results screen throws an JS error? Try something like |
3cb04ff
to
6f4f6a9
Compare
@taipeicoder Nice catch! I've addressed the above issues, thanks 👍 |
@arthur791004: I found one issue with premium flow. Steps:
![]() |
6f4f6a9
to
53b8f88
Compare
@fushar I cannot reproduce the issue. When I clicked |
53b8f88
to
2f2e555
Compare
Okay, that's weird, I checked it again and can't reproduce it, too. Maybe because it's somehow "fixed" on latest trunk 🤔 |
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.
Tested the following:
✅ Logged-in, no site
✅ Logged-in, with sites
✅ Atomic
✅ Jetpack-connected
✅ Logged-out
All work. Nice 👍
Sorry, @arthur791004, after further investigation, it's my Chrome's fault 🤦 I somehow got hit with this bug. After doing the workaround in the forum, it's fixed 🤦 It's all good now!! |
2f2e555
to
dc4560c
Compare
Related to #82839
Proposed Changes
enableNoSites
to allow the Theme Showcase to display the content for the user without any siterenderThemes
function to determine which layout we should render - LoggedOut vs. LoggedInTesting Instructions
Logged-in Theme Showcase for the user without any site
...
on any site, and you will see the options belowLogged-in Theme Showcase for the user with sites
Logged-in Theme Showcase for the user with the specific site
Logged-out Theme Showcase
Pre-merge Checklist