-
Notifications
You must be signed in to change notification settings - Fork 33
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
fix(quantic): issue occurring with result title and quick view in salesforce service console addressed #4078
Conversation
* feat(commerce): get clientId from Relay instead of state * refactor(event-protocol-utils): set getClientId method * refactor(headless-commerce): use getVisitorId
Pull Request ReportPR Title❌ Title should follow the conventional commit spec: Example: Live demo linksBundle Size
SSR Progress
Detailed logssearch : buildInteractiveResultsearch : buildInteractiveInstantResult search : buildInteractiveRecentResult search : buildInteractiveCitation search : buildGeneratedAnswer recommendation : missing SSR support product-recommendation : missing SSR support product-listing : missing SSR support case-assist : missing SSR support insight : missing SSR support commerce : missing SSR support |
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.
Looks fine to me, did you also test in the quickview?
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.
Not certain this is the fix...
packages/quantic/force-app/main/default/lwc/quanticResultLink/quanticResultLink.js
Show resolved
Hide resolved
packages/quantic/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.js
Show resolved
Hide resolved
packages/quantic/force-app/main/default/lwc/quanticResultLink/quanticResultLink.js
Outdated
Show resolved
Hide resolved
…quanticResultLink.js
packages/quantic/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.js
Outdated
Show resolved
Hide resolved
…view/quanticResultQuickview.js
…esforce service console addressed (#4078) ## [SFINT-5571](https://coveord.atlassian.net/browse/SFINT-5571) ### The issue: An issue was occurring in the Service Console when trying to open a result or its Quickview: https://github.com/coveo/ui-kit/assets/86681870/7d3048d9-61aa-4e1d-a72c-e79fbf9a6e5e This issue is duo to the Proxy object that Salesforce wraps the result object with, this proxy object is causing issues when the Headless library tries to use the result object. ### The solution: Instead of using `Object.create(this.result)` that we used to use to create a copy of the object and that apparently is no longer useful, I'm now creating a new object after distructuring the result object and this is doing the job preventing the errors from occuring: https://github.com/coveo/ui-kit/assets/86681870/c71ea442-e183-4f04-91af-d2bc8cb71f25 [SFINT-5571]: https://coveord.atlassian.net/browse/SFINT-5571?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Sylvie Allain <[email protected]>
…esforce service console addressed (#4078) ## [SFINT-5571](https://coveord.atlassian.net/browse/SFINT-5571) ### The issue: An issue was occurring in the Service Console when trying to open a result or its Quickview: https://github.com/coveo/ui-kit/assets/86681870/7d3048d9-61aa-4e1d-a72c-e79fbf9a6e5e This issue is duo to the Proxy object that Salesforce wraps the result object with, this proxy object is causing issues when the Headless library tries to use the result object. ### The solution: Instead of using `Object.create(this.result)` that we used to use to create a copy of the object and that apparently is no longer useful, I'm now creating a new object after distructuring the result object and this is doing the job preventing the errors from occuring: https://github.com/coveo/ui-kit/assets/86681870/c71ea442-e183-4f04-91af-d2bc8cb71f25 [SFINT-5571]: https://coveord.atlassian.net/browse/SFINT-5571?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Sylvie Allain <[email protected]>
SFINT-5571
The issue:
An issue was occurring in the Service Console when trying to open a result or its Quickview:
Screen.Recording.2024-06-11.at.9.06.46.AM.mov
This issue is duo to the Proxy object that Salesforce wraps the result object with, this proxy object is causing issues when the Headless library tries to use the result object.
The solution:
Instead of using
Object.create(this.result)
that we used to use to create a copy of the object and that apparently is no longer useful, I'm now creating a new object after distructuring the result object and this is doing the job preventing the errors from occuring:Screen.Recording.2024-06-11.at.9.08.34.AM.mov