Commit Graph

64046 Commits

Author SHA1 Message Date
Aman Agrawal
2dd46fe522 compose_validate: Make validate single source for error messages.
Instead of relying on different functions to get error messages,
we use `validate` to get the error message for the current compose
state.

This fixes a bug where compose tooltip was not defined when
compose state was not valid.

(cherry picked from commit 01c5197dd9)
2025-03-27 16:53:35 -07:00
Aman Agrawal
698c827693 compose_validate: Extract banner text to be re-used.
(cherry picked from commit 0463f3ab1e)
2025-03-27 16:53:35 -07:00
Aman Agrawal
319e6de495 compose_validate: Don't mix validation states for compose and edit msg.
`message_too_long` is only used to track state for compose box
and not message edit.

(cherry picked from commit 8a9363c6b7)
2025-03-27 16:53:35 -07:00
Aman Agrawal
fa0da5e9ab compose: Reduce repeated no posting policy message to couple places.
(cherry picked from commit 9ce4cead44)
2025-03-27 16:53:35 -07:00
Aman Agrawal
b047bf4d44 compose: Remove old style compose send disable.
We now use `disabled-message-send-controls` class to control
the disabled status of send button. So, this is not required.

(cherry picked from commit ad0b616bbd)
2025-03-27 16:53:35 -07:00
Sayam Samal
260c56ab0c banners: Fix banner action buttons vertical alignment.
(cherry picked from commit 5f0a55544b)
2025-03-27 16:53:35 -07:00
Sayam Samal
b7919e1957 banners: Update banner layout.
This is follow-up commit for d00b4cb0bd,
which updates the padding of the banner label and banner close button
to accommodate the previous font size change.

(cherry picked from commit 836e04fac8)
2025-03-27 16:53:35 -07:00
Sayam Samal
26c983d717 banners: Improve banner scaling with font size.
This commit converts the pixel values to em instead to make the banner
scale better with the different font sizes.

(cherry picked from commit bf88426cd1)
2025-03-27 16:53:35 -07:00
Aman Agrawal
c1d321012a registration: Fix language code missing for find_team emails.
If there were no users found for `find_team`, we need to provide
a default langauge for the email as one cannot be extracted from
`UserProfile` in this case.

(cherry picked from commit e6dd79f241)
2025-03-27 16:53:35 -07:00
Shubham Padia
ac9a97e1a7 streams: Use bulk function in can_access_stream_metadata_user_ids.
Performance remains the same whether we're using the bulk function
underneath the function in question or not, this helps us avoid
duplication.

(cherry picked from commit 2e48293e4b)
2025-03-27 16:53:35 -07:00
Shubham Padia
e6f3c15a92 test_subs: Check query count for can_access_stream_metadata_user_ids.
We want this function to just use the bulk function instead underneath,
we add a query count check here so that when we do that replace in the
next commit, we can make sure that the query count has not increased.

(cherry picked from commit 0570bfa90c)
2025-03-27 16:53:35 -07:00
Shubham Padia
06172ea126 user_groups: Send metadata access related events on remove subgroups.
Fixes #33420.

(cherry picked from commit 6833ad8a21)
2025-03-27 16:53:35 -07:00
Shubham Padia
003ea23eb3 user_groups: Send metadata access related events on add subgroups.
(cherry picked from commit c06dae81fb)
2025-03-27 16:53:35 -07:00
Shubham Padia
e9f1d5a4ca user_groups: Send metadata access related events on remove members.
(cherry picked from commit e089eb0fa1)
2025-03-27 16:53:35 -07:00
Shubham Padia
5aeda0417d user_groups: Send metadata access related events on add members.
(cherry picked from commit 8c069674b0)
2025-03-27 16:53:35 -07:00
Shubham Padia
7f85d045db streams: Add get_metadata_access_streams_via_group_ids.
(cherry picked from commit b62d51f0ae)
2025-03-27 16:53:35 -07:00
Shubham Padia
1e896d9878 user_groups: Add get_recursive_supergroups_union_for_groups.
This function will be useful in finding out affected groups when
sending events for users gaining or losing metadata access when the
members of a user group change in any way.

(cherry picked from commit 139679cdb1)
2025-03-27 16:53:35 -07:00
Shubham Padia
5d947cb501 streams: Add bulk_access_stream_metadata_user_ids.
This function will be useful in sending events for users gaining or
losing metadata access when the members of a user group change in any
way.

(cherry picked from commit 208ee1b8d9)
2025-03-27 16:53:35 -07:00
Alex Vandiver
b99656d3f2 message: Enforce no parallel bitmap heap scans.
(cherry picked from commit 74d6f033b0)
2025-03-27 16:53:35 -07:00
Alex Vandiver
611085abc2 message: Move join to recipients outside of LIMIT, via CTE.
(cherry picked from commit 70ed1ee46c)
2025-03-27 16:53:35 -07:00
Evy Kassirer
c1a00e7308 stream_settings: Move muted channels help text to below header.
(cherry picked from commit 8adb46867b)
2025-03-27 16:53:35 -07:00
Karl Stolley
c2fc886a8a left_sidebar: Avoid misaligned unreads on Safari.
(cherry picked from commit 852b957da8)
2025-03-27 16:53:35 -07:00
Aman Agrawal
c2484b01de stream_settings: Fix action items overflowing to next container.
`+` icon was overflowing the right pane on 18px font size.

(cherry picked from commit fde6278e34)
2025-03-26 10:55:07 -07:00
Aman Agrawal
a42d31bcb2 subscriptions: Fix wrapping of channel name above 18px font size.
We limit the width of the channel title and show ellipsis for
overflowing channel name.

(cherry picked from commit c7364fafe5)
2025-03-26 10:55:07 -07:00
Aman Agrawal
e3d4677ac5 stream_settings: Fix incorrect use of translated strings in conditions.
Since the strings like "Subscribed" will be translated to other
languages, they will not work correctly when compared with
these values in other languages.

Fixed by using data values that are not translated.

(cherry picked from commit 3429898dbf)
2025-03-26 10:55:07 -07:00
Aman Agrawal
f12d72d711 stream_list_sort: Fix user setting for demote inactive stream ignored.
We were not using `filter_out_inactives` and `pin_to_top` when
sorting stream in the left sidebar.

These were incorrectly removed in
1aee0ef98b.

Restored the original function and the places where it was used
to bring back original functionality.

(cherry picked from commit 67ff430e45)
2025-03-26 10:55:07 -07:00
Aman Agrawal
30e52c90e5 stream_list_sort: Remove unused function.
This function was introduced in c1b5021d84
but was never used.

(cherry picked from commit 87864992a8)
2025-03-26 10:55:07 -07:00
Aman Agrawal
b78307d559 stream_list: Set filter_out_inactives before rendering.
When initializing the app or re-rendering left sidebar to update
the `demote_inactive_streams` property, we need to update
`filter_out_inactives` property first.

(cherry picked from commit 737acb1cb1)
2025-03-26 10:55:07 -07:00
Alex Vandiver
f902a39ac9 nginx: Allow adding extra monitoring paths in a localhost.d.
(cherry picked from commit 023e634e98)
2025-03-26 10:55:07 -07:00
Mateusz Mandera
6ef28773a1 migrations: Fix migration 0574 to handle edge-case DirectMessageGroups.
The Django ORM query would not work correctly for pathological
DirectMessageGroups with no Subscription rows. When the Subquery gave
empty results, the UPDATE would set group_size to null - when the point
of the migration was exactly to make sure this column is always set and
allow making the column non-nullable in 0575.

Such DirectMessageGroups can occur as a result doing .delete() on all
UserProfiles that were in the group - or by doing realm deletion via
either .delete() or `manage.py delete_realm`.

The natural choice for group_size of these objects is 0. The simple SQL
query naturally achieves this result, without needing any special
handling for this case.

(cherry picked from commit 60e166bcd0)
2025-03-26 10:55:07 -07:00
Anders Kaseorg
1a82ce38af install: Move ourself to deployments path before creating venv.
This prevents the venv from ending up with references to /root.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit c517e95e6b)
2025-03-26 10:55:07 -07:00
Anders Kaseorg
f972e4f832 docs: Work around uv bugs in Ubuntu 24.04 upgrade instructions.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 343e9a99ae)
2025-03-26 10:55:07 -07:00
Tim Abbott
367f1e634a version: Update version and docs after 10.0 release. 2025-03-20 13:58:34 -07:00
Tim Abbott
ab0446fb4a Release Zulip Server 10.0. 10.0 2025-03-20 12:41:45 -07:00
Tim Abbott
ef3be27502 docs: Update changelog since beta2. 2025-03-20 12:40:00 -07:00
Alya Abbott
daf88ee9e9 docs: Document AI integrations. 2025-03-20 11:51:00 -07:00
Alya Abbott
17159cd062 updates: Add update message (level=15). 2025-03-20 11:44:33 -07:00
Tim Abbott
463dc632b3 mailmap: Add a few more mailmap entries. 2025-03-20 11:07:18 -07:00
Tim Abbott
8403619be9 settings: Refine logic to hide summarize topic setting.
The previous logic had it invisible always, even if the
server_can_summarize_topics was enabled.
2025-03-20 11:00:16 -07:00
PieterCK
719f8db654 migration_status: Refactor parse_migration_status.
This refactors `parse_migration_status` to copy the algorithm of
Django's `showmigrations` command instead of parsing its output. This is
done so that the code is not susceptible to breaking changes if Django
modifies showmigrations's implementation.

The previous `parse_migration_status` logic has been repurposed into a
test utility function (`prase_showmigrations`). It is used to verify
that the new `parse_migration_status` generates output identical to the
actual `showmigrations` command.

The `test_clean_up_migration_status_json` is removed because
`test_parse_migration_status` has covered that behavior.
2025-03-20 10:57:54 -07:00
Tim Abbott
bcacd618a0 i18n: Update translations from Transifex. 2025-03-20 10:56:22 -07:00
Maneesh Shukla
4be0db08d9 notification_settings: Fix the misalignment of the topic notification header.
Co-authored-by: whilstsomebody <vishwakarmarambhawan572@gmail.comv>
2025-03-20 10:53:10 -07:00
Prakhar Pratyush
e95ee707a6 compose: Update topic input box when mandatory_topics setting changes.
Earlier, when `realm_mandatory_topics` setting was getting toggled,
the topic input box in composebox was not being live-updated to
align with the correspondning setting's UX.

This commit fixes that bug by making sure that placeholder and
other UI elements are updated accordingly.
2025-03-20 10:32:31 -07:00
Prakhar Pratyush
a54bd3cdfa compose_recipient: Avoid using .css() for visibility toggling.
This commit replaces direct `.css("visibility", "...")` calls
with `.addClass("visible")` and `.removeClass("visible")` to
manage the `$topic_not_mandatory_placeholder` visibility.

This improves maintainability by keeping styling in CSS.
2025-03-20 10:32:31 -07:00
Alya Abbott
2f263cac41 help: Add user list actions illustration. 2025-03-20 10:01:59 -07:00
Tim Abbott
bccc283554 Revert "compose: Fix buttons spilling from compose box."
This reverts commit 9243fa3d52.

This commit appears to have caused the same issue with the compose box
borders at other size/zoom configurations that may be more common.

We'll figure out a better fix and apply that.
2025-03-20 09:28:05 -07:00
Alya Abbott
18921ae79c portico: Add job posting for go-to-market leader. 2025-03-19 23:58:31 -07:00
Aman Agrawal
ec7252138c home: Fix compose box not visible on focus in Firefox Android.
Fixes #34010

From version 132, Firefox now defaults to not resize the viewport
content but only the visual viewport. While this works well in
Chrome Android, it creates a buggy experience in Firefox Android
where the compose box is hidden under keyboard.

To fix it, we rollback to resizing content when keyboard is shown
on Firefox Android.
2025-03-19 21:54:14 -07:00
Tim Abbott
299daa35bd mailmap: Add various entries for 10.0 release. 2025-03-19 18:14:56 -07:00
Tim Abbott
cad594c5ef docs: Move TODO/compatibility step in release checklist. 2025-03-19 18:11:20 -07:00