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(avatar): DLT-1916 remove dt-icon #466

Merged
merged 7 commits into from
Aug 23, 2024

Conversation

ninamarina
Copy link
Contributor

@ninamarina ninamarina commented Aug 20, 2024

feat(avatar): DLT-1916 remove dt-icon

🛠️ Type Of Change

These types will increment the version number on release:

  • Fix
  • Feature
  • Performance Improvement
  • Refactor

📖 Jira Ticket

DLT-1916

📖 Description

Removes the use of dt-icon from the Avatar component. Adds instead a slot for the avatar icon and for the overlay icon.
As a consequence of these changes, these recipes need to be updated:

  • Feed item row
  • Contact Info
  • Callbox
  • Contact Row

💡 Context

The want to remove all the uses of dt-icon from Dialtone so that consumers can make use of the tree shakable feature of Dialtone icons.
Instead, all icons should be directly imported in this format: import { DtIconDownload } from '@dialpad/dialtone-icons/vue2';

📝 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 added / updated unit tests.
  • 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
  • I have validated components with a screen reader.
  • I have validated components keyboard navigation.

For all CSS changes:

  • I have used design tokens whenever possible.
  • I have considered how this change will behave on different screen sizes.
  • I have visually validated my change in light and dark mode.
  • I have used gap or flexbox properties for layout instead of margin whenever possible.

🔮 Next Steps

  • Do a beta release with just the Avatar component and test that in the chat bot app everything works as expected and that dialtone-icons is effectively tree shaken
  • Update doc site for all updated components
  • Update vue 2
  • Update product

📷 Screenshots / GIFs

Avatar

image

Contact Info

image

Callbox

image

Contact Row

image

@ninamarina ninamarina force-pushed the update/dt-icon-import branch from 7cf3922 to 44a4c79 Compare August 21, 2024 13:52
@ninamarina ninamarina changed the title remove dt-icon from Avatar feat(avatar): DLT-1916 remove dt-icon Aug 21, 2024
@ninamarina ninamarina force-pushed the update/dt-icon-import branch from 32f08a0 to 904e582 Compare August 22, 2024 19:00
Copy link

✔️ Deploy previews ready!
😎 Dialtone preview: https://dialtone.dialpad.com/deploy-previews/pr-466/
😎 Dialtone-vue 2 preview: https://dialtone.dialpad.com/vue/deploy-previews/pr-466/
😎 Dialtone-vue 3 the preview: https://dialtone.dialpad.com/vue3/deploy-previews/pr-466/

@ninamarina ninamarina marked this pull request as ready for review August 22, 2024 19:11
Copy link
Contributor

@braddialpad braddialpad left a comment

Choose a reason for hiding this comment

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

Looks good, exactly what I was expecting to see!

We should probably not merge this in since it's a breaking change, you might want to merge this into an alternate branch, and then we'll merge that in once the entire icon migration story has been completed.

Did we release this to a beta and test with alex yet?

@ninamarina
Copy link
Contributor Author

ninamarina commented Aug 23, 2024

Looks good, exactly what I was expecting to see!

We should probably not merge this in since it's a breaking change, you might want to merge this into an alternate branch, and then we'll merge that in once the entire icon migration story has been completed.

Did we release this to a beta and test with alex yet?

Not yet, but I will do that today. Should I merge this one to the branch Beta? And then do a Beta release?

@braddialpad
Copy link
Contributor

I wouldn't merge this directly to beta, merge it into a new branch and then you can merge that branch into beta when you want to release

@ninamarina ninamarina changed the base branch from staging to remove/dt-icon August 23, 2024 17:16
@ninamarina ninamarina merged commit 6ef90db into remove/dt-icon Aug 23, 2024
16 checks passed
@ninamarina ninamarina deleted the update/dt-icon-import branch August 23, 2024 17:44
juliodialpad pushed a commit that referenced this pull request Aug 23, 2024
# [9.70.0-beta.1](dialtone/v9.69.1...dialtone/v9.70.0-beta.1) (2024-08-23)

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
juliodialpad pushed a commit that referenced this pull request Aug 23, 2024
# [3.150.0-beta.1](dialtone-vue3/v3.149.1...dialtone-vue3/v3.150.0-beta.1) (2024-08-23)

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
juliodialpad pushed a commit that referenced this pull request Aug 28, 2024
# [9.71.0-beta.1](dialtone/v9.70.1...dialtone/v9.71.0-beta.1) (2024-08-28)

### Bug Fixes

* NO-JIRA merge staging into beta ([#478](#478)) ([09f1165](09f1165))

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
juliodialpad pushed a commit that referenced this pull request Aug 28, 2024
# [3.151.0-beta.1](dialtone-vue3/v3.150.0...dialtone-vue3/v3.151.0-beta.1) (2024-08-28)

### Bug Fixes

* NO-JIRA merge staging into beta ([#478](#478)) ([09f1165](09f1165))

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
ninamarina pushed a commit that referenced this pull request Sep 2, 2024
# [9.70.0-beta.1](dialtone/v9.69.1...dialtone/v9.70.0-beta.1) (2024-08-23)

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
ninamarina pushed a commit that referenced this pull request Sep 2, 2024
# [3.150.0-beta.1](dialtone-vue3/v3.149.1...dialtone-vue3/v3.150.0-beta.1) (2024-08-23)

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
ninamarina pushed a commit that referenced this pull request Sep 2, 2024
# [9.71.0-beta.1](dialtone/v9.70.1...dialtone/v9.71.0-beta.1) (2024-08-28)

### Bug Fixes

* NO-JIRA merge staging into beta ([#478](#478)) ([09f1165](09f1165))

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
ninamarina pushed a commit that referenced this pull request Sep 2, 2024
# [3.151.0-beta.1](dialtone-vue3/v3.150.0...dialtone-vue3/v3.151.0-beta.1) (2024-08-28)

### Bug Fixes

* NO-JIRA merge staging into beta ([#478](#478)) ([09f1165](09f1165))

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
juliodialpad pushed a commit that referenced this pull request Sep 5, 2024
# [9.73.0-beta.1](dialtone/v9.72.1...dialtone/v9.73.0-beta.1) (2024-09-05)

### Bug Fixes

* NO-JIRA merge staging into beta ([#478](#478)) ([09f1165](09f1165))
* **Rich Text Editor:** DLT-2017 emojis positioning ([#486](#486)) ([b857386](b857386))

### Code Refactoring

* **Badge, Emoji Tabset, Empty State:** remove DtIcon ([#481](#481)) ([0fa1280](0fa1280))

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
* **Keyboard Shortcut To Unread Pill:** DLT-1916 remove dt-icon ([#482](#482)) ([277ae13](277ae13))
juliodialpad pushed a commit that referenced this pull request Sep 5, 2024
# [3.152.0-beta.1](dialtone-vue3/v3.151.0...dialtone-vue3/v3.152.0-beta.1) (2024-09-05)

### Bug Fixes

* NO-JIRA merge staging into beta ([#478](#478)) ([09f1165](09f1165))
* **Rich Text Editor:** DLT-2017 emojis positioning ([#486](#486)) ([b857386](b857386))

### Code Refactoring

* **Badge, Emoji Tabset, Empty State:** remove DtIcon ([#481](#481)) ([0fa1280](0fa1280))

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
* **Keyboard Shortcut To Unread Pill:** DLT-1916 remove dt-icon ([#482](#482)) ([277ae13](277ae13))
juliodialpad pushed a commit that referenced this pull request Sep 23, 2024
# [9.77.0-beta.1](dialtone/v9.76.0...dialtone/v9.77.0-beta.1) (2024-09-23)

### Bug Fixes

* NO-JIRA merge staging into beta ([#478](#478)) ([09f1165](09f1165))
* **Tokens:** DLT-2053 android tokens color value ([#504](#504)) ([368c9db](368c9db))

### Code Refactoring

* **Badge, Emoji Tabset, Empty State:** remove DtIcon ([#481](#481)) ([0fa1280](0fa1280))

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
* **Avatar:** DLT-1916 remove dt-icon from Avatar vue 2 ([#474](#474)) ([e8600c3](e8600c3))
* **Feed Item Pill:** DLT-1916 remove dt-icon from Feed Item Pill ([#489](#489)) ([bde73c8](bde73c8))
* **Keyboard Shortcut To Unread Pill:** DLT-1916 remove dt-icon ([#482](#482)) ([277ae13](277ae13))
* **Message Input:** DLT-1916 remove dt-icon from message input ([#490](#490)) ([3215116](3215116))
juliodialpad pushed a commit that referenced this pull request Sep 23, 2024
# [3.155.0-beta.1](dialtone-vue3/v3.154.0...dialtone-vue3/v3.155.0-beta.1) (2024-09-23)

### Bug Fixes

* NO-JIRA merge staging into beta ([#478](#478)) ([09f1165](09f1165))

### Code Refactoring

* **Badge, Emoji Tabset, Empty State:** remove DtIcon ([#481](#481)) ([0fa1280](0fa1280))

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
* **Avatar:** DLT-1916 remove dt-icon from Avatar vue 2 ([#474](#474)) ([e8600c3](e8600c3))
* **Feed Item Pill:** DLT-1916 remove dt-icon from Feed Item Pill ([#489](#489)) ([bde73c8](bde73c8))
* **Keyboard Shortcut To Unread Pill:** DLT-1916 remove dt-icon ([#482](#482)) ([277ae13](277ae13))
* **Message Input:** DLT-1916 remove dt-icon from message input ([#490](#490)) ([3215116](3215116))
juliodialpad pushed a commit that referenced this pull request Oct 1, 2024
# [9.77.0](dialtone/v9.76.3...dialtone/v9.77.0) (2024-10-01)

### Code Refactoring

* **Badge, Emoji Tabset, Empty State:** remove DtIcon ([#481](#481)) ([0fa1280](0fa1280))

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
* **Avatar:** DLT-1916 remove dt-icon from Avatar vue 2 ([#474](#474)) ([e8600c3](e8600c3))
* **Feed Item Pill:** DLT-1916 remove dt-icon from Feed Item Pill ([#489](#489)) ([bde73c8](bde73c8))
* **Keyboard Shortcut To Unread Pill:** DLT-1916 remove dt-icon ([#482](#482)) ([277ae13](277ae13))
* **Message Input:** DLT-1916 remove dt-icon from message input ([#490](#490)) ([3215116](3215116))
juliodialpad pushed a commit that referenced this pull request Oct 1, 2024
# [3.155.0](dialtone-vue3/v3.154.2...dialtone-vue3/v3.155.0) (2024-10-01)

### Code Refactoring

* **Badge, Emoji Tabset, Empty State:** remove DtIcon ([#481](#481)) ([0fa1280](0fa1280))

### Features

* **Avatar:** DLT-1916 remove dt-icon ([#466](#466)) ([6ef90db](6ef90db))
* **Avatar:** DLT-1916 remove dt-icon from Avatar vue 2 ([#474](#474)) ([e8600c3](e8600c3))
* **Feed Item Pill:** DLT-1916 remove dt-icon from Feed Item Pill ([#489](#489)) ([bde73c8](bde73c8))
* **Keyboard Shortcut To Unread Pill:** DLT-1916 remove dt-icon ([#482](#482)) ([277ae13](277ae13))
* **Message Input:** DLT-1916 remove dt-icon from message input ([#490](#490)) ([3215116](3215116))
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