Commit Graph

65263 Commits

Author SHA1 Message Date
Aman Agrawal
b1f6eb41d9 zephyr/user_pill: Remove special condition for zephyr realm.
This makes user_id no longer optional in `UserPill` and hence,
we can query them by email instead of user_id.
2025-06-18 11:27:59 -07:00
PieterCK
0dfb916b6d user_profile: Fix the field for outgoing webhook bots interface.
This updates the `interface` field in the "Manage bot" modal and the
"Add a new bot" modal for service bots to "Webhook format".
2025-06-18 10:57:40 -07:00
whilstsomebody
a1b3448c01 test_message_delete: Add test for do_delete_messages grouping logic.
This commit adds a test for the grouping logic of the
`do_delete_messages` function, which now groups public and private
messages based on their streams and topics.
2025-06-17 19:45:36 -07:00
Tim Abbott
a94280ee9b message_delete: Avoid fetching Stream objects in loops. 2025-06-17 19:45:36 -07:00
whilstsomebody
5b6ae6eb7a message_delete: Refactor do_delete_messages to group messages by topic.
This refactor updates `do_delete_messages` to categorize messages by
recipient and topic using a `defaultdict`. Messages are grouped into
batches where each batch corresponds to a unique recipient and topic
combination. For each group, a separate delete event is created and
processed, ensuring compliance with API requirements that mandate one
event per topic.

Co-authored-by: Mateusz Mandera <mateusz.mandera@zulip.com>
2025-06-17 19:45:36 -07:00
Pratik Chanda
e1d60b6363 tooltip: Fix empty tooltip on recipient row resolve topic spinner.
This commit removes empty tooltip from resolve topic spinner.
2025-06-17 18:55:41 -07:00
Tim Abbott
deaa43c7e6 api: Increment API feature level to 392. 2025-06-17 17:05:59 -07:00
Tim Abbott
6687cc9328 compose: Rename get_disabled_send_tooltip to add _html.
It's useful to follow our convention that HTML strings are tagged as such.
2025-06-17 17:05:59 -07:00
Vector73
7bc04bb829 tooltip: Fix tooltip to correctly parse HTML content.
Fix compose button error tooltip to correctly parse HTML content.
2025-06-17 17:05:58 -07:00
Vector73
628c2fcb0d bug: Fix topic field and placeholder behavior.
Fixes a UI issue where placeholder text and topic field were
not updating for the channels with "No general chat topic"
topics policy after sending message to "general chat" topic
of channel with "General chat allowed" topics policy.
2025-06-17 17:05:58 -07:00
Vector73
6094bbe8a5 stream_settings: Add new topics_policy setting.
Added `topics_policy` channel setting to configure sending
messages in the empty topic.

Fixes #33549.
2025-06-17 17:05:58 -07:00
Vector73
92672c1339 settings: Add can_set_topics_policy_group realm setting.
Added `can_set_topics_policy_group` realm setting to control
permission to change per-channel `topics_policy`.
2025-06-17 17:05:58 -07:00
Vector73
62c67eae8e settings: Add a new topics_policy realm setting.
Added a new realm setting, `topics_policy` and deprecated
`mandatory_topics` setting as it now replaced by `topics_policy`.

Fixes part of #33549.
2025-06-17 17:05:58 -07:00
Vector73
8fb1eeeb09 mandatory_topics: Refactor mandatory_topics check into a function. 2025-06-17 17:05:58 -07:00
Aman Agrawal
45afad41ad stream_popover: Make the feature publicly accessible. 2025-06-17 16:14:34 -07:00
Aman Agrawal
861db87a60 inbox: Use a different filter value per channel.
Instead of using a common dropdown filter for inbox and channels
topic list, we use a different filter value for each of them.
2025-06-17 16:14:34 -07:00
Aman Agrawal
2b1789ae29 inbox: Use DEFAULT_FILTER instead of undefined.
While this case is not possible, it is better to use
`DEFAULT_FILTER`.
2025-06-17 16:14:34 -07:00
Aman Agrawal
dc48f7c344 channel_topics_list: Fix space between channel name and icon. 2025-06-17 16:14:34 -07:00
Aman Agrawal
70dcf97801 message_view_header: Remove "All topics in" from channel topic view. 2025-06-17 16:14:34 -07:00
Aman Agrawal
4914dea7b4 channel_topics_list: Ignore stream being muted.
We display all topics unless muted in standard view regardless of
if the channel is muted.
2025-06-17 16:14:34 -07:00
Aman Agrawal
365f3cdeb9 inbox: Alter dropdown text for channel view. 2025-06-17 16:14:34 -07:00
Sayam Samal
e2fa1e6fa4 buttons: Remove focus outline offset in action and icon buttons.
This commit sets the focus outline offset in action and icon buttons
to 0, following the discussions at CZO concerning the visuals and
jagged corners in some cases when the outline offset was applied.
2025-06-17 13:39:56 -07:00
Tim Abbott
ddb0d3f555 help: Use final Flutter blog post URL.
We also update the "Zulip updates" URL, just to save a redirect.
2025-06-17 13:05:45 -07:00
Lauryn Menard
6b8f1dee2d help: Add include macros for shared mobile instructions.
Fixes #34748.
2025-06-17 11:43:49 -07:00
Maneesh Shukla
15f57d46d1 settings: Fix data export spinner size.
This commit adds the same styles to the data export loader as we have
for the users table loader, ensuring that the spinner is sized
correctly and maintains consistency across the tables we have in
settings panel.
2025-06-17 10:45:20 -07:00
Sayam Samal
0be3e242c0 alerts: Fix alert-error banner styling.
This commit is a follow-up to 18b2427937,
which removed the `alert-error` class from the Bootstrap CSS, while the
`web/src/ui_report.ts` module still used this styling for the error
banners.

This commit adds the `alert-error` class back to the Bootstrap CSS,
as a temporary solution until these alerts are migrated to the new
banner component system.
2025-06-17 09:25:33 -07:00
Alya Abbott
92497ee73a help: Reorder "Mark messages as read" options to match app menus. 2025-06-16 17:11:29 -07:00
Alya Abbott
6decd18a66 help: Document new "Open message feeds at" mobile configuration. 2025-06-16 17:11:27 -07:00
Lauryn Menard
7fd8acdee6 help: Reorder tabs on logging in article instructions.
Makes the mobile tab be the initial one shown for the instructions
to log in to a new organization and to switch between organizations.
2025-06-16 17:09:43 -07:00
Lauryn Menard
d0d8c76f21 help: Update section header for logging in to a new organization.
The instructions for the desktop and mobile apps for this section
are for when the user has already logged into an initial Zulip
organization, so we update the section header to be "Log in to a
new organization" instead of "Log in for the first time".

For both apps, if the user has not logged in to any Zulip
organization, then the apps default to the log in prompts, so
there is no need to add a set of instructions for that case.

Follow-up to feedback in #34869.
2025-06-16 17:09:43 -07:00
whilstsomebody
053f30aace test_subs: Fix syntax errors in tests.
This commit fixes the use of `/json/...` by replacing
it with the correct `/api/v1/...`. Also removes
unnecessary `login_user` call when using `api_patch`.
2025-06-16 11:51:14 -07:00
Lauryn Menard
74bbd38ef7 help: Remove mobile documentation files that are no longer in use.
These files are no longer in use due to the combined changes of
the updates for the Flutter app launch: #34869 and #34887.
2025-06-16 11:42:19 -07:00
Tim Abbott
f4d0febc02 help: Add link to Flutter launch blog post planned URL. 2025-06-16 10:53:52 -07:00
Alya Abbott
18ec64f6ee updates: Add update message (level=17). 2025-06-16 10:53:52 -07:00
Aman Agrawal
fd0800eee6 slack_import: Order claimable users by alphabetically. 2025-06-16 10:46:25 -07:00
Aman Agrawal
4cca5652e3 slack_import: Pipe file processing error message to the user.
When the slack import fails due to invalid zip file being uploaded,
we take user back to the file upload page with an appropriate
error message.
2025-06-16 10:46:25 -07:00
Aman Agrawal
853752292a registration: Indicate that slack import can take a while. 2025-06-16 10:46:25 -07:00
Aman Agrawal
efd326e21a slack_import: Fix uploading same file fails.
Since `tus-js-client` caches the uploaded file data, uploading
the same file doesn't trigger our backend hooks and thus we
don't know which file user has selected.

To fix it, we removed the cached file data once it has been
successfully uploaded.
2025-06-16 10:46:25 -07:00
Lauryn Menard
047c687762 help: Add "Configure automatically marked as read" mobile instructions.
As https://github.com/zulip/zulip-flutter/pull/1574 was merged for
this feature, we add back the instructions for automatically
marking messages as read on scroll for the mobile app.

Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
4ed0e4efa9 help: Update "View message Markdown source" for Flutter launch.
Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
32b724fa34 help: Update "View someone's profile" for Flutter launch.
Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
d2f06eb7df help: Update "View images and videos" for Flutter launch.
Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
d231a93cce help: Update "Resolve a topic" for Flutter launch.
Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
7738171e02 help: Update "Quote or forward a message" for Flutter launch.
Deletes the mobile tab of the "Forward message" section as that is
not a named feature in the mobile app. Adds a tip about setting a
different topic if the user is in the channel view of the mobile
app.

Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
06ef2710e1 help: Update "Mute or unmute a topic" for Flutter launch.
Deletes static/images/help/mobile-list-icon.svg as it's no
longer used.

Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
40705a2773 help: Update "Mark all messages as read" for Flutter launch.
Deletes static/images/help/mobile-globe-icon.svg as it's no
longer used.

Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
66b8ee03b1 help: Update log in/out instructions for Flutter launch.
Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
3cb3f9a09a help: Update "Star a message" article for Flutter launch.
Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
275e8cb2e5 help: Update "View your starred messages" section for Flutter launch.
Deletes static/images/help/mobile-star-icon.svg as it's no
longer used.

Part of #34748.
2025-06-16 10:03:10 -07:00
Lauryn Menard
54d4863994 help: Update "View your mentions" instructions for Flutter launch.
Deletes static/images/help/mobile-at-sign-icon.svg as it's no
longer used.

Part of #34748.
2025-06-16 10:03:10 -07:00