Skip to content

fix(avatars): Add type to Fetch avatar - #3560

Merged
mergify[bot] merged 7 commits into
box:masterfrom
shahzadaziz:fetch-avatar-with-type
May 30, 2024
Merged

mergify[bot] merged 7 commits into
box:masterfrom
shahzadaziz:fetch-avatar-with-type

Conversation

@shahzadaziz

@shahzadaziz shahzadaziz commented May 23, 2024 •

Copy link
Copy Markdown
Contributor

Description :

The Unified Shared modal component receive callback functions to fetch Avatar URLs.
This fix add contact type to the callback function. The contact type is already available in in the Contact object ( 'user' or 'group') and is returned as part of API response.

The 'type' param and prop is set as optional, and can be null or undefined if it's not present in the contact object.

@shahzadaziz
shahzadaziz requested a review from a team as a code owner May 23, 2024 16:56
@shahzadaziz shahzadaziz changed the title Fetch avatar with type fix(avatars): Add type to Fetch avatar May 23, 2024
@mickr

mickr commented May 28, 2024

Copy link
Copy Markdown
Contributor

Can you please add a description for the PR?

Comment thread src/components/contact-datalist-item/ContactDatalistItem.tsx Outdated

@greg-in-a-box greg-in-a-box left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add some more unit tests, the snapshot that was updated is only covering the test coverage from feature level but not at the component level where they could be used in other places outside of USM

@shahzadaziz

Copy link
Copy Markdown
Contributor Author

@greg-in-a-box added some tests. Can you take a look.

@mergify
mergify Bot merged commit 14a194f into box:master May 30, 2024
@shahzadaziz
shahzadaziz deleted the fetch-avatar-with-type branch May 31, 2024 16:01
kajarosz pushed a commit to kajarosz/box-ui-elements that referenced this pull request Aug 21, 2024
* fix(avatars): Add type for fetchAvatarUrl calls in USM

* fix(avatars): Add type for fetchAvatarUrl calls in USM

* fix(avatars): Add type for fetchAvatarUrl calls in USM

* fix(avatars): Add type for fetchAvatarUrl calls in USM

* fix(avatars): Add type for fetchAvatarUrl calls in USM

* fix(avatars): Add type for fetchAvatarUrl calls in USM

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants