Преглед изворни кода

Update Mini Hints and Verbose Hints

Grammar fixes.
Adds hint directions consistent with other hints.
Loop and Learn suggested updates.
tmhastings пре 1 година
родитељ
комит
653fa4fe6c

+ 4 - 4
FreeAPS/Sources/Modules/CGM/View/CGMRootView.swift

@@ -37,7 +37,7 @@ extension CGM {
 
                                 HStack(alignment: .center) {
                                     Text(
-                                        "Select your CGM."
+                                        "Select your CGM. See hint for compatible devices."
                                     )
                                     .font(.footnote)
                                     .foregroundColor(.secondary)
@@ -152,7 +152,7 @@ extension CGM {
 
                                 HStack(alignment: .center) {
                                     Text(
-                                        "A heartbeat tells Trio to start a loop cycle. \nThis is required to keep looping."
+                                        "A heartbeat tells Trio to start a loop cycle. This is required for closed loop."
                                     )
                                     .font(.footnote)
                                     .foregroundColor(.secondary)
@@ -208,10 +208,10 @@ extension CGM {
                                 "This filter looks at small groups of nearby readings and fits them to a simple mathematical curve. This process doesn't change the overall pattern of your glucose data but helps smooth out the \"noise\" or irregular fluctuations that could lead to false highs or lows."
                             )
                             Text(
-                                "Because your glucose readings are taken at regular intervals, the filter can use a set of pre-calculated \"weights\" to adjust each group of readings, making the calculations fast and efficient. It's designed to keep the important trends in your data while minimizing those small, misleading variations, giving you and Trio a clearer sense of where your blood sugar is really headed."
+                                "It's designed to keep the important trends in your data while minimizing those small, misleading variations, giving you and Trio a clearer sense of where your blood sugar is really headed. This type of filtering is useful in Trio, as it can help prevent over-corrections based on inaccurate glucose readings. This can help reduce the impact of sudden spikes or dips that might not reflect your true blood glucose levels."
                             )
                             Text(
-                                "This type of filtering is useful in Trio, as it can help prevent over-corrections based on inaccurate glucose readings. This can help reduce the impact of sudden spikes or dips that might not reflect your true blood glucose levels."
+                                "Note: If enabled, the smoothed values you see in Trio may differ from what is shown in your CGM app."
                             )
                         }
                     )

+ 11 - 8
FreeAPS/Sources/Modules/GeneralSettings/View/UnitsLimitsSettingsRootView.swift

@@ -42,7 +42,7 @@ extension UnitsLimitsSettings {
                     units: state.units,
                     type: .decimal("maxIOB"),
                     label: NSLocalizedString("Max IOB", comment: "Max IOB"),
-                    miniHint: "Maximum units of insulin allowed active at any given time.",
+                    miniHint: "Maximum units of insulin allowed to be active.",
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {
                         Text("Default: 0 units").bold()
@@ -50,10 +50,10 @@ extension UnitsLimitsSettings {
                             "Warning: This must be greater than 0 for any automatic temporary basal rates or SMBs to be given."
                         ).bold()
                         Text(
-                            "The maximum amount of Insulin On Board (IOB) above profile basal rates from all sources - positive temporary basal rates, manual or meal boluses, and SMBs - that Trio is allowed to accumulate to address a higher-than-target glucose."
+                            "This is the maximum amount of Insulin On Board (IOB) above profile basal rates from all sources - positive temporary basal rates, manual or meal boluses, and SMBs - that Trio is allowed to accumulate to address an above target glucose."
                         )
                         Text(
-                            "If a calculated amount exceeds this limit, the suggested and/or delivered amount will be reduced so that active insulin on board (IOB) will not exceed this safety limit."
+                            "If a calculated amount exceeds this limit, the suggested and / or delivered amount will be reduced so that active insulin on board (IOB) will not exceed this safety limit."
                         )
                         Text(
                             "Note: You can still manually bolus above this limit, but the suggested bolus amount will never exceed this in the bolus calculator."
@@ -79,7 +79,9 @@ extension UnitsLimitsSettings {
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {
                         Text("Default: 10 units").bold()
-                        Text("The maximum bolus allowed to be delivered at one time. This limits manual and automatic bolus.")
+                        Text(
+                            "This is the maximum bolus allowed to be delivered at one time. This limits manual and automatic bolus."
+                        )
                         Text("Most set this to their largest meal bolus. Then, adjust if needed.")
                         Text("If you attempt to request a bolus larger than this, the bolus will not be accepted.")
                     }
@@ -103,8 +105,9 @@ extension UnitsLimitsSettings {
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {
                         Text("Default: 2 units").bold()
-                        Text("The maximum basal rate allowed to be set or scheduled.")
-                        Text("This applies to both automatic or manual basal rates.")
+                        Text(
+                            "This is the maximum basal rate allowed to be set or scheduled. This applies to both automatic and manual basal rates."
+                        )
                     }
                 )
 
@@ -122,12 +125,12 @@ extension UnitsLimitsSettings {
                     units: state.units,
                     type: .decimal("maxCOB"),
                     label: NSLocalizedString("Max COB", comment: "Max COB"),
-                    miniHint: "Max carbs Trio can use in dosing calculations.",
+                    miniHint: "Maximum Carbs On Board (COB) allowed.",
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {
                         Text("Default: 120 carbs").bold()
                         Text(
-                            "Maximum Carbs On Board (COB) allowed. If more carbs are entered than allowed by this limit, Trio will cap the current COB in calculations to Max COB and remain at max until all remaining carbs have shown to be absorbed."
+                            "This setting defines the maximum amount of Carbs On Board (COB) at any given time for Trio to use in dosing calculations. If more carbs are entered than allowed by this limit, Trio will cap the current COB in calculations to Max COB and remain at max until all remaining carbs have shown to be absorbed."
                         )
                         Text("This is an important limit when UAM is ON.")
                     }

+ 1 - 1
FreeAPS/Sources/Modules/PumpConfig/View/PumpConfigRootView.swift

@@ -49,7 +49,7 @@ extension PumpConfig {
 
                                     HStack(alignment: .center) {
                                         Text(
-                                            "Pair a compatible pump with Trio. See details for available devices."
+                                            "Pair your insulin pump with Trio. See hint for compatible devices."
                                         )
                                         .font(.footnote)
                                         .foregroundColor(.secondary)

+ 6 - 6
FreeAPS/Sources/Modules/SMBSettings/View/SMBSettingsRootView.swift

@@ -111,7 +111,7 @@ extension SMBSettings {
                         units: state.units,
                         type: .boolean,
                         label: NSLocalizedString("Enable SMB After Carbs", comment: "Enable SMB After Carbs"),
-                        miniHint: "Allow SMB for 6 hrs after carbs are logged.",
+                        miniHint: "Allow SMB for 6 hrs after a carb entry.",
                         verboseHint:
                         VStack(alignment: .leading, spacing: 10) {
                             Text("Default: OFF").bold()
@@ -203,7 +203,7 @@ extension SMBSettings {
                     units: state.units,
                     type: .boolean,
                     label: NSLocalizedString("Enable UAM", comment: "Enable UAM"),
-                    miniHint: "Automatically adjust insulin delivery when carbs are not announced or miscalculated.",
+                    miniHint: "Enable Unannounced Meals SMB.",
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {
                         Text("Default: OFF").bold()
@@ -214,7 +214,7 @@ extension SMBSettings {
                             "It uses the SMB (Super Micro Bolus) algorithm to deliver insulin in small amounts to correct glucose spikes. UAM also works in reverse, reducing or stopping SMBs if glucose levels drop unexpectedly."
                         )
                         Text(
-                            "This feature ensures more accurate insulin adjustments even when carb entries are missing or incorrect."
+                            "This feature ensures more accurate insulin adjustments when carb entries are missing or incorrect."
                         )
                     }
                 )
@@ -233,7 +233,7 @@ extension SMBSettings {
                     units: state.units,
                     type: .decimal("maxSMBBasalMinutes"),
                     label: NSLocalizedString("Max SMB Basal Minutes", comment: "Max SMB Basal Minutes"),
-                    miniHint: "Limits the size of a single Super Micro Bolus (SMB) dose.",
+                    miniHint: "Limit the size of a single Super Micro Bolus (SMB) dose.",
                     verboseHint: VStack(spacing: 10) {
                         VStack(alignment: .leading, spacing: 10) {
                             VStack(alignment: .leading, spacing: 1) {
@@ -343,12 +343,12 @@ extension SMBSettings {
                         get: { selectedVerboseHint },
                         set: {
                             selectedVerboseHint = $0.map { AnyView($0) }
-                            hintLabel = NSLocalizedString("SMB DeliveryRatio", comment: "SMB DeliveryRatio")
+                            hintLabel = NSLocalizedString("SMB Delivery Ratio", comment: "SMB Delivery Ratio")
                         }
                     ),
                     units: state.units,
                     type: .decimal("smbDeliveryRatio"),
-                    label: NSLocalizedString("SMB DeliveryRatio", comment: "SMB DeliveryRatio"),
+                    label: NSLocalizedString("SMB Delivery Ratio", comment: "SMB Delivery Ratio"),
                     miniHint: "Limits % of total insulin required that can be given as SMB.",
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {

+ 1 - 1
FreeAPS/Sources/Modules/Settings/View/SettingsRootView.swift

@@ -83,7 +83,7 @@ extension Settings {
                         units: state.units,
                         type: .boolean,
                         label: "Closed Loop",
-                        miniHint: "Enables automated insulin delivery. Requires active CGM sensor session and connected pump.",
+                        miniHint: "Enable automated insulin delivery.",
                         verboseHint: VStack(alignment: .leading, spacing: 10) {
                             Text(
                                 "Running Trio in closed loop mode requires an active CGM sensor session and a connected pump. This enables automated insulin delivery."

+ 4 - 4
FreeAPS/Sources/Modules/WatchConfig/View/WatchConfigAppleWatchView.swift

@@ -80,8 +80,8 @@ struct WatchConfigAppleWatchView: View {
                 units: state.units,
                 type: .boolean,
                 label: "Show Protein and Fat",
-                miniHint: "Show protein and fat on the Apple Watch.",
-                verboseHint: Text("When enabled, protein and fat will show in the carb entry screen of the Apple Watch")
+                miniHint: "Allow protein and fat entries on watch.",
+                verboseHint: Text("When enabled, protein and fat will show in the carb entry screen of the Apple Watch.")
             )
 
             SettingInputSection(
@@ -98,9 +98,9 @@ struct WatchConfigAppleWatchView: View {
                 units: state.units,
                 type: .boolean,
                 label: "Confirm Bolus Faster",
-                miniHint: "Removes validation for boluses sent from the paired apple watch.",
+                miniHint: "Reduce the number of crown rotations required for bolus confirmation.",
                 verboseHint: Text(
-                    "Enabling this feature removes the confirmation / validation step to initiate a bolus faster from the watch."
+                    "Enabling this feature lowers the number of turns on the crown dial required when confirming a bolus."
                 )
             )
         }