Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose: Show bot icon after bot name in recipient picker.

Vishesh Singh7e1962dea58e
diff --git a/web/src/typeahead_helper.ts b/web/src/typeahead_helper.ts
index 309a6a41c21..ef3fa6647a3 100644
--- a/web/src/typeahead_helper.ts
+++ b/web/src/typeahead_helper.ts
@@ -145,6 +145,7 @@ export function render_person(person: UserPillData | UserOrMentionPillData): str
img_src: avatar_url,
user_circle_class,
is_person: true,
+ is_bot: person.user.is_bot,
status_emoji_info,
should_add_guest_user_indicator: people.should_add_guest_user_indicator(
person.user.user_id,
diff --git a/web/styles/typeahead.css b/web/styles/typeahead.css
index 25259e06e0b..c402d993524 100644
--- a/web/styles/typeahead.css
+++ b/web/styles/typeahead.css
@@ -179,3 +179,9 @@
margin-left: 14px;
}
}
+
+.typeahead-text-container {
+ i.zulip-icon-bot {
+ align-self: center;
+ }
+}
diff --git a/web/templates/typeahead_list_item.hbs b/web/templates/typeahead_list_item.hbs
index 8db02662036..80436af44b6 100644
--- a/web/templates/typeahead_list_item.hbs
+++ b/web/templates/typeahead_list_item.hbs
@@ -25,6 +25,9 @@
{{~ primary ~}}
{{~/if~}}
</strong>
+ {{~#if is_bot}}
+ <i class="zulip-icon zulip-icon-bot" aria-label="{{t 'Bot' }}"></i>
+ {{/if}}
{{~#if has_pronouns}}
<span class="pronouns">{{pronouns}}{{#if (or has_secondary_html has_secondary)}},{{/if}}</span>
{{~/if}}