Przeglądaj źródła

Merge pull request #1022 from MikePlante1/fpu-hints

Default FPU to disabled and update hints
Deniz Cengiz 1 miesiąc temu
rodzic
commit
3a142c2a33

+ 1 - 1
Trio/Resources/json/defaults/freeaps/freeaps_settings.json

@@ -19,7 +19,7 @@
   "highGlucose" : 270,
   "highGlucose" : 270,
   "carbsRequiredThreshold" : 10,
   "carbsRequiredThreshold" : 10,
   "showCarbsRequiredBadge" : true,
   "showCarbsRequiredBadge" : true,
-  "useFPUconversion" : true,
+  "useFPUconversion" : false,
   "individualAdjustmentFactor" : 0.5,
   "individualAdjustmentFactor" : 0.5,
   "minuteInterval" : 30,
   "minuteInterval" : 30,
   "delay" : 60,
   "delay" : 60,

Plik diff jest za duży
+ 90 - 0
Trio/Sources/Localizations/Main/Localizable.xcstrings


+ 1 - 1
Trio/Sources/Models/TrioSettings.swift

@@ -40,7 +40,7 @@ struct TrioSettings: JSON, Equatable {
     var highGlucose: Decimal = 270
     var highGlucose: Decimal = 270
     var carbsRequiredThreshold: Decimal = 10
     var carbsRequiredThreshold: Decimal = 10
     var showCarbsRequiredBadge: Bool = true
     var showCarbsRequiredBadge: Bool = true
-    var useFPUconversion: Bool = true
+    var useFPUconversion: Bool = false
     var individualAdjustmentFactor: Decimal = 0.5
     var individualAdjustmentFactor: Decimal = 0.5
     var minuteInterval: Decimal = 30
     var minuteInterval: Decimal = 30
     var delay: Decimal = 60
     var delay: Decimal = 60

+ 1 - 1
Trio/Sources/Modules/MealSettings/MealSettingsStateModel.swift

@@ -3,7 +3,7 @@ import SwiftUI
 extension MealSettings {
 extension MealSettings {
     final class StateModel: BaseStateModel<Provider> {
     final class StateModel: BaseStateModel<Provider> {
         @Published var units: GlucoseUnits = .mgdL
         @Published var units: GlucoseUnits = .mgdL
-        @Published var useFPUconversion: Bool = true
+        @Published var useFPUconversion: Bool = false
         @Published var maxCarbs: Decimal = 250
         @Published var maxCarbs: Decimal = 250
         @Published var maxFat: Decimal = 250
         @Published var maxFat: Decimal = 250
         @Published var maxProtein: Decimal = 250
         @Published var maxProtein: Decimal = 250

+ 4 - 5
Trio/Sources/Modules/MealSettings/View/MealSettingsRootView.swift

@@ -203,7 +203,7 @@ extension MealSettings {
                     VStack(alignment: .leading, spacing: 10) {
                     VStack(alignment: .leading, spacing: 10) {
                         Text("Default: 6 hours").bold()
                         Text("Default: 6 hours").bold()
                         Text(
                         Text(
-                            "Carb entries will be fully decayed by the number of hours specified as Max Meal Absorption Time. Meals that are high in fat and/or protein can have long lasting effects on BG levels. To allow such late meal effects to be considered by the carb decay model, a longer Max Meal Absorption Time than the default 6 hours can be set."
+                            "Carb entries will be fully decayed by the number of hours specified as Max Meal Absorption Time. Meals that are high in fat and/or protein can have long lasting effects on glucose levels. To allow such late meal effects to be considered by the carb decay model, a longer Max Meal Absorption Time than the default 6 hours can be set."
                         )
                         )
                         Text(
                         Text(
                             "If carb entries decay too slowly, it is possible to set a lower than default setting. But this should typically be adressed by tuning ISF and CR settings instead, which in combination determines the rate of carb decay."
                             "If carb entries decay too slowly, it is possible to set a lower than default setting. But this should typically be adressed by tuning ISF and CR settings instead, which in combination determines the rate of carb decay."
@@ -258,7 +258,6 @@ extension MealSettings {
                                     "You can personalize the conversion calculation by adjusting the following settings that will appear when this option is enabled:"
                                     "You can personalize the conversion calculation by adjusting the following settings that will appear when this option is enabled:"
                                 )
                                 )
                                 Text("• Fat and Protein Delay")
                                 Text("• Fat and Protein Delay")
-                                Text("• Maximum Duration")
                                 Text("• Spread Interval")
                                 Text("• Spread Interval")
                                 Text("• Fat and Protein Percentage")
                                 Text("• Fat and Protein Percentage")
                             }
                             }
@@ -315,9 +314,9 @@ extension MealSettings {
                             Text(
                             Text(
                                 "This determines how many minutes will be between individual Fat-Protein Unit Carb Equivalent (FPU) entries from a single Fat and/or Protein bolus calculator entry."
                                 "This determines how many minutes will be between individual Fat-Protein Unit Carb Equivalent (FPU) entries from a single Fat and/or Protein bolus calculator entry."
                             )
                             )
-                            Text("The shorter the interval, the smoother the correlating dosing result.")
-                            Text("Increasing this setting may result in fewer FPU entries with larger carb values.")
-                            Text("Decreasing this setting may result in more FPU entries with smaller carb values.")
+                            Text(
+                                "Entries are capped at 33 grams each, with up to three entries, for a max total of 99 grams."
+                            )
                         }
                         }
                     )
                     )