empty-narrow: Update banner for no starred messages.

Updates the empty narrow banner when there are no starred messages
for a more general use case. Previously, it indicated that the
user hadn't starred anything yet, which could be confusing for an
experienced user who had just cleared out their starred messages.
This commit is contained in:
Lauryn Menard 2023-04-20 16:05:21 +02:00 committed by Tim Abbott
parent 3c88db9164
commit e8c777a43c
2 changed files with 3 additions and 3 deletions

View File

@ -158,9 +158,9 @@ function pick_empty_narrow_banner() {
case "is":
switch (first_operand) {
case "starred":
// You have no starred messages.
// You currently have no starred messages.
return {
title: $t({defaultMessage: "You haven't starred anything yet!"}),
title: $t({defaultMessage: "You have no starred messages."}),
html: $t_html(
{
defaultMessage:

View File

@ -260,7 +260,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {
assert.equal(
$(".empty_feed_notice_main").html(),
empty_narrow_html(
"translated: You haven't starred anything yet!",
"translated: You have no starred messages.",
'translated HTML: Learn more about starring messages <a href="/help/star-a-message">here</a>.',
),
);