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

feat(atomic): add atomic-result-html component #2014

Merged
merged 8 commits into from
May 30, 2022
Merged

feat(atomic): add atomic-result-html component #2014

merged 8 commits into from
May 30, 2022

Conversation

olamothe
Copy link
Member

Add two components to output HTML (atomic-html, atomic-result-html), especially useful for results.

Use DOMPurify to optionally sanitize the HTML.

Also fixed a bug in Headless with highlight function: When there's no highlights (ie: an empty array is passed to the function), it would return the un-escaped value.

https://coveord.atlassian.net/browse/KIT-1122

@github-actions
Copy link

Thanks for your contribution @olamothe !
When your pull-request is ready to be merged, check the box below to merge it

  • Merge! :shipit:

Copy link
Contributor

@btaillon-coveo btaillon-coveo left a comment

Choose a reason for hiding this comment

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

looks good! although I'm curious what's the use case for this exactly

@olamothe
Copy link
Member Author

looks good! although I'm curious what's the use case for this exactly

People that want to display field properties from their result which contains HTML.

Copy link
Contributor

@npushkarskii npushkarskii left a comment

Choose a reason for hiding this comment

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

Looks just great! 💎 However, I requested a couple of changes 🙏

@olamothe olamothe requested a review from a team as a code owner May 30, 2022 15:54
@github-actions
Copy link

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 199.4 199.4 0
search 290.7 290.7 0
product-listing 212.3 212.3 0
product-recommendation 195.6 195.6 0
recommendation 194.4 194.4 0

@olamothe olamothe enabled auto-merge (squash) May 30, 2022 18:08
@olamothe olamothe disabled auto-merge May 30, 2022 19:28
@olamothe olamothe merged commit ce1d9c2 into master May 30, 2022
@olamothe olamothe deleted the KIT-1122 branch May 30, 2022 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants