diff --git a/docs/chat-zulip-org.md b/docs/chat-zulip-org.md index e453c37936..1881be0dbd 100644 --- a/docs/chat-zulip-org.md +++ b/docs/chat-zulip-org.md @@ -69,9 +69,9 @@ everyone, even non-developers: for discussing Zulip's translations. There are dozens of streams for development discussions in the Zulip -community (e.g. one for each app, etc.); check out the /#subscriptions -page to see the descriptions for all of them. Relevant to almost -everyone are these: +community (e.g. one for each app, etc.); check out the +[Streams page](https://chat.zulip.org/#streams/all) to see the +descriptions for all of them. Relevant to almost everyone are these: * [#checkins](https://chat.zulip.org/#narrow/stream/checkins) is for progress updates on what you're working on and its status; usually diff --git a/docs/user-docs.md b/docs/user-docs.md index d75ae1ac10..399cd5df9c 100644 --- a/docs/user-docs.md +++ b/docs/user-docs.md @@ -278,8 +278,8 @@ immediately after the title. ### **All streams** `{!all-streams.md!}` macro * **About:** Explains how to view all streams in the organization on the -**Subscriptions** page. Usually formatted as a tip and preceded by the -[**Subscriptions** macro](#subscriptions-subscriptions-md-macro) and the +**Streams** page. Usually formatted as a tip and preceded by the +[**Streams** macro](#streams-subscriptions-md-macro) and the [**Filter streams** macro](#filter-streams-filter-streams-md-macro). * **Contents:** @@ -298,7 +298,7 @@ immediately after the title. ``` ```.md 1. [Find the relevant stream](/help/browse-and-join-streams#browse-streams) on the - [Subscriptions](/#subscriptions) page. You can search for specific streams by entering the + [Streams](/#streams) page. You can search for specific streams by entering the name of the stream in the **Filter streams** input. !!! tip "" If you wish to see streams that you aren't subscribed to, click on the @@ -352,8 +352,8 @@ following content into a step. ### **Filter streams** `{!filter-streams.md!}` macro * **About:** Explains how to search for specific streams in the - **Subscriptions** page using the **Filter streams** input. Usually preceded by - the [**Subscriptions** macro](#subscriptions-subscriptions-md-macro). + **Streams** page using the **Filter streams** input. Usually preceded by + the [**Streams** macro](#streams-subscriptions-md-macro). * **Contents:** ```.md @@ -368,7 +368,7 @@ following content into a step. ``` ```.md 1. [Find the relevant stream](/help/browse-and-join-streams#browse-streams) on the - [Subscriptions](/#subscriptions) page. You can search for specific streams by entering the + [Streams](/#streams) page. You can search for specific streams by entering the name of the stream in the **Filter streams** input. ``` @@ -485,12 +485,12 @@ instruction and the [**Down chevron** macro](#down-chevron-down-chevron-md-macro ### **Stream settings** `{!stream-settings.md!}` macro * **About:** Notifies readers about the changes in the - **Subscriptions** page when a stream is selected; usually followed + **Streams** page when a stream is selected; usually followed by an instruction. * **Contents:** ```.md - the right side of the [Subscriptions](/#subscriptions) page, labeled + the right side of the [Streams](/#streams) page, labeled **Stream settings**, will now display the selected stream's settings. ``` @@ -500,14 +500,14 @@ instruction and the [**Down chevron** macro](#down-chevron-down-chevron-md-macro ``` ```.md 1. Click on the stream you want to edit; the right side of the - [Subscriptions](/#subscriptions) page, labeled **Stream settings**, will + [Streams](/#streams) page, labeled **Stream settings**, will now display the selected stream's settings. ``` ### **Stream settings scroll** `{!stream-settings.md!}` macro * **About:** Instructs readers to scroll down to a particular section on the -**Subscriptions** page after making sure their cursors are hovering above the +**Streams** page after making sure their cursors are hovering above the **Streams Settings** section. * **Contents:** @@ -529,15 +529,15 @@ instruction and the [**Down chevron** macro](#down-chevron-down-chevron-md-macro selected stream. ``` -### **Subscriptions** `{!subscriptions.md!}` macro +### **Streams** `{!subscriptions.md!}` macro -* **About:** Used in documentation that direct users to the **Subscriptions** page. +* **About:** Used in documentation that direct users to the **Streams** page. Often followed by the [**Filter streams** macro](#filter-streams-filter-streams-md-macro). * **Contents:** ```.md 1. [Find the relevant stream](/help/browse-and-join-streams#browse-streams) on - the [Subscriptions](/#subscriptions) page. + the [Streams](/#streams) page. ``` * **Example usage and rendering:** @@ -547,7 +547,7 @@ Often followed by the [**Filter streams** macro](#filter-streams-filter-streams- ``` ```.md 1. [Find the relevant stream](/help/browse-and-join-streams#browse-streams) on the - [Subscriptions](/#subscriptions) page. You can search for specific streams by entering the + [Streams](/#streams) page. You can search for specific streams by entering the name of the stream in the **Filter streams** input. ``` diff --git a/frontend_tests/casper_tests/05-subscriptions.js b/frontend_tests/casper_tests/05-subscriptions.js index dfe4f72cef..196ce50204 100644 --- a/frontend_tests/casper_tests/05-subscriptions.js +++ b/frontend_tests/casper_tests/05-subscriptions.js @@ -5,17 +5,17 @@ common.start_and_log_in(); casper.then(function () { var menu_selector = '#settings-dropdown'; - casper.test.info('Subscriptions page'); + casper.test.info('Streams page'); casper.waitUntilVisible(menu_selector, function () { casper.click(menu_selector); casper.then(function () { - casper.click('a[href^="#subscriptions"]'); + casper.click('a[href^="#streams"]'); casper.test.assertUrlMatch( - /^http:\/\/[^/]+\/#subscriptions/, - 'URL suggests we are on subscriptions page'); + /^http:\/\/[^/]+\/#streams/, + 'URL suggests we are on streams page'); casper.waitUntilVisible('#subscription_overlay.new-style', function () { - casper.test.assertExists('#subscription_overlay.new-style', 'Subscriptions page is active'); + casper.test.assertExists('#subscription_overlay.new-style', 'Streams page is active'); }); }); }); diff --git a/frontend_tests/casper_tests/09-navigation.js b/frontend_tests/casper_tests/09-navigation.js index ee8ae03449..3d7d2d6689 100644 --- a/frontend_tests/casper_tests/09-navigation.js +++ b/frontend_tests/casper_tests/09-navigation.js @@ -46,7 +46,7 @@ function then_navigate_to_subscriptions() { var menu_selector = '#settings-dropdown'; casper.waitUntilVisible(menu_selector, function () { casper.click(menu_selector); - casper.click('a[href^="#subscriptions"]'); + casper.click('a[href^="#streams"]'); casper.waitUntilVisible("#subscription_overlay", function () { casper.test.assertExists('#subscriptions_table', "#subscriptions page is active"); }); diff --git a/frontend_tests/casper_tests/10-admin.js b/frontend_tests/casper_tests/10-admin.js index 9529cb3745..5c7541e769 100644 --- a/frontend_tests/casper_tests/10-admin.js +++ b/frontend_tests/casper_tests/10-admin.js @@ -38,7 +38,7 @@ casper.then(function () { casper.then(function () { // Leave the page and return casper.click('#settings-dropdown'); - casper.click('a[href^="#subscriptions"]'); + casper.click('a[href^="#streams"]'); casper.click('#settings-dropdown'); casper.click('a[href^="#administration"]'); }); @@ -272,7 +272,7 @@ casper.then(function () { casper.then(function () { // Leave the page and return casper.click('#settings-dropdown'); - casper.click('a[href^="#subscriptions"]'); + casper.click('a[href^="#streams"]'); casper.click('#settings-dropdown'); casper.click('a[href^="#administration"]'); diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js index 0860532663..59f4855e81 100644 --- a/static/js/click_handlers.js +++ b/static/js/click_handlers.js @@ -389,7 +389,7 @@ $(function () { e.preventDefault(); e.stopPropagation(); - window.location.hash = "subscriptions/all"; + window.location.hash = "streams/all"; }); // FEEDBACK diff --git a/static/js/compose.js b/static/js/compose.js index 8e0ab00694..d7eef53fe5 100644 --- a/static/js/compose.js +++ b/static/js/compose.js @@ -803,7 +803,7 @@ function validate_stream_message_address_info(stream_name) { case "does-not-exist": response = "
The stream " + Handlebars.Utils.escapeExpression(stream_name) + " does not exist.
" + - "Manage your subscriptions on your Streams page.
"; + "Manage your subscriptions on your Streams page.
"; compose_error(response, $('#stream')); return false; case "error": @@ -811,7 +811,7 @@ function validate_stream_message_address_info(stream_name) { case "not-subscribed": response = "You're not subscribed to the stream " + Handlebars.Utils.escapeExpression(stream_name) + ".
" + - "Manage your subscriptions on your Streams page.
"; + "Manage your subscriptions on your Streams page.
"; compose_error(response, $('#stream')); return false; } diff --git a/static/js/hashchange.js b/static/js/hashchange.js index 5f60dfd2e0..c537102eeb 100644 --- a/static/js/hashchange.js +++ b/static/js/hashchange.js @@ -181,8 +181,8 @@ function do_hashchange(from_reload) { case "#": activate_home_tab(); break; - case "#subscriptions": - ui.change_tab_to("#subscriptions"); + case "#streams": + ui.change_tab_to("#streams"); break; case "#drafts": ui.change_tab_to("#drafts"); @@ -234,7 +234,7 @@ function get_hash_components() { // require a reload or overlay change to run. var get_hash_group = (function () { var groups = [ - ["subscriptions"], + ["streams"], ["settings", "administration"], ]; @@ -254,8 +254,8 @@ var get_hash_group = (function () { }()); function should_ignore(hash) { - // an array of hashes to ignore (eg. ["subscriptions", "settings", "administration"]). - var ignore_list = ["subscriptions", "drafts", "settings", "administration"]; + // Hash changes within this list are overlaws and should not unnarrow (etc.) + var ignore_list = ["streams", "drafts", "settings", "administration"]; var main_hash = get_main_hash(hash); return (ignore_list.indexOf(main_hash) > -1); @@ -285,7 +285,7 @@ function hashchanged(from_reload, e) { ignore.prev = old_hash; } - if (base === "subscriptions") { + if (base === "streams") { subs.launch(get_hash_components()); } else if (base === "drafts") { drafts.launch(); diff --git a/static/js/stream_popover.js b/static/js/stream_popover.js index ca6987883b..430a1599ff 100644 --- a/static/js/stream_popover.js +++ b/static/js/stream_popover.js @@ -173,7 +173,7 @@ exports.register_stream_handlers = function () { var sub = stream_popover_sub(e); exports.hide_stream_popover(); - window.location.hash = "#subscriptions"; + window.location.hash = "#streams"; // the template for subs needs to render. subs.onlaunch("narrow_to_row", function () { diff --git a/static/js/subs.js b/static/js/subs.js index ef238d6e19..d0a594c794 100644 --- a/static/js/subs.js +++ b/static/js/subs.js @@ -779,7 +779,7 @@ exports.change_state = (function () { // if there are any arguments the state should be modified. if (hash.arguments.length > 0) { - // if in #subscriptions/new form. + // if in #streams/new form. if (hash.arguments[0] === "new") { $("#create_stream_button").click(); components.toggle.lookup("stream-filter-toggle").goto("All streams"); @@ -1138,10 +1138,10 @@ $(function () { $('#create_stream_name').focus(); } - // change the hash to #subscriptions/new to allow for linking and + // change the hash to #streams/new to allow for linking and // easy discovery. - window.location.hash = "#subscriptions/new"; + window.location.hash = "#streams/new"; }); $('body').on('change', '#user-checkboxes input, #make-invite-only input', update_announce_stream_state); @@ -1414,7 +1414,7 @@ $(function () { var stream_id = $(this).attr("data-stream-id"); var sub = stream_data.get_sub_by_id(stream_id); - window.location.hash = "#subscriptions" + "/" + + window.location.hash = "#streams" + "/" + stream_id + "/" + hashchange.encodeHashComponent(sub.name); } @@ -1540,7 +1540,7 @@ function focus_on_narrowed_stream() { exports.show_and_focus_on_narrow = function () { $(document).one('subs_page_loaded.zulip', focus_on_narrowed_stream); - ui.change_tab_to("#subscriptions"); + ui.change_tab_to("#streams"); }; return exports; diff --git a/static/templates/settings/notification-settings.handlebars b/static/templates/settings/notification-settings.handlebars index a98e20683f..d6a18f8b7c 100644 --- a/static/templates/settings/notification-settings.handlebars +++ b/static/templates/settings/notification-settings.handlebars @@ -43,7 +43,7 @@- {{#tr this}}Change notification settings for individual streams on your Streams page.{{/tr}} + {{#tr this}}Change notification settings for individual streams on your Streams page.{{/tr}}
diff --git a/static/templates/settings/streams-list-admin.handlebars b/static/templates/settings/streams-list-admin.handlebars index aa6b84cf75..396d585126 100644 --- a/static/templates/settings/streams-list-admin.handlebars +++ b/static/templates/settings/streams-list-admin.handlebars @@ -3,7 +3,7 @@ {{t "Delete streams" }}Most stream administration is done on the subscriptions page.
+{{#tr this}}Most stream administration is done on the Streams page.{{/tr}}