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.

left sidebar: Fix misleading "search streams" label.

Tim Abbott208721b3d745
diff --git a/frontend_tests/puppeteer_tests/message-basics.ts b/frontend_tests/puppeteer_tests/message-basics.ts
index 2262912444b..04fce83e9bc 100644
--- a/frontend_tests/puppeteer_tests/message-basics.ts
+++ b/frontend_tests/puppeteer_tests/message-basics.ts
@@ -319,7 +319,7 @@ async function test_search_venice(page: Page): Promise<void> {
}
async function test_stream_search_filters_stream_list(page: Page): Promise<void> {
- console.log("Search streams using left side bar");
+ console.log("Filter streams using left side bar");
await page.waitForSelector(".input-append.notdisplayed"); // Stream filter box invisible initially
await page.click("#streams_header .sidebar-title");
diff --git a/templates/zerver/app/keyboard_shortcuts.html b/templates/zerver/app/keyboard_shortcuts.html
index 563ed94680f..09ae238ac76 100644
--- a/templates/zerver/app/keyboard_shortcuts.html
+++ b/templates/zerver/app/keyboard_shortcuts.html
@@ -70,7 +70,7 @@
<td><span class="hotkey"><kbd>Ctrl</kbd> + <kbd>K</kbd> or <kbd>/</kbd></span></td>
</tr>
<tr>
- <td class="definition">{% trans %}Search streams{% endtrans %}</td>
+ <td class="definition">{% trans %}Filter streams{% endtrans %}</td>
<td><span class="hotkey"><kbd>Q</kbd></span></td>
</tr>
<tr>
diff --git a/templates/zerver/app/left_sidebar.html b/templates/zerver/app/left_sidebar.html
index 8baccbb01ae..1fdf229bbf7 100644
--- a/templates/zerver/app/left_sidebar.html
+++ b/templates/zerver/app/left_sidebar.html
@@ -63,7 +63,7 @@
<i id="streams_inline_cog" class='fa fa-cog tippy-zulip-tooltip' aria-hidden="true" data-tippy-content="{{ _('Subscribe, add, or configure streams') }}"></i>
<i id="streams_filter_icon" class='fa fa-search tippy-zulip-tooltip' aria-hidden="true" data-tippy-content="{{ _('Filter streams') }} (q)"></i>
<div class="input-append notdisplayed stream_search_section">
- <input class="stream-list-filter home-page-input" type="text" autocomplete="off" placeholder="{{ _('Search streams') }}" />
+ <input class="stream-list-filter home-page-input" type="text" autocomplete="off" placeholder="{{ _('Filter streams') }}" />
<button type="button" class="btn clear_search_button" id="clear_search_stream_button">
<i class="fa fa-remove" aria-hidden="true"></i>
</button>
diff --git a/templates/zerver/help/keyboard-shortcuts.md b/templates/zerver/help/keyboard-shortcuts.md
index ade8419e606..f664b194d32 100644
--- a/templates/zerver/help/keyboard-shortcuts.md
+++ b/templates/zerver/help/keyboard-shortcuts.md
@@ -48,7 +48,7 @@ below, and add more to your repertoire as needed.
* **Search messages**: `/` or `Ctrl+k`
-* **Search streams**: `q`
+* **Filter streams**: `q`
* **Search people**: `w`
diff --git a/templates/zerver/help/organize-the-streams-sidebar.md b/templates/zerver/help/organize-the-streams-sidebar.md
index 360ef5b28b4..06034efe57c 100644
--- a/templates/zerver/help/organize-the-streams-sidebar.md
+++ b/templates/zerver/help/organize-the-streams-sidebar.md
@@ -46,7 +46,7 @@ To learn more about pinning a stream, see [here](/help/pin-a-stream).
!!! tip ""
You can also use the hotkey "w" to open the search box directly
-2. A search box entitled **Search streams** will appear. You can type the
+2. A text box entitled **Filter streams** will appear. You can type the
name of a stream into this box and the **Streams** section will be filtered
accordingly.
diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py
index ce6295e906e..ae2d3de20dd 100644
--- a/tools/linter_lib/custom_check.py
+++ b/tools/linter_lib/custom_check.py
@@ -547,7 +547,7 @@ html_rules: List["Rule"] = [
},
"exclude": {"templates/analytics/support.html"},
"good_lines": [
- '<input class="stream-list-filter" type="text" placeholder="{{ _(\'Search streams\') }}" />'
+ '<input class="stream-list-filter" type="text" placeholder="{{ _(\'Filter streams\') }}" />'
],
"bad_lines": ['<input placeholder="foo">'],
},
@@ -567,7 +567,7 @@ html_rules: List["Rule"] = [
"pattern": "placeholder='[^{]",
"description": "`placeholder` value should be translatable.",
"good_lines": [
- '<input class="stream-list-filter" type="text" placeholder="{{ _(\'Search streams\') }}" />'
+ '<input class="stream-list-filter" type="text" placeholder="{{ _(\'Filter streams\') }}" />'
],
"bad_lines": ["<input placeholder='foo'>"],
},
diff --git a/zerver/tests/test_home.py b/zerver/tests/test_home.py
index 811d64ceb58..5a98a2ad847 100644
--- a/zerver/tests/test_home.py
+++ b/zerver/tests/test_home.py
@@ -244,7 +244,7 @@ class HomeTest(ZulipTestCase):
"Manage streams",
"Narrow to topic",
"Next message",
- "Search streams",
+ "Filter streams",
# Verify that the app styles get included
"app-stubentry.js",
"data-params",