Commit Graph

63854 Commits

Author SHA1 Message Date
Anders Kaseorg
c81ef4d409 dropdown_widget: Fix Option typing.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-17 08:43:19 -07:00
Anders Kaseorg
32e8575713 views_util: Remove unused field from COMMON_DROPDOWN_WIDGET_PARAMS.
bold_current_selection is a field within the options returned by
get_options, not a field on DropdownWidgetOptions itself.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-17 08:43:19 -07:00
Aman Agrawal
db07086b26 popup_banners: Don't trigger fade out if the banner is not present. 2025-03-17 08:32:59 -07:00
Aman Agrawal
a903db1ac1 message_list: Fix list not scrolling when new message is added.
Auto scrolling to view the new message is not working.
This bug was introduced in 238c35f2af.
Fixed by passing `messages_are_new` in the relevant functions.
2025-03-15 00:41:40 -07:00
Anders Kaseorg
eadc9a8530 dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 18:32:23 -07:00
Anders Kaseorg
9b56f98158 integrations_dev_panel: Remove deprecated document.write.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 18:32:23 -07:00
Anders Kaseorg
29fb68ebcc install-shfmt: Upgrade shfmt from 3.10.0 to 3.11.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 18:32:23 -07:00
Sahil Batra
5915b85c5a register: Optimize computing stream group setting values.
Fetch all anonymous groups data once which can be used
for computing group setting values for realm, streams
and user groups.

Fixes #32561.
2025-03-14 18:31:18 -07:00
Sahil Batra
bc2afd45b3 streams: Refactor code to handle group setting values.
This commit updates the code which computes the dict for
setting groups mapping named user groups to ID and anonymous
groups to UserGroupMembersDict. After the changes, the dict
contains only anonymous groups values and the setting values
for group IDs not present in dict will be computed based on
the fact that those are named user groups.

This is a preparatory refactor for optimizing computing group
setting values for register response by fetching all anonymous
groups membership data just once.
2025-03-14 18:31:18 -07:00
Anders Kaseorg
512613ead4 requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 17:31:50 -07:00
Anders Kaseorg
838ae38b43 install-uv: Upgrade uv from 0.6.3 to 0.6.6.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 17:31:50 -07:00
Anders Kaseorg
7866dc5ad8 ruff: Fix S704 Unsafe use of markupsafe.Markup detected.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 17:31:50 -07:00
Anders Kaseorg
88a8087243 ruff: Fix PYI019 Use Self instead of custom TypeVar.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 17:31:50 -07:00
Anders Kaseorg
7cbda7d7a5 ruff: Fix SIM905 Consider using a list literal instead of str.split.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 17:31:50 -07:00
Anders Kaseorg
0cc6b77670 ruff: Fix PLC1802 len(…) used as condition without comparison.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 17:31:50 -07:00
Anders Kaseorg
67fb7daa63 ruff: Fix RUF051 Use pop instead of key in dictdel dict[key].
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 17:31:50 -07:00
evykassirer
6e36c6de16 channel_picker: Align icon by keeping constant line-height.
Fixes issue reported here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AF.20channel.20picker.20icon.20alignment/near/2122798
2025-03-14 17:20:45 -07:00
Alya Abbott
0c55b0f6ac corporate: Post a designer job.
Also update some surrounding context.
2025-03-14 17:01:03 -07:00
evykassirer
f3377e90a4 subscriptions: Use only one container for the two-row header styles. 2025-03-14 16:35:05 -07:00
evykassirer
02edb62d33 settings: Collapse buttons to two rows on narrow screens with one panel.
Previously we collapsed buttons when the two-panel view was narrow enough
that the buttons started wrapping, but this case for one-panel view with
wrapping buttons was missed.
2025-03-14 16:35:05 -07:00
evykassirer
f00cc8f14d settings: Center save/discard buttons vertically. 2025-03-14 16:35:05 -07:00
evykassirer
6f9ad9e74b settings: Wrap save/discard buttons as a unit on narrow screens. 2025-03-14 16:35:05 -07:00
evykassirer
dfe3769d97 settings: Increase size of right pane of subscriptions/usergroups modal.
This simplifies some @container queries and also ensures there's enough
space at larger font-sizes for the save/discard buttons to appear
beside setting section headings without overflowing onto the next line.

Now the left pane is always 40% and the right pane is always 60%.

One effect of this is that the top left buttons in the stream settings
overlay are now always in two rows at 16px (like they already always
were at 20px).
2025-03-14 16:35:05 -07:00
evykassirer
3cb9ebd4a0 settings: Clean up styling for save/discard buttons.
This commit scales the X icon with font-size, centers it more
consistently, and scales the button height with font-size.
2025-03-14 16:35:05 -07:00
evykassirer
88a5630960 subscriptions: Scale tab width with font size. 2025-03-14 16:35:05 -07:00
Anders Kaseorg
cb0560d734 narrow: Add access restrictions to get_base_query_for_search.
This mirrors the restrictions in
zerver.lib.message.bulk_access_stream_messages_query, in order to
prevent leftover UserMessage rows from granting access to messages the
user was previously allowed to access but no longer is.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 16:24:34 -07:00
Anders Kaseorg
dc22b5d4bf narrow: Remove get_base_query_for_search need_message optimization.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 16:24:34 -07:00
Anders Kaseorg
7e75166b5f message_fetch: Use get_base_query_for_search in messages_in_narrow_backend.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 16:24:34 -07:00
Anders Kaseorg
5a56b53689 narrow: Add flags column outside get_base_query_for_search.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-03-14 16:24:34 -07:00
evykassirer
8a5bdcbe9f popovers: Fix bug where tippy was getting cut off in usergroup list. 2025-03-14 16:21:57 -07:00
Alya Abbott
85c33ec2a3 help: Point to better resources for how to give feedback. 2025-03-14 16:21:07 -07:00
Alya Abbott
ae4922cef8 help: Add instructions for adding user to groups via profile. 2025-03-14 16:20:13 -07:00
Alya Abbott
800d6d9dce help: Update right sidebar user card instructions for avatars. 2025-03-14 16:20:13 -07:00
Tim Abbott
ced4e7f6bd i18n: Update translations from Transifex. 2025-03-14 15:03:50 -07:00
Tim Abbott
260085b59a user_events: Fix confusing variant name for event object. 2025-03-14 14:52:36 -07:00
Tim Abbott
8d4c54ca1d user_events: Rename person_obj to user for clarity. 2025-03-14 14:52:36 -07:00
Aditya Kumar Kasaudhan
25821c81db settings_users: Conditionally render dropdowns for non-bots.
Previously, deactivating a bot from the bots tab without loading
the users tab caused a blueslip error because update_view_on_deactivate
tried to render uninitialized role dropdowns from a realm_user event.

This commit fixes this by passing is_bot to update_view functions
and only rendering dropdowns for non-bots if they’re initialized.
2025-03-14 14:52:36 -07:00
Lauryn Menard
128539c283 message-edit-history: Align overlay header with org setting.
If the organization has limited message history to moves only,
we display "MESSAGE MOVE HISTORY" for the overlay header, instead
of "MESSAGE EDIT HISTORY".
2025-03-14 14:11:16 -07:00
Lauryn Menard
4fd3bb8aa5 message-edit-history: Show original channel/topic for move only history.
If the organization only allows viewing message move history, in
the message edit history overlay for the initial message, we display
the original topic and channel of the message instead of the original
message content.

This way the overlay content is consistent with the organization
setting for viewing message edit history, and if the message content
has been edited, that original content is not viewable to other
users.
2025-03-14 14:11:16 -07:00
Lauryn Menard
e6d71cad1f message-edit-history: Show channel change before topic change. 2025-03-14 14:11:16 -07:00
Alex Vandiver
29a0d287fc puppet: Allow for arbitrary queues to have more than one worker.
This generalizes from thumbnail_workers, to include any other queue.
We only additionally choose to document `email_senders_workers`,
however, since other queues are not guaranteed to work correctly with
multiple consumers.
2025-03-14 14:07:09 -07:00
Aditya Kumar Kasaudhan
89c53f015f upload: Prevent sending messages during file uploads.
Previously, users could send messages before uploads finished,
resulting in incomplete messages with "Uploading..." text.

This commit blocks sending until uploads complete.

Fixes: #33986.
2025-03-14 13:12:38 -07:00
Karl Stolley
42e1b104e2 action_buttons: Remove bottom margin from Bootstrap. 2025-03-14 13:00:54 -07:00
Karl Stolley
4dfa0c1b45 action_buttons: Display only a focus-visible ring. 2025-03-14 13:00:54 -07:00
Karl Stolley
56e5a6237e action_buttons: Match height, width to Vlad's specifications. 2025-03-14 13:00:54 -07:00
Anushrut pandit
3d9cbd5bd7 message_row: Fix focus ring cutoff near date rows.
In direct messages, the blue message focus ring could, at certain zoom
levels, be clipped near date rows.

The cause was a redundant background-color on .date_row interacting
badly with zoom. We previously debugged this problem more broadly and
fixed it in #25806, but missed this redundant declaration.

Fixes #33571.
2025-03-14 12:48:50 -07:00
Karl Stolley
bb09222662 alerts: Improve styles, behavior between app and portico. 2025-03-14 11:52:18 -07:00
Karl Stolley
fadf68dc1b alerts: Move banner-wrapper to inner div. 2025-03-14 11:52:18 -07:00
sanchi-t
837cc2c698 stream_ui_updates: Hide channels in the left panel based on filter.
Previously on subscribing, channels used to appear in the left panel
regardless of the filter. Now, channels that don't match the
filter are hidden from the left panel.
2025-03-14 11:29:51 -07:00
sanchi-t
43932cd6aa stream_edit: Update channel row in settings when channel is archived. 2025-03-14 11:29:51 -07:00