lucyparsons / OpenOversight

Police oversight and accountability through public data 👮
https://openoversight.com
GNU General Public License v3.0
240 stars 79 forks source link

Add states to browse department page or separate department lists by states #797

Closed ssempervirens closed 1 year ago

ssempervirens commented 4 years ago

As of now, our browse department page lists the names of departments, but as we continue to add new departments in new cities, I'm worried this will get confusing. For example, I didn't know that the Chittenden County Sheriff's Office was in Vermont until I googled it.

The easiest solution here would be to add the state name in parentheses or something after the name — so it would read Chittenden County Sheriff's Office (VT) or Chittenden County Sheriff's Office (Vermont). A perhaps better solution in the longer term would be to have departments organized by federal, and then states, so that each department is listed under a state heading. I'm fine with either but I think it would be useful to add states to the department names.

Screen Shot 2020-08-13 at 4 35 37 PM
fritzdavenport commented 4 years ago

See also (closed) https://github.com/lucyparsons/OpenOversight/issues/792 and https://github.com/lucyparsons/OpenOversight/issues/364

abandoned-prototype commented 1 year ago

Bumping this issue since it is still a problem and becomes bigger the more departments we are adding. In my opinion in the longer term we should think about UI improvements, so people can find the departments they are interested in quicker, some of this is also discussed in #364.

For the short term (covered in this issue), I think we should add a state column to the department and make sure it is populated in all paths that create departments (via UI by administrator and flask command directly on the server). Then for /browse we should organize the list by state (in alphabetic order) and add a header line with an id, so that /browse#NewYork brings you directly to the New York departments for example. Within each state the departments should also be ordered alphabetically

For other places where we use a dropdown (e.g. /submit, /find) I think using the optgroup tag makes sense, not sure how much work it would be to include that (ideally it's only one component we change) everywhere. If this is not feasible we could add the state abbreviation in brackets in front and then order alphabetically (e.g. [IL] Chicago Police Department)

michplunkett commented 1 year ago

Gonna create another ticket for UX things regarding department searching as this ticket already has a bit too much work associated with it.