-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(headless): added the analytics section in the search requests ma…
…de in the insight use case (#3726) ## [SFINT-5431](https://coveord.atlassian.net/browse/SFINT-5431) In this PR: - Added the analytics section to the search request executed in the insight use case with the `ExcuteSearch` action. - Added the analytics section to the search request executed in the insight use case with the `Legacy ExcuteSearch` action. - Fixed the `fromLogToLegacyBuilder` utility function, previously it was building only events that have the value `caseAssist` as the action cause. Now, with the implementation proposed in this PR, any action cause could be set properly. - Added new unit tests that check that the search query for the insight use case is properly built with the analytics section. ## Demo ### With the legacy analytics: https://github.com/coveo/ui-kit/assets/86681870/f4589d02-7ab0-43b3-8017-47ccafeb511e ### With the next analytics: https://github.com/coveo/ui-kit/assets/86681870/281c973c-3f0a-4266-9823-4c14c3461725 [SFINT-5431]: https://coveord.atlassian.net/browse/SFINT-5431?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Sylvie Allain <[email protected]> Co-authored-by: Frederic Beaudoin <[email protected]>
- Loading branch information
1 parent
54a62e7
commit 55fc157
Showing
27 changed files
with
710 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 9 additions & 6 deletions
15
packages/headless/src/features/did-you-mean/did-you-mean-insight-analytics-actions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.