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.

popovers: Add "busy" status to default emoji status set.

NerdyLucifer891ed242d18d
diff --git a/frontend_tests/puppeteer_tests/user-status.ts b/frontend_tests/puppeteer_tests/user-status.ts
index dd6330a2855..95a4f07a5f5 100644
--- a/frontend_tests/puppeteer_tests/user-status.ts
+++ b/frontend_tests/puppeteer_tests/user-status.ts
@@ -31,7 +31,7 @@ async function open_set_user_status_modal(page: Page): Promise<void> {
async function test_user_status(page: Page): Promise<void> {
await open_set_user_status_modal(page);
// Check by clicking on common statues.
- await page.click(".user-status-value");
+ await page.click(".user-status-value:nth-child(2)");
await page.waitForFunction(
() => (document.querySelector(".user_status") as HTMLInputElement).value === "In a meeting",
);
diff --git a/static/js/user_status_ui.js b/static/js/user_status_ui.js
index d34f165b2f6..b8db2d44872 100644
--- a/static/js/user_status_ui.js
+++ b/static/js/user_status_ui.js
@@ -167,6 +167,10 @@ function user_status_post_render() {
export function initialize() {
default_status_messages_and_emoji_info = [
+ {
+ status_text: $t({defaultMessage: "Busy"}),
+ emoji: emoji.get_emoji_details_by_name("working_on_it"),
+ },
{
status_text: $t({defaultMessage: "In a meeting"}),
emoji: emoji.get_emoji_details_by_name("calendar"),