-
Notifications
You must be signed in to change notification settings - Fork 8
Add CAGE and IAGE to reorganized and updated settings view #25
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
Conversation
Test✅ Successful test DetailsBuilt this version over an existing instance of Loop that was connected to an MDT 515 pump on an SE phone running iOS 18.7.2 Initially the 2 rows are not visible, as expected. Did a fixed prime (as if changing cannula).
Did a rewind (as if changing the reservoir)
|
Test with different hardware✅ Successfully repeated the test with an SE phone running iOS 26.2 and an MDT 523 pump. |
marionbarker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved by Test.
Code review appeared reasonable.
ps2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a comment about using frameworkImage.
| .fill(fillColor) | ||
| .mask( | ||
| Image("reservoir_mask") | ||
| Image("reservoir_mask", bundle: Bundle(for: MinimedPumpSettingsViewModel.self)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also have a helper for this:
Image(frameworkImage: "reservoir_mask")
Final TestI tested again with the updated syntax. It still works as expected for both Loop and Trio. LGTM |
This PR adds
Cannula AgeandInsulin Ageto the Minimed Settings View, to allow users to more easily see how long it's been since they've changed their infusion set and reservoir. The names and triggers are the same as those used to update CAGE and IAGE on Nightscout.The lines will not appear in the view until a pump event triggers its update, so if you use steel cannulas and never issue a fixed prime, Cannula Age will never update or appear. Keep this in mind when testing, as you must issue a fixed prime (cannula fill) and/or rewind from the pump after building this PR in order for these lines to appear.
This PR also fixes issues with iOS 26, which did not display the Navigation Title (ie: Medtronic 723) at the top of the sheet, and did not display the Reservoir icon under
Insulin Remaining.It also reorganizes the Settings view and adds section titles to make things viewed/accessed more often at the top, and decreases the size of the pump image by a third.
Screenshots taken on an in-vivo iPhone 14 Pro Max running iOS 26.2 with this PR inside Trio v0.6.0.26:
