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
CYS: Override header and footer template parts #45196
CYS: Override header and footer template parts #45196
Conversation
Test Results SummaryCommit SHA: e4d6a43
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
…-cys-override-the-header-template-part-when-saving-in-the-assembler
…-in-the-assembler' of github.com:woocommerce/woocommerce into 44889-cys-override-the-header-template-part-when-saving-in-the-assembler
Hi @albarin, @dinhtungdu, @nefeline, Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
@gigitux I've noticed a couple of things when selecting a footer and not clicking Save:
Check this video: https://github.com/woocommerce/woocommerce/assets/186112/ae617fc3-a38d-4f18-a98c-4596d4fb7021 |
Good catch! I didn't notice this. I don't think that it is a regression of this PR. I tried on trunk, and I'm able to reproduce it: Screen.Capture.Feb.29.at.10-39-10.mov |
Regarding the issue above, I'm wondering what the point of the |
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.
Awesome job! 👌
Thanks for the review, @albarin! I'm going to merge this PR!
As I wrote earlier, both issues are not caused by this PR. Regarding point 2, I created a dedicated issue: #45215 About point 1, I agree that it is a little bit weired this behavior. @verofasulo, what do you think? Should we revisit the beavhior? |
@gigitux, I agree. I believe it's because we're still dragging a pending decision on Woo Express, where we thought of removing the "Save" button completely. Thanks for flagging it 🙏 Let's revisit the behavior and update the pattern/layout/colors/fonts only if the user clicks on "Save" as per your suggestion. Thank you 🙇♀️ |
* CYS: Override the header and footer * fix unit test * fix lint error * Add changefile(s) from automation for the following project(s): woocommerce * fix opacity --------- Co-authored-by: github-actions <github-actions@github.com>
Submission Review Guidelines:
Changes proposed in this Pull Request:
As described in #44889, the Assembler previously focused on updating only the homepage template, where the header and footer patterns were incorporated as blocks within the homepage.
This pull request transforms the header and footer sections into template parts. This adjustment ensures that any changes applied via the assembler to the header and footer will propagate to other pages, ensuring consistent updates across the entire site.
Closes #44889.
How to test the changes in this Pull Request:
Caution
This PR impacts CYS on Woo Express.
Warning
This PR changes the current logic about how the assembler works. It is crucial to conduct a careful review, taking into account possible edge cases or unconventional scenarios.
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
customize-store
/wp-admin/admin.php?page=wc-admin&path=/customize-store
.JN Installation
/wp-admin/tools.php?page=woocommerce-admin-test-helper
and enablecustomize-store
feature flag.Changelog entry
Significance
Type
Message
CYS: Override header and footer template parts.
Comment