ProjectSidewalk / SidewalkWebpage

Project Sidewalk web page
http://projectsidewalk.org
MIT License
80 stars 23 forks source link

Order tags by frequency of use in current city #3578

Open misaugstad opened 2 days ago

misaugstad commented 2 days ago
Brief description of problem/feature

I'd like to reorder the list of tags that we show to people based on the frequency of use in the current city. It will be easier for users to find the tags they're looking for if the most frequently used ones are shown first. I think that this applies to Explore, the new Validate, and Gallery.

I don't think it's important to reorder existing tags on a label by frequency, but we should do it for tags that users may be looking to add to a label.

Potential solution(s)

Add a query on the back end that counts the frequency of each tag. This can even be cached for awhile, it's not important that the order gets updated frequently. Then we just include that with the list of tags when we send to the front end and reorder based on that!

For the new Validate page, there is built-in functionality in the drop down search for adding tags that will sort based on a named field. I gave it a default name of "popularity" right now, and we would just need to add that property to the tag objects.

jonfroehlich commented 2 days ago

For the new validate, could also look at co-occurrence patterns.

Sent from phone

On Fri, Jun 28, 2024 at 7:49 PM Michael Saugstad @.***> wrote:

Brief description of problem/feature

I'd like to reorder the list of tags that we show to people based on the frequency of use in the current city. It will be easier for users to find the tags they're looking for if the most frequently used ones are shown first. I think that this applies to Explore, the new Validate, and Gallery.

I don't think it's important to reorder existing tags on a label by frequency, but we should do it for tags that users may be looking to add to a label. Potential solution(s)

Add a query on the back end that counts the frequency of each tag. This can even be cached for awhile, it's not important that the order gets updated frequently. Then we just include that with the list of tags when we send to the front end and reorder based on that!

For the new Validate page, there is built-in functionality in the drop down search for adding tags that will sort based on a named field. I gave it a default name of "popularity" right now, and we would just need to add that property to the tag objects.

— Reply to this email directly, view it on GitHub https://github.com/ProjectSidewalk/SidewalkWebpage/issues/3578, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAML55NTIBLIIRBMY4KWRLTZJYHA3AVCNFSM6AAAAABKCYJSXGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4DCMZZGY3DGNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>