Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help: Update documentation to use new "#groups" UI.

Sahil Batra17d25284a2be
diff --git a/help/include/how-to-create-a-user-group.md b/help/include/how-to-create-a-user-group.md
index 9d5327dd2a1..d4eb64efd09 100644
--- a/help/include/how-to-create-a-user-group.md
+++ b/help/include/how-to-create-a-user-group.md
@@ -1,12 +1,14 @@
{start_tabs}
-{settings_tab|user-groups-admin}
+{relative|group|all}
-1. Click the **Add a new user group** button.
+1. Click **Create user group** on the right, or click the **plus**
+ (<i class="fa fa-plus"></i>) icon in the upper right.
1. Enter a **Name** and **Description**.
-1. Click **Save**.
+1. Click **Create** in the bottom right corner
+ of the create user group panel.
1. Find the group in the list below, and add members. Zulip will notify
everyone who is added.
diff --git a/help/user-groups.md b/help/user-groups.md
index 4b2a3dda793..bf3a0e7203e 100644
--- a/help/user-groups.md
+++ b/help/user-groups.md
@@ -18,7 +18,7 @@ trying to send a message to a group of people, you'll want to either
{start_tabs}
-{settings_tab|user-groups-admin}
+{relative|group|all}
1. Find the group.
@@ -37,7 +37,7 @@ trying to send a message to a group of people, you'll want to either
{start_tabs}
-{settings_tab|user-groups-admin}
+{relative|group|all}
1. Find the group.
diff --git a/zerver/lib/markdown/help_relative_links.py b/zerver/lib/markdown/help_relative_links.py
index b3a02ff72f7..b8fbce6ed7c 100644
--- a/zerver/lib/markdown/help_relative_links.py
+++ b/zerver/lib/markdown/help_relative_links.py
@@ -25,6 +25,10 @@ gear_info = {
'<i class="fa fa-bolt"></i> Organization settings',
"/#organization/organization-profile",
],
+ "group-settings": [
+ '<i class="zulip-icon zulip-icon-user-cog"></i> Group settings',
+ "/#groups/your",
+ ],
"integrations": ['<i class="fa fa-github"></i> Integrations', "/integrations/"],
"stats": ['<i class="fa fa-bar-chart"></i> Usage statistics', "/stats"],
"plans": ['<i class="fa fa-rocket"></i> Plans and pricing', "/plans/"],
@@ -104,6 +108,27 @@ def stream_handle_match(key: str) -> str:
return stream_instructions_no_link
+group_info = {
+ "all": ["All groups", "/#groups/all"],
+ "subscribed": ["Your groups", "/#groups/your"],
+}
+
+group_instructions_no_link = """
+1. Click on the **gear** (<i class="fa fa-cog"></i>) icon in the upper
+ right corner of the web or desktop app.
+
+1. Click **Group settings**.
+"""
+
+
+def group_handle_match(key: str) -> str:
+ if relative_help_links:
+ return f"1. Go to [{group_info[key][0]}]({group_info[key][1]})."
+ if key == "all":
+ return group_instructions_no_link + "\n\n1. Click **All groups** in the upper left."
+ return group_instructions_no_link
+
+
draft_instructions = """
1. Click on <i class="fa fa-pencil"></i> **Drafts** in the left sidebar.
"""
@@ -163,6 +188,7 @@ LINK_TYPE_HANDLERS = {
"stream": stream_handle_match,
"message": message_handle_match,
"help": help_handle_match,
+ "group": group_handle_match,
}
diff --git a/zerver/lib/markdown/help_settings_links.py b/zerver/lib/markdown/help_settings_links.py
index 4cf41d25805..496e3df238a 100644
--- a/zerver/lib/markdown/help_settings_links.py
+++ b/zerver/lib/markdown/help_settings_links.py
@@ -58,11 +58,6 @@ link_mapping = {
"Authentication methods",
"/#organization/auth-methods",
],
- "user-groups-admin": [
- "Organization settings",
- "User groups",
- "/#organization/user-groups-admin",
- ],
"user-list-admin": ["Organization settings", "Users", "/#organization/user-list-admin"],
"deactivated-users-admin": [
"Organization settings",