Skip to content
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

Watchface improvements + omniBLE/Omnikit fixes #149

Merged
merged 7 commits into from
Mar 8, 2024
Merged

Conversation

dsnallfot
Copy link
Owner

No description provided.

dsnallfot and others added 7 commits March 7, 2024 20:35
* Backport of OmniBLE #114 and OmniKit #27 (fixes Loop issue #2117)
UI fixes and improvements for various pod setup restart situations
+ Gracefully handle restarts when prime or insert cannula is in progress
+ Have the view model init funcs test for and handle resume cases
+ Improved PodPairer to include the pumpManager podCommState var
+ Fix PodPairer.podIsActivated to properly handle a paired pod
+ Start with pairAndPrime state when prime has not finalized
+ Update PairPodViewModelState priming value to use an optional
+ Rename func & enum names from pair to pairAndPrime for clarity
+ Improved CannulaInserter to include cannulaInsertionSuccessfullyStarted var
* For an in-progress insert cannula compute a wait time on remaining bolus
+ Fix checkCannulaInsertionFinished() to use checkingInsertion state
+ Add cannulaInsertionSuccessfullyStarted var to podState
+ Update PairPodViewModelState priming value to use an optional
+ Update PumpStatusHighlight to "Finish Setup" while activating a paired pod
New resetPerPodPumpManagerState func called when starting/forgetting pod
+ Reset podAttachmentConfirmed state variable for each new pod
+ Reset state.acknowledgedTimeOffsetAlert var in case it gets used
+ Reset all per pod PumpManagerAlerts for each new pod
+ Use retractAlert func to handle the state.activeAlerts removal
+ Add comment noting that podCommState.deactivating value is never returned
+ Add some missing state initializion for simulator in OmniKit jumpStartPod()

* Updates to virtually eliminate user retries on pod setup resumes
+ Have PairAndPrime ViewModel do an automatic retry on error
+ Have InsertCannula ViewModel do an automatic retry on error
+ Add resumingPodSetup func to attempt a getStatus and sleep on errors
+ Added some improved and updated pumpManager comments
+ Have pumpManager detect pod setup resumes to invoke resumingPodSetup()
+ Added additional isConnected handling to OmniBLE resumingPodSetup()
+ Correct & relocate OmniKit insulinType guard as per OmniBLE
+ Update OmniKit SessionsRunResult variable use to match OmniBLE

* Updates to virtually eliminate user retries on pod setup resumes
+ Have PairAndPrime ViewModel do an automatic retry on error
+ Have InsertCannula ViewModel do an automatic retry on error
+ Add resumingPodSetup func to attempt a getStatus and sleep on errors
+ Added some improved and updated pumpManager comments
+ Have pumpManager detect pod setup resumes to invoke resumingPodSetup()
+ Added additional isConnected handling to OmniBLE resumingPodSetup()
+ Correct & relocate OmniKit insulinType guard as per OmniBLE
+ Update OmniKit SessionsRunResult variable use to match OmniBLE
(itsmojo commit c564516)
…go as official version, just vhanged text strings)
@dsnallfot dsnallfot merged commit 821dd73 into ivar-main Mar 8, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant