roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.79k stars 1.62k forks source link

Clicking on the same folder to reset search should go to page 1 #7125

Closed dboehmer closed 3 years ago

dboehmer commented 4 years ago

Steps to reproduce:

Actual result:

Expected result:

This is similar to https://github.com/roundcube/roundcubemail/issues/3267 but here it's not only about refreshing the folder but resetting the search.

When the search query is reset and a different set of messages (all of them) are displayed keeping the page number makes no sense to me.

I find myself often clicking the folder name because it's a larger and more prominent clickable area than the search reset button.

dktcoding commented 4 years ago

Did you mean that the expected result should be: (IMHO this should be the expected behaviour)

Or just page one selected with the search filters in place?

PS: Can confirm that in v1.4.1 [GIT 20191216.1113] the actual result is as described by @dboehmer

dboehmer commented 4 years ago

Thank you for clarifying this!

Yes, I meant I expect the behavior to be:

I tested with with the 1.4.1 release.

alecpl commented 4 years ago

The page is reset if you select a different folder. Indeed, considering that selecting the same folder resets searching, we should reset the page too. I'm not that sure about the case when there's no searching, but I guess, because we already have the Refresh button, we should reset the page in this case too. This way Refresh action is "state update", and folder selection is "state reset". A clear distinction.

alecpl commented 3 years ago

Fixed.