SidewalkWebpage icon indicating copy to clipboard operation
SidewalkWebpage copied to clipboard

On user dashboard's top-down map, let them filter by "incorrect" and "correct" labels

Open jonfroehlich opened this issue 3 years ago • 4 comments

image

Related to allowing users to see their recently validated labels on their dashboard (https://github.com/ProjectSidewalk/SidewalkWebpage/issues/2288), another "easy" way to give access to this information is via the top-down map on the dashboard. We could add a little "filter widget" that let's users filter their labels by "validated correct", "validated incorrect", and "not yet validated." This also relates to https://github.com/ProjectSidewalk/SidewalkWebpage/issues/2786

I also agree with @gari01234's old comment on this that it would be great if users could then change/update their labels to correct info, which we've also discussed here. https://github.com/ProjectSidewalk/SidewalkWebpage/issues/2575

jonfroehlich avatar Mar 10 '22 13:03 jonfroehlich

This hopefully should be relatively easy to add at the same time that we add this functionality to LabelMap (#2786) since they use a lot of shared code!

misaugstad avatar Mar 11 '22 23:03 misaugstad

@nschung28 for this ticket, here's what I think needs to be done on the user dashboard map (you can see the fully featured legend at /labelMap):

  1. Add in rows with checkboxes for validated correct, validated incorrect, unsure, and unvalidated
  2. Reduce vertical spacing in the legend so that it fits nicely
  3. Add in the ability for users to click on their labels on the map and open the menu showing extra info. However, we should remove the validation section from this UI for the user dashboard only (since users shouldn't be validating their own labels).
  4. Optional: allow filtering based on label type using checkboxes

The code for the maps is in a centralized place, and we essentially turn features on/off depending on which page the map is for. There will have to be new parameters added to account for the current situation (like excluding the validation options from the label popups). I'm also not sure if there are tweaks that will be needed if we are only adding the filters based on validations (and not the other filters as well).

misaugstad avatar Jul 03 '24 17:07 misaugstad