-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fse template import #305
Fse template import #305
Conversation
…atterns-collection into feat/fse-import
…wp/templates-patterns-collection into feat/fse-import # Conflicts: # editor/src/components/import-modal.js # editor/src/index.js # editor/src/plugins/extension.js
…atterns-collection into feat/fse-import
I started the review process here, however I ran into a few issues when trying to replicate the stack. Will follow up wit the review as there are a few things to cover. Until then I have a question about the implementation, wouldn't this also require changes on the Templates Cloud endpoint? |
Thank you, Bogdan. There were only some minor changes on the server, no PR for now. I only needed to change https://github.com/Codeinwp/store-themeisle/blob/master/web/app/plugins/templates-cloud/inc/class-db-table.php#L173 with
|
We decided to do some changes to ensure it is easier to test for the QA and do the review after the changes are finished. |
I modified the code so that no other changes are required on the templates-cloud service, it will use the same existing infrastructure. |
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.
Looking good. NIT: some console logs used for debugging left in the code
@preda-bogdan Tested and the imports work as expected 🚀 Found only some small issues:
|
@irinelenache I've solved the issue with the toggle not counting on refresh, for the second issue we discussed it on our team and we decided it is the expected behavior for now and we can revisit it once we gather some more feedback from our users. Once you have another look, let me know if everything is working as expected. Thank you! |
@preda-bogdan Tested and everything's fine now 🚀 |
🎉 This PR is included in version 1.2.8 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Note
For the images to be properly saved, the website needs to be public, else it will default to a placeholder image when saving the template.
Screenshots
FSE Library
FSE Import
Test instructions
Closes #255.