Skip to content

Commit df24117

Browse files
committed
update dev patches after fixing combined_1988_2008 branch for dark mode
1 parent 6c70810 commit df24117

File tree

6 files changed

+14
-53
lines changed

6 files changed

+14
-53
lines changed

1988/dev_1988.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop 3034e45..b9c7cec:
1+
Submodule Loop 3034e45..42c86eb:
22
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
33
index d9e48718..0d2dda5e 100644
44
--- a/Loop/Loop.xcodeproj/project.pbxproj

1988/dev_1988_2008.patch

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop dad88f5..8ba26f1:
1+
Submodule Loop ac74bec..c429521:
22
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
33
index 14b266c6..3f527b16 100644
44
--- a/Loop/Loop.xcodeproj/project.pbxproj
@@ -261,7 +261,7 @@ index 15c593e7..8133aa84 100644
261261
"",
262262
diff --git a/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
263263
new file mode 100644
264-
index 00000000..1e78c81e
264+
index 00000000..53ff05cd
265265
--- /dev/null
266266
+++ b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
267267
@@ -0,0 +1,55 @@
@@ -304,7 +304,7 @@ index 00000000..1e78c81e
304304
+
305305
+ private var automaticBolusSection: some View {
306306
+ VStack {
307-
+ DescriptiveText(label: NSLocalizedString("Active only when Automatic Bolus is selected under Dosing Strategy.\n\nWhen Glucose Based Partial Application is disabled, Automatic Bolus Dosing Strategy uses a constant percentage of 40% when Loop recommends a bolus.\n\nWhen enabled, this experimental feature varies the percentage of recommended bolus delivered each cycle with glucose level. Near correction range, use 20% (similar to Temp Basal). Gradually increase to a maximum of 80% at high glucose (200 mg/dL, 11.1 mmol/L).\n\nPlease be aware that during fast rising glucose, such as after an unannounced meal, this feature, combined with Loop's velocity and retrospective correction effects, may result in a larger dose than your ISF would call for.", comment: "Description of Glucose Based Partial Application toggle."), color: .black)
307+
+ DescriptiveText(label: NSLocalizedString("Active only when Automatic Bolus is selected under Dosing Strategy.\n\nWhen Glucose Based Partial Application is disabled, Automatic Bolus Dosing Strategy uses a constant percentage of 40% when Loop recommends a bolus.\n\nWhen enabled, this experimental feature varies the percentage of recommended bolus delivered each cycle with glucose level. Near correction range, use 20% (similar to Temp Basal). Gradually increase to a maximum of 80% at high glucose (200 mg/dL, 11.1 mmol/L).\n\nPlease be aware that during fast rising glucose, such as after an unannounced meal, this feature, combined with Loop's velocity and retrospective correction effects, may result in a larger dose than your ISF would call for.", comment: "Description of Glucose Based Partial Application toggle."))
308308
+ Section() {
309309
+ Toggle(NSLocalizedString("Glucose Based Partial Application", comment: "Title for Glucose Based Partial Application toggle"), isOn: $isGlucoseBasedApplicationFactorEnabled)
310310
+ .onChange(of: isGlucoseBasedApplicationFactorEnabled) { newValue in
@@ -320,19 +320,6 @@ index 00000000..1e78c81e
320320
+ GlucoseBasedApplicationFactorSelectionView(isGlucoseBasedApplicationFactorEnabled: .constant(true))
321321
+ }
322322
+}
323-
diff --git a/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift b/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift
324-
index 9ee87ed6..d7940e28 100644
325-
--- a/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift
326-
+++ b/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift
327-
@@ -36,7 +36,7 @@ public struct IntegralRetrospectiveCorrectionSelectionView: View {
328-
329-
private var retrospectiveCorrectionSection: some View {
330-
VStack {
331-
- DescriptiveText(label: NSLocalizedString("Integral Retrospective Correction (IRC) is an advanced control technique applied to glucose forecasting based on the history of discrepancies between predicted and actual glucose levels. The predictions are made using carbohydrate and insulin data. When enabled, IRC adjusts insulin delivery in response to consistent patterns: it increases insulin delivery when glucose levels consistently measure higher than expected, and decreases it when glucose levels are consistently lower than expected. IRC uses a proportional-integral-differential (PID) controller that adjusts insulin recommendations based on immediate, accumulated, and rate of change discrepancies. This provides a more adaptive and responsive control compared to standard retrospective correction. However, it's important to know that the effectiveness of IRC will heavily depend on the accuracy of your insulin sensitivity, carbohydrate ratios, and basal rates settings. While IRC can improve glucose management in cases of consistent discrepancies, please note that it might potentially lead to more aggressive corrections.", comment: "Description of Integral Retrospective Correction toggle."))
332-
+ DescriptiveText(label: NSLocalizedString("Integral Retrospective Correction (IRC) is an advanced control technique applied to glucose forecasting based on the history of discrepancies between predicted and actual glucose levels. The predictions are made using carbohydrate and insulin data. When enabled, IRC adjusts insulin delivery in response to consistent patterns: it increases insulin delivery when glucose levels consistently measure higher than expected, and decreases it when glucose levels are consistently lower than expected. IRC uses a proportional-integral-differential (PID) controller that adjusts insulin recommendations based on immediate, accumulated, and rate of change discrepancies. This provides a more adaptive and responsive control compared to standard retrospective correction. However, it's important to know that the effectiveness of IRC will heavily depend on the accuracy of your insulin sensitivity, carbohydrate ratios, and basal rates settings. While IRC can improve glucose management in cases of consistent discrepancies, please note that it might potentially lead to more aggressive corrections.", comment: "Description of Integral Retrospective Correction toggle."), color: .black)
333-
Section() {
334-
Toggle(NSLocalizedString("Integral Retrospective Correction", comment: "Title for Integral Retrospective Correction toggle"), isOn: $isIntegralRetrospectiveCorrectionEnabled)
335-
.onChange(of: isIntegralRetrospectiveCorrectionEnabled) { newValue in
336323
diff --git a/Loop/Loop/Views/SettingsView.swift b/Loop/Loop/Views/SettingsView.swift
337324
index 1ae3e5af..0e8a029d 100644
338325
--- a/Loop/Loop/Views/SettingsView.swift

1988/dev_1988_2008_cto.patch

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop 505d18c..3849aef:
1+
Submodule Loop c241961..923ece9:
22
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
33
index c40c72f2..303f9ec7 100644
44
--- a/Loop/Loop.xcodeproj/project.pbxproj
@@ -314,7 +314,7 @@ index 7db36fc7..8133aa84 100644
314314
"",
315315
diff --git a/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
316316
new file mode 100644
317-
index 00000000..1e78c81e
317+
index 00000000..53ff05cd
318318
--- /dev/null
319319
+++ b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
320320
@@ -0,0 +1,55 @@
@@ -357,7 +357,7 @@ index 00000000..1e78c81e
357357
+
358358
+ private var automaticBolusSection: some View {
359359
+ VStack {
360-
+ DescriptiveText(label: NSLocalizedString("Active only when Automatic Bolus is selected under Dosing Strategy.\n\nWhen Glucose Based Partial Application is disabled, Automatic Bolus Dosing Strategy uses a constant percentage of 40% when Loop recommends a bolus.\n\nWhen enabled, this experimental feature varies the percentage of recommended bolus delivered each cycle with glucose level. Near correction range, use 20% (similar to Temp Basal). Gradually increase to a maximum of 80% at high glucose (200 mg/dL, 11.1 mmol/L).\n\nPlease be aware that during fast rising glucose, such as after an unannounced meal, this feature, combined with Loop's velocity and retrospective correction effects, may result in a larger dose than your ISF would call for.", comment: "Description of Glucose Based Partial Application toggle."), color: .black)
360+
+ DescriptiveText(label: NSLocalizedString("Active only when Automatic Bolus is selected under Dosing Strategy.\n\nWhen Glucose Based Partial Application is disabled, Automatic Bolus Dosing Strategy uses a constant percentage of 40% when Loop recommends a bolus.\n\nWhen enabled, this experimental feature varies the percentage of recommended bolus delivered each cycle with glucose level. Near correction range, use 20% (similar to Temp Basal). Gradually increase to a maximum of 80% at high glucose (200 mg/dL, 11.1 mmol/L).\n\nPlease be aware that during fast rising glucose, such as after an unannounced meal, this feature, combined with Loop's velocity and retrospective correction effects, may result in a larger dose than your ISF would call for.", comment: "Description of Glucose Based Partial Application toggle."))
361361
+ Section() {
362362
+ Toggle(NSLocalizedString("Glucose Based Partial Application", comment: "Title for Glucose Based Partial Application toggle"), isOn: $isGlucoseBasedApplicationFactorEnabled)
363363
+ .onChange(of: isGlucoseBasedApplicationFactorEnabled) { newValue in
@@ -373,19 +373,6 @@ index 00000000..1e78c81e
373373
+ GlucoseBasedApplicationFactorSelectionView(isGlucoseBasedApplicationFactorEnabled: .constant(true))
374374
+ }
375375
+}
376-
diff --git a/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift b/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift
377-
index 9ee87ed6..d7940e28 100644
378-
--- a/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift
379-
+++ b/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift
380-
@@ -36,7 +36,7 @@ public struct IntegralRetrospectiveCorrectionSelectionView: View {
381-
382-
private var retrospectiveCorrectionSection: some View {
383-
VStack {
384-
- DescriptiveText(label: NSLocalizedString("Integral Retrospective Correction (IRC) is an advanced control technique applied to glucose forecasting based on the history of discrepancies between predicted and actual glucose levels. The predictions are made using carbohydrate and insulin data. When enabled, IRC adjusts insulin delivery in response to consistent patterns: it increases insulin delivery when glucose levels consistently measure higher than expected, and decreases it when glucose levels are consistently lower than expected. IRC uses a proportional-integral-differential (PID) controller that adjusts insulin recommendations based on immediate, accumulated, and rate of change discrepancies. This provides a more adaptive and responsive control compared to standard retrospective correction. However, it's important to know that the effectiveness of IRC will heavily depend on the accuracy of your insulin sensitivity, carbohydrate ratios, and basal rates settings. While IRC can improve glucose management in cases of consistent discrepancies, please note that it might potentially lead to more aggressive corrections.", comment: "Description of Integral Retrospective Correction toggle."))
385-
+ DescriptiveText(label: NSLocalizedString("Integral Retrospective Correction (IRC) is an advanced control technique applied to glucose forecasting based on the history of discrepancies between predicted and actual glucose levels. The predictions are made using carbohydrate and insulin data. When enabled, IRC adjusts insulin delivery in response to consistent patterns: it increases insulin delivery when glucose levels consistently measure higher than expected, and decreases it when glucose levels are consistently lower than expected. IRC uses a proportional-integral-differential (PID) controller that adjusts insulin recommendations based on immediate, accumulated, and rate of change discrepancies. This provides a more adaptive and responsive control compared to standard retrospective correction. However, it's important to know that the effectiveness of IRC will heavily depend on the accuracy of your insulin sensitivity, carbohydrate ratios, and basal rates settings. While IRC can improve glucose management in cases of consistent discrepancies, please note that it might potentially lead to more aggressive corrections.", comment: "Description of Integral Retrospective Correction toggle."), color: .black)
386-
Section() {
387-
Toggle(NSLocalizedString("Integral Retrospective Correction", comment: "Title for Integral Retrospective Correction toggle"), isOn: $isIntegralRetrospectiveCorrectionEnabled)
388-
.onChange(of: isIntegralRetrospectiveCorrectionEnabled) { newValue in
389376
diff --git a/Loop/Loop/Views/SettingsView.swift b/Loop/Loop/Views/SettingsView.swift
390377
index 1ae3e5af..0e8a029d 100644
391378
--- a/Loop/Loop/Views/SettingsView.swift
@@ -505,4 +492,4 @@ index a176bd16..0df628c0 100644
505492
<string>15%</string>
506493
<string>20%</string>
507494
<string>25%</string>
508-
Submodule LoopKit f64d3cb..ec274a2:
495+
Submodule LoopKit 80cdbf3..f6bef54:

1988/dev_1988_cto.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop cf01ecd..ce691a1:
1+
Submodule Loop 8580a59..c98950f:
22
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
33
index e91882c4..21a415cc 100644
44
--- a/Loop/Loop.xcodeproj/project.pbxproj
@@ -515,4 +515,4 @@ index a176bd16..0df628c0 100644
515515
<string>15%</string>
516516
<string>20%</string>
517517
<string>25%</string>
518-
Submodule LoopKit d7b5b76..b0f7783:
518+
Submodule LoopKit 08a5e07..e4de906:

2008/dev_2008.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop 3034e45..dad88f5:
1+
Submodule Loop 3034e45..ac74bec:
22
diff --git a/Loop/Common/Extensions/GlucoseRangeSchedule.swift b/Loop/Common/Extensions/GlucoseRangeSchedule.swift
33
index c8ef74fe..ccc75b0b 100644
44
--- a/Loop/Common/Extensions/GlucoseRangeSchedule.swift

2008/dev_2008_1988.patch

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Submodule Loop b9c7cec..64cc59b:
1+
Submodule Loop 42c86eb..79e106a:
22
diff --git a/Loop/Common/Extensions/GlucoseRangeSchedule.swift b/Loop/Common/Extensions/GlucoseRangeSchedule.swift
33
index c8ef74fe..ccc75b0b 100644
44
--- a/Loop/Common/Extensions/GlucoseRangeSchedule.swift
@@ -471,22 +471,9 @@ index 35329d80..5d6165d4 100644
471471
}
472472

473473
cell.subtitleLabel?.text = subtitleText
474-
diff --git a/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
475-
index 53ff05cd..1e78c81e 100644
476-
--- a/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
477-
+++ b/Loop/Loop/Views/GlucoseBasedApplicationFactorSelectionView.swift
478-
@@ -37,7 +37,7 @@ public struct GlucoseBasedApplicationFactorSelectionView: View {
479-
480-
private var automaticBolusSection: some View {
481-
VStack {
482-
- DescriptiveText(label: NSLocalizedString("Active only when Automatic Bolus is selected under Dosing Strategy.\n\nWhen Glucose Based Partial Application is disabled, Automatic Bolus Dosing Strategy uses a constant percentage of 40% when Loop recommends a bolus.\n\nWhen enabled, this experimental feature varies the percentage of recommended bolus delivered each cycle with glucose level. Near correction range, use 20% (similar to Temp Basal). Gradually increase to a maximum of 80% at high glucose (200 mg/dL, 11.1 mmol/L).\n\nPlease be aware that during fast rising glucose, such as after an unannounced meal, this feature, combined with Loop's velocity and retrospective correction effects, may result in a larger dose than your ISF would call for.", comment: "Description of Glucose Based Partial Application toggle."))
483-
+ DescriptiveText(label: NSLocalizedString("Active only when Automatic Bolus is selected under Dosing Strategy.\n\nWhen Glucose Based Partial Application is disabled, Automatic Bolus Dosing Strategy uses a constant percentage of 40% when Loop recommends a bolus.\n\nWhen enabled, this experimental feature varies the percentage of recommended bolus delivered each cycle with glucose level. Near correction range, use 20% (similar to Temp Basal). Gradually increase to a maximum of 80% at high glucose (200 mg/dL, 11.1 mmol/L).\n\nPlease be aware that during fast rising glucose, such as after an unannounced meal, this feature, combined with Loop's velocity and retrospective correction effects, may result in a larger dose than your ISF would call for.", comment: "Description of Glucose Based Partial Application toggle."), color: .black)
484-
Section() {
485-
Toggle(NSLocalizedString("Glucose Based Partial Application", comment: "Title for Glucose Based Partial Application toggle"), isOn: $isGlucoseBasedApplicationFactorEnabled)
486-
.onChange(of: isGlucoseBasedApplicationFactorEnabled) { newValue in
487474
diff --git a/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift b/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift
488475
new file mode 100644
489-
index 00000000..d7940e28
476+
index 00000000..9ee87ed6
490477
--- /dev/null
491478
+++ b/Loop/Loop/Views/IntegralRetrospectiveCorrectionSelectionView.swift
492479
@@ -0,0 +1,54 @@
@@ -528,7 +515,7 @@ index 00000000..d7940e28
528515
+
529516
+ private var retrospectiveCorrectionSection: some View {
530517
+ VStack {
531-
+ DescriptiveText(label: NSLocalizedString("Integral Retrospective Correction (IRC) is an advanced control technique applied to glucose forecasting based on the history of discrepancies between predicted and actual glucose levels. The predictions are made using carbohydrate and insulin data. When enabled, IRC adjusts insulin delivery in response to consistent patterns: it increases insulin delivery when glucose levels consistently measure higher than expected, and decreases it when glucose levels are consistently lower than expected. IRC uses a proportional-integral-differential (PID) controller that adjusts insulin recommendations based on immediate, accumulated, and rate of change discrepancies. This provides a more adaptive and responsive control compared to standard retrospective correction. However, it's important to know that the effectiveness of IRC will heavily depend on the accuracy of your insulin sensitivity, carbohydrate ratios, and basal rates settings. While IRC can improve glucose management in cases of consistent discrepancies, please note that it might potentially lead to more aggressive corrections.", comment: "Description of Integral Retrospective Correction toggle."), color: .black)
518+
+ DescriptiveText(label: NSLocalizedString("Integral Retrospective Correction (IRC) is an advanced control technique applied to glucose forecasting based on the history of discrepancies between predicted and actual glucose levels. The predictions are made using carbohydrate and insulin data. When enabled, IRC adjusts insulin delivery in response to consistent patterns: it increases insulin delivery when glucose levels consistently measure higher than expected, and decreases it when glucose levels are consistently lower than expected. IRC uses a proportional-integral-differential (PID) controller that adjusts insulin recommendations based on immediate, accumulated, and rate of change discrepancies. This provides a more adaptive and responsive control compared to standard retrospective correction. However, it's important to know that the effectiveness of IRC will heavily depend on the accuracy of your insulin sensitivity, carbohydrate ratios, and basal rates settings. While IRC can improve glucose management in cases of consistent discrepancies, please note that it might potentially lead to more aggressive corrections.", comment: "Description of Integral Retrospective Correction toggle."))
532519
+ Section() {
533520
+ Toggle(NSLocalizedString("Integral Retrospective Correction", comment: "Title for Integral Retrospective Correction toggle"), isOn: $isIntegralRetrospectiveCorrectionEnabled)
534521
+ .onChange(of: isIntegralRetrospectiveCorrectionEnabled) { newValue in

0 commit comments

Comments
 (0)