-
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
Pattern Assembler: Create custom home page template and use it as the default one #68473
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~333 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~91 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 (~88 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. |
@arthur791004 Since this will be user-visible, I have a grammar suggestion. I think it usually should be |
Okay, I'll change to “Custom Home” |
This PR modifies the release build for editing-toolkit To test your changes on WordPress.com, run To deploy your changes after merging, see the documentation: PCYsg-mMA-p2 |
@arthur791004 Thank you for this work.
Yes, that is definitely weird. I don't think we should ship with this. It's exchanging one problem for another. Is the root cause of that because the template isn't recognized as a "user created template" ? Side note/rant (that isn't word for us, but I'm still commenting). Another example of odd wording using the example of "Full Width" as a template. Reading the docs, we should use some example of how a user might create a template for an actual page, like "Landing page" or Docs |
@autumnfjeld No, it's the current behavior when the user creates a new custom template. That said, there are 2 kinds of templates
So, if we want to keep the page content on a specific page, we need to create a custom template like this PR. However, its description would be weird and cannot be modified. |
@arthur791004 I have tested it in the Calypso live image with a newly created site, and it worked as expected 🙌 On a second try using the same site, the API About the "weird" description of the template in the site editor, it is a hint of a feature that allows renaming a custom template directly from the top of the editor. When creating the template from the API, we pass the param |
I know this magic but I don't prefer to use |
OH. I see. I would call this a bug or bad UX. This makes absolutely no sense.
@arthur791004 Can you look and see if there is already a bug report for this? And if not, file one? Then ping us in Ganon slack so we can follow this. I would like to know if it is a "core" issue, can we/Ganon fix it? |
No, I search by something like “template title description” but I cannot find that. So, I can file a new one on https://github.com/WordPress/gutenberg. However, I think it might be a feature rather than a bug 🤔 |
Yes, I agree it isn't a bug, more like a UX improvement. Thank you for filing on GB repo. |
I suppose we can close this as the new "Blanker Canvas" theme, p1664498573444889/1663881788.778639-slack-C029FM1EH , means this issue is obsolete, ya? |
Close it in favor of using the new blank canvas theme 🙂 |
Proposed Changes
Caveats
Give the template a title that indicates its purpose, e.g. "Full Width".
. Our customers might feel confused that “what's the template?”, “is it not a home page?” 😓Testing Instructions
/setup?siteSlug=<your_site>
Pre-merge Checklist
Related to p1664503702896599/1664449686.617609-slack-CRWCHQGUB