Commit Graph

9307 Commits

Author SHA1 Message Date
Karl Stolley
cacc89e4d0 dom_selection: Select mousemove handlers on document. 2025-08-27 08:58:53 -07:00
Karl Stolley
e5a14ca3f1 dom_selection: Select scroll elements as :root. 2025-08-27 08:58:53 -07:00
Karl Stolley
4f681abf3c dom_selection: Get and set all CSS on :root. 2025-08-27 08:58:53 -07:00
Karl Stolley
e8f5c46054 reminders: Show vdots with reminders popover open. 2025-08-27 08:58:06 -07:00
apoorvapendse
533f177175 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>
2025-08-19 23:44:01 -07:00
apoorvapendse
7391a2983f 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>
2025-08-19 23:43:58 -07:00
Shubham Padia
5938f685ad 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.
2025-08-19 23:40:51 -07:00
Pratik Chanda
f9dc13014f hotkey: Fix argument type for narrow filter.
This commit fixes the operand argument type passed in for showing
message list.
2025-08-19 09:11:36 +05:30
Kislay Verma
a03e3a5166 ui_init: Fix bug in argument type.
As per the type definition of `NarrowTerm`,
the operand should be a string.

This bug caused exceptions each time a topic was
clicked in the left sidebar.
2025-08-18 18:27:18 +05:30
Maneesh Shukla
6787a14d74 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.
2025-08-15 10:17:30 -07:00
Maneesh Shukla
daa98c72d3 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.
2025-08-15 10:17:30 -07:00
Anders Kaseorg
7b0c6f9d3f dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-14 21:37:50 -07:00
Anders Kaseorg
5d13749d26 eslint: Fix @typescript-eslint/no-unnecessary-type-conversion.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-14 21:37:50 -07:00
Anders Kaseorg
72e762f075 stylelint: Fix property-no-deprecated.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-14 21:37:50 -07:00
Anders Kaseorg
1539a23af0 stylelint: Fix nesting-selector-no-missing-scoping-root.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-14 21:37:50 -07:00
Evy Kassirer
81c7ebe2fc topic_list: Enable left sidebar search when closing topic list. 2025-08-14 16:44:43 -07:00
Sahil Batra
0a8238b993 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.
2025-08-14 13:18:31 -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
Evy Kassirer
4e930bf660 ui_util: Toggle classname for unread mentions instead of using hide/show. 2025-08-12 19:24:29 -07:00
Tim Abbott
4e94324b9a overlays: Avoid closing when dragging resizers.
Fixes most of #35663.
2025-08-12 18:09:08 -07:00
apoorvapendse
1001c0d60a left_sidebar: Improve text selection for channel names.
Fixes:
https://chat.zulip.org/#narrow/channel/9-issues/topic/.E2.9C.94.20.F0.9F.8E.AF.20focus.20bug.20with.20.22first.20unread.22.20channel.20click.20policy/near/2222421.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-12 17:40:00 -07:00
apoorvapendse
ab01079f40 message_header: Improve text selection.
Fixes: #34959.
2025-08-12 17:40:00 -07:00
apoorvapendse
14231e9fe2 left_sidebar: Improve text selection in buddy list.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-12 17:40:00 -07:00
apoorvapendse
0bc1bdda86 left_sidebar: Improve text selection for dm box.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-12 17:40:00 -07:00
apoorvapendse
4288734030 left_sidebar: Improve text selection for topic text.
Fixes: #34959.

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-12 17:40:00 -07:00
apoorvapendse
622a125ce4 links: Prevent composebox re-focus when selecting links.
Prep commit to address #34977.
Links are blurred when one selects links in order to
focus the compose box, this commit prevents that from
happening which helps us avoid `e.stopPropogation()`
calls on individual handlers as the event bubbles up
to the main event handler.

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-12 17:40:00 -07:00
Tim Abbott
ed97ae3c96 settings: Improve textarea starting heights.
Having the textarea not be super small greatly reduces the temptation
to immediately resize it when working with it.

This helps reduce the impact of #35663.
2025-08-12 17:09:01 -07:00
Tim Abbott
b13019bc7b invite: Fix resizing of custom message textarea.
Horizontal resizing could overflow the region, which looked busted, or
shrink it, which is useless.

Fixes part of #35663.
2025-08-12 17:09:01 -07:00
Saubhagya Patel
6548257b3a org_settings: Preserve unsaved Welcome Bot custom message.
Previously, closing the settings overlay without saving the
Welcome Bot custom message would discard the changes, causing
users to lose their work.
The unsaved message is now stored in a variable and restored
with the save/discard widget when the settings overlay is reopened.

Fixes #35664.
2025-08-12 17:09:01 -07:00
Tim Abbott
bf434ac2ef settings_org: Simplify links to access welcome bot messages.
Removing the dependency on message_store fixes a race issue where the
new Message object might not have reached us at the time that this
handler was run, if the HTTP request to trigger the welcome bot
message wins the race with the events system.
2025-08-12 16:35:33 -07:00
Tim Abbott
0eaa764474 search_suggestion: Fix merge conflict resolution error. 2025-08-12 15:40:43 -07:00
Pratik Chanda
5c16549b8a search_suggestion: Don't show operator suggestion if its incompatible.
Earlier, we would show operator suggestion even if it is incompatible
with current search terms. Selecting this wouldn't show further
suggestions for the operator since we don't allow narrow to incompatible
search terms.

This commit fixes this by hiding new suggestions if it is not
compatible with current search terms in the search box.
2025-08-12 15:31:36 -07:00
Pratik Chanda
35bfc8bace search_suggestion: Refactor incompatible_patterns to a global map.
Earlier, each functions handling any suggestions would define their
own incompatible_patterns inside it to use for checking validity.

This commit refactors all incompatible_patterns to a global map
with operators or search_string as its key.
2025-08-12 15:31:34 -07:00