-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Editor: Move the starter template options to the editor package. #61665
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -160 B (-0.01%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
I'll try to look but in my test, the same glitch happen on trunk as well. |
I see, you're right! Then the trunk glitch is a result of a recent unrelated PR that must've been merged. I wish I'd recorded trunk, which I tested before this PR. I was on an older version of trunk before I git pulled — so something else must've been merged between yesterday and today to cause this. |
@jasmussen Yes, I think there's a bug in trunk where the "start options" for pages are shown for templates as well and they override the templates modal. I just included a fix in the last commit of this PR. |
I think it's not really clear why we have two modals for "starter options", one for templates and one for pages but unifying the two can be done separately, for now I just fixed the bug. |
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, the glitch appears fixed.
I'd agree this can be improved in so many ways — the modal feels a bit like a bandaid, even the dual modal thing is a side effect of that. But that feels separate.
Flaky tests detected in b471ddf. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9092570629
|
Hopefully these modals can probably be supplanted by an assembler-like experience down the road. |
Related #52632
What?
This PR just moves the StartTemplateOptions to the editor package. In theory this should have enabled the "starter modal" when creating templates from the post editor but for the moment it doesn't because there's a small difference between the "create template" button of the site editor and the post editor.
Aligning these two is harder and I'm not sure which path is the best or if they should be aligned (because they are triggered in two different places so I'm leaving that out of this PR.
Testing Instructions
1- Go to the "templates" page in the site editor
2- Create a custom template
3- you should be provided with a modal to choose from template starters.