Commit Graph

15 Commits

Author SHA1 Message Date
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
Vector73
92fbe47a3b events: Add support for processing modern presence event in web client. 2025-08-27 17:16:31 -07:00
Kislay Verma
2f696c5ec3 tests: Add library function to create message lists.
This function actually instantiates the
`MessageList` and `MessageListData` classes instead
of just mocking its structure as it is currently done.

It addresses https://github.com/zulip/zulip/pull/34645#discussion_r2099058418
2025-06-19 10:50:21 -07:00
Kislay Verma
92467f232f buddy_data: Clean up unnecessary rewires in test.
Instead of rewiring `narrow_state` functions, we create appropriate
filters to organically use the code paths during tests.

Fixes part of #32326.
2025-05-20 17:03:00 -07:00
Kislay Verma
5f86ac6e36 buddy_data: Fix error in test.
The test `get_conversation_participants` didn't need
rewiring in the first place.

The filter was not properly created - the field `channel_id`
was wrongly being used instead of `stream_id`.

Once the filter was fixed, the code automatically returned
 the expected stream_id and topic, without rewiring.

This eliminated the use of override_rewire in that test.

Fixes part of #32326.
2025-05-20 17:03:00 -07:00
Lauryn Menard
3143662830 narrow-state: Use stream_id in cases where only stream ID is needed.
Updates calls to narrow_state.stream_sub that do not use the
StreamSubscription data, but rather just need a valid stream ID.
2025-03-06 17:47:59 -08:00
Tim Abbott
8cbd5e3612 buddy_data: Fix inconsistent subscriber status test.
The `subscribed` state elsewhere in this test has the current user
subscribed, so they should be there in peer_data.
2025-03-06 17:44:36 -08:00
whilstsomebody
6c6d5fbb6a people: Use Intl.ListFormat rather than .join(",").
Fixes: #26936

Co-authored by: CIC4DA <dhruv.jain9100@gmail.com>
2025-03-04 16:58:23 -08:00
Maneesh Shukla
11e334fa8a presence_data: Fetch presence data when user card is opened.
This commit adds a new function to fetch presence data when the user
card is opened. This data is then used to display the user's presence
status in the card.

Fixes: #31037.
2025-03-03 16:11:30 -08:00
Maneesh Shukla
b7ce31135d deactivated_user: Correctly display deactivated users in the right sidebar.
Fixes: #30797.
2025-02-21 18:01:26 -08:00
Aman Agrawal
4385005200 message_list: Avoid rerender of user sidebar when adding msgs.
Added methods to live update user sidebar when messages are
added or removed from the message list without doing a complete
rerender.
2025-01-10 11:23:23 -08:00
Aman Agrawal
df0d3b25c9 buddy_list: Use participants data from current message list.
Instead of tracking an outdate participants data, we use the
`participants` data from the current message list.
2025-01-10 11:17:46 -08:00
Karl Stolley
67a67897f9 user_circles: Introduce status-based hyphenated classes. 2024-12-13 14:33:23 -08:00
opmkumar
c4ad9d8e09 tooltip: Remove "last active" time from deactivated user tooltip.
Removes "last active" time from deactivated user tooltip and instead adds
"This user has been deactivated." Also, in the deactivated bot tooltip,
"This bot has been deactivated." has been added.

Fixes #32136.
2024-11-13 10:39:09 -08:00
Anders Kaseorg
687f1b1651 tests: Rename the Node tests to *.cjs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-13 09:18:56 -08:00