Commit Graph

65750 Commits

Author SHA1 Message Date
Sahil Batra
b9e9697be2 settings: Fix maxlength for name input in "Profile" panel.
The "maxlength" attribute for "Full name" input in "Profile"
settings panel was incorrectly set to 60, when we allow
maximum 100 characters. This commit fixes that.
2025-07-18 12:46:48 -07:00
Shubham Padia
4dc802aa9a help-beta: Add option to format mdx documents.
Partially fixes #35129.

Prettier could not be used because of prettier issue number 12209, not
linked here to avoid spam backlinks on the original issue. Prettier does
not have support for mdx v2 and v3.

We are using remarkLintRulesLintRecommended and
remarkPresentLintMarkdownStyleGuide as our starting set of rules.
None of the rules were giving an error on the starting set, but some
rules were giving lots of warnings on the generated mdx. They are
set to false in this file, we can add them back later as and when
required.

We have not inserted this in the main lint tool, we should do that in
the final cutover PR since we don't want the lint here to give any
unexpected warnings when people are linting stuff unrelated to the mdx
files.

This commit has been tested out on the current state of help center to
not produce any errors or warnings. The first run of format will produce
tons of warnings which are the issues being auto-fixed by the linter.
After that, the second run should produce zero errors.
2025-07-18 12:44:29 -07:00
Shubham Padia
48c8e0a700 help: Fix instances of empty url.
The linting in our new help center does not allow empty urls, so we
need to fix it at source before conversion. We replace these with
destinations on the current page.
2025-07-18 12:44:13 -07:00
Shubham Padia
d9bd2731da help: Use triple dash for comments. 2025-07-18 12:38:57 -07:00
Alex Vandiver
51f214877f message_edit: Improve error message string. 2025-07-18 11:08:34 -07:00
Alex Vandiver
10cf86291e i18n: Trim some unnecessary leading/trailing spaces from translation strings. 2025-07-18 11:08:34 -07:00
Alex Vandiver
4c2cf4dca8 compilemessages: Weblate's Language-Team uses <>. 2025-07-18 04:33:52 +00:00
Alex Vandiver
7f90f9b864 i18n: Trim and remove "fuzzy" flag from msgstr with trimmed msgid.
This repeats #34801, but also covers the cases where the msgstr was
already trimmed, because the translator did not bother to include the
leading/trailing whitespace in their translations.
2025-07-18 03:47:45 +00:00
Alex Vandiver
808e47c4e8 i18n: Update .po files with ./manage.py makemessages. 2025-07-18 03:41:11 +00:00
Hosted Weblate
83b762ef98 i18n: Sync translations from Weblate. 2025-07-18 05:24:13 +02:00
Tim Abbott
d465705177 api: Document meaning for twenty_four_hour_time=null.
This documentation-only change will allow us to add that as a valid
value in the future, by having client implementations not crash on
seeing the value.

See [the API design discussion](https://chat.zulip.org/#narrow/channel/378-api-design/topic/.60user_settings.2Etwenty_four_hour_time.60/near/2220575).
2025-07-17 17:45:49 -07:00
Pratik Chanda
e04e281413 search: Remove background suggestion highlight for text search.
This commit removes the background suggestion highlight in the
search suggestion for text search suggestion.
2025-07-17 15:57:53 -07:00
Tim Abbott
fe8853bcc9 api: Increment API feature level to 407. 2025-07-17 15:45:17 -07:00
Alya Abbott
854c7d4ea8 help: Update help center for new channel permissions. 2025-07-17 15:44:53 -07:00
Vector73
9e63cd57fe tests: Add tests for deleting private messages. 2025-07-17 15:44:53 -07:00
Vector73
97e98e0f8f settings: Rename organizaton-level delete own message setting label. 2025-07-17 15:44:53 -07:00
Vector73
a02614204a settings: Add can_set_delete_message_policy_group setting.
Adds new organization setting `can_set_delete_message_policy_group`
for defining who can set per-channel message delete permissions.

Fixes #34214.
2025-07-17 15:44:53 -07:00
Vector73
97a43fa6b6 stream_settings: Add can_delete_own_message_group setting.
Adds per-channel `can_delete_own_message_group` setting for
defining who can delete their own message in the channel.
2025-07-17 15:44:52 -07:00
Vector73
c4e641365b stream_settings: Add can_delete_any_message_group setting.
Adds per-channel can_delete_any_message_group setting for
defining who can delete any message in the channel.
2025-07-17 15:44:42 -07:00
Vector73
be1876c01c message_edit: Add is_spectator check for deletability of message. 2025-07-17 15:36:15 -07:00
Anders Kaseorg
d24eab02d2 request: Use Django 5.2 HttpRequest.get_preferred_type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-07-17 14:37:11 -07:00
Anders Kaseorg
6006ba4c44 upload: Make closest_thumbnail_format take an HttpRequest.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-07-17 14:37:11 -07:00
Alya Abbott
f3e12b2403 portico: Add new features to comparison table. 2025-07-17 14:35:20 -07:00
Alya Abbott
6bf278cfa5 help: Cross-reference scheduled messages with message reminders. 2025-07-17 12:08:20 -07:00
Tim Abbott
8933f21e60 version: Update version following 11.0-beta1. 2025-07-17 11:51:19 -07:00
Tim Abbott
e77733c8d5 Release Zulip Server 11.0-beta1. 11.0-beta1 2025-07-17 11:37:40 -07:00
Tim Abbott
ae80f81a42 Revert "i18n: Run ./manage.py makemessages to regenerate .po files."
This reverts commit 3ad8395aba.

The Weblate merge conflicts are too annoying with this having sat
overnight.
2025-07-17 09:56:05 -07:00
Tim Abbott
6d9ae6fcd5 Revert "i18n: Trim and remove "fuzzy" flag from msgstr with trimmed msgid."
This reverts commit a9c37cbc07.
2025-07-17 09:56:05 -07:00
Tim Abbott
05700ce943 docs: Update changelog in preparation for 11.0-beta1. 2025-07-17 09:42:50 -07:00
Shubham Padia
81fbc93cd9 help-beta: Build step should accept --no-relative-links.
Partially fixes #35131.
2025-07-17 09:22:13 -07:00
Shubham Padia
9c22cc07f6 help-beta: Remove top margin from unplugin icons.
In some cases, some of the starlight css was inserting a margin top of
1rem to the svg tag inserted by unplgin-icons. We make the top margin
0 explicitly to make sure that extra margin is not added.
2025-07-17 09:21:16 -07:00
Shubham Padia
a738ac0ff7 help-beta: Fix incorrectly linked entries in sidebar.
Slug was mentioned for the two entries in question as if they were
normal help pages, but they were external links and should have been
mentioned accordingly.
2025-07-17 09:20:34 -07:00
Alex Vandiver
a9c37cbc07 i18n: Trim and remove "fuzzy" flag from msgstr with trimmed msgid.
This repeats #34801, but also covers the cases where the msgstr was
already trimmed, because the translator did not bother to include the
leading/trailing whitespace in their translations.
2025-07-17 09:14:32 -07:00
Alex Vandiver
3ad8395aba i18n: Run ./manage.py makemessages to regenerate .po files. 2025-07-17 09:14:32 -07:00
Vector73
a75db9250b compose_validate: Don't show moved warning if current user moved topic.
If the current user has moved the topic, don't show the topic moved
compose warning banner.

Fixes #35083.
2025-07-17 09:12:50 -07:00
Sahil Batra
141be13d6d users: Send email when deactivating user from "Manage user" modal.
We show the UI to send email to the user being deactivated when
deactivating user from button in "Manage user" section of user
profile modal, but the email text was not included in the API
request sent to server and thus no email was sent. This commit
fixes it to send the email if it was configured while deactivating
the user from "Manage user" modal.
2025-07-17 09:11:49 -07:00
Alex Vandiver
ec7e5dc8b6 docs: Update for switch from Transifex to Weblate. 2025-07-16 19:59:20 -07:00
Alex Vandiver
f22680da31 i18n: Update tooling from Transifex to Weblate. 2025-07-16 19:59:20 -07:00
Alex Vandiver
d1995687c9 i18n: Remove mobile.json-related codepaths. 2025-07-16 19:59:20 -07:00
Alex Vandiver
a117181fdb i18n: Update translations from Transifex, for low-percentage languages. 2025-07-16 18:37:05 -07:00
Alex Vandiver
43034a79b6 run_hooks: Make post-deploy hooks be best-effort. 2025-07-16 18:00:47 -07:00
Rohan Gudimetla
608b9bc761 lightbox: Fix media asset preview in composebox.
0229f73fae introduced a bug wherein
while caching the media assets keyed using the message id, previews of
media from composebox which also used same codepath attempted to find
the message id from the asset. This resulted in an assertion error.

This is fixed by making sure that compose previewable assets are
never cached nor attempted to fetch from cache since they don't
have a message id yet.

Co-authored-by: Tim Abbott <tabbott@zulip.com>
2025-07-16 17:33:07 -07:00
Rohan Gudimetla
3ec0439c89 markdown: Tweak audio element styles for chromium based browsers.
This commit tweaks some styles for audio elements of chromium
based browsers using `webkit` so as to render them in styles
similar to firefox.
2025-07-16 17:01:06 -07:00
Alex Vandiver
7da05b3f7d tests: Rename gcm_devices to fcm_devices.
We only use GCM in the code when strictly necessary.
2025-07-16 16:59:58 -07:00
Alex Vandiver
5d585eff37 tests: Remove unnecessary tuples. 2025-07-16 16:59:58 -07:00
Alex Vandiver
3e5af466e4 push_notifications: Remove vestiges of base64 storage of tokens.
APNs tokens are provided by the client in hex, and we store them in
hex.  The existing code which attempts to "validate" them by parsing
them as base64 only works because base64 is a superset of hex.

Enforce that APNs tokens are hex, and remove all of the pieces of test
code which were incorrectly passing them in as base64 strings.
2025-07-16 16:59:58 -07:00
Maneesh Shukla
3bd8c28fca buttons: Redesign some old-style buttons with rounded class.
Fixes part of #35006.
2025-07-16 14:46:23 -07:00
PieterCK
9de1b47ffa slack_import: Improve topic name for Slack threads.
This updates the topic name format for Slack threads to include a
snippet of the original message. Currently the format looks like this;
"{date} Slack thread {n}", which provides little to no context about the
thread.

Currently we also use the `thread_ts_str` key to keep track of Slack
threads we're converting, this key format makes it so that it has a
small chance of combining threads with the same timestamp under one
topic. This commit updates it to use a new key format, `thread_key`.

Fixes #27661.
2025-07-16 14:32:05 -07:00
Mateusz Mandera
4210ccc5db realm_reactivation: Use redirect-to-POST trick.
Uses the approach done for email change confirmations in #34980 to avoid
triggering a reactivation via just a GET request. Instead, the GET
should return a page which will trigger the browser to then POST the key
to the endpoint.
2025-07-16 13:53:20 -07:00
Tim Abbott
5b00cb6753 Partially revert "home: Enable partial_subscribers in web app."
This reverts commit 458c660f65.

We realized we need one more pull request before we can turn this on.
I kept the hunks related to finalizing the cutoffs.
2025-07-16 13:26:33 -07:00