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.

preferences: Update inactive channels preference setting for new UI.

Alya Abbott641a436b4485
diff --git a/help/channel-folders.md b/help/channel-folders.md
index da0586b087b..1c4922cfa1e 100644
--- a/help/channel-folders.md
+++ b/help/channel-folders.md
@@ -58,5 +58,5 @@ section above channel folders.
* [Introduction to channels](/help/introduction-to-channels)
* [Pin a channel](/help/pin-a-channel)
* [Mute or unmute a channel](/help/mute-a-channel)
-* [Manage inactive channels](/help/manage-inactive-channels)
+* [Hide or reveal inactive channels](/help/manage-inactive-channels)
* [Manage user groups](/help/manage-user-groups)
diff --git a/help/include/filter-channels.md b/help/include/filter-channels.md
new file mode 100644
index 00000000000..e23c4b2c210
--- /dev/null
+++ b/help/include/filter-channels.md
@@ -0,0 +1,13 @@
+{start_tabs}
+
+{tab|desktop-web}
+
+1. Type the name of the channel you are looking for in the **Filter channels**
+ box below the **direct messages** section in the left sidebar.
+
+!!! keyboard_tip ""
+
+ You can also use the <kbd>Q</kbd> keyboard shortcut to start searching for
+ a channel.
+
+{end_tabs}
diff --git a/help/include/sidebar_index.md b/help/include/sidebar_index.md
index e7338de8a63..587dde1388e 100644
--- a/help/include/sidebar_index.md
+++ b/help/include/sidebar_index.md
@@ -147,7 +147,7 @@
* [Pin a channel](/help/pin-a-channel)
* [Change the color of a channel](/help/change-the-color-of-a-channel)
* [Unsubscribe from a channel](/help/unsubscribe-from-a-channel)
-* [Show or hide inactive channels](/help/manage-inactive-channels)
+* [Hide or reveal inactive channels](/help/manage-inactive-channels)
* [Move content to another channel](/help/move-content-to-another-channel)
* [View channel information](/help/view-channel-information)
* [View channel subscribers](/help/view-channel-subscribers)
diff --git a/help/manage-inactive-channels.md b/help/manage-inactive-channels.md
index b63bee5df2e..3f9513a7fa6 100644
--- a/help/manage-inactive-channels.md
+++ b/help/manage-inactive-channels.md
@@ -1,25 +1,60 @@
-# Manage inactive channels
+# Hide or reveal inactive channels
-In normal Zulip usage, channels fall in and out of use. By default, Zulip
-automatically moves channels that haven't been used in a while to the
-**Inactive** section at the bottom of your channels list in the left sidebar.
-This helps prevent low-traffic channels from cluttering the left sidebar.
+To avoid clutter in the [left sidebar](/help/left-sidebar), Zulip automatically
+hides channels with no recent messages if you're subscribed to 20+ channels. You
+can [configure](#configure-hiding-inactive-channels) Zulip to show or hide
+inactive channels regardless of how many you're subscribed to.
-You can configure Zulip to move (demote) inactive channels more or less
-aggressively. This is an advanced setting; you can safely ignore it if this
-is your first time using Zulip.
+It's easy to [reveal](#reveal-inactive-channels) or [find]() hidden inactive
+channels if you need to access them.
-### Manage inactive channels
+## Reveal inactive channels
{start_tabs}
+{tab|desktop-web}
+
+1. In the left sidebar, scroll to the bottom of the list of channels in the
+ [folder](/help/channel-folders) you're viewing.
+
+1. Click **inactive channels** to reveal inactive channels. If you don't see
+ this button, there are no inactive channels, or they are already revealed.
+
+{end_tabs}
+
+## Hide inactive channels
+
+{start_tabs}
+
+{tab|desktop-web}
+
+1. In the left sidebar, scroll to the bottom of the list of channels in the
+ [folder](/help/channel-folders) you're viewing.
+
+1. Click **hide inactive channels**. If you don't see this button, there are no
+ inactive channels, or they are already hidden.
+
+{end_tabs}
+
+## Find inactive channels
+
+{!filter-channels.md!}
+
+## Configure hiding inactive channels
+
+{start_tabs}
+
+{tab|desktop-web}
+
{settings_tab|preferences}
-1. Under **Information**, configure **Demote inactive channels**.
+1. Under **Information**, configure **Hide inactive channels**.
{end_tabs}
-The default is **Automatic**, which demotes inactive channels once you're
-subscribed to a minimum total number of channels. **Always** and **Never**
-either demote or don't demote inactive channels regardless of how many
-channels you have.
+## Related articles
+
+* [Introduction to channels](/help/introduction-to-channels)
+* [Pin a channel](/help/pin-a-channel)
+* [Mute or unmute a channel](/help/mute-a-channel)
+* [Channel folders](/help/channel-folders)
diff --git a/web/src/stream_list_sort.ts b/web/src/stream_list_sort.ts
index fe9a17b1895..0d88c8739f8 100644
--- a/web/src/stream_list_sort.ts
+++ b/web/src/stream_list_sort.ts
@@ -71,7 +71,7 @@ export function set_filter_out_inactives(): void {
user_settings.demote_inactive_streams ===
settings_config.demote_inactive_streams_values.automatic.code
) {
- filter_out_inactives = stream_data.num_subscribed_subs() >= 30;
+ filter_out_inactives = stream_data.num_subscribed_subs() >= 20;
} else if (
user_settings.demote_inactive_streams ===
settings_config.demote_inactive_streams_values.always.code
diff --git a/web/templates/settings/preferences_information.hbs b/web/templates/settings/preferences_information.hbs
index 61a9026d9a9..108a3462d13 100644
--- a/web/templates/settings/preferences_information.hbs
+++ b/web/templates/settings/preferences_information.hbs
@@ -99,7 +99,7 @@
prefix=prefix}}
<div class="input-group">
- <label for="{{prefix}}demote_inactive_streams" class="settings-field-label">{{t "Demote inactive channels" }}
+ <label for="{{prefix}}demote_inactive_streams" class="settings-field-label">{{t "Hide inactive channels" }}
{{> ../help_link_widget link="/help/manage-inactive-channels" }}
</label>
<select name="demote_inactive_streams" class="setting_demote_inactive_streams prop-element settings_select bootstrap-focus-style" id="{{prefix}}demote_inactive_streams" data-setting-widget-type="number">
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index bbdbaabaa40..56da3678912 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -13812,7 +13812,7 @@ paths:
example: "google"
demote_inactive_streams:
description: |
- Whether to [demote inactive channels](/help/manage-inactive-channels) in the left sidebar.
+ Whether to [hide inactive channels](/help/manage-inactive-channels) in the left sidebar.
- 1 - Automatic
- 2 - Always
@@ -17336,7 +17336,7 @@ paths:
demote_inactive_streams:
type: integer
description: |
- Whether to [demote inactive channels](/help/manage-inactive-channels) in the left sidebar.
+ Whether to [hide inactive channels](/help/manage-inactive-channels) in the left sidebar.
- 1 - Automatic
- 2 - Always
@@ -18172,7 +18172,7 @@ paths:
and only for clients that did not include `user_settings_object` in
their [`client_capabilities`][capabilities] when registering the event queue.
- Whether the user has chosen to demote inactive channels.
+ Whether the user has chosen to hide inactive channels.
See [PATCH /settings](/api/update-settings) for details on
the meaning of this setting.
@@ -20230,7 +20230,7 @@ paths:
demote_inactive_streams:
type: integer
description: |
- Whether to [demote inactive channels](/help/manage-inactive-channels) in the left sidebar.
+ Whether to [hide inactive channels](/help/manage-inactive-channels) in the left sidebar.
- 1 - Automatic
- 2 - Always
@@ -21479,7 +21479,7 @@ paths:
example: "google"
demote_inactive_streams:
description: |
- Whether to [demote inactive channels](/help/manage-inactive-channels) in the left sidebar.
+ Whether to [hide inactive channels](/help/manage-inactive-channels) in the left sidebar.
- 1 - Automatic
- 2 - Always
@@ -25054,8 +25054,8 @@ components:
type: boolean
description: |
Whether the channel has recent message activity. Clients should use this to implement
- [sorting inactive channels to the bottom](/help/manage-inactive-channels)
- if `demote_inactive_streams` is enabled.
+ [hide inactive channels](/help/manage-inactive-channels) if
+ `demote_inactive_streams` is enabled.
**Changes**: New in Zulip 10.0 (feature level 323). Previously, clients implemented the
demote_inactive_streams from local message history, resulting in a choppy loading
@@ -26192,7 +26192,7 @@ components:
type: boolean
description: |
Whether the channel has recent message activity. Clients should use this to implement
- [sorting inactive channels to the bottom](/help/manage-inactive-channels).
+ [hiding inactive channels](/help/manage-inactive-channels).
**Changes**: New in Zulip 10.0 (feature level 323). Previously, clients implemented the
demote_inactive_streams from local message history, resulting in a choppy loading