Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Improve slash command typeahead text.
Anuja Patila3252e0de707
diff --git a/web/src/composebox_typeahead.js b/web/src/composebox_typeahead.jsindex aea586101a9..7740125a85b 100644--- a/web/src/composebox_typeahead.js+++ b/web/src/composebox_typeahead.js@@ -455,19 +455,19 @@ export const dev_only_slash_commands = [export const slash_commands = [{- text: $t({defaultMessage: "/me is excited (Display action text)"}),+ text: $t({defaultMessage: "/me (Action message)"}),name: "me",aliases: "",placeholder: $t({defaultMessage: "is …"}),},{- text: $t({defaultMessage: "/poll Where should we go to lunch today? (Create a poll)"}),+ text: $t({defaultMessage: "/poll (Create a poll)"}),name: "poll",aliases: "",placeholder: $t({defaultMessage: "Question"}),},{- text: $t({defaultMessage: "/todo (Create a todo list)"}),+ text: $t({defaultMessage: "/todo (Create a collaborative to-do list)"}),name: "todo",aliases: "",},diff --git a/web/tests/composebox_typeahead.test.js b/web/tests/composebox_typeahead.test.jsindex adb613827ca..1b04ebd1e64 100644--- a/web/tests/composebox_typeahead.test.js+++ b/web/tests/composebox_typeahead.test.js@@ -191,7 +191,7 @@ const emoji_list = [...emojis_by_name.values()].map((emoji_dict) => ({const me_slash = {name: "me",aliases: "",- text: "translated: /me is excited (Display action text)",+ text: "translated: /me (Action message)",placeholder: "translated: is …",};@@ -1568,11 +1568,11 @@ test("content_highlighter", ({override_rewire}) => {fake_this = {completing: "slash"};let th_render_slash_command_called = false;const me_slash = {- text: "/me is excited (Display action text)",+ text: "/me (Action message)",};override_rewire(typeahead_helper, "render_typeahead_item", (item) => {assert.deepEqual(item, {- primary: "/me is excited (Display action text)",+ primary: "/me (Action message)",});th_render_slash_command_called = true;});