AMP-SCZ / dpdash

Deep phenotyping dashboard
Other
2 stars 1 forks source link

Add a network filter to the Individual Chart Page #689

Open mikestone14 opened 8 months ago

mikestone14 commented 8 months ago

Add a "network" filter (sites are grouped into networks).

Add toggles for each network, when clicking a toggle it applies a site filter for the sites in that network. MGB team will give us a list of networks and their sites.

Network list

User stories

As a user on the Individual Chart Page When I click on a toggle button for a network Then the chart is filtered to only the sites in the selected network

justintbaker commented 8 months ago

https://github.com/AMP-SCZ/subject-id-gen/blob/main/sites.json

justintbaker commented 7 months ago

This doesn't work quite as expected.

When you first select a network site, and apply the filters, it does what you would expect.

However, upon unselecting a network, the app does not update the "Sites" filters so the chart doesn't update:

Image

Same thing occurs if I select BOTH networks...that are still no updates to the chart:

Image

The only thing that works is if I manually click sites and first "Select All" with both networks selected:

Image

Is there an easy fix that would make this more intuitive?

mikestone14 commented 7 months ago

thanks @justintbaker - we'll take a look!