Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
search: Update description string for mentions.
Evy Kassirer404ad6c518ca
diff --git a/web/src/search_suggestion.ts b/web/src/search_suggestion.tsindex 1ab762fdb3d..41ea1c35f71 100644--- a/web/src/search_suggestion.ts+++ b/web/src/search_suggestion.ts@@ -703,7 +703,7 @@ function get_is_filter_suggestions(last: NarrowTerm, terms: NarrowTerm[]): Sugge},{search_string: "is:mentioned",- description_html: "@-mentions",+ description_html: "messages that mention you",is_people: false,incompatible_patterns: [{operator: "is", operand: "mentioned"}],},diff --git a/web/templates/search_description.hbs b/web/templates/search_description.hbsindex 87f4b88d2b5..8b22e70b622 100644--- a/web/templates/search_description.hbs+++ b/web/templates/search_description.hbs@@ -36,7 +36,7 @@{{else if (eq this.type "is_operator")}}{{#if (eq this.operand "mentioned")}}{{~!-- squash whitespace --~}}- {{this.verb}}@-mentions+ {{this.verb}}messages that mention you{{~!-- squash whitespace --~}}{{else if (or (eq this.operand "starred") (eq this.operand "alerted") (eq this.operand "unread"))}}{{~!-- squash whitespace --~}}diff --git a/web/tests/filter.test.cjs b/web/tests/filter.test.cjsindex c8aa038aa1b..b7cc387f3ab 100644--- a/web/tests/filter.test.cjs+++ b/web/tests/filter.test.cjs@@ -1717,7 +1717,7 @@ test("describe", ({mock_template, override}) => {assert.equal(Filter.search_description_as_html(narrow, false), string);narrow = [{operator: "is", operand: "mentioned"}];- string = "@-mentions";+ string = "messages that mention you";assert.equal(Filter.search_description_as_html(narrow, false), string);narrow = [{operator: "is", operand: "alerted"}];diff --git a/web/tests/search_suggestion.test.cjs b/web/tests/search_suggestion.test.cjsindex 6a2d6f1e0fe..d32b616995b 100644--- a/web/tests/search_suggestion.test.cjs+++ b/web/tests/search_suggestion.test.cjs@@ -417,7 +417,7 @@ test("empty_query_suggestions", () => {}assert.equal(describe("is:dm"), "Direct messages");assert.equal(describe("is:starred"), "Starred messages");- assert.equal(describe("is:mentioned"), "@-mentions");+ assert.equal(describe("is:mentioned"), "Messages that mention you");assert.equal(describe("is:alerted"), "Alerted messages");assert.equal(describe("is:unread"), "Unread messages");assert.equal(describe("is:resolved"), "Resolved topics");@@ -518,7 +518,7 @@ test("check_is_suggestions", ({override, mock_template}) => {assert.equal(describe("is:dm"), "Direct messages");assert.equal(describe("is:starred"), "Starred messages");- assert.equal(describe("is:mentioned"), "@-mentions");+ assert.equal(describe("is:mentioned"), "Messages that mention you");assert.equal(describe("is:alerted"), "Alerted messages");assert.equal(describe("is:unread"), "Unread messages");assert.equal(describe("is:resolved"), "Resolved topics");@@ -542,7 +542,7 @@ test("check_is_suggestions", ({override, mock_template}) => {assert.equal(describe("-is:dm"), "Exclude direct messages");assert.equal(describe("-is:starred"), "Exclude starred messages");- assert.equal(describe("-is:mentioned"), "Exclude @-mentions");+ assert.equal(describe("-is:mentioned"), "Exclude messages that mention you");assert.equal(describe("-is:alerted"), "Exclude alerted messages");assert.equal(describe("-is:unread"), "Exclude unread messages");assert.equal(describe("-is:resolved"), "Unresolved topics");