Commit Graph

65799 Commits

Author SHA1 Message Date
Mateusz Mandera
4bd6fd6307 ldap: Use savepoint=True to avoid breaking ldap sync transaction.
Due to the atomic(savepoint=False) here, an LDAP sync exception while
syncing a single user breaks the whole sync_ldap_user_data transaction,
preventing it from successfully syncing other users.

Fixes a regression introduced in
1eecbad381

Closes #35291.
2025-07-21 13:10:04 -07:00
Shubham Padia
21558bd784 help-beta: Decrease line height to make text easier to read. 2025-07-21 12:56:52 -07:00
Shubham Padia
6d93465f3b help-beta: Remove header from Zulip note.
We don't want to have a title of note and the ⓘ  icon in the note aside.
The only way to do this is to have our custom component called
ZulipNote.
2025-07-21 12:56:52 -07:00
Shubham Padia
8f51b93223 help-beta: Convert file includes that don't occupy their own lines.
The regex we were using for file includes was searching for the syntax
at the start of a line but the file includes can be followed by a `- `
as part of a list item, due to which 15 occurences of includes were not
being converted. This commit fixes that.
2025-07-21 12:56:52 -07:00
Aman Agrawal
896fc5e8b6 billing: Fix loading spinner not aligned on upgrade page. 2025-07-21 11:09:19 -07:00
Mateusz Mandera
71f1c5677a import: Add TODO about improving how initial DMs are generated.
For an organization with a very large amount of users, the current
approach of generating all these DMs at import time can be slow.
2025-07-21 11:08:25 -07:00
Mateusz Mandera
2a6c3a7ab8 import: Send channel Welcome Bot messages to imported organizations.
Closes #35280.

When importing from other apps, we want to generate initial channel
messages. We don't have the usual Zulip-style range of channels, so we
just settle on sending all these messages to a single channel, chosen
following the same criteria as already implemented in #35339.
2025-07-21 11:08:25 -07:00
Mateusz Mandera
8378401205 onboarding: Be consistent about channel name realm attr access.
It's messy to sometimes do `realm.ZULIP_..._CHANNEL_NAME` and sometimes
`Realm.ZULIP_..._CHANNEL_NAME`. Let's be consistent and access those as
a class attr `Realm.ZULIP_..._CHANNEL_NAME`.
2025-07-21 11:08:25 -07:00
Lauryn Menard
9b37c803af help: Update Chrome and Firefox troubleshoot desktop notifications. 2025-07-21 10:59:34 -07:00
Mohammad Reza Kianifar
2aad468807 analytics: Support DM groups in count message type query.
To maintain API compatibility during and after the migration to direct
message groups for 1:1 and self messages, update the analytics count
query to treat DM groups of size 2 or less as private messages.
2025-07-21 10:39:40 -07:00
Maneesh Shukla
021d6cb169 filter-topic: Fix Escape keyboard handling in "Filter topics" input.
Previously, pressing Esc while the "Filter topics" input was empty would
de-focus the input. Pressing Esc again would trigger the
"BACK TO CHANNEL" action, hiding the zoomed topic. However, this
behavior was broken as the input was not triggering any blur event,
making Esc a noop.

This commit restores the expected behavior by ensuring the blur event is
properly triggered, allowing Esc to function as intended.
2025-07-21 10:36:40 -07:00
Mateusz Mandera
aef9f1d331 ldap: Slightly tweak wording in unique_account_id doc.
The original sentence is a bit unclear it's talking about mapping to the
same user account *across time* - rather than a situation where a value
might map to multiple accounts at the same time (which should be
impossible for DNs).
2025-07-21 10:35:49 -07:00
Aman Agrawal
50d9464184 popover_menus: Fix channel popover displayed out of visible area.
Fixes #35150

Fixed by adding more fallback options.

Reproduced by clicking on left sidebar or inbox channel popover
triggers at the bottom right corner.
2025-07-21 10:31:26 -07:00
Lauryn Menard
210ac8f328 help: Update section name for org-level user group permission settings. 2025-07-21 10:31:00 -07:00
Mateusz Mandera
df7bb3cdd4 slack: Handle float "ts" in attachment info.
It's rare, but sometimes we see floats in this field.
2025-07-21 09:24:03 -07:00
Lauryn Menard
b60fc736c7 help: Use tooltip text for plus and checkmark icon descriptions. 2025-07-21 09:22:50 -07:00
Lauryn Menard
e0929ffcdc help: Update button labels that are not lower case in documentation. 2025-07-21 09:22:20 -07:00
Tim Abbott
6036dc9812 subscribers: Use _html in content inserted as HTML.
This makes it easier for maintainers to verify that code using `{{{`
is already rendered HTML, intended for insertion into the DOM.
2025-07-18 18:24:57 -07:00
apoorvapendse
0908f0ac30 settings: Include ignored deactivated users in result banner.
This introduces the ignored deactivated user messages
in the channel and user group subscription banners.
Related:
https://chat.zulip.org/#narrow/channel/101-design/topic/New.20channel.2Fgroup.20UX.20changes/near/2215785

Fixes #34347.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:07:38 -07:00
apoorvapendse
3c26086c4b settings: Disable picking users/groups while request in process.
Related:
https://github.com/zulip/zulip/pull/34912/#pullrequestreview-2979808971
(Point 3)
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:07:38 -07:00
apoorvapendse
19b4514106 add-users-button: Avoid tooltip when below check icon.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:07:38 -07:00
apoorvapendse
aa56623deb user_groups: Improve clarity of subscription result message.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:07:37 -07:00
Apoorva Pendse
eb6676f9b5 settings: Show a tick inside of add button on click.
We want the input field to retain
the same width even when
Add button shrinks, when we
show a check icon.

This solution involves layering
of the check and `Add` button
and toggling visibility.

Karl's coment: https://chat.zulip.org/#narrow/channel/6-frontend/topic/.2334347.20rework.20subscribe.20users.20confirmations/near/2206344.

Related: https://github.com/zulip/zulip/pull/34912#issuecomment-3010269391.

Reference:
https://chat.zulip.org/#narrow/channel/6-frontend/topic/.2334347.20rework.20subscribe.20users.20confirmations/with/2193352.
Co-authored-by: Rajeev Tapadia <108951750+rajeevtapadia@users.noreply.github.com>
Co-authored-by: Maneesh Shukla <shuklamaneesh24@gmail.com>
Co-authored-by: Karl Stolley <karl@zulip.com>
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:04:57 -07:00
Apoorva Pendse
f75fbdda8b channel_settings: Improve clarity of subscription result message.
The result message shown when adding members to a stream
previously listed the name of every member being added,
which could be noisy for large groups.

This commit updates stream_subscription_request_result.hbs to
conditionally display clearer, more concise messages based
on the number of subscribed and already subscribed users.

This improves readability and user experience when handling
large subscription actions.

Fixes part of #34347

Co-authored-by: Rajeev Tapadia <108951750+rajeevtapadia@users.noreply.github.com>
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:04:56 -07:00
apoorvapendse
5288631514 settings: Replace banner with loading spinner on unsubscribe.
Adds a loading spinner for both `Unsubscribe` and `Remove`
buttons in channel and group settings.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:04:56 -07:00
apoorvapendse
e1a0385028 channel_settings: Move checkbox below the input field.
Prep commit for #34912.

Addresses: https://github.com/zulip/zulip/pull/34912#issuecomment-3013913429
(point 1)
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:04:56 -07:00
apoorvapendse
40a4666be8 channel_settings: Update add subscribers subtitle.
Addresses:
https://github.com/zulip/zulip/pull/34912#issuecomment-3013913429(point 2)

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:04:56 -07:00
Alya Abbott
87473a726d updates: Add update message (level=19). 2025-07-18 17:48:53 -07:00
Mateusz Mandera
a9ebadbf9b import: Choose default announcement channel for imports from other apps.
The data conversion logic for exports from other apps will try to set
these announcement channels based on presence of channels with an
appropriate default name - however those sometimes do not exist.

Then it falls on the import process to choose a good default value. That
default should be the channel with the most subscribers.

This requires a tweak to the send_zulip_update_announcements_to_realm
code to respect the "Starting tomorrow, users in your organization will
receive updated" behavior promised to admins in the initial DMs.

Closes #34984.
2025-07-18 17:45:21 -07:00
Mateusz Mandera
342c00cc7b data_import: Set a default announcements channel for 3rd party imports.
For Slack, Mattermost and RocketChat, set the default announcement
channels if the sane default channel is available in the import.

The next commit will add a mechanism to choose an alternative default if
the expected channel name is not present.

Addresses the major part of #34984.
2025-07-18 17:45:21 -07:00
ducnb
715d07c231 api: Add administrator endpoint for updating user status.
Fixes #33139.
2025-07-18 17:37:26 -07:00
Alya Abbott
fdb35f2f81 compose: Improve preview mode tooltips.
Also modernize help center instructions for message previews.
2025-07-18 17:22:34 -07:00
Alya Abbott
bfdd858799 help: Modernize instructions for inserting a GIF. 2025-07-18 17:22:34 -07:00
Tim Abbott
8d5abc34ac channel_folders: Fix stale code in a node test. 2025-07-18 16:49:36 -07:00
Aman Agrawal
61e25ff0cd channel_popover: Fix go-to-list-of-topics not working on enter.
Used `navigate-link-on-enter` class to fix it.
2025-07-18 16:41:26 -07:00
Aman Agrawal
2ba72101a2 inbox: Simplify keyboard navigation.
This makes use of `data-col-index` attribute on the elements
to know which column to focus based on user input.
2025-07-18 16:41:26 -07:00
Aman Agrawal
35c0de27fe hotkey: Add y hotkey support for inbox and recent view. 2025-07-18 16:41:26 -07:00
Aman Agrawal
2223ab176c inbox: Fix left side text overlflowing their containers.
Fixed channel name, folder name and topic overflowing their containers.
2025-07-18 16:41:26 -07:00
Aman Agrawal
cf40aa9bb5 tippy: Show expand / collapse tooltip on hover. 2025-07-18 16:41:26 -07:00
Aman Agrawal
47f42ed149 inbox: Redesign to show channel folders. 2025-07-18 16:41:26 -07:00
Aman Agrawal
ded8f93ca0 inbox: Always show collapsed icon for collapsed headers. 2025-07-18 16:41:26 -07:00
Aman Agrawal
189f1a8899 inbox: Only show collapse icon on hover or focus. 2025-07-18 16:41:25 -07:00
Aman Agrawal
ebb0c9b496 inbox: Move collapse button after the header name. 2025-07-18 16:41:25 -07:00
Aman Agrawal
51047d3b43 inbox: Treat DM row as a folder row. 2025-07-18 16:41:25 -07:00
Tim Abbott
0f19fda610 filter: Mark messages as read in -is:dm view.
We avoid doing the more complex composability here, since that's
potentially risky.

Fixes #25113.
2025-07-18 16:35:30 -07:00
Tim Abbott
3bd82927dc ldap: Improve unique_account_id defaults and docs.
Some installations will change `dn` when a user marries, and also for
Active Directory and various other LDAP providers I've checked,
there's often a better value to use.
2025-07-18 14:34:09 -07:00
Tim Abbott
eaf4970215 help-beta: Shrink all the headings some more. 2025-07-18 14:12:16 -07:00
whilstsomebody
1c697a42ff user_status_ui: Show remove status icon when only emoji is present.
Previously, due to a logic issue, the clear status icon did not
appear when there is only selected emoji in the status—it appeared
only when status text was present.

This commit fixes the bug and now the clear status icon disappears
only when neither status text nor a selected emoji is present.

Fixes: #35176
2025-07-18 12:55:55 -07:00
Sahil Batra
80b9caa5ac user-profile: Add maxlength attribute to name inputs in edit form.
This commit adds maxlength attribute with value set to 100 to
name inputs in both "Manage user" and "Manage bot" modals since
we allow maximum 100 characters for both user and bot names.
2025-07-18 12:46:48 -07:00
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