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

fix(quantic): issue occurring with result title and quick view in salesforce service console addressed #4078

Merged
merged 42 commits into from
Jun 12, 2024

Conversation

mmitiche
Copy link
Contributor

@mmitiche mmitiche commented Jun 11, 2024

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

sallainCoveo and others added 30 commits February 26, 2024 10:49
* feat(commerce): get clientId from Relay instead of state

* refactor(event-protocol-utils): set getClientId method

* refactor(headless-commerce): use getVisitorId
@developer-experience-bot
Copy link
Contributor

developer-experience-bot bot commented Jun 11, 2024

Pull Request Report

PR Title

❌ Title should follow the conventional commit spec:
<type>(optional scope): <description>

Example: feat(headless): add result-list controller

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 205.9 205.9 0
commerce 293.4 293.4 0
search 373.2 373.2 0
insight 353.4 353.4 0
product-listing 267.9 267.9 0
product-recommendation 171.9 171.9 0
recommendation 218.8 218.8 0
ssr 366.1 366.1 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 0
product-recommendation 0 10 0
product-listing 0 13 0
case-assist 0 6 0
insight 0 27 0
commerce 0 15 0
Detailed logs search : buildInteractiveResult
search : 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

Copy link
Contributor

@SimonMilord SimonMilord left a 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?

Copy link
Collaborator

@erocheleau erocheleau left a 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...

@mmitiche mmitiche added this pull request to the merge queue Jun 12, 2024
Merged via the queue into master with commit 71bc15b Jun 12, 2024
92 checks passed
@mmitiche mmitiche deleted the SFINT-5571 branch June 12, 2024 15:01
fpbrault pushed a commit that referenced this pull request Jun 12, 2024
…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]>
Spuffynism pushed a commit that referenced this pull request Jun 14, 2024
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants