Page MenuHomePhabricator

Avoid accidental preferred languages
Closed, DeclinedPublic

Description

Currently, if you click on a language it becomes your preferred language and appears at the top of the list of languages. This maybe an unwanted behavior as users may click on a language link accidentally.

Let's store a language as a preferred language only if the user selects it twice. On the third time, it will surface on top.

Event Timeline

Use the top X clicked ones for example? Otherwise even if I only click Spanish once it won't be there even if there aren't other preferred languages.

Also note that if your browser language is Spanish, it will be listed in the preferred list anyway.

@Nirzar @JKatzWMF @dr0ptp4kt want to make a decision on this rather than keep it hanging around?

I believewe unfortunately probably cannot set a threshold on the number of taps required to have something in preferred - I believe for the general case one click is enough in order to get something onto the list. The question is how to get it off if it's accidental. There are different complicated time based heuristics, none without drawbacks (most of them technical, but some not!). The "un-prioritize" affordance is interesting, but I'm curious to hear @Nirzar's thoughts on that.

@Nirzar can you make a decision on what we should do here?

We should not limit the number but i agree about the accidental clicks. let's store a language as a preferred language if user selects it twice. i think that is a good indicator. from third time, it will surface on top.

@Nirzar can you edit the description and update the task plz?

Jdlrobson renamed this task from Limit the number of preferred languages to Avoid accidental preferred languages.Apr 14 2017, 12:04 AM
Jdlrobson updated the task description. (Show Details)

IMO sorting the preferred languages by number of previous clicks, would be preferable. Or even showing an (x) to the right of the item to remove it from the list of clicked languages.

Show it there only the second time seems arbitrary and magical if you don't know the heuristic as a user, and you can't still remove it.

This will be eventually be replaced by the new version of the ULS extension