fpdcc / ccfp-asset-dashboard

CCFP Asset Dashboard
0 stars 1 forks source link

Improvements to the asset map UI #117

Closed smcalilly closed 2 years ago

smcalilly commented 2 years ago

Overview

For issues:

Notes

Remaining UI improvements not in this PR:

Testing Instructions

smcalilly commented 2 years ago

And an odd UI question: What is the function of the table of search results? It doesn't seem to be adding much at the moment. Are there plans to add something like, highlight the building on the map when a result is hovered and select it when a result is clicked?

This is a good question and I agree, the table seems pointless as is. I've been wanting to add that feature you suggest and was planning to bring it up. I don't think it would be too difficult, but we'd be nearing the limit of complexity with this code.

Somewhat related, we could also go the opposite way, where a user selects a geometry on the map and allows them to save it by simply clicking. And it could also highlight in the table.

Garret has said that their staff knows the id's since it's common for them to use it, so I think having an identifier can be helpful. We could also add a popup easily that shows this info, like 15 minutes easy.

What do you think? @hancush, cc @fgregg

To recap, some ways to improve it:

  1. a user could click on the table and it takes them to that asset on the map. the click would also load the asset so it can be saved.
  2. a user could click on an asset in the map and they could save it. the click would also highlight the asset in the table.
    • alternatively, we could have a very simple implementation of a popup with info about each assest.
hancush commented 2 years ago

@smcalilly I think you should spin off the table UI into a separate issue.