Skip to content
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

Improve the sorting of tags on the menu on the left side #1318

Closed
vakilando opened this issue Jan 26, 2022 · 3 comments · Fixed by #1321
Closed

Improve the sorting of tags on the menu on the left side #1318

vakilando opened this issue Jan 26, 2022 · 3 comments · Fixed by #1321
Labels
bug Something isn't working or in unexpected ways webui WebUI issues

Comments

@vakilando
Copy link

When searching for documents with specific tags by clicking on a tag in the dropdown on the left side, the tag gets a check (tick mark) and stays visible almost on top in dependency of the quantity of documents with this tag (right?). Thats OK.
When then clicking on that tag again it gets excluded from the search and mostly disappears in dependency of alphabetical order and quantity of documents with this tag (right?).
Now it's a bit difficult to remove the exclude mark, because one has to search (filter) for this tag to find it again.
It would be better if the order of tags is as follows:

  1. checked tags
  2. excluded tags
  3. tags with items that share one of the checked tags ordered by quantity
  4. tags with items that do not share one of the checked tags ordered by quantity
@eikek
Copy link
Owner

eikek commented Jan 26, 2022

Thanks! Yes this is indeed very strange behavior, I think it is an regression, have the impression it was a bit different at some point.

@eikek eikek added bug Something isn't working or in unexpected ways webui WebUI issues labels Jan 26, 2022
@eikek eikek added this to the Docspell 0.32.0 milestone Jan 26, 2022
@eikek
Copy link
Owner

eikek commented Jan 26, 2022

It very likely is a consequence of #856. Before it simply kept the initial ordering, which I think is not bad, least surprising imho. I think point 3 and 4 are not possible given the data. I only know the overall usage count of a tag.

@vakilando
Copy link
Author

vakilando commented Jan 27, 2022

I think point 3 and 4 are not possible

That's ok.
Point 1. and 2. are most important.

@eikek eikek changed the title Imrove the sorting of tags on the menu on the left side Improve the sorting of tags on the menu on the left side Jan 27, 2022
@mergify mergify bot closed this as completed in #1321 Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or in unexpected ways webui WebUI issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants