You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prevent Automatic Dosing with Future Glucose (#1894)
* Prevents auto dosing when glucose is in the future
* update per requested changes
* add tests for glucoseTooOld and glucoseInFuture
* Fix typo
* name change for case to invalidFutureGlucose
returnString(format:NSLocalizedString("Glucose data is %1$@ old", comment:"The error message when glucose data is too old to be used. (1: glucose data age in minutes)"), minutes)
returnString(format:NSLocalizedString("Invalid glucose reading with a timestamp that is %1$@ in the future", comment:"The error message when glucose data is in the future. (1: glucose data time in future in minutes)"), minutes)
returnString(format:NSLocalizedString("Pump data is %1$@ old", comment:"The error message when pump data is too old to be used. (1: pump data age in minutes)"), minutes)
title:Text("No Recent Glucose Data", comment:"Title for bolus screen notice when glucose data is missing or stale"),
335
335
caption:Text("Enter a blood glucose from a meter for a recommended bolus amount.", comment:"Caption for bolus screen notice when glucose data is missing or stale")
336
336
)
337
+
case.futureGlucoseData:
338
+
returnWarningView(
339
+
title:Text("Invalid Future Glucose", comment:"Title for bolus screen notice when glucose data is in the future"),
340
+
caption:Text("Check your device time and/or remove any invalid data from Apple Health.", comment:"Caption for bolus screen notice when glucose data is in the future")
341
+
)
337
342
case.stalePumpData:
338
343
returnWarningView(
339
344
title:Text("No Recent Pump Data", comment:"Title for bolus screen notice when pump data is missing or stale"),
0 commit comments