Commit Graph

64853 Commits

Author SHA1 Message Date
Evy Kassirer
497ba6bd25 compose_action: Move missed PM recipient into compose_defaults. 2025-05-08 09:35:53 -07:00
Evy Kassirer
1ade634728 compose_actions: Reset start_called in tests. 2025-05-08 09:35:53 -07:00
Maneesh Shukla
c6660fbea7 group_panel: Fix the description below "Add members" label. 2025-05-07 16:51:51 -07:00
Maneesh Shukla
67631225c4 tooltips: Show tooltip on disabled "Add" button in group and channel settings.
Fixes: #34325.
2025-05-07 16:51:51 -07:00
Niloth P
f57768f4c4 integration-docs: Update Discourse for new doc format.
Part of zulip#29592.
2025-05-07 16:50:12 -07:00
Lauryn Menard
fde3e01236 demo-orgs: Use banners for org settings demo organization warning.
Migrate the demo organization warning that's shown on all the tabs
for organization settings to use the shared banner code.

Updates links in the current warning to be buttons in the banner,
and matches the navbar alert banner for demo organizations.

Fixes #34447.
2025-05-07 16:48:12 -07:00
Lauryn Menard
43b13c938b demo-orgs: Update event listeners that open convert org modal. 2025-05-07 16:48:12 -07:00
Lauryn Menard
d7afd6af42 navbar-alerts: Clean up demo organization banner label generation.
Since we're no longer adding links to this banner, we don't need
to use "$t_html" when generating the label for the demo organization
warning banner.

Follow-up to #34518.
2025-05-07 16:48:12 -07:00
Lauryn Menard
2b089c7e98 api-docs: Revise POST report-message endpoint descriptions.
Fixes the version of Zulip in the main changes note for this new
endpoint.

Revises the main description and the parameter/error descriptions.
2025-05-07 13:19:29 -07:00
Niloth P
ed005e7bf7 integration-docs: Update URL in change-zulip-config-file macro.
Use the context variable `zulip_url` instead of `api_url` to remove the
'/api' suffix.
2025-05-07 12:57:53 -07:00
Mateusz Mandera
420b84e79c migration: Prepare for backporting of migration 0700.
This follows our usual backporting scheme, occurring e.g.
in #31468. We make the migration depend on the last migration in 10.x,
and create a merge migration to avoid having multiple leafs.
2025-05-07 12:56:33 -07:00
PieterCK
0a2d7eedf8 integrations: Use real replace_link in Slack webhook.
The real `replace_link` function is now available. This cleans up the
duplicate and switches it with the real one instead.
2025-05-07 12:45:27 -07:00
Evy Kassirer
cbc4dfb086 compose: Fix broken logic in 'finish' test.
It doesn't make sense that there would be no compose pill user ids
if there were compose pill emails, and there needs to be permission
to send a direct message or the message won't successfully send.

This was working before because `user_ids_string` ended up empty
in `validate_private_message`, which incorrectly returned true
for `check_dm_permissions_and_get_error_string`.
2025-05-07 09:32:02 -07:00
Evy Kassirer
b210456e35 compose_actions: Fix on_narrow tests to pass opts correctly. 2025-05-07 09:31:19 -07:00
Evy Kassirer
f648a7f515 compose_actions: Update and sync type for on_narrow. 2025-05-07 09:31:19 -07:00
PieterCK
0814fb88c1 api: Add a new endpoint for message reporting.
This adds a new API endpoint that enables users to report messages for
review by admins or moderators. Reports will be sent to the
`moderate_request_channel`, so it must be configured for this feature to
be enabled.

Fixes part of #20047.

Co-authored-by: Adam Sah <140002+asah@users.noreply.github.com>
2025-05-06 15:59:55 -07:00
PieterCK
862298ad16 mention: Support silent mention for UserDisplayRecipient.
This makes `silent_mention_syntax_for_user` accepts a
`UserDisplayRecipient` type user mention which is a TypedDict.
2025-05-06 15:58:58 -07:00
Tim Abbott
c09b0b9b6b tools: Fix temporary feature level calculation. 2025-05-06 15:58:58 -07:00
Maneesh Shukla
46cd38d1b0 settings: Redesign buttons in channel and group settings.
Fixes: #34253.
2025-05-06 13:34:59 -07:00
Karl Stolley
2ae2589494 thumbnails: Constrain thumbnails to 10em height only. 2025-05-06 13:16:00 -07:00
Mateusz Mandera
b8ed03f5b7 ldap: Add migration to fix incorrect system group memberships.
In #34510 we fixed the underlying bug in the ldap integration, which
would cause users to end up with their system group memberships not
matching their .role value. However, users who may already be in that
state still need to be fixed through a migration. We implement that
here.

There are two things we fix here:
1. Group memberships. The user should have a direct group membership
   for the specific system group implied by their .role.
2. We want to also add the missing RealmAuditLog entry.
2025-05-06 12:54:35 -07:00
Mateusz Mandera
74019706d7 populate_analytics_db: Create missing system group memberships. 2025-05-06 12:54:35 -07:00
Pratik Chanda
fdf7bc0888 stream_edit: Org permission not reflecting in channel permission.
Earlier, permission in edit panel of channel settings was not the
same as that of org permission, specifically for public channel
option.

This commit fixes that by updating the privacy option state.

Fixes:zulip#34526.
2025-05-06 12:54:10 -07:00
PieterCK
cc39b6860b email_change: Use HTML error for user deactivated error.
Currently when a deactivated user tries to access the change email link
(generated when their account still active), a JSON error message will
be shown.

This adds a new portico error page for user deactivated errors. Now,
`confirm_email_change` renders a portico error page when the user trying
to change their email is deactivated.

Fixes #20227.
2025-05-06 11:12:16 -07:00
Evy Kassirer
8fab9a23ce compose_validate: Fetch all subscribers before private channel warning.
Work towards #34244

This is the only call to `peer_data.is_subscriber_subset`, so after
this commit all calls to that function work with our new model for
partial subscriber data.
2025-05-06 10:26:36 -07:00
Evy Kassirer
91703ece01 compose_validate: Fetch subscribers before unsubscribed group mention warning.
Work towards #34244.
2025-05-06 10:09:36 -07:00
Evy Kassirer
768f8bc968 compose_validate: Fetch subscribers before unsubscribed user mention warning.
Work towards #34244.
2025-05-06 10:09:36 -07:00
Evy Kassirer
4b9515e181 compose_validate: Remove invalid email messaging.
This should no longer be possible because we validate emails
before creating user pills.
2025-05-06 09:53:47 -07:00
Evy Kassirer
d7c4081d5a peer_data: Remove extraneous await.
Followup to https://github.com/zulip/zulip/pull/34434#discussion_r2073976037
2025-05-06 09:52:34 -07:00
Anders Kaseorg
dc7f34491b dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-05 14:15:44 -07:00
Anders Kaseorg
2354653f33 install-node: Upgrade Node.js from 22.14.0 to 22.15.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-05 14:15:44 -07:00
nirved.mishra.eee23@itbhu.ac.in
3fc63110ac incoming-webhooks: Add OpenProject integration.
Fixes #29944.

Co-authored-by: theofficialvedantjoshi <vedant.messi101@gmail.com>
Co-authored-by: Niloth P <20315308+Niloth-p@users.noreply.github.com>
2025-05-05 12:23:04 -07:00
Alex Vandiver
614fdee5ca kandra: Add a pattern grouping for /api/v1/tus/.
We already had one for `/api/v1/tus/...`, but not the bare
`/api/v1/tus/` which is used to initiate the upload.
2025-05-05 12:13:16 -07:00
Anders Kaseorg
c1a95b8ed6 channel: Remove PATCH as POST workaround.
Fixes part of #1403.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-05 12:13:00 -07:00
Anders Kaseorg
8f6c376835 web: Fix nonsensical use of TypeScript Omit<>.
Omit<…, "undefined"> removes the "undefined" key from an object.  The
intention was clearly Exclude<…, undefined> which removes undefined
from a union, or NonNullable<…> which removes both undefined and null.
However, it’s simpler here to provide the expected type directly.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-05 12:12:20 -07:00
Evy Kassirer
24c469f9c9 peer_data: Add ability to retry failed subscriber fetch. 2025-05-05 09:27:53 -07:00
Evy Kassirer
472db12c15 people: Replace sort_numerically with util.sorted_ids. 2025-05-05 09:11:41 -07:00
Anders Kaseorg
acd7353538 requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-05 09:10:19 -07:00
Anders Kaseorg
7566e6549e test_auth_backends: Fix AuthException construction.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-05 09:10:19 -07:00
Anders Kaseorg
fe96666782 install-uv: Upgrade uv from 0.6.13 to 0.7.2.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-05 09:10:19 -07:00
Lauryn Menard
81befa2833 api-docs: Fix feature level text for POST /reminders endpoint. 2025-05-05 09:07:49 -07:00
Aman Agrawal
733817cb51 reminders: Add API endpoint to schedule reminders. 2025-05-02 16:48:00 -07:00
Aman Agrawal
ad9cb50183 scheduled_messages: Extract exception for invalid delivery time. 2025-05-02 16:48:00 -07:00
Sahil Batra
1af039d87b stream-settings: Fix live update of subscribers UI.
Changes done here are -

- Previously the pill input, "Add" button and tooltip shown
when user did not have permission were not live updated when
updating can_add_subscribers_group and can_subscribe_group
stream level settings or can_add_subscribers_group realm
level setting. This commit fixes that.

- Also, when the UI was live updated to give user permission
to subscribe others, "Add" button was enabled even when
input was empty. This is also fixed in this commit.
2025-05-02 16:23:52 -07:00
Sahil Batra
ad5d4f4494 settings: Refactor live update code for a couple of group settings.
This commit refactors code to live update UI for a couple of
group settings by setting the live update functions for those
settings in realm_settings object.
2025-05-02 16:23:52 -07:00
Evy Kassirer
2be8277a68 peer_data: Return null if fetching subscribers fails. 2025-05-01 17:15:40 -07:00
Evy Kassirer
b0aff0af77 peer_data: Store peer add/remove events that come during fetch requests. 2025-05-01 17:15:40 -07:00
Evy Kassirer
c3ce273c4b buddy_list: Don't update UI after await calls when view has changed. 2025-05-01 17:15:40 -07:00
Evy Kassirer
406e3d2f08 buddy_list: Set temporary tooltip message while fetching subscribers.
This lets us avoid having an empty tooltip for a while when there's
a slow connection.
2025-05-01 17:15:40 -07:00
Evy Kassirer
8efe6a7b67 buddy_list: Fetch full subscriber data before showing user counts.
Work towards #34244.

Note that this doesn't show the right counts when the counts appear, because
yet. We can double check functionality after that change is complete.
2025-05-01 17:15:40 -07:00