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
unread: Make the n
key respect the left sidebar filter.
#22798
base: main
Are you sure you want to change the base?
Conversation
When going to the next unread message we should restrict the streams according to the stream filter, if it is filled in. And similarly for the topic filter, if you're currently viewing "more topics". So, modified the algorithm to iterate through the unread actively-filtered topics first, then the other unread topics in the stream, and then all the unfiltered topics of other streams (no filters applied for any of those). Fixes zulip#21437.
Hello @zulip/server-sidebars members, this pull request was labeled with the "area: left-sidebar" label, so you may want to check it out! |
@sayamsamal , Can you please review this PR. |
@alya can you please take a look at this. |
@sayamsamal please review this PR when you get a chance. Thanks! |
Since it looks like @sayamsamal is not currently available, @punchagan I wonder if you'd be up for doing an initial review on this PR? |
@alya Sorry for the delayed heads up, I have actually completed walking through and reviewing this PR. Here are my observations,
From these observations, and having gone through the CZO and the issue, do we want the topic filter to reach the second step, where it iterates over all the unread messages, or should it stop once the filtered list of unread messages are iterated through? FYI, @jai2201 |
Hm, good question! I don't have a super clear intuition on this, other than that we should be consistent between stream and topic filters. :) @jai2201 would you be up for asking what folks think in a #design conversation? |
I also think either approach would be an improvement over the current state (as long as streams/topics are consistent), so if one is much easier to implement, we could start with that. |
Heads up @jai2201, we just merged some commits that conflict with the changes you made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
4ec3636
to
88b200c
Compare
When going to the next unread message we should restrict
the streams according to the stream filter, if it is filled in.
And similarly for the topic filter, if you're currently
viewing "more topics".
So, modified the algorithm to iterate through the unread
actively-filtered topics first, then the other unread
topics in the stream, and then all the unfiltered
topics of other streams (no filters applied for any of those).
Fixes #21437.
Screenshots and screen captures:
Self-review checklist
(variable names, code reuse, readability, etc.).
Communicate decisions, questions, and potential concerns.
Individual commits are ready for review (see commit discipline).
Completed manual review and testing of the following: