Commit Graph

64532 Commits

Author SHA1 Message Date
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
Evy Kassirer
e2474d8e44 peer_data: Rename get_loaded_subscriber_subset.
We have added an ability to partially load subscribers,
and this function name makes it more clear what it returns,
in contrast to an upcoming `get_full_subscriber_set`.
2025-05-01 17:15:40 -07:00
Evy Kassirer
2f2cd72f26 activity: Delete render_empty_user_list_message_if_needed.
This was added in b387ca4, before we had
`buddy_list.update_empty_list_placeholders`

Now it's not only duplicating that functionality, but will soon
maybe run at the wrong time once the buddy list `populate` starts
making `void` calls to `async` empty list placeholder code.
2025-05-01 17:15:40 -07:00
Harsh
eaa358dc88 settings_ui: Fix spacing for headings in settings. 2025-05-01 16:38:48 -07:00
Harsh
c6dddfe580 drafts: Show "No DM recipients" when recipients aren't specified. 2025-05-01 16:38:09 -07:00
Harsh
cfdb80ed48 typeahead: Replace code block language hint text with more clear options
This commit
- Replace the blank option with an italicized option that's the current
   default language, if there is one selected with "default" label.
- Make the "text" option more informative by adding (no highlighting)
   to the label.
- Remove the hint for "text".
- Prioritize as left to right, before start typing:
   blank/default language, text, quote, spoiler, math, everything else...

fixes: #33682
2025-05-01 16:36:20 -07:00
Alya Abbott
1dcda2ba9d settings: Change button intents on account & privacy panel. 2025-05-01 16:25:16 -07:00
Lauryn Menard
a7718c0548 demo-orgs: Update convert form text to be clearer. 2025-05-01 12:23:38 -07:00
Lauryn Menard
6d7bff4a16 create-realm: Simplify organization name field on new org form.
Removes the placeholder text and hint. Adds a link to the help
center article about creating your organization profile.

Fixes #34496.
2025-05-01 12:00:56 -07:00
Karl Stolley
18b2427937 bootstrap: Rescue decoupled app, portico alert styles. 2025-04-30 10:26:20 -07:00
Karl Stolley
0c07bf79f1 bootstrap: Clean up .close references.
Removing `.alert` from the dark theme seems acceptable,
as there is nowhere in the codebase we're setting a
`text-shadow` value that would require `none` here.
2025-04-30 10:26:20 -07:00
Karl Stolley
d7102f7443 compose: Remove unused .close class.
This is probably a vestige of Bootstrap, but there are
no meaningful styles or behaviors attached to this class.
2025-04-30 10:26:20 -07:00
Lauryn Menard
e69074e5a5 demo-orgs: Update tooltip for disabled personal email access setting. 2025-04-30 10:16:30 -07:00
Karl Stolley
9ae704510f org_settings: Correctly display long channel names. 2025-04-30 10:16:01 -07:00
Aman Agrawal
3cf4251944 registration: Only add realm creation context if form is for that. 2025-04-30 00:06:43 -07:00
Aman Agrawal
5d4142e056 realm_creation_form: Capture import_from if realm import enabled.
We store user's preference for `import_from` to be acted upon in
later commits.
2025-04-30 00:06:43 -07:00
Aman Agrawal
80e76d24e9 create_realm: Show import text only if automated import is disabled.
This helps preserve the original form in production.

The new "Import from" option button allows user to automate the
process, so this is not required in that case.
2025-04-30 00:06:43 -07:00
Aman Agrawal
b68479f623 tusd: Support None value for MAX_WEB_DATA_IMPORT_SIZE_MB.
Adds support for `None` and defines how different values will be
used in `prod_settings_template.py`.
2025-04-30 00:06:43 -07:00
Aman Agrawal
5a5660fcbf tusd: Use upload failure message similar to one in compose upload. 2025-04-30 00:06:43 -07:00
Anders Kaseorg
b248e2d931 tests: Assume failure in case the async task vanishes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-04-29 13:42:40 -07:00
Karl Stolley
16ac3c019a left_sidebar: Correct for bleedthrough on zoomed-in channel. 2025-04-29 13:26:46 -07:00
Lauryn Menard
af2a9cd0e0 showroom-banners: Update demo org banner for current design.
Updates the example banner in the devtools banner design page
for the changes to the demo organization banner.

This removes all uses of the banner-link class, but we keep the CSS
rules, since they're part of a component we may use elsewhere.
2025-04-29 12:25:28 -07:00