OHSUCMP / coach

web application frontend for OHSU HTN U18 grant
2 stars 0 forks source link

update "Omron synchronizing" status text to auto update with progress indicator #188

Closed mattStorer closed 5 months ago

mattStorer commented 6 months ago

COACH participants have reported confusion with respect to the Omron sync process, specifically with respect to the status message displayed to the home screen informing them that Omron is still synchronizing. This message doesn't auto-refresh, or provide any indication as to how far through the process it might be, which leads participants to sit there staring at their screen wondering when it'll be safe to refresh or log out or do anything else.

Solution is to update the status message so that the UI polls the backend for Omron sync status at short intervals, perhaps every 10 seconds or so, until sync is complete, at which point it should stop polling. The data returned to the UI from the backend should include whether or not the sync is still occurring, and if it is, how many have been synced, out of how many there are to sync total. This information will allow the UI to display a percentage-complete progress indicator to the user, and should resolve this confusion on their part.

mattStorer commented 5 months ago

this is done.