Skip to content

Update my fork to 1.5.1#4

Merged
elnjensen merged 51 commits into
elnjensen:masterfrom
LoopKit:master
Dec 27, 2017
Merged

Update my fork to 1.5.1#4
elnjensen merged 51 commits into
elnjensen:masterfrom
LoopKit:master

Conversation

@elnjensen
Copy link
Copy Markdown
Owner

No description provided.

ps2 and others added 30 commits September 24, 2017 22:04
Fixed typo:

Carbhydrate to Carbohydrate
Set deployment target for WatchOS to 3.2
fix intermittent crash on deleting carbs
Simplifying Rewind-Prime reconciliation
Additional test coverage around suspend threshold behavior
* Update to LoopKit 1.5.1, and build for Xcode 9.1

* update TravisCI Xcode version to 9.1
* Make carb entry time configurable when entered via Watch

* Commit project.pbxproj

* Minor UI cleanup

* Revamped Watch date configuration UI

* Use WKTapGestureRecognizer rather than buttons in Watch carb entry screen

* WatchApp carb entry cleanup; revert project.pbxproj
elnjensen and others added 21 commits December 9, 2017 15:37
* Update character count syntax for Swift 4

Avoids warnings from deprecated 'characters' syntax.

* Add 1024x1024 icon

Avoids compile-time warning about missing icon.  Doesn't actually look good at this size - it's just a scaled-up version of a smaller icon, but it avoids the warning.

* Update Watch App Store icon to full-res asset, rename file
Fix logging and set background color
* Update character count syntax for Swift 4

Avoids warnings from deprecated 'characters' syntax.

* Add 1024x1024 icon

Avoids compile-time warning about missing icon.  Doesn't actually look good at this size - it's just a scaled-up version of a smaller icon, but it avoids the warning.

* Add IOB to status widget

* Don't set context.activeInsulin on error

* Remove ActiveInsulinContext; use NumberFormatter

Struct form of ActiveInsulinContext is removed; just use a Double value instead, as with batteryPercentage. 
Use NumberFormatter to format IOB value.

* Fix var vs. let for activeInsulinString

* Bump version on StatusExtensionContext

* Revert "Update character count syntax for Swift 4"

This reverts commit 009e895.

* Revert "Add 1024x1024 icon"

This reverts commit ca10d0a.

* Add IOB label to storyboard

* Put IOB label calculation into separate block

* Adjust placement of label on storyboard; add constraints

* Format IOB label as NSLocalizedString

* Set end date for widget glucose chart
Update to version 1.5.2 of LoopKit, and use Xcode 9.2
Fetch pump data if needed, even after .noData CGM updates.
Bump version in prep for release
@elnjensen elnjensen merged commit 325b21c into elnjensen:master Dec 27, 2017
elnjensen pushed a commit that referenced this pull request Jun 19, 2018
…tart

Integral retrospective correction restart
elnjensen pushed a commit that referenced this pull request Sep 9, 2018
Fix override range display, mmol/L limits
elnjensen pushed a commit that referenced this pull request Aug 13, 2019
* Move mock health data deletion to Loop

* Fix mock data deletion section logic
elnjensen pushed a commit that referenced this pull request Jul 7, 2024
* Add unannounced meal func to CarbStoreProtocol

* V1 of UAM algo

* Add debug logs

* Handle unannounced meal notification & open up controller

* Add mealstart to notification userinfo

* Improve notification description

* Add direct entry to carb flow from notification on watch

* Add auto-setting of carb entry on watch

* carbThreshold -> mealCarbThreshold

* Retract UAM notifications after the carbs have expired

* Improve function naming

* Move notification logic from LoopKit to Loop

* Make current date configurable

* Make current date configurable during unit testing

* Update status enum naming for point-of-use clarity

* Make 'now' time configurable

* Extract loop data manager testing logic into base class

* Extract loop data manager dosing tests into their own file

* Add unannounced meal tests

* Fix concurrency issue

* Pull UAM constants into separate struct

* Fix notifications not being retracted after their expiration date

* Expire using start of meal instead of current time

* Add unannounced meal notifications permission

* Add AlertPermissionsViewModel

* Remove unneeded `AnyView`s

* Removed unused completion block

* Use the counteraction effects passed into the function

* Schedule missed meal notifications to avoid notification during an microbolus (#3)

* Delay missed meal notification if possible to avoid delivering it during an autobolus

* Add tests for notification delay

* Update `estimatedDuration` function headers in response to PR feedback

* Add UAM banner to carb entry screen (#5)

* Add warning banner to remind the user to edit the meal estimate

* Update warning text

* UAM algo updates: only use directly observed carb absorption (#6)

* Add ability to calculate the number of carbs in a missed meal (#4)

* Plumb a customizable carb amount through UAM notification architecture

* Fix merge conflict

* Update tests for changes from the merge

* Make UAM notifications unit testable

* Add carb autofill clamping based on the user's carb threshold & max bolus

* Update target order to group extensions together

* Improve issue report description

* Create `MealDetectionManager` from old UAM functions in `CarbStore`

* Move notification logic into `MealDetectionManager`

* Updates based on feedback for UAM PR (#7)

* Create `MealDetectionManager` from old UAM functions in `CarbStore`

* Move notification logic into `MealDetectionManager`

* Move UAM test fixtures from LoopKit to Loop

* Remove old TODO

* Revert change to Loop signing team

* Fix merge issues

* Make tests runnable

* Lower meal carb threshold to 15 g to reduce false-negatives

* Fix carb entry controller merge issues

* Unannounced meal / UAM -> missed meal

* UAM test fixture -> missed meal test fixture

* Variable naming improvements

* Remove `AlertPermissionsViewModel`

* Move call to check for missed meals to `loop()`-level

* Remove `CarbStore` dependency from `MealDetectionManager`

These changes also remove the requirement that there be no carbs entered after the missed meal was detected - since we're now observing direct absorption, I didn't think this requirement made sense anymore

* Reduce `minRecency` required to detect a meal

* Update counteraction effect math in `MealDetectionManager` to skew towards an earlier meal time instead of a later one

* Fix conflict + move missed meal toggle 1 level higher
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.

5 participants