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
70 stars 39 forks source link

Convert site.json to a JS Module #15666

Open etanb opened 1 month ago

etanb commented 1 month 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 3 weeks ago

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