Commit Graph

64239 Commits

Author SHA1 Message Date
Niloth P
7900770135 api_docs: Update instructions to deploy bots using Botserver.
"Deploying multiple bots" section:
- Simplified the `botserverrc` description, and removed 2 redundant code
blocks.
- Added the `bot-config-file` option to the `botserverrc` section
example, with a short description.
- Edited the previously vague instruction to download the `botserverrc`.
- Fixed the incomplete command to run Botserver.
- Updated the download instructions to link to the Personal Bots tab
directly.
- Added the bot-config-file setting to the botserverrc example, with a
tip on its usage.

"Create a bot" section:
- Added a separate section with an instruction block for creating
outgoing webhook bots.
- Added instructions similar to `/help/add-a-bot-or-integration`, but
avoided linking directly to the help doc to avoid too many link jumps.

"How Botserver works" section:
- Replaced the confusing Botserver example URL with a description.
- Removed the example of the normal functioning of bot code.

Co-authored-by: Lauryn Menard <lauryn@zulip.com>
Co-authored-by: mpagler <167506943+mpagler@users.noreply.github.com>
2025-04-08 10:48:13 -07:00
Anders Kaseorg
8450f04efc requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-04-08 10:17:49 -07:00
Anders Kaseorg
e8faa4a029 worker: Check if Sentry is initialized before calling add_breadcrumb.
Otherwise we get spammed with “Dropped breadcrumb because no client
bound” log messages.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-04-08 10:17:49 -07:00
Anders Kaseorg
e4a2695f54 install-uv: Upgrade uv from 0.6.6 to 0.6.13.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-04-08 10:17:49 -07:00
Ethan Mayer
c12b94aea4 models: Refactor corporate/models.py into models package.
Fixes #34318.

Seperated models file into a package with component files.
2025-04-08 10:16:35 -07:00
Aman Agrawal
a8c513a95e user_card: Fix mismatch between tooltip and popover trigger area.
User card popover was not displayed even when "View user card"
tooltip is visible in some areas. To fix it, we introduce a
wrapper element which has the same trigger area as the tooltip.

We don't directly use the `view_user_card_tooltip` element to
trigger popover since tippy doesn't play nice with two tippy
instances attached to the same element.
2025-04-08 09:56:16 -07:00
Saubhagya Patel
869e81f14c popovers: Add an x button to topic field in move topic/message modal.
Fixes #33729.
2025-04-07 18:23:12 -07:00
Sayam Samal
f496bd6350 settings: Remove unused "saved" state in save discard widget. 2025-04-07 18:22:16 -07:00
Sayam Samal
fbd28f1349 settings: Remove unused success callback in save_organization_settings. 2025-04-07 18:22:16 -07:00
Sayam Samal
83c5733144 settings: Fix save discard widget closing before saved state.
Sometimes, in slower connections, Tornado long-polling callback can
reach the client at almost exactly the same time as the success
response, making the prediction of which arrives first
non-deterministic. Due to this, the server event call responsible for
syncing the realm settings across multiple users would sometimes take
over and hide and the save discard widget before the success callback
from `/json/realm` could show the "saved" state in the button.

This commit fixes this issue by blocking the "discarded" state from
hiding the save discard widget when the save button is already in the
"saving" or "succeeded" state, since in those conditions the visibility
of the save discard widget would anyways be handled by a "failed" or
"succeeded" state.
2025-04-07 18:22:16 -07:00
Sayam Samal
b115368a81 settings: Update save button style when "Saved" is shown.
This commit updates the save button style in the settings component to
ensure that the button appears as a borderless attention + success
intent action button alongside the "Saved" label, when an updated
setting is saved.
2025-04-07 18:22:16 -07:00
Sayam Samal
203ca08446 components: Restructure component type declarations.
This commit moves the ComponentIntent type to types.ts since it is
common across all the components, and also moves the ActionButton type
from banners.ts to buttons.ts since it is specific to the button
component.

On top of that, the commit also updates the type declarations to be
based off of array declarations to make it easier to modify them
programmatically.
2025-04-07 18:22:16 -07:00
Sayam Samal
b43d3dc1d4 settings: Fix alert notification indicator styling in settings. 2025-04-07 18:22:16 -07:00
Sayam Samal
616a957842 settings: Improve subsection header styling.
This commit makes all the subsection header as flex boxes, and improves
it's CSS styling.
2025-04-07 18:22:16 -07:00
Sayam Samal
6bf2887991 settings: Update save and discard buttons to redesigned button styles.
This commit updates the save and discard buttons in the setting modals
to use redesigned button styles along with the new loading indicator.
2025-04-07 18:22:16 -07:00
evykassirer
a16bc0e5b1 settings: Add a generic classname for two pane overlays. 2025-04-07 18:18:47 -07:00
evykassirer
8ee4554499 settings: Replace some two pane plus sign classnames with a generic one. 2025-04-07 18:18:47 -07:00
evykassirer
1abd3332a6 settings: Replace two pane header classnames with a generic one. 2025-04-07 18:18:47 -07:00
evykassirer
23b8ac0eab settings: Replace two pane container classnames with a generic one. 2025-04-07 18:18:47 -07:00
evykassirer
781c4448fd subscriptions: Combine same media queries. 2025-04-07 18:18:47 -07:00
Anders Kaseorg
80b607c8cb install: Remove PostgreSQL 13 support.
PostgreSQL 13 reaches end of life on November 13, 2025, and Django 5.2
does not support it.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-04-07 17:41:55 -07:00
Ritwik
9feba0f16f emoji: Remap ':smile' emoji and update the settings UI.
This commit remaps the ':smile' emoji to 😄 and
introduces ':slight_smile' which maps to `🙂`.

Fixes #32712
2025-04-07 17:34:52 -07:00
Tim Abbott
6c9de198b5 Revert "user-card-tooltip: Open user card when user-card-tooltip visible."
This reverts commit 3243d278e2.

This commit breaks the UI it claims to improve.
2025-04-07 17:27:19 -07:00
Anders Kaseorg
818742c62b install: Support PostgreSQL 17.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-04-07 16:42:19 -07:00
Shubham Padia
d11537a8cd streams: Change sorting order for add subscribers.
See
https://chat.zulip.org/#narrow/channel/101-design/topic/New.20channel.2Fgroup.20UX.20changes/with/2142992
for more details on the order.
We decided to have a common function called `sort_setting_options` which
accepts a compare function for `group` and `stream` settings each.
2025-04-07 16:26:30 -07:00
Shubham Padia
e0dda789ee streams: Open typeahead on click on adding subscribers.
We also added `flex-grow: 1` to the add group members and add stream
subscribers input. Without that, the typeahead won't open on click,
since there was no space occupied by the input to click on.
2025-04-07 16:26:30 -07:00
Shubham Padia
c4b30dd176 user_groups: Remove Add all users button from group creation screen.
Partially fixes #33127.
2025-04-07 16:26:30 -07:00
Shubham Padia
2314f20587 user_groups: Add subtitle when adding subscribers to new group.
Also modify the placeholder text.
2025-04-07 16:26:30 -07:00
Shubham Padia
b2108404e7 channels: Remove Add all users button from channel creation screen. 2025-04-07 16:26:30 -07:00
Shubham Padia
81ba1bcb61 channels: Add subtitle when adding subscribers to new channel.
Also modify the placeholder text.
2025-04-07 16:26:30 -07:00
Sahil Batra
f29166dbba settings: Do not pre-fetch DM permission group settings.
This commit updates code to not pre-fetch DM permission
group settings using select_related and instead just
fetch the required data from DB when checking permission.

This will increase one query but will help in pre-fetching
the settings for all users and for all type of messages.

Fixes part of #33677.
2025-04-07 15:34:30 -07:00
Sahil Batra
179782eaba user_groups: Refactor is_user_in_group and is_any_user_in_group.
This commit updates is_user_in_group and is_any_user_in_group
to accept group ID as parameter instead of UserGroup object.

This is a prep commit for updating code to not prefetch
direct message permissions group.
2025-04-07 15:34:30 -07:00
Karl Stolley
33522543c6 dark_theme: Clean up moving bar on main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
2e8c1407ae dark_theme: Clean up action link on main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
4ccea351f4 dark_theme: Clean up info-style main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
8f465c9836 dark_theme: Clean up error-style main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
78de5c05a1 dark_theme: Clean up warning-style main-view banner. 2025-04-07 15:07:14 -07:00
Karl Stolley
c2b1c2ca5a dark_theme: Clean up success-style main-view banner. 2025-04-07 15:07:14 -07:00
Varun-Kolanu
59d5d29ed8 integrations: Add support for GitLab design comments.
Fixes #26199.

Co-authored-by: Barış <barisunsalhn@users.noreply.github.com>
Co-authored-by: Satyam Bansal <sbansal1999@gmail.com>
2025-04-07 11:54:37 -07:00
Varun-Kolanu
aaa2db4079 webhooks: Support no_previews argument for markdown messages.
This commit enables skipping inline image previews
by passing the no_previews field to check_send_webhook_message.
2025-04-07 11:53:19 -07:00
Shubham Padia
496aa16f19 help-beta: Add component for emoticon translations table.
Fixes #31257.
2025-04-07 10:33:39 -07:00
ImDooMLorD
c07efb52a0 showroom: Fix dark theme in devtools buttons UI.
Add color-scheme: dark to :root.dark-theme in showroom.css to ensure
the dark theme is properly applied when toggled in the buttons UI.
This fixes an issue where the dark theme wasn't having any effect
in the /devtools/buttons/ interface.

Fixes #34039.
2025-04-07 10:20:26 -07:00
Shubham Padia
12afeee277 test_classes: Mention actual and expected count in assert_length. 2025-04-07 10:19:57 -07:00
Shubham Padia
8ee80f29ae test_events: Explicitly subscribe both users to a stream when testing.
When testing `do_deactivate_user`, we were getting a non-deterministic
failure where `peer_remove` event was not being sent. We were unable to
figure out the exact reason why, but this commit subscribes both the
user being deactivated and the user receiving the event to a new channel
in the hopes of this event being always sent regardless of other test
conditions.
2025-04-07 10:18:52 -07:00
Mateusz Mandera
5814ac559f do_change_user_email: Store old and new email in the audit log.
We forgot to store the actual values in the audit log, making these logs
not very helpful in actually auditing a user's email change history.
2025-04-05 07:25:46 -07:00
kash2104
daf7f855cc dm_headers: Show bot icon after bot name.
Fixes #32990.
2025-04-05 07:24:41 -07:00
Anders Kaseorg
39d8fa38fd update-for-legacy-translations: Don’t delete empty strings.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-04-05 07:17:47 -07:00
Tim Abbott
9dcdedf859 i18n: Update translations from Transifex. 2025-04-04 14:30:57 -07:00
Karl Stolley
d9b4b26878 settings: Make all of thead sticky. 2025-04-04 14:11:45 -07:00
Karl Stolley
5026a5b5c5 dark_theme: Remove out-specified compose recipients selector. 2025-04-04 14:04:52 -07:00