Commit Graph

6029 Commits

Author SHA1 Message Date
Tim Abbott
ae04cdee78 left_sidebar: Rename stream-search-and-add for global search.
This will be more readable once we've moved the search input.
2025-08-11 14:22:32 -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
Aman Agrawal
ec73181405 sidebar_ui: Migrate function to avoid circular import. 2025-08-11 14:22:32 -07:00
Aman Agrawal
56bca6d56d pm_list: Remove dependency on sidebar_ui.
This is to remove cyclic dependency between pm_list and sidebar_ui
in future commits.
2025-08-11 14:22:32 -07:00
Aman Agrawal
f359e357b8 left_sidebar: Use hidden-by-filters to hide top left row items. 2025-08-11 14:22:32 -07:00
Aman Agrawal
845ee604a8 left_sidebar_navigation_area: Extract function to expand views. 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
Sahil Batra
f1f317c8c3 schduled-msgs-ui: Fix messages scheduled in inaccessible streams.
If there are scheduled messages in a stream that is no longer
accessible, just keep the stream name empty for the message in
the scheduled messages overlay. Previously, there was an
AssertionError when trying to open the scheduled messages
overlay and it was opened empty.
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
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
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
Sayam Samal
ff70cb8059 user_status: Add INTERACTIVE_HOVER_DELAY to status emoji picker tooltip. 2025-08-11 11:54:18 -07:00
Sayam Samal
405c8f094d hotkey: Trigger click on target of "trigger-click-on-enter" element.
This commit fixes the "trigger-click-on-enter" functionality to
correctly trigger a click event on the element that has the class
"trigger-click-on-enter". The "currentTarget" was incorrectly used,
which referred to the element that the event handler is bound to,
instead of the actual target of the event.
2025-08-11 11:54:18 -07:00
Evy Kassirer
bb43cfe9c7 stream_list: Show toggle button above muted/inactive channels. 2025-08-11 11:45:45 -07:00
Evy Kassirer
cf5e7a27ba left_sidebar: Include unmuted counts in muted channels in toggle count. 2025-08-11 11:45:45 -07:00
Evy Kassirer
c56ddf9ba4 left_sidebar: Combine muted and inactive channels.
Part of #35552.
2025-08-11 11:45:45 -07:00
Evy Kassirer
3ced9a1ad3 left_sidebar: Don't fade inactive channels (unless muted).
Part of #35552.
2025-08-11 11:45:45 -07:00
Evy Kassirer
2be9494f02 buddy_list: Skip collapsed section users during keyboard navigation.
Reported here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AF.20sidebar.20keyboard.20nav.20doesn't.20skip.20collapsed.20sections/near/2214081
2025-08-11 10:43:32 -07:00
Evy Kassirer
c456bf855d buddy_list: Collectively store user_ids and is_collapsed in section type. 2025-08-11 10:43:32 -07:00
Karl Stolley
66f942f1c4 compose: Preserve high-attention row on invalid DMs. 2025-08-11 10:36:21 -07:00
Karl Stolley
1cc453ee8e compose: Consider unpilled input in setting attention level. 2025-08-11 10:36:21 -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
Karl Stolley
aae826744e compose: Restore low-attention recipient row when narrow matches. 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
Saubhagya Patel
4cafe5f77c invite: Extract CommonInvitationData into a type.
This commit extracts the data returned by the
`get_common_invitation_data()` function in `web/src/invite.ts`
into a new type named `CommonInvitationData`.

Prep commit for #27663.
2025-08-08 18:59:37 -07:00
apoorvapendse
ab48666358 navbar: Use _html variables in template.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-08 18:58:06 -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
apoorvapendse
370e6765f8 dialog_widget: Use _html variables in template.
This is done to ensure that variables in HTML string format
which should not be escaped in templates, have a
consistent _html suffix.

The commits that follow do the same style of refactors
in other areas.

Discussion: https://chat.zulip.org/#narrow/channel/6-frontend/topic/Add.20linter.20rule.20to.20denote.20HTML.20string.20in.20template/near/2232128
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-08 18:58:06 -07:00
Tim Abbott
a0b8e916c5 channel_folders: Fix prettier issues in last commit. 2025-08-08 16:55:33 -07:00
Tim Abbott
40118c9a7c channel_folders: Sort get_channel_folders by order. 2025-08-08 16:43:17 -07:00
Sahil Batra
e7d9a8954c stream-settings: Sort folder options in dropdown by "order" field. 2025-08-08 16:29:02 -07:00
Sahil Batra
6e3be8d83c settings: Reset the order when re-ordering request fails. 2025-08-08 16:29:02 -07:00
Sahil Batra
f7e9f37edc settings: Fix re-ordering folders when there is an archived folder.
This commit updates webapp code to include archived folder IDs as
well in the "order" list passed when re-ordering folders.

Also, updated API documentation to mention that archived folder IDs
should also be included.
2025-08-08 16:29:00 -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
Karl Stolley
8b059ec025 ui_util: Extract do_new_unread_animation for re-use. 2025-08-08 13:52:51 -07:00
Karl Stolley
4289cb67e5 left_sidebar: Change animation for new unread mentions.
Fixes #34473

Co-Authored-By: Aman Agrawal <amanagr@zulip.com>
2025-08-08 13:52:51 -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
Evy Kassirer
8817284f7a channel_folders: Move unreads code from left_sidebar_navigation to stream_list. 2025-08-08 12:05:05 -07:00
Evy Kassirer
8a862f3933 stream_list: Use switch statement for stream list row type. 2025-08-08 12:05:05 -07:00
Evy Kassirer
8a9a3a1c74 channel_folders: Use a set for get_all_folder_ids.
Followup to
https://github.com/zulip/zulip/pull/35075#discussion_r2237294397
2025-08-08 12:05:05 -07:00
Shubham Padia
3e60b16ac1 starlight_help: Move help-beta over to starlight_help.
We are starting the cutover process and starlight_help is the directory
we have agreed on to place our new help center project. We do not want
to use `starlight_help` as the URL for the project, but this commit
changes the url from `help-beta` to `starlight_help` temporarily since
we can only change URL once we get rid of the current help center
project. That will be done in a future commit.
2025-08-08 11:59:29 -07:00
Evy Kassirer
ee877ebbc5 left_sidebar: Let current_section_id_for_stream return undefined.
Fixes this issue from Sentry:
https://zulip.sentry.io/issues/6778533249/events/9e2a25e419bc4dc2b7a207c5a482f943/?project=4504556882821120
2025-08-07 18:29:42 -07:00
Maneesh Shukla
c9fd9ade11 buttons: Rename sticky-bottom-option to sticky-bottom-option-button.
Fixes part of #35006.
2025-08-07 18:21:39 -07:00
Niloth P
7022811349 integrations: Add URL option and UI for mapping messages to Zulip channels.
This commit adds a "mapping" URL option preset that adds "Matching Zulip
channel" option to the stream dropdown widget. When that option is
chosen from the dropdown, it adds another parameter to the integration
URL -- "&mapping=channels".

This "mapping" parameter is meant to be used by integrations like Slack
to identify whether the user wants to map Slack channels to different
Zulip channels or different topics within a single channel.

This adds an icon for the `mapping`s' drop down option in the "Where to
send notification" drop down field.

Co-authored-by: Pieter CK <pieterceka123@gmail.com>
Co-authored-by: Lauryn Menard <lauryn@zulip.com>
2025-08-07 17:19:03 -07:00
PieterCK
57ff908af9 webhook_common: Add a method to build preset WebhookUrlOption.
This adds `WebhookUrlOption.build_preset_config` method which builds
pre-configured WebhookUrlOptions objects. It can be used to abstract
commonly used WebhookUrlOption settings or to construct special
settings that have additional logic and UI in the web-app modal for
generating an incoming webhook URL.

Currently, one such setting is the "branches" url option. This setting
is meant to be used by "versioncontrol" integrations such as GitHub,
Gitea, etc. It adds UI that lets the user to choose which branches of
their repository can trigger notifications. So, we refactor those
integrations to use `build_preset_config` for the "branches" option.

Co-authored-by: Lauryn Menard <lauryn@zulip.com>
2025-08-07 17:19:03 -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
Sahil Batra
52b21127e2 settings: Refactor class names for folder rows.
This commit removes unused classes in folder row elements
and updated used class names to use "-" instead of "_"
following the convention we follow usually.
2025-08-07 16:51:50 -07:00
Sahil Batra
21be0e58aa settings: Add code to live update "Channel folders" panel. 2025-08-07 16:51:50 -07:00