CDCgov / prime-reportstream

ReportStream is a public intermediary tool for delivery of data between different parts of the healthcare ecosystem.
https://reportstream.cdc.gov
Creative Commons Zero v1.0 Universal
72 stars 40 forks source link

Convert site.json to a JS Module #15666

Open etanb opened 3 months ago

etanb commented 3 months ago

Right now, we keep all of the link data for the site and our tests in a giant json blob here: https://github.com/CDCgov/prime-reportstream/blob/master/frontend-react/src/content/site.json

We should modernize and convert this blob into a JS Module so we can export it properly.

For example, we have to import this json in an "experimental" way in our e2e tests, which I've shared a screenshot of. We wouldn't get this warning with a proper JS Module import.

Screenshot 2024-08-21 at 5.21.40 PM.png
chris-kuryak commented 2 months ago

Team not aligned on solution to the problem. Needs more discussion/direction from a technical lead perspective.