Commit Graph

9361 Commits

Author SHA1 Message Date
Rakshit
8814a557a2 settings: Abbreviate long bot owner names in bot management modal.
Previously, long owner names could wrap onto two lines in the bot
management modal, breaking the layout. This commit adds CSS to keep
names on a single line and abbreviate with an ellipsis if too long.

Fixes #23266.
2025-09-03 17:38:55 -07:00
Karl Stolley
be53f22fff layout: Tweak dropdown for correct icon-label alignment. 2025-09-03 17:37:14 -07:00
Shubham Padia
03c73c28cd banners: Capitalise desktop in insecure-desktop-app intent and message. 2025-09-03 17:36:25 -07:00
Aman Agrawal
5dbf584ac5 sidebars: Don't highlight selection by default on search input focus.
Unless user wants to move the selection or type a value in search
input, we don't highlight the current selection.
2025-09-03 16:13:38 -07:00
Aman Agrawal
478ea89506 left_sidebar: Avoid selecting header as first row when searching. 2025-09-03 16:13:38 -07:00
Aman Agrawal
a4c2327fa9 sidebar_ui: Extract selectors for left sidebar headers. 2025-09-03 16:13:38 -07:00
Pratik Chanda
62093ee37d search_suggestion: Fix empty topic suggestion topic display name.
Earlier, we removed topic display name for empty topic operand when
query was for topic autocomplete. But we should make sure that we
only do this for the last search term in the suggestion which
corresponds to the typed query and not any previously selected
entered search term. Also recently we removed subset suggestions,
so can safely check it for last search term for all suggestions.

This commit fixes this by checking if the topic suggestion is the
last search_term in the suggestion/search_terms.

Co-authored-by: Evy Kassirer <evy@zulip.com>
2025-08-29 14:30:49 -07:00
PieterCK
e9be0c54bd settings_export: Fix plural strings in export confirmation modal. 2025-08-29 11:33:17 -07:00
Karl Stolley
f5d3834dbf recents: Match filter dropdown states with filter input. 2025-08-29 11:32:24 -07:00
Karl Stolley
d90a1d8a2e recents: Match filters to filter-topic input. 2025-08-29 11:32:24 -07:00
Karl Stolley
0980919876 resize: Remove dead recent_view code.
While this value is set to a legacy px value in
app_variables.css, nothing ever reads from or uses
this height value.
2025-08-29 11:32:24 -07:00
Aman Agrawal
77d8140eb2 left_sidebar: Fix muted channel visible in collapsed folder on search.
While searching in left sidebar, if you collapse a folder, muted
or inactive channels are still visible.

This is due specificity of hiding the channel when folder is
collapsed was lower than that of showing it when a search
is active.

Fixed by increasing the specificity of hiding it when folder
is collapsed.
2025-08-29 10:27:09 -07:00
Pratik Chanda
acc5cffae4 filter: Use encoding for channel/topic narrow for url redirect.
Earlier, when generating redirect url for search exit, we did not
encode the url in case of topic narrows. We expect some characters
to be replaced when generating hash.

This commit encodes the url for channels and topic narrows and
prevents redirecting to broken hashes.
2025-08-29 10:24:34 -07:00
Pratik Chanda
85e7d2f5f7 search_suggestion: Remove subset suggestions from search suggestion.
Earlier, we would show subset suggestions for current search pills
in the suggestion list. Like if `is:dm`, `is:mentioned` and `has:link`
are already selected in the searchbox, we would show
`is:dm, is:mentioned` and `is:dm` again in the suggestion.

This commit removes subset suggestions for current search pills
from the suggestion line.
2025-08-28 17:28:39 -07:00
Saubhagya Patel
d0e45b99ef tippy: Remove redundant tippy instance destruction.
When `onShow()` returns `false`, the tippy instance is
automatically destroyed. This commit removes manual
destruction calls in such cases.
2025-08-28 16:40:36 -07:00
apoorvapendse
7a52313f85 composebox: Fix composebox closing on clicking links.
Previously, clicking on links with the composebox open
didn't close it.

7391a2983f introduced a bug
where the composebox focus logic wasn't triggered at all
if drag evidence wasn't present on the target.

We now do a `e.target.closest("a").length > 0` check
like before and only prevent the default click behavior if
dragging on the target link is detected.
This allows normal link clicks to trigger the
previous composebox focus trigger logic.

Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/composebox.20closes.20when.20going.20to.20recent.20conversations
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-28 16:35:04 -07:00
Evy Kassirer
c52174a0a2 channel_folders: Don't label section OTHER if there are no folders above it.
Fixes #35878.
2025-08-28 15:33:12 -07:00
Karl Stolley
71fcee5093 me_messages: Don't apply an ellipsis to me messages. 2025-08-28 15:20:11 -07:00
Karl Stolley
165c47cb14 compose: Ensure textarea is hidden in compose preview.
This corrects a subtle bug where being zoomed in in
a narrow window causes textarea bleedthrough behind
elements like the audio player.
2025-08-28 15:20:11 -07:00
Karl Stolley
8a40b0699a audio: Present download button with tooltip.
Fixes #35636.
2025-08-28 15:20:11 -07:00
Karl Stolley
548c690f83 audio: Register player as clickable message element.
This matters most for Safari of at least v. 18.6, which
allows clicks on the player to bubble up the DOM.
2025-08-28 15:20:11 -07:00
Karl Stolley
cacd73fd8b audio: Present audio player in wrapped element. 2025-08-28 15:20:11 -07:00
Karl Stolley
3787fb3b02 message_list: Process me-messages as having message content. 2025-08-28 15:20:11 -07:00
Karl Stolley
1bcc52c860 cleanup: Remove comments from abandoned approach. 2025-08-28 15:20:11 -07:00
Sayam Samal
a0441b5bcb topic_popover: Update topic URL to permalink for message header popover.
This commit updates the topic URL in the message header topic menu
popover, introduced in feedb6ea2d to a
permalink having a `with` operator attached to it.
2025-08-28 15:08:47 -07:00
Kislay Verma
67ca49488f tests: Use make_realm to create type-correct realm objects.
Another step in the direction of improving node tests
and using type-correct organic data as much as possible.
2025-08-28 11:35:07 -07:00
Karl Stolley
2660c876fa recents: Align filter tops top left, right sidebars. 2025-08-28 10:11:25 -07:00
Karl Stolley
b71352c4dc inbox: Align filters to left, right sidebars. 2025-08-28 10:11:25 -07:00
Karl Stolley
a5ab61f83a right_sidebar: Eliminate gap between filter, vdots area. 2025-08-28 10:11:25 -07:00
Karl Stolley
545b14abfa right_sidebar: Establish last-item/next-heading concord. 2025-08-28 10:11:25 -07:00
Karl Stolley
4f08718163 sidebars: Add easily adjustable space below sidebar filters. 2025-08-28 10:11:25 -07:00
Karl Stolley
b3fb672b5d sidebars: Bring left, right sidebar tops into concord. 2025-08-28 10:11:25 -07:00
Karl Stolley
176ba669c2 left_sidebar: Zero out space below Views. 2025-08-28 10:11:25 -07:00
Aman Agrawal
a13f4e4832 hash_util: Use user_id instead of email to generate DM emails. 2025-08-28 10:08:36 -07:00
Aman Agrawal
0a264a8d60 people: Add function to URL slug from user_ids.
This is similar to `emails_to_slug` which will removed
from future commits.
2025-08-28 10:08:36 -07:00
Aman Agrawal
f5dc7f41be people: Extract function to convert full name to URL slug. 2025-08-28 10:08:36 -07:00
opmkumar
ea97d1a77a hotkey: Enable spectators to copy via keyboard in web-public channels.
Fixes #35782.
2025-08-28 10:05:25 -07:00
Mohammad Reza Kianifar
daadf110d9 scheduled_messages: Add support for self-DM identification.
Similar to drafts, identify when a scheduled message will be sent to
the logged-in user. This allows the UI to show 'You' as the header for
self-scheduled messages, improving the user experience.
2025-08-28 10:04:37 -07:00
Aman Agrawal
2671aff7c3 left_sidebar: Allow user to navigation on section headers. 2025-08-28 10:00:59 -07:00
Aman Agrawal
693e86746e header-avatar: Remove background and border around loaded image. 2025-08-28 10:00:04 -07:00
Aman Agrawal
d386b62ec7 user_events: Use correct selectors for updating current user avatar. 2025-08-28 10:00:04 -07:00
Evy Kassirer
258797c2fb app_components: Use variable for default dropdown widget button.
Followup to https://github.com/zulip/zulip/pull/33297/files#r1951862116
2025-08-28 09:58:59 -07:00
Evy Kassirer
aeab2fd097 stream_list_sort: Remove stream list row navigation code.
This stopped being used after 78a3ef56e4.
2025-08-28 09:51:26 -07:00
Sahil Batra
ead413f9f8 banners: Apply text-align property to banner-label element.
Adding "text-align: start" css to banner-label element makes
sure that the banner text is not aligned as per the alignment
of parent element, as we require left alignment of text for
all the banners. Only navbar banners have text align in center
but that is handled by adjusting the flex layout of the
banner-content, parent of banner-label, element.
2025-08-28 09:46:52 -07:00
Sahil Batra
6ab670bdee lightbox: Use single keydown handler for toggling overlay.
We use the same "v" key for opening and closing the
lightbox overlay.

We already have code to open and close the lightbox
overlay in hotkey.ts.

Having another keydown handler for closing the overlay
resulted in a bug where the overlay was just not being
opened because the second handler was immediately called
to close the overlay was immediately called after the first.

Fixes #35868.
2025-08-28 09:45:41 -07:00
Evy Kassirer
22ca76ba2b stream_data: Delete partial_subscribers off of sub creation attrs.
Followup to https://github.com/zulip/zulip/pull/34960#discussion_r2176959839
2025-08-28 09:36:11 -07:00
Vector73
92fbe47a3b events: Add support for processing modern presence event in web client. 2025-08-27 17:16:31 -07:00
Karl Stolley
c4e7f5ec0d icons: Remove two unused icons. 2025-08-27 13:50:40 -07:00
Karl Stolley
3e6f67446e icons: Update README and include list of in-house icons. 2025-08-27 13:50:40 -07:00
Aman Agrawal
a0c198ad99 deactivated_redirect: Preserve URL hash when redirecting.
URL hash from old url is lost using this JS method for redirecting,
preserved by extracting the hash and appending it to the new URL.

In case user clicks on the new url link, we do this by updating that url to
include the hash, and using that URL for the automated redirect as well.
2025-08-27 13:01:52 -07:00