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: add click event and queryFeature in queriesPreview #450

Conversation

lauramargar
Copy link
Contributor

@lauramargar lauramargar commented Feb 15, 2024

Pull request template

Sends the correct origin in the query event and in the search request. That means sending in the QueryPreviewList the queryFeature 'customer' .

Also, we have to send the click and the display events. Take a look to the DisplayClickProvider component.

Motivation and context

  • Dependencies. If any, specify:
  • Open issue. If applicable, link: EMP-3537

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that causes existing functionality to not work as expected)
  • Change requires a documentation update

What is the destination branch of this PR?

  • Main
  • Other. Specify:

How has this been tested?

  1. Review the search request of the queries preview and the origin field should appear.
  2. Go to Network in the devTools and when you click on a queryPreview result, click and displayClick should be sent.

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review on my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

@lauramargar lauramargar requested a review from a team as a code owner February 15, 2024 11:40
Copy link

Check PR 450 preview 👀

https://x.test.empathy.co/preview/450/index.html

@@ -3,6 +3,8 @@
v-if="queriesPreviewInfo"
:debounceTimeMs="250"
:queriesPreviewInfo="queriesPreviewInfo"
:persistInCache="true"
:queryFeature="'customer'"
Copy link
Contributor

Choose a reason for hiding this comment

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

The component has a prop for the query feature and the default value is already 'customer'

Suggested change
:queryFeature="'customer'"
:queryFeature="queryFeature"

Copy link

Check PR 450 preview 👀

https://x.test.empathy.co/preview/450/index.html

@CachedaCodes CachedaCodes merged commit 98a7132 into main Feb 19, 2024
4 checks passed
@CachedaCodes CachedaCodes deleted the feature/EMP-3537-track-display-and-click-events-and-send-the-correct-origin branch February 19, 2024 07:36
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.

2 participants