compose_typeahead: Add hint text to topic typeahead dropdown.

With the autocomplete dropdown, some users face trouble or uncertainty
while selecting topics. The autocomplete dropdown may encourage users
to find and select an existing topic rather than starting a new topic.
The changes adds a hint text to the topic typeahead dropdown to
encourage users to either start a new topic or select an existing
topic.

Fixes #23295.
This commit is contained in:
Joelute 2023-02-24 23:29:49 -05:00 committed by Tim Abbott
parent 13680651c5
commit 4d55192e21
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import $ from "jquery";
import _ from "lodash";
import * as typeahead from "../shared/src/typeahead";
import render_topic_typeahead_hint from "../templates/topic_typeahead_hint.hbs";
import * as compose from "./compose";
import * as compose_pm_pill from "./compose_pm_pill";
@ -1130,6 +1131,7 @@ export function initialize() {
}
return sorted;
},
header: render_topic_typeahead_hint,
});
$("#private_message_recipient").typeahead({

View File

@ -0,0 +1 @@
<em>{{t 'Start a new topic or select one from the list.' }}</em>