Commit Graph

1918 Commits

Author SHA1 Message Date
Pratik Chanda
81ca9e1b36 message_list: Hide group DMs where everyone is muted.
This commit hides group DMs where all recipients are muted from
different views.

Fixes: zulip#34886.

Co-authored-by: Aman Agrawal <amanagr@zulip.com>
2025-10-20 15:42:15 -07:00
Evy Kassirer
38e7f11259 hotkey: Specify reactions toggle to message controls.
Sometimes this selector was catching a second
`emoji-message-control-button-container` from an emoji reaction,
which was only caught once we started using `util.the`. This
change avoids catching that irrelevant element.
2025-10-10 09:45:06 -07:00
Anders Kaseorg
800cfc4421 emoji_names: Rebuild with emoji-datasource 16.0.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-07 22:42:50 -07:00
Anders Kaseorg
9ac9dbdc1c dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-07 22:42:50 -07:00
Anders Kaseorg
910718ccd3 eslint: Fix unicorn/no-array-sort.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-07 22:42:50 -07:00
Evy Kassirer
ce56be02bc hotkey: Convert module to typescript. 2025-10-06 11:01:01 -07:00
Evy Kassirer
7c90d2cee5 compose_setup: Convert module to typescript. 2025-10-03 18:21:16 -07:00
Pratik Chanda
dc61ad6071 keyboard_shortcuts: Change selector for home view hotkey in help menu.
This commit changes the selector for home view hotkey shortcut hint in
help menu. This will help in internationalization of the keyboard hints.
2025-10-01 16:54:12 -07:00
Evy Kassirer
66b90d3736 message: Create new LocalMessage to fix type of transmit.send_message. 2025-10-01 16:38:55 -07:00
Evy Kassirer
3c4fe73470 message: Differentiate between new local messages and server messages. 2025-10-01 16:38:55 -07:00
Evy Kassirer
2888459f25 peer_data: Add clarity for when we do/don't have the full subscriber set. 2025-10-01 11:10:22 -07:00
Aman Agrawal
180ef91d1a people: Remove incorrect comment.
`error` type blueslip calls are checked.
2025-10-01 11:04:44 -07:00
Evy Kassirer
06845359bd peer_data: Store subscriber counts off of the sub object. 2025-09-30 12:52:47 -07:00
Evy Kassirer
10a815cae7 stream_data: Rename add_sub to add_sub_for_tests. 2025-09-30 12:52:47 -07:00
Evy Kassirer
665bce3c13 transmit: Pass params directly instead of using opts. 2025-09-30 11:49:16 -07:00
Evy Kassirer
240177b87e events: Use more realistic avatar_url in tests. 2025-09-30 11:49:16 -07:00
Sayam Samal
0d9e503add drafts: Add placeholder text for drafts with no channel selected.
This commit handles the empty channel placeholder for drafts saved
without a channel selected. When these drafts also do not have a topic,
we display "No topic selected" in tandem with "No channel selected",
since we are unable to access the channel configuration to determine
if we should display realm_empty_topic_display_name.
2025-09-30 11:37:16 -07:00
Karl Stolley
b7b409002e postprocess: Set up new loop for message embeds. 2025-09-26 16:53:20 -07:00
Karl Stolley
c7a651da60 postprocess: Handle images all within a single loop. 2025-09-26 16:53:20 -07:00
Karl Stolley
f9b52d4df5 postprocess: Move download processing nearer to links. 2025-09-26 16:53:20 -07:00
Karl Stolley
716333c6be postprocess: Move list-processing to the top.
This is the most simple loop, so sticking it at the top
keeps it from getting lost among the more complex
processing that follows.
2025-09-26 16:53:20 -07:00
Alya Abbott
0ea04f31bc compose and feed: Improve label for DMs to yourself. 2025-09-26 11:07:48 -07:00
Lauryn Menard
05b2036acd narrow-banner: Update invalid "sender" case for empty narrow banner.
Updates the empty narrow banner for an invalid user in the "Messages
sent by ..." view to better match what we show for an unknown channel.
2025-09-26 10:16:19 -07:00
Lauryn Menard
d82083ca24 filter: Add title for an unknown user for the "sender" narrow case.
Previously, the message header for the "Messages sent by" view for
an invalid or unknown user was the value of the "sender" operand,
which was not a valid/known user email.

Now we show a standard title in the message header for this case:
"Messages sent by unknown user".
2025-09-26 10:16:19 -07:00
Evy Kassirer
19880797db channel_folders: Fix remaining test TODOs.
Fixes #35494.
2025-09-25 17:31:21 -07:00
Lauryn Menard
8e385661c5 compose-close: Consolidate current logic for updating buttons.
Refactors compose_closed_ui.update_buttons to cover all three
cases for these button states: direct, stream and non-specfic.

Moves the logic in update_buttons_for_non_specific_views,
update_buttons_for_private, and update_buttons_for_stream_views
to the update_buttons function.

The default case, which is used in views without a filter (i.e.,
recent conversations and inbox), is the non-specific case.
2025-09-23 12:32:40 -07:00
Sahil Batra
1e21f7b224 register: Rename stream_creator_or_nobody to channel_creator.
This commit renames `stream_creator_or_nobody` value for
`default_group_name` field in `server_supported_permission_settings`
object to `channel_creator`.
2025-09-23 12:12:23 -07:00
Kislay Verma
1b0ec6e923 stream_list_sort: Add tests for channel folders.
This commit re-enables one of the tests disabled in #35075 and
adds new test cases.

Fixes part of #35494.
2025-09-22 09:38:36 -07:00
Karl Stolley
a64276c58f media: Replace legacy .message_inline_image class.
This introduces two new replacement classes, depending on
whether the inner content is an image or a video.
2025-09-17 13:25:50 -07:00
Karl Stolley
a3831770af postprocess_test: Separate link, media tests. 2025-09-17 13:25:50 -07:00
Karl Stolley
d932d8909b postprocess_test: Replace contrived example with real-world one.
The removed lines appear to be fully contrived, as there is no
apparent case where the server would deliver a block of HTML
with `.message_inline_image` without also delivering an inner
<img> or <video> element.

It appears the original outer block was introduced as part of
3df0cacd9e for ensuring coverage
of the post-processing of the `title` attribute to `aria-label`,
which change has since become covered by numerous other
non-contrived examples.

The replaced (and contrived) `<a role="button">` part introduced
by 911b3b5365 is meant to test the
absence of an `href` attribute, which is the minimal new line
introduced here to maintain test coverage while also testing
a genuinely possible pattern a user could send, namely
`[missing href]()`.

See https://chat.zulip.org/#narrow/channel/43-automated-testing/topic/unusual.20.60.2Emessage_inline_image.60.20HTML/with/2261114 for further discussion.
2025-09-17 13:25:49 -07:00
Anders Kaseorg
40a022dcc3 zephyr: Remove Zephyr mirroring support.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-16 11:18:18 -07:00
Sahil Batra
683eca97a7 stream-settings: Replace "Not subscribed" tab with "Available".
This commit replaces "Not subscribed" tab in stream settings
with "Available" tab where only streams which the user can
subscribe to are shown.

Fixes #35919.
2025-09-16 11:16:06 -07:00
Evy Kassirer
24f678feb6 message: Remove unused sender_realm_str.
Briefly discussed here:
https://chat.zulip.org/#narrow/channel/6-frontend/topic/sender_realm_str.20and.20.20client.20in.20message.20objects/near/2254334
2025-09-16 10:55:56 -07:00
Evy Kassirer
9a5c41cb9d compose: Remove Zephyr mirroring custom logic.
Followup to https://github.com/zulip/zulip/pull/35921#discussion_r2320358287
2025-09-10 09:47:05 -07:00
Evy Kassirer
093ce93fa4 message: Make sure submessages is always defined. 2025-09-09 09:20:40 -07:00
Evy Kassirer
d2f7b1a7ac compose: Remove create_message_object.
This will help with typescript conversion by reducing partially
formed message object types.
2025-09-08 14:43:13 -07:00
Evy Kassirer
28a7507b8e echo: Add reactions to LocalMessage.
This will make it easier to type the raw message in
process_new_message. The blueslip error is left here
as a precaution, but I'm fairly confident that if
RawMessage and LocalMessage both have reactions then
that codeblock will never be called.
2025-09-08 14:33:08 -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
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
Karl Stolley
8a40b0699a audio: Present download button with tooltip.
Fixes #35636.
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
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
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
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
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
cacc89e4d0 dom_selection: Select mousemove handlers on document. 2025-08-27 08:58:53 -07:00