Commit Graph

67068 Commits

Author SHA1 Message Date
Alex Vandiver
c6a60fd533 exceptions: Add link to rate-limiting docs in 429 response. 2025-10-27 16:22:13 -07:00
Alex Vandiver
5c2b0d91d5 rate_limit: Additionally limit to 2000 authenticated requests per hour. 2025-10-27 16:22:13 -07:00
apoorvapendse
421ba8afcf paste: Prevent insertion of extraneous newlines in Firefox.
Firefox preserves the newlines when copying a visually
line-wrapped paragraph that originally contains zero
"intentional" newlines.

This fix removes those newlines from the text content before
pasting into the compose box.

This probably won't cause removall of intentional newlines,
as they are represented with <br/> tags in the `paste_html`.

Original report: https://rust-lang.zulipchat.com/#narrow/channel/122653-zulip/topic/Copy-paste.20includes.20hard.20newlines.20when.20message.20didn't/with/544174740

Discussion: https://chat.zulip.org/#narrow/channel/9-issues/topic/extraneous.20newlines.20when.20pasting.20in.20Firefox/with/2275319

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>

Co-authored-by: Alex Vandiver <alexmv@zulip.com>
2025-10-27 16:19:22 -07:00
Alex Vandiver
3ca5a49557 i18n: Properly handle when a locale is removed from Weblate. 2025-10-27 09:05:06 -07:00
Sahil Batra
c31a23d589 user-profile: Fix textarea being too small in "Manage user" modal.
This commit fixes textarea width being too small for "Long text"
custom profile fields in "Manage user" modal. This commit removes
the CSS which set the incorrect width and also restricts the
maximum width such that it does not overflows on narrow screens.
2025-10-24 07:15:26 -07:00
Sahil Batra
2ea21b00f7 modals: Restrict dropdown widget button widths to visible space.
This commit adds CSS to make sure dropdowns widgets remain inside
the visible area of the modals and are not cut off in narrow width
screens.
2025-10-24 07:15:26 -07:00
Sahil Batra
ad19c16dca modals: Restrict dropdown and input widths in narrow screens.
This commit adds CSS to make sure dropdowns and inputs, including
date type and pill inputs, remain inside the visible area of the
modals and are not cut off in narrow width screens.

Apart from setting max-width, this commit also changes the grid
CSS for datepicker input so the layout is arranged in such a way
that the "x" button is inside the input element and we can set
the max-width in a simpler way.
2025-10-24 07:15:26 -07:00
Sahil Batra
cce328a38f custom-profile-fields: Fix class name in datepicker input.
We previously added "settings_text_input" class to the datepickr
input in "Manage user" form as well, while other inputs have
"modal_text_input" class. This commit fixes that.
2025-10-24 07:15:26 -07:00
Anders Kaseorg
1714bfa173 requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-23 15:52:47 -07:00
Anders Kaseorg
69f2e95e49 install-uv: Upgrade uv from 0.8.22 to 0.9.5.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-23 15:52:47 -07:00
Anders Kaseorg
7e29b35fa0 saml: Update RelayState format.
The format was changed in social-core 4.5.0-5-gb6317968 and the old
format is removed in 4.7.0-49-g5d98d92a.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-23 15:52:47 -07:00
Alex Vandiver
c17564ac27 puppet: Include Zulip version and external host in camo User-Agent. 2025-10-23 15:40:21 -07:00
Alex Vandiver
5319b767a1 puppet: Add a get_django_setting_slow function.
The `_slow` is a hint that this function is not for general use.
2025-10-23 15:40:21 -07:00
Alex Vandiver
3f2aca5481 puppet: Add a zulip_version fact.
We use the version without the exact commit-id because Puppet likely
does not want to have a file that updates on literally every deploy.
2025-10-23 15:40:21 -07:00
Alex Vandiver
efa28c3a65 version: Add a version which does not change on every commit. 2025-10-23 15:40:21 -07:00
Tim Abbott
7406edd99c tools: Fix a linter issue caught by semgrep.
The issue was a new rule that didn't exist when the PR was written.
2025-10-23 14:33:58 -07:00
Vector73
2dca184fd3 github_action: Fix "notify-if-api-docs-changed" tool.
Fix `notify-if-api-docs-changed` tool to send the notification only
when "changelog.md" is changed in the PR.
2025-10-23 14:23:25 -07:00
Alex Vandiver
740be1d55c sync-translations: Wait until MERGED, not until not-OPEN.
The `gh pr list --search` results may have an _empty_ state for the
first several seconds, leading to this immediately aborting, deleting
the branch and closing the PR.
2025-10-23 14:17:01 -07:00
Alya Abbott
09bedafe25 contributor docs: Add intro section on how to be successful. 2025-10-23 14:16:28 -07:00
Alex Vandiver
d84ba0aba2 api_docs: Describe how to recognize thumbails. 2025-10-23 14:16:00 -07:00
Alex Vandiver
664409955c version: Update version for Zulip Server 11.4 release. 2025-10-23 20:18:50 +00:00
Alex Vandiver
17fd249a62 email_mirror_server: Fix the logfile path which is checked. 2025-10-23 11:57:30 -07:00
Alex Vandiver
6b7593add6 version: Update version for Zulip Server 11.3 release. 2025-10-23 04:11:07 +00:00
Alex Vandiver
f91bbee395 prometheus: Move weblate metrics to pushgateway.
We leave the weblate metrics server and add a cron job to fetch its
contents and post them to the pushgateway.
2025-10-22 11:57:02 -07:00
Alex Vandiver
25d156cc9c prometheus: Add a pushgateway.
Prometheus declares metrics to be "stale" if they go 5min without an
update[^1], and removes them -- which makes longer scrape intervals
impossible.

Add a pushgateway, which caches output from such jobs.

[^1]: https://prometheus.io/docs/prometheus/latest/querying/basics/#staleness
2025-10-22 11:57:02 -07:00
Alex Vandiver
bb5dc82ce6 navbar_alerts: Fix download link.
Fix this download link to not be a 404.
2025-10-22 11:30:55 -07:00
Anders Kaseorg
cdf5ff7acd forms: Correct TOTP token minimum value to 0.
A TOTP token value of 000000 is just as likely as any other value.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-22 11:30:03 -07:00
Lauryn Menard
9de4618202 docs: Remove trailing slash from canonical URL for non-root docs.
The root pages for API, integrations and policies documentation
have a trailing slash for the canoncial URL, but the individual
articles on those pages do not have a trailing slash for the page
we want to mark as canonical.
2025-10-22 13:48:23 -04:00
Anders Kaseorg
e9cdf6f41c submessage: Accept todo submessage with extra_data: null.
Before commit 6df3ad251a (#24235),
get_extra_data_from_widget_type would initialize extra_data to null
for todo messages.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-22 10:26:21 -07:00
Aman Agrawal
2b2b6fda5d hello: Replace level up logo with linux foundation logo. 2025-10-22 10:12:09 -07:00
Alex Vandiver
f26ffdff03 i18n: Updated .po files for new strings. 2025-10-22 10:16:02 -04:00
Hosted Weblate
b02e739d1b i18n: Sync translations from Weblate. 2025-10-22 10:16:02 -04:00
Alex Vandiver
d87d307e53 kandra: Skip Grafana JWT role sync; we set roles in the UI. 2025-10-22 13:24:12 +00:00
Tim Abbott
6262c81375 templates: Tweak demo-owner-update-email-field-hint text. 2025-10-21 18:02:36 -07:00
Lauryn Menard
476ee37bf3 demo-orgs: Add email address visibility update to add email modal.
Adds a field to update the demo organization owner's email address
visibility setting when they are adding an email to their account.
2025-10-21 18:00:48 -07:00
Lauryn Menard
ef2c2fe885 demo-orgs: Make note about name field a hint in add email modal.
Moves the note about possibly updating the name field from the top
of the modal to instead be a hint/subtitle under the field on the
form.
2025-10-21 18:00:48 -07:00
Alex Vandiver
a925671179 corporate: Add canonical URLs. 2025-10-21 14:25:16 -07:00
Aneesh Hegde
f778c853ea webhooks_gitea: Add tests and fixture for correct actor on PR close.
Previously, closing a pull request by someone other than its creator could result in Zulip notifications attributing the action to the wrong user.

This change adds a focused test and a fixture capturing the case where the webhook sender differs from pull_request.user, ensuring the correct actor is mentioned for pull_request close events.

Follow-up to #36184.
2025-10-21 13:23:31 -07:00
Pratik Chanda
ffa9c1e6a3 widget: Hide widgets from muted users like normal messages.
Earlier, messages from muted users were hidden with a hidden dialog
but widgets were still visible.

This commit corrects this behaviour by hiding it if the message
container is supposed to be hidden.

Fixes part of zulip#34886.
2025-10-21 12:27:18 -07:00
Alex Vandiver
a8f0cb2cf9 restart-server: All realm Tornado ports need a restart when they change. 2025-10-21 11:38:03 -07:00
Alex Vandiver
21f08265de restart-server: --tornado-reshard implies --skip-client-reloads.
The flags are marked mutually exclusive, so don't pass both; have the
former imply the latter.
2025-10-21 11:38:03 -07:00
Alex Vandiver
b61b495112 puppet: Update dependencies. 2025-10-21 08:28:18 -07:00
Aman Agrawal
aa17bc20cd message_list_view: Fix failing test.
It was throwing error when running test for
message_list_view without failing the entire test suite.
2025-10-21 08:27:39 -07:00
Sahil Batra
2abbc058ab settings: Live update role text in "Profile" panel. 2025-10-20 16:40:01 -07:00
Sahil Batra
53a221dff9 user-profile: Redirect to profile panel when admin becomes non-admin.
This commit adds code to redirect to profile panel when an admins
changes their role to become a non-admin user from user profile
modal.
2025-10-20 16:40:01 -07:00
whilstsomebody
2378d7700b user_profile: Disable role dropdown for only owner.
This commit adds code to disable the role dropdown
when an owner is editing their own profile and they
are the only owner in the organization and a tooltip
is shown mentioning that.

We already keep the role dropdown disabled when an
admin user was managing an owner's profile.

Fixes #34830.
2025-10-20 16:40:01 -07:00
Sahil Batra
e10f1ef260 user-profile: Rename class for edit pencil buttons.
This commit renames classes used for edit pencil button in
the profile modal header so that class names are clear enough
to specify what the buttons do. This rename is needed because
admins can now see "Edit profile" tab, i.e. the "Manage user"
tab for other users, in their own profile modal.

Co-Authored-by: Aman Vishwakarma <vishwakarmarambhawan572@gmail.com>
2025-10-20 16:40:01 -07:00
whilstsomebody
f5af6f9d7f user_profile: Use "Edit profile" label for user's own profile.
This commit renames tab heading, tooltip and aria-label for the
pencil edit icon in the profile modal header from "Manage user"
to "Edit profile" for admin's own profile.

Fixes part of #34830.
2025-10-20 16:40:01 -07:00
Sahil Batra
c58ae7f4f0 user-profile: Update header edit icon for admin's own profile.
For admin users, clicking on pencil edit icon in the profile
modal header opens the "Manage user" tab.

For non-admins, "Profile" settings panel is opened as before.

Fixes part of #34830.

Co-Authored-by: Aman Vishwakarma <vishwakarmarambhawan572@gmail.com>
2025-10-20 16:40:01 -07:00
whilstsomebody
9813f11abf user_profile: Show manage profile tab for admin's own profile.
Previouly admins did not see "Manage user" tab in their own
profile modal. This commit updates it to show the "Manage user"
tab to admins in their own profile modal as well.

Fixes part of #34830.
2025-10-20 16:40:01 -07:00