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(emoji-picker): DLT-1781 allow hiding of search and setting searchQuery via prop #345

Merged
merged 9 commits into from
May 31, 2024

Conversation

braddialpad
Copy link
Contributor

@braddialpad braddialpad commented May 31, 2024

feat(emoji-picker): DLT-1781 allow hiding of search and setting searchQuery via prop

Obligatory GIF (super important!)

Obligatory GIF

๐Ÿ› ๏ธ Type Of Change

  • Feature

๐Ÿ“– Jira Ticket

https://dialpad.atlassian.net/browse/DLT-1781

๐Ÿ“– Description

  • New prop searchQuery: allows setting of the search query via prop
  • New prop showSearch: shows or hides the search input

๐Ÿ’ก Context

Needed for message input emoji picker implementation since it needs to integrate with gif / sticker pickers search

๐Ÿ“ Checklist

For all PRs:

  • I have ensured no private Dialpad links or info are in the code or pull request description (Dialtone is a public repo!).
  • I have reviewed my changes.
  • I have added all relevant documentation.
  • I have considered the performance impact of my change.

For all Vue changes:

  • I have made my changes in Vue 2 and Vue 3. Note: you may sync your changes from Vue 2 to Vue 3 (or vice versa) using the ./scripts/dialtone-vue-sync.sh script. Read docs here: Dialtone Vue Sync Script

๐Ÿ”ฎ Next Steps

attempt to put in message input.

@braddialpad braddialpad added the no-visual-test Add this tag when the PR does not need visual testing label May 31, 2024
@braddialpad braddialpad self-assigned this May 31, 2024
Copy link
Collaborator

@juliodialpad juliodialpad left a comment

Choose a reason for hiding this comment

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

Screenshot 2024-05-31 at 2 10 10โ€ฏp m

There is a showPopover property on storybook that doesn't belong to any category, should it be there?

Maybe not to do with this PR but there are noticeable performance issues with the emoji picker on first load or when changing the skinTone, searchQuery or showSearch props, cannot interact with storybook for a few seconds after changing a prop.

The changes and performance issues apply for both Vue 2 and Vue 3 versions.

Co-authored-by: Julio Ortega <julio.ortega@dialpad.com>
@braddialpad
Copy link
Contributor Author

Screenshot 2024-05-31 at 2 10 10โ€ฏp m

There is a showPopover property on storybook that doesn't belong to any category, should it be there?

Maybe not to do with this PR but there are noticeable performance issues with the emoji picker on first load or when changing the skinTone, searchQuery or showSearch props, cannot interact with storybook for a few seconds after changing a prop.

The changes and performance issues apply for both Vue 2 and Vue 3 versions.

Think showPopover is another one of those Percy specific props, nothing to do with this pr, but I will hide it.

Performance issues have been like that for a long time, however this seems to only happen in storybook, not when you put it in an actual app.

@braddialpad
Copy link
Contributor Author

Requested changes made.

Copy link
Collaborator

@juliodialpad juliodialpad left a comment

Choose a reason for hiding this comment

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

Cool! works better now, just apply the missing change

Co-authored-by: Julio Ortega <julio.ortega@dialpad.com>
Copy link

โœ”๏ธ Deploy previews ready!
๐Ÿ˜Ž Dialtone preview: https://dialtone.dialpad.com/deploy-previews/pr-345/
๐Ÿ˜Ž Dialtone-vue 2 preview: https://dialtone.dialpad.com/vue/deploy-previews/pr-345/
๐Ÿ˜Ž Dialtone-vue 3 the preview: https://dialtone.dialpad.com/vue3/deploy-previews/pr-345/

@braddialpad braddialpad merged commit d5e5373 into staging May 31, 2024
10 checks passed
@braddialpad braddialpad deleted the feat/emoji-picker-search branch May 31, 2024 22:46
juliodialpad pushed a commit that referenced this pull request May 31, 2024
# [9.42.0](dialtone/v9.41.0...dialtone/v9.42.0) (2024-05-31)

### Bug Fixes

* NO-JIRA remove double classes from dialtone output ([#340](#340)) ([0fcea93](0fcea93))
* **Tooltip:** NO-JIRA do not display when empty, general cleanup ([#344](#344)) ([a83d619](a83d619))

### Features

* **Button:** DLT-1779 add link-inverted prop ([#343](#343)) ([6819394](6819394))
* **Emoji Picker:** DLT-1781 allow hiding of search and setting searchQuery via prop ([#345](#345)) ([d5e5373](d5e5373))
juliodialpad pushed a commit that referenced this pull request May 31, 2024
# [8.34.0](dialtone-css/v8.33.0...dialtone-css/v8.34.0) (2024-05-31)

### Bug Fixes

* NO-JIRA remove double classes from dialtone output ([#340](#340)) ([0fcea93](0fcea93))

### Features

* **Emoji Picker:** DLT-1781 allow hiding of search and setting searchQuery via prop ([#345](#345)) ([d5e5373](d5e5373))
juliodialpad pushed a commit that referenced this pull request May 31, 2024
# [2.136.0](dialtone-vue2/v2.135.0...dialtone-vue2/v2.136.0) (2024-05-31)

### Bug Fixes

* **Tooltip:** NO-JIRA do not display when empty, general cleanup ([#344](#344)) ([a83d619](a83d619))

### Features

* **Button:** DLT-1779 add link-inverted prop ([#343](#343)) ([6819394](6819394))
* **Emoji Picker:** DLT-1781 allow hiding of search and setting searchQuery via prop ([#345](#345)) ([d5e5373](d5e5373))
juliodialpad pushed a commit that referenced this pull request May 31, 2024
# [3.129.0](dialtone-vue3/v3.128.0...dialtone-vue3/v3.129.0) (2024-05-31)

### Bug Fixes

* **Tooltip:** NO-JIRA do not display when empty, general cleanup ([#344](#344)) ([a83d619](a83d619))

### Features

* **Button:** DLT-1779 add link-inverted prop ([#343](#343)) ([6819394](6819394))
* **Emoji Picker:** DLT-1781 allow hiding of search and setting searchQuery via prop ([#345](#345)) ([d5e5373](d5e5373))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-visual-test Add this tag when the PR does not need visual testing
Projects
None yet
2 participants