Commit Graph

9322 Commits

Author SHA1 Message Date
Karl Stolley
651df27e04 search_pills: Increase opacity in dark mode.
(cherry picked from commit 8022e26ed4)
2025-09-10 12:09:57 -07:00
Aman Agrawal
55bd5c0aeb inbox: Remove empty space below filters for hidden folders.
Hidden folders occupied space due to bottom margin.

Fixed by moving the margin to elements which have `display: none`
property so that margin is removed.

(cherry picked from commit 39b560e611)
2025-09-10 12:09:57 -07:00
Shubham Padia
1b30049059 banners: Capitalise desktop in insecure-desktop-app intent and message.
(cherry picked from commit 03c73c28cd)
2025-09-04 14:46:16 -04:00
Pratik Chanda
6052630cae notifications: Fix desktop notifications for message not grouping.
Earlier, message notifications for same key would not get grouped
together because of the old notification_object close event listener
firing up when not supposed to.

This commit fixes this behaviour by checking the notification object
instance is the same as the currently displayed notification object
from notice memory when closing it.

Co-authored-by: prakhar1144 <prakhar@zulip.com>
(cherry picked from commit 6af4e82c49)
2025-09-03 17:31:37 -07:00
Pratik Chanda
cd682f3dee 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.

(cherry picked from commit 85e7d2f5f7)
2025-09-03 17:31:37 -07:00
Aman Agrawal
faed722c4b 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.

(cherry picked from commit 5dbf584ac5)
2025-09-03 17:31:37 -07:00
Aman Agrawal
8f47e03613 left_sidebar: Avoid selecting header as first row when searching.
(cherry picked from commit 478ea89506)
2025-09-03 17:31:37 -07:00
Aman Agrawal
a5dd0a4f33 sidebar_ui: Extract selectors for left sidebar headers.
(cherry picked from commit a4c2327fa9)
2025-09-03 17:31:37 -07:00
Aman Agrawal
c6041f9b94 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.

(cherry picked from commit 77d8140eb2)
2025-09-03 17:31:37 -07:00
Aman Agrawal
d0f2a9d162 left_sidebar: Allow user to navigation on section headers.
(cherry picked from commit 2671aff7c3)
2025-09-03 17:31:37 -07:00
Evy Kassirer
4e3ec18c8a channel_folders: Don't label section OTHER if there are no folders above it.
Fixes #35878.

(cherry picked from commit c52174a0a2)
2025-09-03 17:31:37 -07:00
Pratik Chanda
398cf9827b 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.

(cherry picked from commit acc5cffae4)
2025-09-03 17:31:37 -07:00
PieterCK
758c541d5a settings_export: Fix plural strings in export confirmation modal.
(cherry picked from commit e9be0c54bd)
2025-09-03 17:31:37 -07:00
Sayam Samal
bf84c2aa19 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.

(cherry picked from commit a0441b5bcb)
2025-09-03 17:31:37 -07:00
apoorvapendse
9ff265e5f6 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>
(cherry picked from commit 7a52313f85)
2025-09-03 17:31:37 -07:00
apoorvapendse
9415de59e9 tests: Make puppeteer tests for drafts more robust.
I noticed that when you are in a group dm narrow
and open drafts, the overlay-message-row class
is inside different containers, and the nth last
child check does not apply for that case, which is
why the test failed.

More generally, last-child is just not a good selector for robust
testing.

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
(cherry picked from commit 533f177175)
2025-09-03 17:31:37 -07:00
apoorvapendse
e7796305d2 links: Fix unnecessary blocking of click behavior.
Links become unclickable if the following is true:
1. Composebox is open
2. You have selected some text

Currently doing this will prevent the default click behavior
which is a big bug and can get quite annoying.

We now switch to a more robust check which only prevents the
click behavior if some drag evidence is present, determined with
`mouse_drag.is_drag`

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
(cherry picked from commit 7391a2983f)
2025-09-03 17:31:37 -07:00
Karl Stolley
bffaff037e recents: Align filter tops top left, right sidebars.
(cherry picked from commit 2660c876fa)
2025-09-03 17:31:37 -07:00
Karl Stolley
e8cd9b0b4b inbox: Align filters to left, right sidebars.
(cherry picked from commit b71352c4dc)
2025-09-03 17:31:37 -07:00
Karl Stolley
ed8beeabd1 right_sidebar: Eliminate gap between filter, vdots area.
(cherry picked from commit a5ab61f83a)
2025-09-03 17:31:37 -07:00
Karl Stolley
fe90091375 right_sidebar: Establish last-item/next-heading concord.
(cherry picked from commit 545b14abfa)
2025-09-03 17:31:37 -07:00
Karl Stolley
0920e3131f sidebars: Add easily adjustable space below sidebar filters.
(cherry picked from commit 4f08718163)
2025-09-03 17:31:37 -07:00
Karl Stolley
b561f4ee4f sidebars: Bring left, right sidebar tops into concord.
(cherry picked from commit b3fb672b5d)
2025-09-03 17:31:37 -07:00
Karl Stolley
61d0f3736c left_sidebar: Zero out space below Views.
(cherry picked from commit 176ba669c2)
2025-09-03 17:31:37 -07:00
opmkumar
6a602dc57c hotkey: Enable spectators to copy via keyboard in web-public channels.
Fixes #35782.

(cherry picked from commit ea97d1a77a)
2025-08-28 16:17:08 -07:00
Sahil Batra
d718ec8920 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.

(cherry picked from commit 6ab670bdee)
2025-08-28 16:17:08 -07:00
Shubham Padia
53ace27db1 starlight_help: Display gradient for the idle status icon.
Fixes #35496.

We were displaying a solid color until we figured out how to accurately
display the gradient in the SVG itself.

(cherry picked from commit 5938f685ad)
2025-08-28 16:17:08 -07:00
Maneesh Shukla
bdf731f6e7 tooltips: Use group ID instead of name for tooltip IDs.
Previously, tooltip templates were identified using the
group's name in their `id` attributes.

This change uses the group's ID instead, which is more reliable.

(cherry picked from commit 6787a14d74)
2025-08-28 16:17:08 -07:00
Maneesh Shukla
c56179de7e tooltips: Use stream ID instead of name for tooltip IDs.
Previously, tooltip templates were identified using the
stream's name in their `id` attributes.

This commit changes the tooltip IDs to use the stream's ID instead,
rather than its name, to ensure uniqueness and avoid potential conflicts.

(cherry picked from commit daa98c72d3)
2025-08-28 16:17:08 -07:00
Sahil Batra
f6ef7147ff stream-settings: Live update visibility of folder dropdown.
An error was raised where we tried to live update the folder name
in folder dropdown even when there was no dropdown visible
to the non-admin user in settings page. This was because
"There are no channel folders configured in this organization."
text was shown even when a folder was recently created in the
realm as we did not live update the visibility of dropdown on
creating or archiving a folder.

This commit fixes the bug by live-updating the visibility
of folder dropdown when creating or archiving a folder.

(cherry picked from commit 0a8238b993)
2025-08-28 16:17:08 -07:00
Evy Kassirer
4423cdfc99 topic_list: Enable left sidebar search when closing topic list.
(cherry picked from commit 81c7ebe2fc)
2025-08-28 16:17:08 -07:00
Aman Agrawal
5351f9cc0c 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.

(cherry picked from commit a0c198ad99)
2025-08-28 16:17:08 -07:00
Rakshit
1a9d8acd40 settings: Use monospace font for displaying API key.
Previously, the API key was shown using a variable-width font, making
characters harder to distinguish. This change applies a monospace font to
improve readability and visual consistency.

Fixes #35189.

Co-authored-by: rxkshit04 <rakshitatwork@gmail.com>
Co-authored-by: cpu-ram <petr.stepanenko@gmail.com>
2025-08-13 14:14:04 -07:00
Tim Abbott
946136a587 settings: Reword welcome bot custom message setting.
This is more consistent with the adjacent setting, among other
benefits.
2025-08-13 14:09:20 -07:00
Tim Abbott
2eb3e18b63 settings: Extract Onboarding section in realm settings.
The section had gotten too tall, at least when the welcome bot message
was enabled.
2025-08-13 14:09:20 -07:00
Karl Stolley
3df21d8780 left_sidebar: Ensure home view unreads are shown on hover. 2025-08-13 13:59:13 -07:00
Karl Stolley
340a99c3fb unread_animation: Remove erroneous comma from events. 2025-08-13 13:59:13 -07:00
Karl Stolley
2174f55b87 left_sidebar: Correct unread-pulse on collapsed views. 2025-08-13 13:59:13 -07:00
Karl Stolley
0b13129f54 left_sidebar: Correct no-alpha color to match home view.
This corrects what's probably a very long-standing
regression left over from past experiments with
attention levels on different unread counters.
2025-08-13 13:59:13 -07:00
Aman Agrawal
d8985597e7 left_sidebar_mention: Fix mention highlight always visible.
Reproducer:

Mark a message where current user is mention as unread and then
read the message before animation ends. This prevents the
`animationend` from being triggered.

Fixed by also listening for `animationcancel` which fixes the bug.
2025-08-13 11:41:28 -07:00
Aman Agrawal
ab75c4f7c9 sidebar_ui: Fix selection box disappears while navigating to muted row.
This happens since the don't exclude the row which toggles
muted / inactive channels from all_rows, while user is searching
and hence selections box ends up there while navigating to the
muted / inactive channel row.
2025-08-13 11:32:14 -07:00
Maneesh Shukla
bfdd28c638 banners: Hide empty banner-action-buttons using CSS.
Previously, the action buttons container was only hidden via
conditional rendering in the template. This commit adds a CSS-based
approach to also hide the container when it becomes empty, using the
:empty pseudo-class. This ensures correct behavior if we later have a
class of banners where the buttons area is dynamically updated, and
buttons are removed dynamically.
2025-08-13 10:31:18 -07:00
Karl Stolley
b7ac8ea5d8 left_sidebar: Suppress home-view dot with zero unreads. 2025-08-13 09:57:33 -07:00
Karl Stolley
0aa2baa9ca left_sidebar: Remove z-index from sidebar-search.
Now that the left-sidebar filter sits atop the area,
it's no longer necessary to set a z-index here.

This also fixes a bug where a hovered unread in the
collapsed views would be clipped by the filter box
above.
2025-08-13 09:57:33 -07:00
Evy Kassirer
14ce2c5a81 stream_list_sort: Don't include unsubscribed streams in sort results.
Fixes bug reported here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/exception.20when.20viewing.20world-public.20channel.20as.20a.20guest/near/2240871
2025-08-13 00:16:52 -07:00
apoorvapendse
68ea286ced links: Fix glitchy underlines in left sidebar.
This fixes the underlines and blue color that are
visible when selecting multiple topics/channels.

Comment: https://github.com/zulip/zulip/pull/34977#issuecomment-3181802391
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-13 00:11:57 -07:00
Aman Agrawal
526ba0f7d4 sidebar_ui: Fix broken zoomed in topic list.
The zoomed in topic list search doesn't work if user searches
something and presses `enter` on `Show all topics` after
navigating via keyboard.

Fixed by not triggering `input` event on left sidebar search input
which seems to confuse the zoomed in topic search.
2025-08-13 00:06:12 -07:00
Pratik Chanda
406b1e5a44 tooltip: Add channel folder tooltip for truncated names in left sidebar.
There isn't a way to check the complete name for long truncated channel
folders name in the left sidebar.

This commit adds a tooltip for channel folder only when the folder names
are truncated in the left sidebar.

Fixes: zulip#35582.
2025-08-13 00:03:14 -07:00
Evy Kassirer
ef3a68961d left_sidebar: Show add-stream icon when focused during keyboard navigation. 2025-08-12 19:24:46 -07:00
Evy Kassirer
fd3c1977a9 left_sidebar: Hide mention indicator on expanded folder except on hover. 2025-08-12 19:24:29 -07:00