-
Notifications
You must be signed in to change notification settings - Fork 27
3578 order tags by frequency of use #3805
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
base: develop
Are you sure you want to change the base?
Conversation
- adds a lookup to the LabelTable to get global tag counts - use counts to sort the tags order
This reverts commit c3051c2.
- adds a lookup to the LabelTable to get global tag counts - use counts to sort the tags order
|
@bella-buchanan it looks like the mutually exclusive pairing isn't happening in all cases. One example below ("one button" and "two buttons" are mutually exclusive but not adjacent): And just because they're sorted in that API doesn't mean that they're sorted in the actual UIs! I think that the ordering is being used by default on the Explore page, but not on the New Validate Beta page. Pasting something I wrote in the original ticket on that front:
|
@misaugstad thanks for the comments! I have addressed the sorting on the Explore page by making sure mutually exclusive tags are scored in a way that they are always next to one another: I also changed the field from count to popularity so that new validate beta can have the correct sorting |
Thanks @misaugstad, I've been struggling to login as an admin so let me figure that out to close out the new validate issue you're seeing! |
|
@bella-buchanan check these docs for help with that! |
This reverts commit 65783a6.
misaugstad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things from testing:
- You somehow removed the following lines from the end of the
escapeHTMLfunction in Utilities.js, which made it so that neither the Explore nor Validate page would load... Had to figure out what happened to be able to test in the first place.} }); } - On Validate, it seems like maybe the tags start out sorted, but once you add or remove a tag, it removes the sorting..? Here's a before/after when adding a tag. It starts out sorted correctly, but sorting is totally different after adding a tag.











Resolves #3578
Problem: Tags are presented to users in an unordered manner. It could help taggers to see tags in the order they are most frequently used. Additionally, it is important that mutually exclusive tags are presented next to each other for ease of understanding the tag.
Solution:
TagTable.getTagsForCurrentCityis an already implemented method that gets the tag frequencies for the city. In this PR, we use these counts to sort tags inLabelController.getLabelTags.Before/After screenshots
before (unsorted):
after (sorted and mutually exclusive pairing):
Testing instructions
Things to check before submitting the PR