Просмотр исходного кода

Update hint and help text for Use Swift Oref setting

Deniz Cengiz 2 месяцев назад
Родитель
Сommit
fdc269e5a2

+ 8 - 2
Trio/Sources/Localizations/Main/Localizable.xcstrings

@@ -109148,6 +109148,9 @@
         }
       }
     },
+    "EXPERIMENTAL FEATURE! Enables new, fully Swift-based algorithm version." : {
+      "comment" : "Use Swift Oref mini hint"
+    },
     "Expiration Reminder" : {
       "extractionState" : "manual",
       "localizations" : {
@@ -240436,6 +240439,9 @@
         }
       }
     },
+    "This feature is EXPERIMENTAL and not yet cleared for general use." : {
+
+    },
     "This feature resets the Autosens Ratio to neutral when you rewind your pump on the assumption that this corresponds to a site change." : {
       "localizations" : {
         "bg" : {
@@ -268748,7 +268754,7 @@
         }
       }
     },
-    "We're building a faster and more maintainable Swift version of the Oref algorithm to improve Trio for everyone." : {
+    "We're building a faster and more maintainable Swift version of the algorithm (Oref) that runs in Trio. It's faster, more accurate and improves Trio for everyone." : {
 
     },
     "Week" : {
@@ -270890,7 +270896,7 @@
         }
       }
     },
-    "When enabled:" : {
+    "When enabled, Trio will no longer use the old JavaScript-based algorithm that runs virtualized on your phone. Instead, it will use a fully Swift-based algorithm." : {
 
     },
     "When Remote Control is enabled, you can send boluses, overrides, temporary targets, carbs, and other commands to Trio via push notifications." : {

+ 9 - 8
Trio/Sources/Modules/AlgorithmAdvancedSettings/View/AlgorithmAdvancedSettingsRootView.swift

@@ -404,19 +404,20 @@ extension AlgorithmAdvancedSettings {
                     units: state.units,
                     type: .boolean,
                     label: NSLocalizedString("Use Swift Oref", comment: "Use Swift Oref"),
-                    miniHint: "Enables new algorithm version and helps verify it works correctly by allowing anonymous data uploads.",
+                    miniHint: String(
+                        localized: "EXPERIMENTAL FEATURE! Enables new, fully Swift-based algorithm version.",
+                        comment: "Use Swift Oref mini hint"
+                    ),
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {
                         Text("Default: OFF").bold()
+                        Text("This feature is EXPERIMENTAL and not yet cleared for general use.").bold().foregroundStyle(.orange)
+                        Text(
+                            "We're building a faster and more maintainable Swift version of the algorithm (Oref) that runs in Trio. It's faster, more accurate and improves Trio for everyone."
+                        )
                         Text(
-                            "We're building a faster and more maintainable Swift version of the Oref algorithm to improve Trio for everyone."
+                            "When enabled, Trio will no longer use the old JavaScript-based algorithm that runs virtualized on your phone. Instead, it will use a fully Swift-based algorithm."
                         )
-                        Text("When enabled:")
-                        BulletPoint("App logs anonymous calculation data to verify accuracy")
-                        BulletPoint("Data is stored securely on UC Davis servers in Google Cloud")
-                        BulletPoint("Only development team has access")
-                        BulletPoint("All data will be deleted after verification")
-                        BulletPoint("No personal information is collected")
 
                         Text(
                             "You can disable this feature anytime."