Commit Graph

63844 Commits

Author SHA1 Message Date
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
Sahil Batra
48aaeee6dd stream-settings: Refactor filter dropdown related code.
Variable for storing the dropdown widget is now
declared in stream_settings_components and this
commit also adds some helper functions to get
and set the filter value.

This is a preparatory commit to avoid import
cycles in further commits for fixing live
update when channels are archived.
2025-03-14 11:29:51 -07:00
Sahil Batra
c50e8fa406 stream-settings: Move functions to update stream privacy choices.
This is a preparatory refactor to avoid import cycles in future
commits for fixing live update behavior when archiving channels.
2025-03-14 11:29:51 -07:00
Sahil Batra
0c6ed6559a stream-settings: Refactor code to not store filter value in variable.
There is no need to store the archived status filter value in a
variable, instead value can just be derived by calling "value"
function on DropdownWidget.

This is a preparatory refactor for further commits which will fix
live-update behavior when archiving channels.
2025-03-14 11:29:51 -07:00
Aman Agrawal
3cfbf130a5 typeahead: Fix alignment of user group icon.
2px right margin was incorrectly added as -2px left margin needs
to be taken into account as well.
2025-03-14 11:07:33 -07:00
Aman Agrawal
a393d9d495 user_group: Use double user icon instead of tripe user icon. 2025-03-14 11:07:33 -07:00
Aman Agrawal
dde861e959 recent_view: Remove not required height and width values.
We don't need specific width / height here and it is okay for
this element to take child's size here which is scaled based
on font size.
2025-03-14 11:07:33 -07:00
Aman Agrawal
f53fc1b507 user_group_settings: Use icon with 2 users for editing group info. 2025-03-14 11:07:33 -07:00
Aman Agrawal
832963042c Revert "user_card_popover: Use airplane eye icon to view dms."
This reverts commit 0ddb572be8.
2025-03-14 11:07:33 -07:00
evykassirer
45c9747d4b hotkey: Fix upvote first emoji shortcut for custom emoji.
Fixes a bug introduced in #96eb49d, which broke the hotkey
for custom emoji.
2025-03-14 10:08:58 -07:00
Aman Agrawal
4029d80c01 compose: Use standard primary button colors for compose send button. 2025-03-14 10:07:05 -07:00