Commit Graph

8715 Commits

Author SHA1 Message Date
Pratik Chanda
146dcbc33a modal: Fix simplebar overlap with content in todo/poll widget modal.
This commit fixes the overlap of simplebar with content in widget
modal by adding a padding for the simplebar-content.

Fixes part of zulip#32950.
2025-06-30 11:28:30 -07:00
Pratik Chanda
c9492750d4 unread_ops: Fix filter term check for current narrow when bulk update.
This commit ignores the near operator when comparing with current
message list filter terms which may have near operator.

Fixes:zulip#33866.
2025-06-30 11:22:23 -07:00
Aditya Kumar Kasaudhan
9b24e54c54 dropdown_widget: keep_focus_on_search when search is present.
This commit removes the keep_focus_on_search option from the
DropdownWidgetOptions type, and updates logic to always set
keep_focus_on_search when the search box is visible in the
dropdown.

Fixes: #34828.
2025-06-30 11:13:47 -07:00
Aman Agrawal
e7859a5564 scheduled_messages: Use scheduled_ prefix to identify scheduled msgs. 2025-06-30 11:12:45 -07:00
Aman Agrawal
6e63bfc536 scheduled_messages: Avoid unintentionally mutating original data.
Using a copy of the data instead of the original object to help
avoid modifying it unintentionally.
2025-06-30 11:12:45 -07:00
Aman Agrawal
856f6e06a9 scheduled_message: Rename data object for clarity.
This helps identify value stored in the object without additional
comment.
2025-06-30 11:12:45 -07:00
Aman Agrawal
d2035c6cb0 scheduled_message: Show delayed tooltip for delete icon. 2025-06-30 11:12:45 -07:00
Aman Agrawal
e6e30ac128 hashchange: Return once the case is handled. 2025-06-30 11:12:45 -07:00
Swastik
fbe9a1ed8d
settings_ui: Remove search box from dropdown in exports panel.
It looked bad with only two options.

Fixes: #35028.
2025-06-30 10:48:17 -07:00
Pratik Chanda
ecce22f685 app: Allow overscroll on x-axis.
This overscroll-behaviour was changed earlier to fix sliding of
message_feed_container but later separate PR addressed root cause
for the issue. This overscroll change did end up preventing
swipe gesture navigations.

This commit reverts 448cd70c56.
2025-06-30 10:27:06 -07:00
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.
Some checks failed
Code scanning / CodeQL (push) Has been cancelled
Zulip production suite / Ubuntu 22.04 production build (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:bookworm, true, false, Debian 12 (Python 3.11, backend + documentation), bookworm) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:jammy, false, true, Ubuntu 22.04 (Python 3.10, backend + frontend), jammy) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:noble, false, false, Ubuntu 24.04 (Python 3.12, backend), noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm, --test-custom-db, Debian 12 production install with custom db name and user, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy, , Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble, , Ubuntu 24.04 production install, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-7.0, 7.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-8.0, 8.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy-6.0, 6.0 Version Upgrade, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-10.0, 10.0 Version Upgrade, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-9.0, 9.0 Version Upgrade, noble) (push) Has been cancelled
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