-
Notifications
You must be signed in to change notification settings - Fork 1
Feat: Add support for search highlighting #86
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
Conversation
mzanoni
left a comment
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.
Really nice work! 💪
We are generating the release messages based on PR titles, this PR title is not very user friendly. Could we rename it to the features it actually brings instead?
| includeOffsets: false | ||
| }; | ||
|
|
||
| public enable(enabled: boolean): this { |
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.
Would like the public method to be called enabled(true) or enabled(false) as this accepts a bools, it reads better
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.
Check!
| highlightable: this.highlightable, | ||
| limit: this.limit, | ||
| shape: this.shape | ||
| } as ContentSearchSettingsHighlightSettings; |
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.
Would do we need to cast here?
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.
No i removed it! 😊
| highlightable: this.highlightable, | ||
| limit: this.limit, | ||
| shape: this.shape | ||
| } as ProductSearchSettingsHighlightSettings; |
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.
Would do we need to cast here?
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.
No i removed it! 😊
| @@ -0,0 +1,50 @@ | |||
| import { HighlightSettings2ProductProductHighlightPropsHighlightSettings2Limits, HighlightSettings2ProductProductHighlightPropsHighlightSettings2ResponseShape, ProductHighlightProps, ProductSearchSettingsHighlightSettings } from '../../models/data-contracts'; | |||
|
|
|||
| export class ProductHighlightingBuilder { | |||
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.
Could we have had a base builder to unify some of the common code? Like the enabled and shape could have been part of a base builder
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.
The shape and limit are its own unique type for either product or content. I could not find a good way to consolidate them. 😶
mzanoni
left a comment
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.
Chose the wrong mode
https://trello.com/c/hfWTsKst/8562-js-sdk-update-with-new-features-from-release-11910