AMP-SCZ / dpdash

Deep phenotyping dashboard
Other
2 stars 1 forks source link

Add study page table #723

Closed Elkrival closed 7 months ago

Elkrival commented 7 months ago

This pr adds the studies table to the study page. I had to update the api endpoint for the study importer, to make sure we add the updatedAt property, if it's a new study then we add a createdAt and updatedAt property.

The daysInStudy is calculated by using the highest daysInStudy value from a participant.

I updated a rule on the linter for optional chaining, without this it is causing charts not to load.

I verified the documentDB compatibility with the mongodb operators I am using for querying and sorting and they are compatible.

@mikestone14 We might need an updated list of the site names, there is RU site which we don't have a name for.

Video of the functionality.

https://drive.google.com/file/d/16DC3F8UfdVSyvw2XJKcaoGU9rGsJ_9Km/view?usp=sharing

mikestone14 commented 7 months ago

@Elkrival I believe this should be based off the study page branch and be rendered on the study page that's created in that branch.