Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Rename `user-list-admin` to `users`.
Shubham Padiae4c89771fd4c
diff --git a/help/change-a-users-name.md b/help/change-a-users-name.mdindex 50e4d659307..e7de951188a 100644--- a/help/change-a-users-name.md+++ b/help/change-a-users-name.md@@ -24,7 +24,7 @@ Organization administrators can always change any user's name.{tab|via-organization-settings}-{settings_tab|user-list-admin}+{settings_tab|users}1. Find the user you would like to manage. Click the **pencil**(<i class="fa fa-pencil"></i>) to the right of their name.diff --git a/help/deactivate-or-reactivate-a-user.md b/help/deactivate-or-reactivate-a-user.mdindex 7ff244496a0..7dd68d156d7 100644--- a/help/deactivate-or-reactivate-a-user.md+++ b/help/deactivate-or-reactivate-a-user.md@@ -48,7 +48,7 @@ When you deactivate a user:{tab|via-organization-settings}-{settings_tab|user-list-admin}+{settings_tab|users}1. In the **Actions** column, click the **deactivate** (<i class="fafa-user-times"></i>) icon for the user you want to deactivate.diff --git a/help/gdpr-compliance.md b/help/gdpr-compliance.mdindex d4cddf5d723..eff5b98e33f 100644--- a/help/gdpr-compliance.md+++ b/help/gdpr-compliance.md@@ -107,7 +107,7 @@ GDPR:* A Zulip user can change their profile information, delete theirmessages, uploaded files, etc., directly within the Zulip web app.-* You can use the [organization users](/#organization/user-list-admin)+* You can use the [organization users](/#organization/users)panel to deactivate users, edit or delete their account details,etc.* For complying with access requests, you'll want to start with thatdiff --git a/help/include/change-a-users-role.md b/help/include/change-a-users-role.mdindex b96e26ce917..6d069a619d9 100644--- a/help/include/change-a-users-role.md+++ b/help/include/change-a-users-role.md@@ -12,7 +12,7 @@{tab|via-organization-settings}-{settings_tab|user-list-admin}+{settings_tab|users}1. Find the user you would like to manage. Click the **pencil**(<i class="fa fa-pencil"></i>) to the right of their name.diff --git a/help/include/view-users-by-role.md b/help/include/view-users-by-role.mdindex 9cf2f07dd40..17580827e6a 100644--- a/help/include/view-users-by-role.md+++ b/help/include/view-users-by-role.md@@ -1,6 +1,6 @@{start_tabs}-{settings_tab|user-list-admin}+{settings_tab|users}1. Select the desired role from the dropdown above the **Users** table.diff --git a/help/manage-a-user.md b/help/manage-a-user.mdindex 3d64ebe8dcc..5b5132a8f8e 100644--- a/help/manage-a-user.md+++ b/help/manage-a-user.md@@ -12,7 +12,7 @@{tab|via-organization-settings}-{settings_tab|user-list-admin}+{settings_tab|users}1. Find the user you would like to manage. Click the **pencil**(<i class="fa fa-pencil"></i>) to the right of their name.diff --git a/web/e2e-tests/user-deactivation.test.ts b/web/e2e-tests/user-deactivation.test.tsindex ee313c3e40d..912f345e5f6 100644--- a/web/e2e-tests/user-deactivation.test.ts+++ b/web/e2e-tests/user-deactivation.test.ts@@ -14,7 +14,7 @@ async function navigate_to_user_list(page: Page): Promise<void> {await page.click(organization_settings);await page.waitForSelector("#settings_overlay_container.show", {visible: true});- await page.click("li[data-section='user-list-admin']");+ await page.click("li[data-section='users']");}async function user_row(page: Page, name: string): Promise<string> {diff --git a/web/src/hashchange.js b/web/src/hashchange.jsindex 22dcec94165..7a3649fd2c9 100644--- a/web/src/hashchange.js+++ b/web/src/hashchange.js@@ -276,6 +276,10 @@ function do_hashchange_overlay(old_hash) {// #settings/display-settings is being redirected to #settings/preferences.section = "preferences";}+ if (section === "user-list-admin") {+ // #settings/user-list-admin is being redirected to #settings/users after it was renamed.+ section = "users";+ }if ((base === "settings" || base === "organization") && !section) {let settings_panel_object = settings_panel_menu.normal_settings;if (base === "organization") {diff --git a/web/src/settings_sections.js b/web/src/settings_sections.jsindex fbedf86f3f9..2e5d567ff79 100644--- a/web/src/settings_sections.js+++ b/web/src/settings_sections.js@@ -34,7 +34,7 @@ export function get_group(section) {case "bot-list-admin":return "org_bots";- case "user-list-admin":+ case "users":case "deactivated-users-admin":return "org_users";diff --git a/web/templates/buddy_list/view_all_users.hbs b/web/templates/buddy_list/view_all_users.hbsindex 538fba27c85..7045d085543 100644--- a/web/templates/buddy_list/view_all_users.hbs+++ b/web/templates/buddy_list/view_all_users.hbs@@ -1 +1 @@-<a class="view-all-users-link" href="#organization/user-list-admin">{{t "View all users" }}</a>+<a class="view-all-users-link" href="#organization/users">{{t "View all users" }}</a>diff --git a/web/templates/settings/user_list_admin.hbs b/web/templates/settings/user_list_admin.hbsindex 82da327e90e..230d20fdc4f 100644--- a/web/templates/settings/user_list_admin.hbs+++ b/web/templates/settings/user_list_admin.hbs@@ -1,4 +1,4 @@-<div id="admin-user-list" class="settings-section" data-name="user-list-admin">+<div id="admin-user-list" class="settings-section" data-name="users"><div class="clear-float"></div>diff --git a/web/templates/settings_overlay.hbs b/web/templates/settings_overlay.hbsindex 465ef860ec5..1d50a1de1fd 100644--- a/web/templates/settings_overlay.hbs+++ b/web/templates/settings_overlay.hbs@@ -86,7 +86,7 @@<i class="locked fa fa-lock tippy-zulip-tooltip" {{#if is_admin}}style="display: none;"{{/if}} data-tippy-content="{{t 'Only organization administrators can edit these settings.' }}"></i></li>{{#unless is_guest}}- <li tabindex="0" data-section="user-list-admin">+ <li tabindex="0" data-section="users"><i class="icon fa fa-user" aria-hidden="true"></i><div class="text">{{t "Users" }}</div><i class="locked fa fa-lock tippy-zulip-tooltip" {{#if is_admin}}style="display: none;"{{/if}} data-tippy-content="{{t 'Only organization administrators can edit these settings.' }}"></i>diff --git a/web/tests/hashchange.test.js b/web/tests/hashchange.test.jsindex d971341cc88..883291d510f 100644--- a/web/tests/hashchange.test.js+++ b/web/tests/hashchange.test.js@@ -361,15 +361,30 @@ run_test("hash_interactions", ({override, override_rewire}) => {[settings, "launch"],]);+ window.location.hash = "#organization/users";++ helper.clear_events();+ $window_stub.trigger("hashchange");+ helper.assert_events([+ [overlays, "close_for_hash_change"],+ [settings, "build_page"],+ [admin, "build_page"],+ [admin, "launch", ["users"]],+ ]);+window.location.hash = "#organization/user-list-admin";+ // Check whether `user-list-admin` is redirect to `users`, we+ // cannot test the exact hashchange here, since the section url+ // takes effect in `admin.launch` and that's why we're checking+ // the arguments passed to `admin.launch`.helper.clear_events();$window_stub.trigger("hashchange");helper.assert_events([[overlays, "close_for_hash_change"],[settings, "build_page"],[admin, "build_page"],- [admin, "launch", ["user-list-admin"]],+ [admin, "launch", ["users"]],]);helper.clear_events();diff --git a/zerver/lib/markdown/help_settings_links.py b/zerver/lib/markdown/help_settings_links.pyindex fc5faf73770..f48f1fcd423 100644--- a/zerver/lib/markdown/help_settings_links.py+++ b/zerver/lib/markdown/help_settings_links.py@@ -58,7 +58,7 @@ link_mapping = {"Authentication methods","/#organization/auth-methods",],- "user-list-admin": ["Organization settings", "Users", "/#organization/user-list-admin"],+ "users": ["Organization settings", "Users", "/#organization/users"],"deactivated-users-admin": ["Organization settings","Deactivated users",