New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an "Unsubscribed" streams tab #21869
Comments
Hello @zulip/server-streams members, this issue was labeled with the "area: stream settings" label, so you may want to check it out! |
That looks like a useful addition. I do sometimes feel the need to browse through all unsubscribed streams (when I don't have any specific filters) so that I can subscribe to any, if I want to. I think I will be working on this. We can work on any additions that will later be provided in the feedback. |
Cool, thanks! Please post a PR when ready. Let's try putting "Unsubscribed" on the right; I think that will work best. |
Done! I have pushed the PR. There are still some node tests that have to be done but I think you can test the working for now. |
In stream-list, when there is no streams to show (In case of `Subscribed` or `Not subscribed` tabs), the user will be presented with a text message `No streams to show` and a link that redirects the user to `All streams(#streams/all)` tab. Fixes: zulip#21869
This commit adds a new tab to the stream settings overlay called "Not subscribed" which lists all the streams the user is not subscribed to. This tab is disabled if the user is a guest. Introduced a new variable called "not-subscribed" to replicate a similar model to how the subscribed tab is working. Currently, there are only two tabs: "subscribed" and "all streams" so we can use an if-else condition. However, introducing a new tab requires more conditions to check, so I replaced the if-else with switch-case wherever required. Fixed and added the node tests for these changes. Fixes: zulip#21869
This commit adds a new tab to the stream settings overlay called "Not subscribed" which lists all the streams the user is not subscribed to. This tab is disabled if the user is a guest. Introduced a new variable called "not-subscribed" to replicate a similar model to how the subscribed tab is working. Currently, there are only two tabs: "subscribed" and "all streams" so we can use an if-else condition. However, introducing a new tab requires more conditions to check, so I replaced the if-else with switch-case wherever required. Fixed and added the node tests for these changes. Fixes: zulip#21869
This commit adds a new tab to the stream settings overlay called "Not subscribed" which lists all the streams the user is not subscribed to. This tab is disabled if the user is a guest. Introduced a new variable called "not-subscribed" to replicate a similar model to how the subscribed tab is working. Currently, there are only two tabs: "subscribed" and "all streams" so we can use an if-else condition. However, introducing a new tab requires more conditions to check, so I replaced the if-else with switch-case wherever required. Refactored the 'update_stream_row_in_settings_tab' function inside stream_ui_updates.js to include the case of a 'Not-subscribed' tab, so that the tab is immediately updated in any add/remove subscription event. Fixed and added the node tests for these changes. Fixes: zulip#21869
This commit adds a new tab to the stream settings overlay called "Not subscribed" which lists all the streams the user is not subscribed to. This tab is disabled if the user is a guest. Introduced a new variable called "show_not_subscribed" to replicate a similar model to how the subscribed tab is working. Currently, there are only two tabs: "subscribed" and "all streams" so we can use an if-else condition. However, introducing a new tab requires more conditions to check, so I replaced the if-else with switch-case wherever required. Refactored the 'update_stream_row_in_settings_tab' function inside stream_ui_updates.js to include the case of a 'Not-subscribed' tab, so that the tab is immediately updated in any add/remove subscription event. Fixed and added the node tests for these changes. Fixes: zulip#21869
This commit adds a new tab to the stream settings overlay called "Not subscribed" which lists all the streams the user is not subscribed to. This tab is disabled if the user is a guest. Introduced a new variable called "show_not_subscribed" to replicate a similar model to how the subscribed tab is working. Currently, there are only two tabs: "subscribed" and "all streams" so we can use an if-else condition. However, introducing a new tab requires more conditions to check, so I replaced the if-else with switch-case wherever required. Refactored the 'update_stream_row_in_settings_tab' function inside stream_ui_updates.js to include the case of a 'Not-subscribed' tab, so that the tab is immediately updated in any add/remove subscription event. Fixed and added the node tests for these changes. Fixes: zulip#21869
This commit adds a new tab to the stream settings overlay called "Not subscribed" which lists all the streams the user is not subscribed to. This tab is disabled if the user is a guest. Introduced a new variable called "show_not_subscribed" to replicate a similar model to how the subscribed tab is working. Currently, there are only two tabs: "subscribed" and "all streams" so we can use an if-else condition. However, introducing a new tab requires more conditions to check, so I replaced the if-else with switch-case wherever required. Refactored the 'update_stream_row_in_settings_tab' function inside stream_ui_updates.js to include the case of a 'Not-subscribed' tab, so that the tab is immediately updated in any add/remove subscription event. Fixed and added the node tests for these changes. Fixes: zulip#21869
Does this issue still need a PR or I think #26049 fixes this? |
This commit adds a new tab to the stream settings overlay called "Not subscribed" which lists all the streams the user is not subscribed to. This tab is disabled if the user is a guest. Introduced a new variable called "show_not_subscribed" to replicate a similar model to how the subscribed tab is working. Currently, there are only two tabs: "subscribed" and "all streams" so we can use an if-else condition. Refactored the 'update_stream_row_in_settings_tab' function inside stream_ui_updates.js to include the case of a 'Not-subscribed' tab, so that the tab is immediately updated in any add/remove subscription event. Fixed and added the node tests for these changes. Fixes: zulip#21869.
This commit adds a new tab to the stream settings overlay called "Not subscribed" which lists all the streams the user is not subscribed to. This tab is disabled if the user is a guest. Introduced a new variable called "show_not_subscribed" to replicate a similar model to how the subscribed tab is working. Currently, there are only two tabs: "subscribed" and "all streams" so we can use an if-else condition. Refactored the 'update_stream_row_in_settings_tab' function inside stream_ui_updates.js to include the case of a 'Not-subscribed' tab, so that the tab is immediately updated in any add/remove subscription event. Fixed and added the node tests for these changes. Fixes: zulip#21869.
Render tooltips for both the tabs if the user is guest user. Fixes zulip#21869.
When browsing streams to potentially subscribe to, it would be helpful to just view streams to which you're not currently subscribed. We should:
Notes:
The text was updated successfully, but these errors were encountered: