discourse/plugins/chat/test/javascripts/components
Martin Brennan c78e16875b
UX: Show avatar when only 1 other user in chat group DM (#40269)
For chat group DMs, currently we always show the number of
other users in the group DM, even if there is only 1 other user.
This looks a little weird, and for our own use case of an AI
helper bot on new sites, it's a little unfreindly to see a
(1) instead of the avatar of the bot.

This commit modifies the ChannelIcon logic to show the avatar
of the other user in a group DM if there is only 1 other user.
If there is > 1 other user, we still show the count/emoji as
appropriate.

**Before**

<img width="241" height="44" alt="image"
src="https://github.com/user-attachments/assets/727f1c85-901f-4d43-9a00-f7e16b7b4737"
/>

**After**

<img width="252" height="43" alt="image"
src="https://github.com/user-attachments/assets/999e5dbd-d2ee-4345-8ca1-c3cd50f5e606"
/>
2026-05-26 09:37:47 +10:00
..
channel-icon-test.gjs UX: Show avatar when only 1 other user in chat group DM (#40269) 2026-05-26 09:37:47 +10:00
channel-name-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
channel-title-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-channel-card-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-channel-leave-btn-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-channel-metadata-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-channel-preview-card-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-channel-row-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-channel-status-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-channel-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-composer-dropdown-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-composer-message-details-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-composer-placeholder-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-composer-upload-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-composer-uploads-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-emoji-avatar-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-header-icon-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-message-avatar-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-message-collapser-test.gjs DEV: Remove obsolete chat code and tests (#39451) 2026-04-22 21:33:17 +02:00
chat-message-info-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-message-left-gutter-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-message-reaction-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-message-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-message-text-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-modal-archive-channel-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-modal-delete-channel-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-modal-move-message-to-channel-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-notices-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-replying-indicator-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-retention-reminder-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-retention-reminder-text-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-sidebar-indicators-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-thread-header-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-thread-heading-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-thread-list-item-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-thread-participants-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-upload-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-user-avatar-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-user-card-button-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-user-display-name-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-user-info-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
collapser-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
rich-editor-extension-test.gjs FIX: Preserve all date attributes in rich text editor (#36781) 2025-12-24 14:01:52 +01:00
thread-settings-test.gjs DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00