Commit Graph

1880 Commits

Author SHA1 Message Date
Aman Agrawal
5dbf584ac5 sidebars: Don't highlight selection by default on search input focus.
Unless user wants to move the selection or type a value in search
input, we don't highlight the current selection.
2025-09-03 16:13:38 -07:00
Pratik Chanda
acc5cffae4 filter: Use encoding for channel/topic narrow for url redirect.
Earlier, when generating redirect url for search exit, we did not
encode the url in case of topic narrows. We expect some characters
to be replaced when generating hash.

This commit encodes the url for channels and topic narrows and
prevents redirecting to broken hashes.
2025-08-29 10:24:34 -07:00
Pratik Chanda
85e7d2f5f7 search_suggestion: Remove subset suggestions from search suggestion.
Earlier, we would show subset suggestions for current search pills
in the suggestion list. Like if `is:dm`, `is:mentioned` and `has:link`
are already selected in the searchbox, we would show
`is:dm, is:mentioned` and `is:dm` again in the suggestion.

This commit removes subset suggestions for current search pills
from the suggestion line.
2025-08-28 17:28:39 -07:00
Karl Stolley
8a40b0699a audio: Present download button with tooltip.
Fixes #35636.
2025-08-28 15:20:11 -07:00
Karl Stolley
cacd73fd8b audio: Present audio player in wrapped element. 2025-08-28 15:20:11 -07:00
Kislay Verma
67ca49488f tests: Use make_realm to create type-correct realm objects.
Another step in the direction of improving node tests
and using type-correct organic data as much as possible.
2025-08-28 11:35:07 -07:00
Aman Agrawal
a13f4e4832 hash_util: Use user_id instead of email to generate DM emails. 2025-08-28 10:08:36 -07:00
Aman Agrawal
0a264a8d60 people: Add function to URL slug from user_ids.
This is similar to `emails_to_slug` which will removed
from future commits.
2025-08-28 10:08:36 -07:00
Evy Kassirer
aeab2fd097 stream_list_sort: Remove stream list row navigation code.
This stopped being used after 78a3ef56e4.
2025-08-28 09:51:26 -07:00
Evy Kassirer
22ca76ba2b stream_data: Delete partial_subscribers off of sub creation attrs.
Followup to https://github.com/zulip/zulip/pull/34960#discussion_r2176959839
2025-08-28 09:36:11 -07:00
Vector73
92fbe47a3b events: Add support for processing modern presence event in web client. 2025-08-27 17:16:31 -07:00
Karl Stolley
cacc89e4d0 dom_selection: Select mousemove handlers on document. 2025-08-27 08:58:53 -07:00
Anders Kaseorg
5d13749d26 eslint: Fix @typescript-eslint/no-unnecessary-type-conversion.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-14 21:37:50 -07:00
Sahil Batra
0a8238b993 stream-settings: Live update visibility of folder dropdown.
An error was raised where we tried to live update the folder name
in folder dropdown even when there was no dropdown visible
to the non-admin user in settings page. This was because
"There are no channel folders configured in this organization."
text was shown even when a folder was recently created in the
realm as we did not live update the visibility of dropdown on
creating or archiving a folder.

This commit fixes the bug by live-updating the visibility
of folder dropdown when creating or archiving a folder.
2025-08-14 13:18:31 -07:00
Evy Kassirer
14ce2c5a81 stream_list_sort: Don't include unsubscribed streams in sort results.
Fixes bug reported here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/exception.20when.20viewing.20world-public.20channel.20as.20a.20guest/near/2240871
2025-08-13 00:16:52 -07:00
Pratik Chanda
40ff1220ef filter: Implement web public channels filter for suggestions.
We already had web-public support in narrow by_channels.

This commit implements the web-public support for actual user
search.
2025-08-12 15:30:11 -07:00
Pratik Chanda
76e0acd027 search_suggestion: Show channel: operator suggestion on empty query.
This commit shows `channel:` operator suggestion when search query
is empty.
2025-08-12 15:18:11 -07:00
Pratik Chanda
9dbd13d5a6 search_suggestion: Show operator autocomplete suggestion at top.
Earlier, operator autocomplete suggestion was showed at bottom after
operator with operand value suggestions.

This commit brings operator autocomplete suggestion to higher priority
in the suggestion list.
2025-08-12 15:18:11 -07:00
Pratik Chanda
b0eefb8a31 stream_data: Track web public streams in current org.
This commit tracks all available web-public stream_ids in org.
2025-08-12 15:18:11 -07:00
Pratik Chanda
20889b3f78 filter: Enable channels operator for can_apply_locally.
Earlier, validating messages on given narrow skipped for channels
operator.

This commit adds channels operator support for checking if message
corresponds to given search term.
2025-08-12 15:18:11 -07:00
Sahil Batra
1bd089ae99 folders: Live update UI on reordering channel folders.
This commit adds code to live update "Channel folders" panel
and left sidebar on reordering of channel folders.
2025-08-12 11:17:17 -07:00
Sahil Batra
f4cc746ae9 stream-settings: Move update_channel_folder_name.
This commit moves update_channel_folder_name function from
stream_ui_updates.ts to stream_settings_ui.ts to avoid
import cycle in further commits.
2025-08-12 10:31:42 -07:00
Tim Abbott
cdc3647b91 folders: Fix search_term function name typo. 2025-08-12 10:30:52 -07:00
Pratik Chanda
35896244d7 channel_folders: Add help function to check if user has sub in folder.
This commit adds a function that returns true if user is subscribed
to a channel which is in a channel folder.
2025-08-12 10:29:19 -07:00
Aman Agrawal
9d05c80e63 channel_folders: Include channels whose folder names also match search. 2025-08-12 10:20:19 -07:00
Aman Agrawal
78a3ef56e4 left_sidebar: Support filtering all items using the search input. 2025-08-12 00:38:22 -07:00
Evy Kassirer
4df4f072f4 stream_list: Show mention indicator in section headings.
Fixes #35104.
2025-08-11 14:57:28 -07:00
Pratik Chanda
eda4a14393 channel_folders: Add helper function to get all active channel ids.
This commit adds a helper function which returns all active channel ids
stored in a set.
2025-08-11 14:41:24 -07:00
Tim Abbott
0ccfb7fdf0 left_sidebar: Rename stream-list-filter for global search.
This will be more readable once we've moved the search input.
2025-08-11 14:22:32 -07:00
Sahil Batra
6292b03b33 overlays: Handle restoring messages in inaccessible streams.
On trying to restore a draft or a scheduled message in a
stream that is no longer accessible, compose box is opened
without selecting any stream with dropdown open.

Previously, it raised an AssertionError.
2025-08-11 12:55:50 -07:00
Tim Abbott
941a91bc6c Revert "compose_actions: Clean up unnecessary rewire."
This reverts commit 56faf6b22a.

I need to merge another PR that wasn't updated.
2025-08-11 12:55:50 -07:00
Kislay Verma
798f7391f3 stream_list_sort: Improve test by using type-correct data.
We use `make_stream` to use type-correct objects in the test.

Fixes part of #32326.
2025-08-11 11:57:49 -07:00
Kislay Verma
56faf6b22a compose_actions: Clean up unnecessary rewire.
We organically create a user group so that the
pertinent code paths are accessed.

Fixes part of #32326.
2025-08-11 11:57:49 -07:00
Kislay Verma
c134cc398f tests: Add library function to create user groups.
This is done to ensure the objects exactly match
the schema/types during tests.

Fixes part of #32326.
2025-08-11 11:57:49 -07:00
Kislay Verma
e4b0af5536 compose_actions: Improve tests by using lib functions.
We use the `make_stream` and `make_user` functions to
make the objects type-correct.

Fixes part of #32326.
2025-08-11 11:57:49 -07:00
Kislay Verma
f209c65af3 composebox_typeahead: Clean up override_rewire.
We replace the rewires with `peer_data.set_subscribers`.
This also adds the passed stream_id to the set
`fetched_stream_ids`, which allows us to eliminate the
mocking of `channel.ts` in the test file. The mock was
earlier required because of a call to
`peer_data.maybe_fetch_stream_subscribers` in
`compare_people_for_relevance`.

Fixes part of #32326.
2025-08-11 11:57:49 -07:00
Karl Stolley
8a217d8cc7 compose: No longer update attention on recipient change.
This is superfluous with attention being calculated on
focus and blur events.
2025-08-11 10:36:21 -07:00
Evy Kassirer
259fd250ed stream_list: Update unread counts when building the sidebar.
This bug was introduced by 8817284f7a
which should have included this line.
2025-08-11 10:15:15 -07:00
Saubhagya Patel
bb5c87e306 bots: Add a setting to customize the Welcome Bot message.
This commit includes the following changes:
- Add an administrator setting to customize the Welcome Bot
message when sending an invitation.
- Add an API endpoint to test the customized Welcome Bot message
by sending a copy of the message to the administrator.

Fixes #27663.

Co-authored-by: Akarsh Jain <akarsh.jain.790@gmail.com>
2025-08-08 18:59:37 -07:00
apoorvapendse
83cfff0ad0 empty_feed_notice: Use _html variables in template.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-08 18:58:06 -07:00
Sahil Batra
b746bb5fc1 settings: Show rendered markdown folder description.
This commit adds code to show markdown formatted description
in "Channel folders" panel instead of raw text.
2025-08-08 15:40:31 -07:00
Maneesh Shukla
6e43d34a34 topic-filter: Replace usage of search_pill.
Add topic_filter_pill to use for topic filtering instead of search_pill.

Fixes part of #35284.
2025-08-08 14:29:22 -07:00
Evy Kassirer
a644874e76 stream_list: Add folder ids to StreamListSection object.
Followup to
https://github.com/zulip/zulip/pull/35075#discussion_r2232041259
2025-08-08 12:05:05 -07:00
Kislay Verma
f0a88d51cc message_reminders: Add support for notes.
This commit adds the ability for users to include notes
with their message reminders.

Fixes #35070.

Co-Authored-By: Aman Agrawal <amanagr@zulip.com>
2025-08-07 17:13:12 -07:00
Karl Stolley
05b8fea10f audio_player: Postprocess audio for added structure, classes. 2025-08-06 10:45:31 -07:00
amcdowell226
124a32e819 compose: Save messages as drafts when window loses focus.
Add a check for window blur and save any in-progress
messages as drafts. This will help prevent unnecessary
message loss for the user by creating drafts for them more
whenever they switch away from their Zulip tab.

Tested on my local Ubuntu development with a demo
organization and some of the premade profiles.

Fixes #35262.
2025-08-05 15:28:13 -07:00
Vector73
6c94266bf9 stream_data: Rename is_stream_archived function.
Renames `is_stream_archived` function to `is_stream_archived_by_id`.
2025-08-05 13:41:08 -07:00
Aman Agrawal
8207eaab55 left_sidebar: Refactor to support user's navigation view preference.
Co-authored-by: Aditya Chaudhary <aditya.chaudhary1558@gmail.com>
2025-08-04 18:33:36 -07:00
Sahil Batra
524442bf44 streams-ui: Add UI to update and archive channel folders.
This commit adds edit and delete buttons in the dropdown
list for folder.

Fixes #35498.
2025-08-04 13:22:11 -07:00
Sahil Batra
e70d8c7a80 streams-ui: Reset folder dropdown if selected folder is archived.
This commit adds live-update code to reset the dropdown when user
is changing the folder for a channel or setting the folder for a
new channel and the selected folder is archived.
2025-08-04 13:22:11 -07:00