search: Update description string for mentions.

This commit is contained in:
Evy Kassirer
2025-06-05 13:05:26 -07:00
committed by Tim Abbott
parent f7af0f0879
commit 404ad6c518
4 changed files with 6 additions and 6 deletions

View File

@@ -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"}],
},

View File

@@ -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 --~}}

View File

@@ -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"}];

View File

@@ -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");