Commit Graph

8705 Commits

Author SHA1 Message Date
kash2104
aed0624366 help_modal: Fix thumb-up emoji.
Existing class "rendered_markdown" has been added so
that the emoji remains in agreement with how
messages are displayed in message area.

Fixes part of #30781.
2025-06-29 23:17:17 -07:00
Evy Kassirer
98e65b220a stream_list: Remove unneeded export on scroll_stream_into_view. 2025-06-29 23:13:25 -07:00
Evy Kassirer
443db4bd21 sidebar_ui: Remove unused hide_unread_counts passed to left sidebar.
Missed in #32795.
2025-06-29 23:13:15 -07:00
Tim Abbott
f4327edd81 unread_ops: Fix mark-as-unread handling of has_found_newest.
When offline, has_found_newest never ends up being true, and we'd end
up falling through to an interleaved banner. We rewrite this logic
with an explicit idea of whether we're online, and the following fixes:

- Never display the interleaved view confirmation banner in a
  conversation view.
- Avoid displaying that banner inaccurately when the actual problem
  is that we're offline.
- If we're offline, always call do_mark_unread with a list of IDs,
  such that if its helpers supported local echo (they don't), we
  will locally echo to the extent possible.

Note that following this change, being offline results in "mark
unread" being a noop until you're online again. Better than a weird
banner.

See https://chat.zulip.org/#narrow/channel/9-issues/topic/mark.20unread.20strange.20when.20disconnected/near/2201703 for more context.
2025-06-28 10:31:36 -07:00
Evy Kassirer
31fb0bd6d7 channel_folders: Let a new channel in a folder be created through a hash. 2025-06-27 17:09:08 -07:00
opmkumar
87cdea0fa1 left_sidebar: Always show home-view row popover, even with no unreads.
Fixes #28759.
2025-06-27 13:50:18 -07:00
opmkumar
2712325d1f left_sidebar: Use popover to show/hide unread summary counts.
Co-authored-by: Akarsh Jain <akarsh.jain.790@gmail.com>

Fixes part of #28759.
2025-06-27 13:50:18 -07:00
opmkumar
d3a7122b62 left_sidebar: Use personal settings to hide unread summary counts.
This commit adds code to use
`web_left_sidebar_unreads_count_summary` from personal
settings in web app.

Co-authored-by: Akarsh Jain <akarsh.jain.790@gmail.com>

Fixes part of #28759.
2025-06-27 13:50:18 -07:00
opmkumar
cf658155e7 left_sidebar: Remove logic of hiding unread counter of STREAMS header.
This removes the previous logic where the STREAMS header unread counter was
hidden when "Show unread counts for" was set to "No streams."
2025-06-27 13:38:38 -07:00
Pratik Chanda
a2fc3a0d7f unread_banner: Fix unread banner not hiding when marking topic as read.
Earlier, when we had unread banner in message list and user marks
all messages as read for topic, unread banner would persist even
though we had no unread messages in current message list.

This commit hides unread banner when there are no unreads just like
we show banner when unread messages appear in message list.

Fixes:zulip#33866.
2025-06-27 13:18:43 -07:00
Tim Abbott
5cfa8b4dc2 settings: Consistently describe Slack-compatible webhook format.
Previously, the settings edit UI used a different phrasing, and "Slack
compatible" used a dash only in the documentation.

We settle on "Slack-compatible", since that's what we use for the
similar incoming webhook format.
2025-06-27 11:31:59 -07:00
Karl Stolley
1a3cf7c07a copy_paste: Offset to the left, not the right. 2025-06-26 17:39:14 -07:00
Prakhar Pratyush
8e1f0c4bcf topic_list: Fix "show all topics" flashing.
Earlier, 'all_topics_in_cache' used to return `false`
in the case where we were unsure if some topics were
present even before the user subscribed to the channel
and hence missing in the cache.

Returning `false` led to visible 'show all topics',
even if all the topics were already displayed. This was
helpful if the API call to fetch channel history failed,
as users had the option to make another request.

That resulted in a bug where "show all topics" was flashing
in channels with less number of topics. We used to display
"show all topics" initially and then hide it after the API
call confirmed that there were no new topics to display.

To fix this bug, we return `true`. So, the "show all topics"
is not displayed beforehand. We let the API call fetch the history
and rebuild the topic list based on the updated data.

Instead of show then hide. We now prefer, show if needed.

To fix the issue of API call failure and users having no option
to see all topics, we did prep work in the last commit
to add retry mechanism to the concerned API call.
2025-06-26 10:11:05 -07:00
Prakhar Pratyush
43249cb431 stream_topic_history_util: Add retry mechanism to get_server_history.
Earlier, in `get_server_history` the API call to fetch stream-topic
history didn't have a retry logic.

This commit adds a retry mechanism.

If the request to fetch stream topic history fails, we now retry
the request up to a fixed number of times before giving up.
This improves UX in case of temporary network issues.
2025-06-26 10:11:05 -07:00
Prakhar Pratyush
2bf13c36be test_stream_topic_history: Remove unused mock for people.ts.
This commit removes the unused mock for 'people.ts' in
'stream_topic_history.test.cjs'.
2025-06-26 10:11:05 -07:00
Kislay Verma
f448890158 channel: Add option to notify users newly added to a channel.
When a user is added to a channel, we send
the user that was added a Notification Bot
DMs to let them know about it.

In this commit, we add an option for whether or not
this message is sent.

If more than 100 users are added at once, we
do not send notification bot DMs since it would
be a performance-costly operation.

We also send this threshold value of 100 in the
initial state data to the clients.

Fixes part of #31189
2025-06-26 10:08:11 -07:00
Kislay Verma
9e854edd70 add_subscribers_pill: Export get_pill_user_ids.
This is a prep to #31189, where we need this function
out of this module, in a callback.
2025-06-26 10:08:11 -07:00
Pratik Chanda
fd355e2028 social_auth: Fix keyboard navigation on accounts in oauth.
This commit makes the accounts in oauth page navigable on `Tab`.

Fixes:zulip#34724.

Co-authored-by: Parasaran <v.parasaran@gmail.com>
2025-06-26 10:02:30 -07:00
Vector73
27bfca61c1 settings: Update move messages settings label.
Updates organzation-level move messages permission setting
labels to make it clear that the settings apply to all channels.
2025-06-26 10:01:43 -07:00
Anders Kaseorg
dbd63203af dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-06-25 16:53:17 -07:00
apoorvapendse
ed84264c39 message_row: Add cursor:pointer for all control icons.
Fixes: https://chat.zulip.org/#narrow/channel/137-feedback/topic/.60cursor.3A.20pointer.60.20applied.20to.20whole.20message.20content/near/2203930.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-06-25 16:33:49 -07:00
Aman Agrawal
bf1b571af5 message_reminder: Set a 6s delay before closing reminder feedback widget.
Increases the feedback widget from 4s to 6s for reminder scheduled
toast.
2025-06-25 12:05:28 -07:00
Aman Agrawal
b5f7e24669 message_reminder: Add UI to schedule message reminder.
This adds an option in message actions popover menu to schedule
a message reminder.
2025-06-25 12:05:28 -07:00
Aman Agrawal
1384a8d19b compose_send_menu_popover: Extract function to parse send_at_time.
This will be commonly used to schedule a reminder and a message.
2025-06-25 12:05:28 -07:00
Tim Abbott
b437bcd5c4 topic_link: Document get_fallback_markdown_link. 2025-06-25 12:03:54 -07:00
Aman Agrawal
8427c2e763 css: Remove outline on buttons on click.
Fixes #34479
2025-06-25 11:55:36 -07:00
Maneesh Shukla
74b928e3dc add-emoji: Disable browser autocomplete for emoji name input. 2025-06-25 11:36:25 -07:00
Maneesh Shukla
5f0a761512 add-emoji: Redesign buttons in add emoji modal.
This commit redesigns the clear image and add image buttons to new
action button.
2025-06-25 11:36:25 -07:00
Vector73
b612351e48 stream_setting: Add setting for who can move messages out of channel.
Adds `can_move_messages_out_of_channel_group` channel-level
permission for who can move messages out of the channel.

Fixes #34243.
2025-06-24 16:52:53 -07:00
Vector73
703601a5d5 stream_setting: Add setting for who can move messages within channel.
Adds `can_move_messages_within_channel_group` channel-level
permission for who can move messages within the channel.
2025-06-24 16:52:53 -07:00
Vector73
43dcc6e3fd bug: Fix incorrect topic resolution check.
Previously, when sending messages to resolved topics, the warning
suggesting to resolve that topic used wrong check to verify if the
user is allowed to resolve the topic. This commit fixes that.
2025-06-24 16:52:53 -07:00
Shubham Padia
4d081c6124 markdown: Make start border of link previews and blockquotes same.
We also want to align them alongside making them look same.
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.93.82.20message_inline_ref.20dropbox.20links/near/2191600
2025-06-24 13:48:01 -07:00
Shubham Padia
83755c1aec markdown: Remove unused message_inline_ref.
Fixes #32640.
We cannot remove the styles yet since older dropbox previews will still
be using them. We can remove those in a followup issue.
2025-06-24 13:48:01 -07:00
Prakhar Pratyush
0be5ea715d hotkey: Ignore keydown events with event.key=undefined.
Some browsers trigger a 'keydown' event with `key === undefined`
on selecting autocomplete suggestion. These are not real keypresses
and can be safely ignored.

See: https://issues.chromium.org/issues/41425904

Earlier, not handling it was resulting in error later in the codepath.
2025-06-24 12:44:16 -07:00
Aman Agrawal
fd911095eb inbox: Fix first row icon visible without user action.
Now the icons will only be visible if user made a relevant
keyboard input or hovers over the row.
2025-06-24 12:08:46 -07:00
Shubham Padia
92d1fcdce6 banners: Change insecure-desktop-app intent and message.
Fixes
https://chat.zulip.org/#narrow/channel/438-release-management/topic/desktop.20minimum.20versions/near/2116356.
We have changed the intent from danger to warning.
2025-06-24 12:07:54 -07:00
Aman Agrawal
5046c8a1a2 register: Fix ToS error overlapping with subscribed checkbox text.
Fixed by using the same set of classes we use to show error when
verifying the form locally.
2025-06-24 12:01:50 -07:00
Karl Stolley
5170a4ad28 widgets: Make poll options clickable. 2025-06-24 10:14:05 -07:00
Karl Stolley
9dec5481eb compose: Set grid-area for iconless channel label. 2025-06-24 10:13:16 -07:00
Kislay Verma
9507b7b36f organization settings: Clean up labels for custom time limits.
We make the text "minutes" agree with the number
in the input field.
In the future, we could make the units configurable
as in the invitation modal.

Fixes #34692.
2025-06-24 10:12:15 -07:00
Evy Kassirer
ec65dad063 stream_pill: Fetch all subscribers before getting user ids for a stream.
Work towards #34244.
2025-06-23 17:04:47 -07:00
Vector73
c406db2480 stream_popover: Fix rename topic placeholder UI.
Previously, the placeholder in the "Rename topic" input
overlapped with the text when renaming the "general chat"
topic. Also, the placeholder was not updated to "general chat"
when the input was empty and lost focus. This commit fixes the bug.
2025-06-23 09:49:56 -07:00
apoorvapendse
b8e09b3c35 left_sidebar: Support channel-row clicks on the left.
Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/Clicking.20the.20right.20end.20of.20DM.20list.20items.20doesn't.20work/near/2192449.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-06-20 16:23:08 -07:00
apoorvapendse
1ce2c96eee topic-box: Support clicking on the left side.
Fixes:
https://chat.zulip.org/#narrow/channel/9-issues/topic/Clicking.20the.20right.20end.20of.20DM.20list.20items.20doesn't.20work/near/2191051.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-06-20 16:23:08 -07:00
apoorvapendse
0dcb2d110f pm_list_item: Support clicks outside the row-content.
Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/Clicking.20the.20right.20end.20of.20DM.20list.20items.20doesn't.20work/with/2189918
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-06-20 16:23:08 -07:00
Aman Agrawal
623fa98976 narrow_history: Remove invalid assertion.
Since non message views list channel topic list can have a defined
filter, we cannot assume that having `narrow_state.filter` set
implies `message_list.current` is defined.
2025-06-20 15:56:19 -07:00
Aman Agrawal
93c4dcbdc9 hotkey: Merge uses of M hotkey.
It was not a good idea to have the hotkey
fallthrough the `case` for user not being in message list.

We merge both the cases and also remove `M` from
`message_view_only_keys`.
2025-06-20 15:56:19 -07:00
Karl Stolley
062b83bfec compose: Rename classes, CSS vars to reflect attention level. 2025-06-20 15:54:59 -07:00
Karl Stolley
e19b815eaf compose: Rename functions to reflect attention level. 2025-06-20 15:54:59 -07:00
Swastik
ac509eaa66 css: Match arrow color with GIF popover.
Fixes #34772
Matched the color of the triangular tip with the GIPHY logo bar.
2025-06-19 17:52:11 -07:00