Commit Graph

8984 Commits

Author SHA1 Message Date
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
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
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
fdb35f2f81 compose: Improve preview mode tooltips.
Also modernize help center instructions for message previews.
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
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
Alex Vandiver
51f214877f message_edit: Improve error message string. 2025-07-18 11:08:34 -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
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
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
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
Maneesh Shukla
3bd8c28fca buttons: Redesign some old-style buttons with rounded class.
Fixes part of #35006.
2025-07-16 14:46:23 -07:00
Evy Kassirer
55634c8fcc peer_data: Use sub.subscriber_count for get_subscriber_count. 2025-07-16 13:11:56 -07:00
Tim Abbott
45941ba4d1 stream_list: Enter should use web_channel_default_view.
This previously misleadingly named on_stream_click masked the fact
that this was not using the actual click handler.
2025-07-16 12:35:14 -07:00
Tim Abbott
85835fae9b stream_list: Rename confusing on_stream_click. 2025-07-16 12:35:14 -07:00
Sahil Batra
2294552080 left-sidebar: Fix clicking on stream row in left sidebar.
Clicking on the stream row should open the message view
as per "Channel links in the left sidebar go to" setting.

But this happens only when clicking on stream name element
and not on the complete stream row, like clicking on the
privacy icon or towards the left of it, opens the channel
feed always irrespective of the setting. This commit
fixes that.

Updated the code to attach the "New topic" button handler
to "#stream_filters" element instead of "body", as it was
not being executed due to stopPropagation being called in
the click handler for "a" element for stream row.

Attaching the event to "#stream_filters" makes sure that
clicking on "New topic" button calls the handler for it
first and stops event from being propagated to the "a"
element for stream row.

Also moved "New topic" handler to stream_list.ts, as it
would be easy to maintain them if all handlers for the
UI are in the same file.

This also fixes the bug when pressing "Enter" key after
clicking on a stream row did not open the compose box for
replying to the selected message which is the expected
behavior when "Channel links in the left sidebar go to"
setting is set to value other than "List of topics".
2025-07-16 12:35:14 -07:00
Shubham Padia
e0abc5253b help-beta: Adjust kbd tags if the user is using a mac style keyboard.
Fixes #31287.
These tags are not limited to just KeyboardTip, so we want to run the
transformation on all html.
We need to run the transformation client-side since the user's keyboard
style is only known at that time.
We had to override the HEAD component since that's what starlight
recommends to do if we want to include local assets on every page. If we
were using a remote js file, we could have modified the head config
option provided by starlight.
The script file to adjust the tags is mostly just copy-paste of the
original function to adjust for the lack of JQuery. Most of the comments
are also copy-pasted.
One change in the new script is to just use ⌘ symbol directly instead of
using zulip-icon since we don't have any centering problems in the new
help center.
2025-07-16 12:00:45 -07:00
Tim Abbott
e9951e9d9a compose_validate: Return early in inform_if_topic_is_moved.
This also ends up consistently calling clear_topic_moved_info for all
code paths where we exit the function without adding a banner. It
might be better to just call that clear function at the start; I'm not
entirely sure why we don't do that.
2025-07-16 11:39:14 -07:00
Vector73
fa7a4a953d compose_validate: Don't show topic moved banner on topic resolve.
The topic moved compose warning banner should not shown when
the topic in compose recipient box is only resolved or unresolved.

Fixes #35082.
2025-07-16 11:39:14 -07:00
whilstsomebody
640286b91f admin_human_form: Update classes to kebab-case.
This commit updates the classes `.deactivate_user_button`
and `.reactivate_user_button` to kebab-case as per our
new rules for writing new classes.
2025-07-16 11:16:10 -07:00
whilstsomebody
6649efea70 settings_user_list_row: Remove redundant classes.
This commit Removes `deactivate-user-button` and
`reactivate-user-button` classes.

These classes were originally introduced in commits
50582b72b6 and
c0b3fb1bbe for the sole
purpose of styling. The associated styles were later removed
in 1c89c3e647 but the classes
themselves were mistakenly left behind.

Removing them has no effect in the functionality of the
buttons and there is no evidence of any bugs or regression
caused by their removal.
2025-07-16 11:16:10 -07:00
Vector73
7895873dc1 pill_container: Fix background color in dark theme. 2025-07-16 10:21:31 -07:00