Commit Graph

12 Commits

Author SHA1 Message Date
Anders Kaseorg
77f97762c6
eslint: Fix unicorn/explicit-length-check. (#32666)
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-11 09:19:46 -08:00
Maneesh Shukla
74708cfd03
settings_users: Remove an unused block of code.
This commits remove the unused block of code which involves
`failed_listing_users` when there is no users to list.

Since, this is a case which is not possible to occur because there
should always be at least one active user, i.e. yourself.
2024-12-10 15:45:30 -08:00
Maneesh Shukla
d3e74f62e7 presence_data: Add fallback logic for date_joined. 2024-12-06 11:50:31 -08:00
Tim Abbott
9a83d21112 settings_users: Recalculate user ID lists after presence fetch.
This code is undertested, but it at least makes TypeScript happy.
2024-12-02 16:54:05 -08:00
Maneesh Shukla
dc70e50643 presence_data: Create new function to fetch data.
This change introduces a new function, fetch_presence_user_setting,
to retrieve presence data of users. The function fetches data for a very
long duration by setting the `history_limit_days` parameter to 365*1000.

Fixes #31039.
2024-12-02 16:32:08 -08:00
Tim Abbott
3d5dbefcb5 settings: Rename misleadingly named user list template. 2024-11-27 14:28:17 -08:00
evykassirer
4ff7bc16bc settings: Convert module to typescript. 2024-11-24 21:45:41 -08:00
Maneesh Shukla
c2335ebc72 settings: Add user counts to role filter.
This commit enhances the user role filter dropdown by displaying the
count of users for each role in the format "Role Name (count)" (e.g.,
"Owners (3)").Additionally, it shows the total user count in the
"All roles" option, formatted as "All roles (total_count)" for easy
visibility of the overall user base.

Fixes: #18618.
2024-11-19 13:45:15 -08:00
Sayam Samal
543a6c51dc bootstrap: Rename btn-* -> button-* classes.
This commit is a part of the efforts to rename btn-related classes
and variables to align with Zulip's no-abbreviations policy and
streamline the search results.
2024-11-14 12:03:36 -08:00
Anders Kaseorg
ec3177c834 web: Add explicit extensions to imports.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-13 09:18:56 -08:00
Sahil Batra
54595f80cc settings: Fix filtering users based on role.
This bug was introduced in 174a458928 as `this` parameter
passed to role_selected_handler was DropdownWidget instance
and not the Jquery element for the selected role option.
2024-11-12 09:49:36 -08:00
evykassirer
174a458928 settings_users: Convert module to typescript. 2024-11-05 17:50:17 -08:00