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
Starter Page Templates: Add all SPT themes home templates to the template selector #37407
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
+1 to @shaunandrews revisions. Let's definitely avoid the word "theme" here. |
@shaunandrews Once we get this change deployed, I think we need more thinking on what the next revision looks like. Grouping templates by type/goal for example. Think Apple stacks. |
@shaunandrews @apeatling I'm so sorry, I forgot to mention that this PR purpose is mostly to see if the backend changes make sense.
Ah, I totally didn't notice this! |
'_locale' => $this->get_iso_639_locale(), | ||
'theme' => get_stylesheet(), | ||
], | ||
[ '_locale' => $this->get_iso_639_locale() ], |
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.
Nice
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.
Nice work @Copons
Note: I've put this on hold pending backend work. |
@Copons What backend work is needed? |
@apeatling the diff works as it is, so worst case scenario we can just ship, but the performances are not there yet. |
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.
Nice work @Copons!
(non-blocking) Do you think it would make sense to to make the preview position fixed for larger screens too, so that we don't have to scroll back up after selecting the template at the bottom? It seems like this behavior is already in place for widths smaller than 1440px, and I'm not sure why it doesn't apply in general.
12b6728
to
51e32ee
Compare
@vindl That seems a bit complicated to fix, I guess we could tackle it in a follow-up, or actually just wait for the new design to be finalized. 🙂 |
Tested this, and I think this is fine to ship when the backend patch is ready, but please follow up on the fixed position main preview window once it's merged. Nice work @Copons! |
In Core, we recently discussed avoiding the term "Template" in favor of "Layout." I don't consider it a blocker for this, but if we could change the term we could see how people perceive it in our next testing session. |
Btw @shaunandrews @Copons I have this PR: #37624 which changes "Template" to "Layout" for cases outside of this PR. |
51e32ee
to
ed69b6a
Compare
🎉👏 |
Changes proposed in this Pull Request
Testing instructions
npx lerna run build --scope='@automattic/full-site-editing'
on a site with SPT enabled (a local FSE test environment is fine, but it might lack some blocks required by the theme).Fixes #37282