mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
search: Update description string for mentions.
This commit is contained in:
@@ -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"}],
|
||||
},
|
||||
|
@@ -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 --~}}
|
||||
|
@@ -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"}];
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user