From 3e1a0c8f0d6cb1f4eebcbf1e3fc32e353f72e27e Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Mon, 16 Jun 2025 12:44:02 -0400 Subject: [PATCH] [MM-62988] Add username prop to multi-avatar component (#31398) * [MM-62988] Add username prop to multi-avatar component * Fix the file preview avatar as well --- .../file_preview_modal_info.test.tsx.snap | 1 + .../file_preview_modal_info.tsx | 1 + .../__snapshots__/thread_footer.test.tsx.snap | 18 ++++++++++------ .../__snapshots__/avatars.test.tsx.snap | 21 ++++++++++++------- .../widgets/users/avatars/avatars.tsx | 1 + 5 files changed, 29 insertions(+), 13 deletions(-) diff --git a/webapp/channels/src/components/file_preview_modal/file_preview_modal_info/__snapshots__/file_preview_modal_info.test.tsx.snap b/webapp/channels/src/components/file_preview_modal/file_preview_modal_info/__snapshots__/file_preview_modal_info.test.tsx.snap index 7dc686a614..11720f7285 100644 --- a/webapp/channels/src/components/file_preview_modal/file_preview_modal_info/__snapshots__/file_preview_modal_info.test.tsx.snap +++ b/webapp/channels/src/components/file_preview_modal/file_preview_modal_info/__snapshots__/file_preview_modal_info.test.tsx.snap @@ -8,6 +8,7 @@ exports[`components/FilePreviewModalInfo should match snapshot 1`] = ` className="file-preview-modal__avatar" size="lg" url="/api/v4/users/user_id/image?_=0" + username="some-user" />
= (props: Props) => { (props.post && Object.keys(props.post).length > 0) && diff --git a/webapp/channels/src/components/threading/channel_threads/thread_footer/__snapshots__/thread_footer.test.tsx.snap b/webapp/channels/src/components/threading/channel_threads/thread_footer/__snapshots__/thread_footer.test.tsx.snap index a92d4fec15..c46e1db193 100644 --- a/webapp/channels/src/components/threading/channel_threads/thread_footer/__snapshots__/thread_footer.test.tsx.snap +++ b/webapp/channels/src/components/threading/channel_threads/thread_footer/__snapshots__/thread_footer.test.tsx.snap @@ -108,9 +108,10 @@ exports[`components/threading/channel_threads/thread_footer should report total } tabIndex={-1} url="/api/v4/users/5/image?_=0" + username="first.last5" > user profile image user profile image user profile image user profile image user profile image user profile image user profile image user profile image user profile image user profile image user profile image user profile image user profile image