Skip to content

Commit e2df285

Browse files
authored
Merge pull request #537 from tidepool-org/ps2/LOOP-4371/diy-sync
LOOP-4371
2 parents e2e063b + 7bf3877 commit e2df285

File tree

71 files changed

+3502
-558
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3502
-558
lines changed

Common/FeatureFlags.swift

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct FeatureFlagConfiguration: Decodable {
2626
let observeHealthKitCarbSamplesFromOtherApps: Bool
2727
let observeHealthKitDoseSamplesFromOtherApps: Bool
2828
let observeHealthKitGlucoseSamplesFromOtherApps: Bool
29-
let remoteOverridesEnabled: Bool
29+
let remoteCommandsEnabled: Bool
3030
let predictedGlucoseChartClampEnabled: Bool
3131
let scenariosEnabled: Bool
3232
let sensitivityOverridesEnabled: Bool
@@ -35,6 +35,7 @@ struct FeatureFlagConfiguration: Decodable {
3535
let simpleBolusCalculatorEnabled: Bool
3636
let usePositiveMomentumAndRCForManualBoluses: Bool
3737
let dynamicCarbAbsorptionEnabled: Bool
38+
let adultChildInsulinModelSelectionEnabled: Bool
3839

3940

4041
fileprivate init() {
@@ -158,10 +159,10 @@ struct FeatureFlagConfiguration: Decodable {
158159
#endif
159160

160161
// Swift compiler config is inverse, since the default state is enabled.
161-
#if REMOTE_OVERRIDES_DISABLED
162-
self.remoteOverridesEnabled = false
162+
#if REMOTE_COMMANDS_DISABLED
163+
self.remoteCommandsEnabled = false
163164
#else
164-
self.remoteOverridesEnabled = true
165+
self.remoteCommandsEnabled = true
165166
#endif
166167

167168
#if SCENARIOS_ENABLED
@@ -196,6 +197,12 @@ struct FeatureFlagConfiguration: Decodable {
196197
self.usePositiveMomentumAndRCForManualBoluses = true
197198
#endif
198199

200+
#if ADULT_CHILD_INSULIN_MODEL_SELECTION_ENABLED
201+
self.adultChildInsulinModelSelectionEnabled = true
202+
#else
203+
self.adultChildInsulinModelSelectionEnabled = false
204+
#endif
205+
199206
self.dynamicCarbAbsorptionEnabled = true
200207
}
201208
}
@@ -217,7 +224,7 @@ extension FeatureFlagConfiguration : CustomDebugStringConvertible {
217224
"* observeHealthKitDoseSamplesFromOtherApps: \(observeHealthKitDoseSamplesFromOtherApps)",
218225
"* observeHealthKitGlucoseSamplesFromOtherApps: \(observeHealthKitGlucoseSamplesFromOtherApps)",
219226
"* predictedGlucoseChartClampEnabled: \(predictedGlucoseChartClampEnabled)",
220-
"* remoteOverridesEnabled: \(remoteOverridesEnabled)",
227+
"* remoteCommandsEnabled: \(remoteCommandsEnabled)",
221228
"* scenariosEnabled: \(scenariosEnabled)",
222229
"* sensitivityOverridesEnabled: \(sensitivityOverridesEnabled)",
223230
"* simulatedCoreDataEnabled: \(simulatedCoreDataEnabled)",
@@ -227,7 +234,8 @@ extension FeatureFlagConfiguration : CustomDebugStringConvertible {
227234
"* allowDebugFeatures: \(allowDebugFeatures)",
228235
"* simpleBolusCalculatorEnabled: \(simpleBolusCalculatorEnabled)",
229236
"* usePositiveMomentumAndRCForManualBoluses: \(usePositiveMomentumAndRCForManualBoluses)",
230-
"* dynamicCarbAbsorptionEnabled: \(dynamicCarbAbsorptionEnabled)"
237+
"* dynamicCarbAbsorptionEnabled: \(dynamicCarbAbsorptionEnabled)",
238+
"* adultChildInsulinModelSelectionEnabled: \(adultChildInsulinModelSelectionEnabled)"
231239
].joined(separator: "\n")
232240
}
233241
}

Common/Models/StatusExtensionContext.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ struct StatusExtensionContext: RawRepresentable {
296296

297297
var predictedGlucose: PredictedGlucoseContext?
298298
var lastLoopCompleted: Date?
299+
var createdAt: Date?
299300
var isClosedLoop: Bool?
300301
var netBasal: NetBasalContext?
301302
var batteryPercentage: Double?
@@ -324,6 +325,7 @@ struct StatusExtensionContext: RawRepresentable {
324325
}
325326

326327
lastLoopCompleted = rawValue["lastLoopCompleted"] as? Date
328+
createdAt = rawValue["createdAt"] as? Date
327329
isClosedLoop = rawValue["isClosedLoop"] as? Bool
328330
batteryPercentage = rawValue["batteryPercentage"] as? Double
329331
reservoirCapacity = rawValue["reservoirCapacity"] as? Double
@@ -361,6 +363,7 @@ struct StatusExtensionContext: RawRepresentable {
361363

362364
raw["predictedGlucose"] = predictedGlucose?.rawValue
363365
raw["lastLoopCompleted"] = lastLoopCompleted
366+
raw["createdAt"] = createdAt
364367
raw["isClosedLoop"] = isClosedLoop
365368
raw["netBasal"] = netBasal?.rawValue
366369
raw["batteryPercentage"] = batteryPercentage

Common/de.lproj/Intents.strings

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,36 @@
1+
/* (No Comment) */
2+
"9KhaIS" = "Voreinstellung gesetzt";
3+
14
/* (No Comment) */
25
"80eo5o" = "KH-Eintrag hinzufügen";
36

7+
/* (No Comment) */
8+
"b085BW" = "Voreinstellung konnte nicht gesetzt werden.";
9+
10+
/* (No Comment) */
11+
"I4OZy8" = "Enable Override Preset";
12+
13+
/* (No Comment) */
14+
"lYMuWV" = "Voreinstellungs-Name";
15+
16+
/* (No Comment) */
17+
"nDKAmn" = "Welche Voreinstellung möchtest Du aktivieren?";
18+
419
/* (No Comment) */
520
"OcNxIj" = "KH-Eintrag hinzufügen";
621

722
/* (No Comment) */
8-
"yc02Yq" = "Fügen Sie einen KH-Eintrag zu Loop hinzu.";
23+
"oLQSsJ" = "Aktiviere '${overrideName}' Voreinstellung";
24+
25+
/* (No Comment) */
26+
"XNNmtH" = "Aktiviere Voreinstellung in Loop";
27+
28+
/* (No Comment) */
29+
"yBzwCL" = "Voreinstellungsauswahl";
30+
31+
/* (No Comment) */
32+
"yc02Yq" = "Füge einen KH-Eintrag zu Loop hinzu.";
33+
34+
/* (No Comment) */
35+
"ZZ3mtM" = "Aktiviere eine Voreinstellung in Loop";
936

10-
"9KhaIS" = "I've set the preset";
11-
"I4OZy8" = "Enable Override Preset";
12-
"XNNmtH" = "Enable preset in Loop";
13-
"ZZ3mtM" = "Enable an override preset in Loop";
14-
"b085BW" = "I wasn't able to set the preset.";
15-
"lYMuWV" = "Override Name";
16-
"nDKAmn" = "What's the name of the override you'd like to set?";
17-
"oLQSsJ" = "Enable '${overrideName}' Override Preset";
18-
"yBzwCL" = "Override Selection";

Common/de.lproj/Localizable.strings

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,54 @@
44
/* Title of the user activity for adding carbs */
55
"Add Carb Entry" = "KH-Eintrag hinzufügen";
66

7+
/* Lesson subtitle */
8+
"Computes the percentage of glucose measurements within a specified range" = "Berechnet den Prozentsatz der Glukosemessungen innerhalb eines angegebenen Bereichs";
9+
10+
/* Title of the button to begin lesson execution */
11+
"Continue" = "Weiter";
12+
713
/* The short unit display string for decibles */
814
"dB" = "dB";
915

1016
/* The short unit display string for grams */
1117
"g" = "g";
1218

19+
/* Placeholder for upper range entry */
20+
"Maximum" = "Maximum";
21+
1322
/* The short unit display string for milligrams of glucose per decilter */
1423
"mg/dL" = "mg/dL";
1524

25+
/* Placeholder for lower range entry */
26+
"Minimum" = "Minimum";
27+
1628
/* The short unit display string for millimoles of glucose per liter */
1729
"mmol/L" = "mmol/L";
1830

31+
/* Lesson title */
32+
"Modal Day" = "Modaler Tag";
33+
34+
/* Lesson result text for no data */
35+
"No data available" = "Keine Daten vorhanden";
36+
1937
/* Format string for combining localized numeric value and unit. (1: numeric value)(2: unit) */
2038
"QUANTITY_VALUE_AND_UNIT" = "%1$@ %2$@";
2139

40+
/* Section title for glucose range */
41+
"Range" = "Bereich";
42+
43+
/* Title of config entry */
44+
"Start Date" = "Start Datum";
45+
46+
/* Lesson title */
47+
"Time in Range" = "Zeit im Bereich";
48+
2249
/* The short unit display string for international units of insulin */
2350
"U" = "IE";
2451

52+
/* Lesson subtitle */
53+
"Visualizes the most frequent glucose values by time of day" = "Zeigt die häufigsten Glukosewerte nach Tageszeit";
54+
55+
/* Unit string for a count of calendar weeks */
56+
"Weeks" = "Wochen";
57+

DoseMathTests/de.lproj/Localizable.strings

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
/* Message when offering bolus recommendation even though bg is below range and minBG is in future. (1: glucose time)(2: glucose number) */
1717
"Predicted glucose at %1$@ is %2$@." = "Der vorhergesagte Blutzucker um %1$@ ist %2$@.";
1818

19+
/* Notice when predicted glucose for bolus recommendation is in range */
20+
"Predicted glucose is in range." = "Der vorhergesagte Glukosewert liegt im Bereich.";
21+
22+
/* Notice message when recommending bolus when BG is below the glucose safety limit. (1: glucose value) */
23+
"Predicted glucose of %1$@ is below your glucose safety limit setting." = "Der vorhergesagte Glukosewert von %1$@ liegt unter Ihrer Glukose-Sicherheitsgrenzwerteinstellung.";
24+
1925
/* Notice message when recommending bolus when BG is below the suspend threshold. (1: glucose value) */
2026
"Predicted glucose of %1$@ is below your suspend threshold setting." = "Der vorhergesagte Blutzucker von %1$@ liegt unterhalb des eingestellten Schwellwertes zur Unterbrechung der Basalrate. ";
2127

Learn/de.lproj/Main.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/* Class = "UINavigationItem"; title = "Learn"; ObjectID = "8hF-Ij-B7m"; */
2-
"8hF-Ij-B7m.title" = "Learn";
2+
"8hF-Ij-B7m.title" = "Lernen";
33

Loop Status Extension/de.lproj/Localizable.strings

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1+
/* Displayed in the widget when the amount of active insulin cannot be determined. */
2+
"? U" = "? IE";
3+
4+
/* The subtitle format describing units of active insulin. (1: localized insulin value description) */
5+
"%1$@ U" = "%1$@ IE";
6+
7+
/* Widget label title describing the active carbs */
8+
"Active Carbs" = "Aktive KH";
9+
10+
/* Widget label title describing the active insulin */
11+
"Active Insulin" = "Aktives Insulin";
12+
13+
/* The short unit display string for decibles */
14+
"dB" = "dB";
15+
116
/* The subtitle format describing eventual glucose. (1: localized glucose value description) */
2-
"Eventually %1$@" = "Schließlich %1$@";
17+
"Eventually %1$@" = "Irgendwann %1$@";
318

419
/* The subtitle format describing units of active insulin. (1: localized insulin value description) */
5-
"IOB %1$@ U" = "IOB %1$@ E";
20+
"IOB %1$@ U" = "IOB %1$@ IE";
621

722
/* The short unit display string for international units of insulin */
823
"U" = "IE";
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
/* Class = "UILabel"; text = "Eventually 92 mg/dL"; ObjectID = "9iF-xY-Bh4"; */
2-
"9iF-xY-Bh4.text" = "Schließlich 92 mg/dL";
1+
/* Class = "UILabel"; text = "Active Carbs"; ObjectID = "9iF-xY-Bh4"; */
2+
"9iF-xY-Bh4.text" = "Aktive KH";
33

4-
/* Class = "UILabel"; text = "IOB 1.0 U"; ObjectID = "UPi-dG-yYD"; */
5-
"UPi-dG-yYD.text" = "IOB 1.0 IE";
4+
/* Class = "UILabel"; text = "Active Insulin"; ObjectID = "UPi-dG-yYD"; */
5+
"UPi-dG-yYD.text" = "Aktives Insulin";
6+
7+
/* Class = "UILabel"; text = "0 U"; ObjectID = "Vgf-p1-2QP"; */
8+
"Vgf-p1-2QP.text" = "0 IE";
69

0 commit comments

Comments
 (0)