Skip to content
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

MWPW-154059 - Milo templates library #2855

Merged
merged 4 commits into from
Sep 19, 2024
Merged

Conversation

rgclayton
Copy link
Contributor

@rgclayton rgclayton commented Sep 9, 2024

  • Allows template-metadata block to be pasted as metadata block in template
  • Fixes initial listing order
  • Adds search ability to templates

Resolves: MWPW-154059

Test URLs:

BACOM Test URLs:

Testing notes:
With the updated features, the template named "demo" has search tags added (Rc-special demo test) via of a library-metadata block. This block allows authors to add custom search tags to the template. Searching with any of those tags will pull up the "Demo" template. However, when the template is copied from the library and pasted to a Word doc library-metadata block should not be part of the copied blocks.

Testing this using the main branch will copy the library-metadata block to the Word doc.

To include a metadata block in the template, to be pasted into the Word doc, the template must include a template-metadata block with all the needed metadata fields. Once, pasted in the page that block converted to metadata and displays as a metadata block.

If a library-metadata block with the key value pair (searchTags and search words) is added to a template, that template will be searchable by the name of the template along with the search words added to library-metadata.

Block searching should continue to work as it's always worked.


image

* Allows template-metadata block to output metadata block in template
* Fixes inital listing order
* Adds search ability to templates

Resolves: MWPW-154059
Copy link
Contributor

aem-code-sync bot commented Sep 9, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.24%. Comparing base (2abe70f) to head (4360a42).
Report is 87 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2855      +/-   ##
==========================================
+ Coverage   95.91%   96.24%   +0.33%     
==========================================
  Files         173      236      +63     
  Lines       45831    54233    +8402     
==========================================
+ Hits        43958    52196    +8238     
- Misses       1873     2037     +164     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rgclayton
Copy link
Contributor Author

Will look into unit tests.

Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

@aem-code-sync aem-code-sync bot temporarily deployed to template-library-updates September 11, 2024 22:17 Inactive
libs/blocks/library-config/library-config.js Outdated Show resolved Hide resolved
@@ -32,27 +32,47 @@ async function loadPersonalization(content, list) {
personalization(content, list);
}

function addSearch(content, list) {
function addSearch(content, list, type) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above. I think it would be good to pass an object.

Suggested change
function addSearch(content, list, type) {
function addSearch({ content, list, type }) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@ryanmparrish ryanmparrish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I tested and everything works as expected.

Copy link
Contributor

Reminder to set the Ready for Stage label - to queue this to get merged to stage & production.

@SilviuLCF SilviuLCF self-assigned this Sep 19, 2024
@SilviuLCF SilviuLCF self-requested a review September 19, 2024 06:29
Copy link

@SilviuLCF SilviuLCF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified , ready for STAGE
Testing details https://jira.corp.adobe.com/browse/MWPW-154059

@milo-pr-merge milo-pr-merge bot merged commit 549c71f into stage Sep 19, 2024
18 checks passed
@milo-pr-merge milo-pr-merge bot deleted the template-library-updates branch September 19, 2024 08:14
@milo-pr-merge milo-pr-merge bot mentioned this pull request Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants