The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
Describe the issue
When we sync, and an update comes, the update modal can appear before we see the sync status update to successful, and it will close the sidebar menu when it shows up.
Right now, we wait for 5 seconds before we retry the syncing again.
Describe the improvement you'd like
Improve the sync function so it handles rogue upgrade modals.
Describe alternatives you've considered
Update webapp code so the modal only shows up after the sidebar menu has been closed through user action.
Describe the issue When we sync, and an update comes, the update modal can appear before we see the sync status update to successful, and it will close the sidebar menu when it shows up. Right now, we wait for 5 seconds before we retry the syncing again.
Describe the improvement you'd like Improve the sync function so it handles rogue upgrade modals.
Describe alternatives you've considered Update webapp code so the modal only shows up after the sidebar menu has been closed through user action.