mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
Enable a consecutive topic typeahead after a user selects a stream via the typeahead menu. Previously, users had to manually enter ">" after selecting a stream. Before, encountering ">" returned "topic_jump," which prevented the topic list from triggering since "topic_jump" indicated the topic was selected. The implementation is changed to slice the token and process it in get_candidates to trigger the appropriate typeahead. Adjustments include changes to regexes for accurate triggering of stream or topic typeaheads based on the presence of ">" in the current token. Removes hint for stream mentioning use of ">" for topic suggestions, although that feature is still functional. The hideAfterSelect() function in composebox_typeahead.ts was modified. This prevents closing the typeahead when a stream is completed. The TopicSuggestion type is updated to show stream typeahead suggestion as the first option in the topic list with a privacy icon and no description in case when no character follows the '>' i.e. when the token ends with '>'. The edge where stream and topic have the same name is also handled with the help of a flag. Add stream as the prefix to topic suggestions in the typeahead. To make this happen, changes are made in the related handlebars template. Update topic list stream option label. This changes the option label for stream in the topic list from (mention channel) to (link to channel) as per https://zulip.com/help/link-to-a-message-or-conversation. Tests are updated, and a new test is added to validate the behavior. Test coverage is added for the new `render_stream_topic` method. Fixes: #32184. |
||
|---|---|---|
| .. | ||
| portico | ||
| alerts.css | ||
| app_components.css | ||
| app_variables.css | ||
| banners.css | ||
| buttons.css | ||
| color_picker.css | ||
| components.css | ||
| compose.css | ||
| dark_theme.css | ||
| drafts.css | ||
| image_upload_widget.css | ||
| inbox.css | ||
| informational_overlays.css | ||
| input_pill.css | ||
| left_sidebar.css | ||
| lightbox.css | ||
| message_edit_history.css | ||
| message_header.css | ||
| message_row.css | ||
| message_view_header.css | ||
| modal.css | ||
| popovers.css | ||
| print.css | ||
| progress_bar.css | ||
| pygments.css | ||
| reactions.css | ||
| recent_view.css | ||
| rendered_markdown.css | ||
| right_sidebar.css | ||
| scheduled_messages.css | ||
| search.css | ||
| settings.css | ||
| subscriptions.css | ||
| tooltips.css | ||
| typeahead.css | ||
| typing_notifications.css | ||
| user_circles.css | ||
| user_status.css | ||
| widgets.css | ||
| zulip.css | ||