Commit Graph

65375 Commits

Author SHA1 Message Date
Evy Kassirer
0c5e1ac492 subscription_data: Flesh out partial suscription data sent to client.
Part of #34244.
2025-06-30 17:10:36 -07:00
whilstsomebody
9ef3a19451 compose: Prevent displaying banner when channel picker is opened.
Prevent displaying the topic resolved banner when the channel
picker (compose_select_recipient_dropdown_widget) is opened in
the case of forwarding messages. This is done to prevent the
overlap of the channel picker and the banner, as it hides some
part of the banner text.

Fixes: #33449
2025-06-30 14:02:58 -07:00
Mateusz Mandera
dadec69986 settings: Add SCIM_CONFIG to default_settings.
This should have been declared in default_settings.py to begin with.
2025-06-30 13:00:03 -07:00
Evy Kassirer
108241b55d left_sidebar: Fix typo in login-to-more-streams classname.
Introduced in #33170.
2025-06-30 12:40:17 -07:00
Lauryn Menard
7ae8c34670 help: Fix whitespace around zulip-icon-user-list icons. 2025-06-30 12:36:25 -07:00
Pratik Chanda
0b97ce2486 tooltips: Fix buddy list tooltip stuck on redraw.
Earlier, buddy list tooltip would get stuck if tooltip was displayed
when redraw for presence update got triggered. This happened due to
tooltip target element was changed but reference element for
mutation wasn't updated.
2025-06-30 11:30:14 -07:00
Pratik Chanda
51819459e9 modal: Fix delete button focus outline cutoff in todo/poll widget.
This commit adds a padding so that the focus outline is visible
completely without being cutoff.

Fixes:zulip#32950.
2025-06-30 11:28:30 -07:00
Pratik Chanda
146dcbc33a modal: Fix simplebar overlap with content in todo/poll widget modal.
This commit fixes the overlap of simplebar with content in widget
modal by adding a padding for the simplebar-content.

Fixes part of zulip#32950.
2025-06-30 11:28:30 -07:00
Pratik Chanda
c9492750d4 unread_ops: Fix filter term check for current narrow when bulk update.
This commit ignores the near operator when comparing with current
message list filter terms which may have near operator.

Fixes:zulip#33866.
2025-06-30 11:22:23 -07:00
Shubham Padia
d701fec37d markdown: Show inline video previews for dropbox videos.
Fixes https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.93.82.20video.20preview.20not.20working.20.28Dropbox.29
2025-06-30 11:21:32 -07:00
Shubham Padia
276bc7284f markdown: Rename dropbox_image to dropbox_media.
We are adding video support to the function in upcoming commits and we
need to rename the function for that to be more generic.
We've also added a proper return type in the name of DropboxMediaInfo
TypedDict for the `dropbox_media` function.
2025-06-30 11:21:32 -07:00
Kislay Verma
1588b72e60 email_notifications: Use with and near operators when applicable.
We currently don't use either of those operators in email
topic links, which breaks the links on topic moves.

Quoting Tim for choosing `near` vs `with`:
"I guess for each case we should decide if we want /near/ links
to /with/ links. We likely want /with/ in some cases, to make
sure we land in the right conversation but not forcing the scroll
position to be on that particular message, which /near/ does."

"I feel like email notifications might want /near/ if the trigger
is a mention or something else that is specific to the message,
rather than the conversation, but probably /with/ otherwise."
2025-06-30 11:19:00 -07:00
Kislay Verma
6bd6f23549 url_encoding: Add support for with message links.
We abstract away "near" vs "with" from the function names and
allow callers to specify whether they want a conversation_link,
ie, use the "with" operator. The default choice is "near".
2025-06-30 11:19:00 -07:00
Aditya Kumar Kasaudhan
9b24e54c54 dropdown_widget: keep_focus_on_search when search is present.
This commit removes the keep_focus_on_search option from the
DropdownWidgetOptions type, and updates logic to always set
keep_focus_on_search when the search box is visible in the
dropdown.

Fixes: #34828.
2025-06-30 11:13:47 -07:00
Aman Agrawal
e7859a5564 scheduled_messages: Use scheduled_ prefix to identify scheduled msgs. 2025-06-30 11:12:45 -07:00
Aman Agrawal
6e63bfc536 scheduled_messages: Avoid unintentionally mutating original data.
Using a copy of the data instead of the original object to help
avoid modifying it unintentionally.
2025-06-30 11:12:45 -07:00
Aman Agrawal
856f6e06a9 scheduled_message: Rename data object for clarity.
This helps identify value stored in the object without additional
comment.
2025-06-30 11:12:45 -07:00
Aman Agrawal
d2035c6cb0 scheduled_message: Show delayed tooltip for delete icon. 2025-06-30 11:12:45 -07:00
Aman Agrawal
1a9d8ffd95 openapi: Create a base schema for ScheduledMessage to be reused.
The base class will be used again for Reminder schema.
2025-06-30 11:12:45 -07:00
Aman Agrawal
766bef89b7 scheduled_messages: Extract method to notify new scheduled messages. 2025-06-30 11:12:45 -07:00
Aman Agrawal
e6e30ac128 hashchange: Return once the case is handled. 2025-06-30 11:12:45 -07:00
Lauryn Menard
e4166af617 help: Fix code block indention in markdown instruction tabs.
Our custom code fence parser for Python-Markdown does not nest
fenced code blocks inside list items, but it can be done with
4-space indented code blocks, as long the list item itself also
uses 4-space indentation.
2025-06-30 11:12:00 -07:00
Swastik
fbe9a1ed8d settings_ui: Remove search box from dropdown in exports panel.
It looked bad with only two options.

Fixes: #35028.
2025-06-30 10:48:17 -07:00
Pratik Chanda
ecce22f685 app: Allow overscroll on x-axis.
This overscroll-behaviour was changed earlier to fix sliding of
message_feed_container but later separate PR addressed root cause
for the issue. This overscroll change did end up preventing
swipe gesture navigations.

This commit reverts 448cd70c56.
2025-06-30 10:27:06 -07:00
opmkumar
4aab379e2a views: Sort parameters alphabetically. 2025-06-30 09:13:25 -07:00
Lauryn Menard
50c45a00c8 docs: Fix renamed reset_authentication_attempt_count command.
This management command was renamed in commit 7ef1a024db, but the
documentation was not updated at that time.
2025-06-30 09:08:43 -07:00
Shubham Padia
aebbdee5b5 help-beta: Add eslint plugin for astro files. 2025-06-30 09:06:18 -07:00
Shubham Padia
f37ffd8937 help-beta: Add prettier plugin for astro files.
Even though we have separate packages for `help-beta`, we have opted to
put the prettier plugin and config for astro files in the main project
itself, so that linting needs to be configured only at one place.
2025-06-30 09:06:18 -07:00
Shubham Padia
b630c1d175 NavigationSteps: Rename LINK_TYPE_HANDLERS to signify their behaviour.
Also modify a comment in the file to be more accurate.
2025-06-30 09:06:18 -07:00
Shubham Padia
9c00f3b746 NavigationSteps: Use correct template for help menu relative links.
The wrong template was used here by mistake when the logic from
`help_relative_links` was ported here.
2025-06-30 09:06:18 -07:00
Shubham Padia
aa98915371 NavigationSteps: Rename setting_type_name to setting_type.
The trailing `_name` was redundant.
2025-06-30 09:06:18 -07:00
Shubham Padia
2ba160ec19 NavigationSteps: Use shared constant value for setting_type.
We only have two possible values for setting_type in
setting_link_mapping, and we should use a shared constant value for
them.
2025-06-30 09:06:18 -07:00
Shubham Padia
7e359465cd help-beta: Do not use stderr=subprocess.STDOUT in build-help-center.
The default of using actual STDERR is fine.
2025-06-30 09:06:02 -07:00
Shubham Padia
b7fa1e6a3c help-beta: Only convert .md files.
Fixes https://chat.zulip.org/#narrow/channel/19-documentation/topic/build-help-center.20exceptions

We were getting an error during the conversion step if there was somehow
a non utf-8 file in /help. In the case that we encountered, it was most
likely .DS_Store created by MacOS.
2025-06-29 23:32:25 -07:00
kash2104
aed0624366 help_modal: Fix thumb-up emoji.
Existing class "rendered_markdown" has been added so
that the emoji remains in agreement with how
messages are displayed in message area.

Fixes part of #30781.
2025-06-29 23:17:17 -07:00
Anders Kaseorg
a113a42e11 semgrep: Strengthen HTML and SQL injection checks.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-06-29 23:14:11 -07:00
Anders Kaseorg
d64ab7abf7 process_fts_update: Fix S608 Possible SQL injection vector.
Although this code was not actually vulnerable as written, we never
want to be disabling this Ruff rule, in order to discourage later
introduction of vulnerabilities.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-06-29 23:14:11 -07:00
Evy Kassirer
98e65b220a stream_list: Remove unneeded export on scroll_stream_into_view. 2025-06-29 23:13:25 -07:00
Evy Kassirer
443db4bd21 sidebar_ui: Remove unused hide_unread_counts passed to left sidebar.
Missed in #32795.
2025-06-29 23:13:15 -07:00
Alex Vandiver
476ba3ec61 docs: Fix field name in thumbnailing doc. 2025-06-28 10:32:45 -07:00
Alex Vandiver
de67d37884 thumbnail: Add flag for when thumbnail files are missing. 2025-06-28 10:32:45 -07:00
Tim Abbott
f4327edd81 unread_ops: Fix mark-as-unread handling of has_found_newest.
When offline, has_found_newest never ends up being true, and we'd end
up falling through to an interleaved banner. We rewrite this logic
with an explicit idea of whether we're online, and the following fixes:

- Never display the interleaved view confirmation banner in a
  conversation view.
- Avoid displaying that banner inaccurately when the actual problem
  is that we're offline.
- If we're offline, always call do_mark_unread with a list of IDs,
  such that if its helpers supported local echo (they don't), we
  will locally echo to the extent possible.

Note that following this change, being offline results in "mark
unread" being a noop until you're online again. Better than a weird
banner.

See https://chat.zulip.org/#narrow/channel/9-issues/topic/mark.20unread.20strange.20when.20disconnected/near/2201703 for more context.
2025-06-28 10:31:36 -07:00
Evy Kassirer
31fb0bd6d7 channel_folders: Let a new channel in a folder be created through a hash. 2025-06-27 17:09:08 -07:00
opmkumar
87cdea0fa1 left_sidebar: Always show home-view row popover, even with no unreads.
Fixes #28759.
2025-06-27 13:50:18 -07:00
opmkumar
2712325d1f left_sidebar: Use popover to show/hide unread summary counts.
Co-authored-by: Akarsh Jain <akarsh.jain.790@gmail.com>

Fixes part of #28759.
2025-06-27 13:50:18 -07:00
opmkumar
d3a7122b62 left_sidebar: Use personal settings to hide unread summary counts.
This commit adds code to use
`web_left_sidebar_unreads_count_summary` from personal
settings in web app.

Co-authored-by: Akarsh Jain <akarsh.jain.790@gmail.com>

Fixes part of #28759.
2025-06-27 13:50:18 -07:00
opmkumar
87d14086af settings: Add web_left_sidebar_unreads_count_summary setting.
Co-authored-by: Akarsh Jain <akarsh.jain.790@gmail.com>

Fixes part of #28759.
2025-06-27 13:50:15 -07:00
opmkumar
cf658155e7 left_sidebar: Remove logic of hiding unread counter of STREAMS header.
This removes the previous logic where the STREAMS header unread counter was
hidden when "Show unread counts for" was set to "No streams."
2025-06-27 13:38:38 -07:00
Pratik Chanda
a2fc3a0d7f unread_banner: Fix unread banner not hiding when marking topic as read.
Earlier, when we had unread banner in message list and user marks
all messages as read for topic, unread banner would persist even
though we had no unread messages in current message list.

This commit hides unread banner when there are no unreads just like
we show banner when unread messages appear in message list.

Fixes:zulip#33866.
2025-06-27 13:18:43 -07:00
Tim Abbott
5cfa8b4dc2 settings: Consistently describe Slack-compatible webhook format.
Previously, the settings edit UI used a different phrasing, and "Slack
compatible" used a dash only in the documentation.

We settle on "Slack-compatible", since that's what we use for the
similar incoming webhook format.
2025-06-27 11:31:59 -07:00