Closed natjoe4 closed 3 years ago
I like this! I had one question about the functionality. Do we think that the reset
button should clear the error message at the top of the screen?
Looks like this in app:
One more quick bug that might be worth fixing. When you click the
reset
button withGaps in Care
output type selected, theIndividual
report type radio button gets deselected, but the type choice remains greyed out. You can fix it by toggling the output type, but that may not be intuitive to all users.
Summary
Added a try catch statement around all fqm-execution calculator functions to more gracefully handle errors which occur inside fqm-execution and display more helpful error messages. Also added React Router to display results information on a new page and added patient information to results page.
New behavior
-Added more graceful error handling for errors in fqm-execution -Added alerts to display simple error messages in the UI -Disabled summary selection for Gaps in Care reports -Added React Router -Printed results to /results page and navigate to that page upon successful calculation -Printed patient bundle results to results page
Code changes
Changes are in App.tsx, index.tsx, and components/ResultsPage.tsx
Testing guidance
Ensure that the summary button is disabled and individual button is auto-selected when gaps in care is selected. Check that a valid calculation always takes us to a results page and that the routing back to the home page works. Check that errors in fqm-execution (try using EXM-149) will display in an alert and the error log in the console, but will not crash the app entirely.