-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return to Loop in middle of Priming goes to Insert Cannula #2117
Comments
Adding more ways in which I interrupted the Priming display on the Loop app using an rPi DASH simulator. After hitting Pair Pod, no buttons are active until Priming starts.
Edited to add one more scenario:
|
The UICoordinator.determineInitialStep() was incorrectly skipping going to the Pair Pod view for an already paired pod that hasn't been confirmed to have completed its prime bolus. The pair pod view is really a pair and prime view and it must not be skipped unless podAttachmentConfirmed is true. podAttachmentConfirmed is a persistent pumpManagerState variable which was incorectly never being reset to false for each new pod. Loop should never allow the user to go Back to the previous view or to Cancel ot the HUD from the Pair Pod view once a pod has (internally been) paired (i.e., once the priming bolus has started). The current code to handle this was not working because the PairPodViewModel.podIsActivated var was always returned false instead of checking the actual pumpManager PodCommState. These issues as well as a better user experience on an app restart during pod setup (no need to press or slide a button in the pair or insert cannula views if a bolus is still in progress or hasn't been seen as completed yet) are all fixed in the following PR's: |
Additional improvements so that the user shouldn't need to do a manual Retry after resuming a pod setup operation. Previously about 1 out of every 2 or 3 pod setup resumes in mid-operation would require a user to do a manual Retry after getting something like a one time Pod not connected or Empty Value error. |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Fixed in dev. Leave open until released in main. |
Describe the bug
If the flow from Pair Pod to Priming to Continue screens is interrupted, for example by Loop crashing, and user resumes Loop and attempts to Finish Pairing, they are taken to the Insert Cannula screen even if the priming is still in progress.
To Reproduce
Steps to reproduce the behavior:
Graphic shows screen when priming is in progress (and pod is fine).

Solutions
For example, if I add the line:
to the DASH controller just before
return hostedView
in thecase .deactivate
section, then I return to theAttach Pod
screen first (instead of theInsert Cannula
screen. But it still doesn't check if pod is still priming.Is there some other state parameter that could or should be set when deactivating?
The text was updated successfully, but these errors were encountered: