covid19india-cluster icon indicating copy to clipboard operation
covid19india-cluster copied to clipboard

Search bar should search through city, state, travel dest too

Open anandmuthu007 opened this issue 4 years ago • 11 comments

Try to add search bar for search state and city in cluster.it will become easy to find. State wise patients details.

anandmuthu007 avatar Mar 26 '20 04:03 anandmuthu007

There is a search bar in the Cluster page which search based on the Patient name alone. Is that ok make it support other search criteria as well like State, patient name etc?

iam-gopi avatar Mar 26 '20 06:03 iam-gopi

@SahajR can you try dealing with this? As cases are ballooning, it's becoming more difficult to zoom into the city/state you want to check. Thanks :)

sibeshkar avatar Mar 29 '20 07:03 sibeshkar

I can do this. I need to know all the possible inputs and expected behavior for each.

For example, what should happen if I search City Name ? If in city mode, I can focus on the city node, but if not, what should be focused on?

SahajR avatar Mar 29 '20 14:03 SahajR

@sibeshkar Hey just checking back since I didn't hear from you. We can discuss all the UI requirements for search before going ahead.

SahajR avatar Mar 31 '20 14:03 SahajR

Sorry just missed this among avalanche of notifs. I think best will be if there's a key of each node which is used to fuzzy search through the nodes and zoom in if there's a match. In search bar, this would look like : "Type city, state or patient number to searh...".

sibeshkar avatar Mar 31 '20 15:03 sibeshkar

Ok so we need to also notify the user that they need to be in a certain filter for a particular search to work. because the clustering graph changes only after a filter is set initially.

SahajR avatar Mar 31 '20 16:03 SahajR

"Type city, state or patient number to search...". This text will change based on which filter you apply?

sibeshkar avatar Mar 31 '20 18:03 sibeshkar

Yes, that's fine, but what happens if the user searches Delhi if the graph is in patient mode?

SahajR avatar Mar 31 '20 18:03 SahajR

Nothing happens (we can red-highlight the input box to indicate no matches), which indicates there are no nodes which match

sibeshkar avatar Mar 31 '20 18:03 sibeshkar

ok. Will start with this tomorrow morning.

SahajR avatar Mar 31 '20 18:03 SahajR

Thank you!

sibeshkar avatar Mar 31 '20 18:03 sibeshkar