Commit Graph

6 Commits

Author SHA1 Message Date
Sahil Batra
32c1c4bb76 bots: Remove duplicate fields from bot objects in realm_bots.
This commit removes "avatar_url", "bot_type", "email",
"full_name", "is_active" and "owner_id" fields from bot
objects passed in "realm_bots" as user objects in
"realm_users" already has those fields and clients can
get the data needed from it.

Also removes the code to send realm_bot/update events
when changing these fields.
2026-03-03 17:36:43 -08:00
Sahil Batra
7b1d6604bc tests: Fix incorrect event format used in example4.test.cjs.
The realm_user/update event person object only has updated field
and user_id and not other fields.
2026-03-03 17:36:43 -08:00
whilstsomebody
e354a28647 settings_account: Add options for users to change their own role.
Previously, users who were permitted to change their own role
had no way to do so, as there was no setting available for this
functionality.

This commit adds a setting under Settings > Account & Privacy
that allows users to change their own role if they have the
necessary permission.

For more details regarding role change permissions, read:
<https://chat.zulip.org/help/user-roles>
2025-12-09 22:34:34 -08:00
Sahil Batra
710ddd7d44 settings_users: Move bot related code from to settings_bots.ts.
This commit moves bot related code from settings_users.ts to
settings_bots.ts as we have different panels for users and bots
and we already have code for multiple tabs in settings_users.ts
and separating bots code makes maintaining the code easy.
2025-11-12 09:27:26 -08:00
Sahil Batra
3cc866a776 settings_users: Rename variables and functions for bots table.
This commit renames variables, functions and element IDs used
for bots table such that the name make it clear that they
are being used for "All bots" table. This commit is a prep
commit for further commits which would add tabbed view in
bots panel with "All bots" and "Your bots" tabs.
2025-11-11 16:17:27 -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