Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Add a placeholder "is …" for the `/me` slash command.
N-Shar-maad26247247cb
diff --git a/tools/lib/capitalization.py b/tools/lib/capitalization.pyindex 8da2bfc13e0..f1bdc977000 100644--- a/tools/lib/capitalization.py+++ b/tools/lib/capitalization.py@@ -74,6 +74,7 @@ IGNORED_PHRASES = [r"user@example\.com",r"acme",# Fragments of larger strings+ r"is …",r"your subscriptions on your Streams page",r"Add global time<br />Everyone sees global times in their own time zone\.",r"user",diff --git a/web/src/composebox_typeahead.js b/web/src/composebox_typeahead.jsindex 30e18f43554..9b8495b4814 100644--- a/web/src/composebox_typeahead.js+++ b/web/src/composebox_typeahead.js@@ -445,6 +445,7 @@ export const slash_commands = [text: $t({defaultMessage: "/me is excited (Display action text)"}),name: "me",aliases: "",+ placeholder: $t({defaultMessage: "is …"}),},{text: $t({defaultMessage: "/poll Where should we go to lunch today? (Create a poll)"}),diff --git a/web/tests/composebox_typeahead.test.js b/web/tests/composebox_typeahead.test.jsindex 9831c5df064..503ee900214 100644--- a/web/tests/composebox_typeahead.test.js+++ b/web/tests/composebox_typeahead.test.js@@ -182,6 +182,7 @@ const me_slash = {name: "me",aliases: "",text: "translated: /me is excited (Display action text)",+ placeholder: "translated: is …",};const my_slash = {@@ -576,7 +577,7 @@ test("content_typeahead_selected", ({override}) => {fake_this.query = "/m";fake_this.completing = "slash";actual_value = ct.content_typeahead_selected.call(fake_this, me_slash);- expected_value = "/me ";+ expected_value = "/me translated: is …";assert.equal(actual_value, expected_value);fake_this.query = "/da";