Przeglądaj źródła

Settigns Update

tmhastings 1 rok temu
rodzic
commit
8649b43e18

+ 23 - 39
FreeAPS/Sources/Modules/AlgorithmAdvancedSettings/View/AlgorithmAdvancedSettingsRootView.swift

@@ -64,18 +64,13 @@ extension AlgorithmAdvancedSettings {
                     Temporary basal rates cannot be set higher than this percentage of your LARGEST profile basal rate
                     Default setting: 300%
                     """,
-                    verboseHint: VStack {
+                    verboseHint: VStack(spacing: 10) {
                         Text("Default: 300%").bold()
-                        Text("""
-
-                        This limits the automatic adjustment of the temporary basal rate to this value times the highest scheduled basal rate in your basal profile.
-
-                        """)
-                        Text("If Autotune is enabled, Trio uses Autotune basals instead of scheduled basals.").italic()
-                        Text("""
-
-                        Increasing this setting is not advised.
-                        """).bold().italic()
+                        Text(
+                            "This limits the automatic adjustment of the temporary basal rate to this value times the highest scheduled basal rate in your basal profile."
+                        )
+                        Text("Note: If Autotune is enabled, Trio uses Autotune basals instead of scheduled basals.").italic()
+                        Text("Warning: Increasing this setting is not advised.").bold().italic()
                     }
                 )
 
@@ -100,18 +95,13 @@ extension AlgorithmAdvancedSettings {
                     Temporary basal rates cannot be set higher than this percentage of the profile basal rate at the time of the loop cycle
                     Default: 400%
                     """,
-                    verboseHint: VStack {
+                    verboseHint: VStack(spacing: 10) {
                         Text("Default: 400%").bold()
-                        Text("""
-
-                        This limits the automatic adjustment of the temporary basal rate to this percentage of the current hourly basal rate at the time of the loop cycle.
-
-                        """)
-                        Text("If Autotune is enabled, Trio uses Autotune basals instead of scheduled basals.").italic()
-                        Text("""
-
-                        Increasing this setting is not advised.
-                        """).bold().italic()
+                        Text(
+                            "This limits the automatic adjustment of the temporary basal rate to this percentage of the current hourly basal rate at the time of the loop cycle."
+                        )
+                        Text("Note: If Autotune is enabled, Trio uses Autotune basals instead of scheduled basals.").italic()
+                        Text("Warning: Increasing this setting is not advised.").bold().italic()
                     }
                 )
 
@@ -133,15 +123,11 @@ extension AlgorithmAdvancedSettings {
                     Number of hours insulin is active in your body
                     Default: 6 hours
                     """,
-                    verboseHint: VStack {
+                    verboseHint: VStack(spacing: 10) {
                         Text("Default: 6 hours").bold()
-                        Text("""
-
-                        Number of hours insulin will contribute to IOB after dosing.
-
-                        """)
-                        Text("It is better to use Custom Peak Timing rather than adjust your Duration of Insulin Action (DIA)")
-                            .italic()
+                        Text("Number of hours insulin will contribute to IOB after dosing.")
+                        Text("Tip: It is better to use Custom Peak Time rather than adjust your Duration of Insulin Action (DIA)").italic()
+                        Text("Warning: Decreasing this setting is not advised.").bold().italic()
                     }
                 )
 
@@ -164,16 +150,14 @@ extension AlgorithmAdvancedSettings {
                     Time that insulin effect is at it’s highest. Set in minutes since injection.
                     Default: (Set by Insulin Type)
                     """,
-                    verboseHint: VStack {
+                    verboseHint: VStack(spacing: 10) {
                         Text("Default: Set by Insulin Type").bold()
-                        Text("""
-
-                        Time of maximum glucose lowering effect of insulin. Set in minutes since insulin administration.
-
-                        System-Determined Defaults:
-                        Ultra-Rapid: 55 minutes (permitted range 35-100 minutes)
-                        Rapid-Acting: 75 minutes (permitted range 50-120 minutes)
-                        """)
+                        Text("Time of maximum glucose lowering effect of insulin. Set in minutes since insulin administration.")
+                        VStack(alignment: .leading) {
+                            Text("System-Determined Defaults:").bold()
+                            Text("𝑼𝒍𝒕𝒓𝒂-𝑹𝒂𝒑𝒊𝒅: 55 minutes (permitted range 35-100 minutes)")
+                            Text("𝑹𝒂𝒑𝒊𝒅-𝑨𝒄𝒕𝒊𝒏𝒈: 75 minutes (permitted range 50-120 minutes)")
+                        }
                     }
                 )
 

+ 7 - 7
FreeAPS/Sources/Modules/AutotuneConfig/View/AutotuneConfigRootView.swift

@@ -71,10 +71,10 @@ extension AutotuneConfig {
                     type: .boolean,
                     label: "Use Autotune",
                     miniHint: """
-                        It is not advised to use Autotune with Trio
-                        Default: OFF
-                        """,
-                    verboseHint: VStack(spacing:10) {
+                    It is not advised to use Autotune with Trio
+                    Default: OFF
+                    """,
+                    verboseHint: VStack(spacing: 10) {
                         Text("Default: OFF").bold()
                         Text("It is not advised to use Autotune with Trio").bold()
                         Text("Autotune is not designed to work with Trio. It is best to keep Autotune off and do not use it.")
@@ -98,9 +98,9 @@ extension AutotuneConfig {
                         type: .boolean,
                         label: "Only Autotune Basal Insulin",
                         miniHint: """
-                            Restricts Autotune adjustments to only basal settings
-                            Default: OFF
-                            """,
+                        Restricts Autotune adjustments to only basal settings
+                        Default: OFF
+                        """,
                         verboseHint: Text("Restricts Autotune adjustments to only basal settings.")
                     )
                 }

+ 23 - 18
FreeAPS/Sources/Modules/BolusCalculatorConfig/View/BolusCalculatorConfigRootView.swift

@@ -114,7 +114,7 @@ extension BolusCalculatorConfig {
                         get: { selectedVerboseHint },
                         set: {
                             selectedVerboseHint = $0.map { AnyView($0) }
-                            hintLabel = "Fatty Meal Factor"
+                            hintLabel = "Fatty Meal"
                         }
                     ),
                     units: state.units,
@@ -122,17 +122,19 @@ extension BolusCalculatorConfig {
                     label: "Enable Fatty Meal",
                     conditionalLabel: "Fatty Meal Bolus Percentage",
                     miniHint: """
-                    Lower your bolus recommendation by this percentage for meals that digest slowly
-                    Default: 70%
+                    A "Fatty Meal" option appears in the bolus calculator
+                    Default: OFF
+                    Default %: 70%
                     """,
-                    verboseHint: VStack {
-                        Text("Default: 70%").bold()
+                    verboseHint: VStack(spacing: 10) {
+                        Text("Default: OFF").bold()
+                        Text("Default Percentage: 70%").bold()
                         Text("""
-
-                        This adjustment lowers your calculated bolus by this percentage when you select "Fatty Meal" in the bolus calculator. This setting replaces the Recommended Bolus Percentage Setting when selected.
-
-                        You want this setting to be lower than your Recommended Bolus Percentage setting to prevent lows with meals that digest slowly.
+                        Enabling this setting adds a "Fatty Meal" option to the bolus calculator. Once this feature is enabled, a percentage setting will appear for you to set. When you use a Fatty Meal Bolus, the percentage you select for this setting will replace the Recommended Bolus Percentage setting used in that bolus calculation.
                         """)
+                        Text(
+                            "Tip: This setting should be LOWER than your Recommended Bolus Percentage setting to enable the bolus calculator to give less than the calculated amount to prevent lows due to carbs absorbing very slowly. This could be useful when eating meals like pizza."
+                        ).italic()
                     }
                 )
 
@@ -144,7 +146,7 @@ extension BolusCalculatorConfig {
                         get: { selectedVerboseHint },
                         set: {
                             selectedVerboseHint = $0.map { AnyView($0) }
-                            hintLabel = "Super Bolus Percentage"
+                            hintLabel = "Super Bolus"
                         }
                     ),
                     units: state.units,
@@ -152,17 +154,20 @@ extension BolusCalculatorConfig {
                     label: "Enable Super Bolus",
                     conditionalLabel: "Super Bolus Percentage",
                     miniHint: """
-                    Raise your bolus recommendation by this percentage for meals with fast carbs
-                    Default: 200%
+                    A "Super Bolus" option appears in the bolus calculator
+                    Default: OFF
+                    Default %: 200%
                     """,
-                    verboseHint: VStack {
-                        Text("Default 200%").bold()
+                    verboseHint: VStack(spacing: 10) {
+                        Text("Default: OFF").bold()
+                        Text("Default Percentage: 200%").bold()
                         Text("""
-
-                        This adjustment raises your calculated bolus by this percentage when you select "Super Bolus" in the bolus calculator. This setting replaces the Recommended Bolus Percentage setting when "Super Bolus" is selected. 
-
-                        You want this setting to be higher than your Recommended Bolus Percentage setting to enable the bolus calculator to give above the calculated amount to address carbs that absorb very quickly. This could be useful when eating sweets.
+                        Enabling this setting adds a "Super Bolus" option to the bolus calculator. Once this feature is enabled, a percentage setting will appear for you to set. When you use a Super Bolus, the percentage you select for this setting will replace the Recommended Bolus Percentage setting used in that bolus calculation.
                         """)
+                        Text("The Super Bolus is a useful option for sweet or fast meals.")
+                        Text(
+                            "Tip: This setting should be HIGHER than your Recommended Bolus Percentage setting to enable the bolus calculator to give above the calculated amount to address carbs that absorb very quickly. This could be useful when eating sweets."
+                        ).italic()
                     }
                 )
             }

+ 10 - 15
FreeAPS/Sources/Modules/CalendarEventSettings/View/CalendarEventSettingsRootView.swift

@@ -52,14 +52,12 @@ extension CalendarEventSettings {
                     When enabled, Trio creates customizable calendar events in an iCloud calendar'
                     Default: OFF
                     """,
-                    verboseHint: VStack {
+                    verboseHint: VStack(spacing: 10) {
                         Text("Default: OFF").bold()
-                        Text("""
-
-                        When enabled, Trio will create a calendar event with every successful loop cycle. The previous calendar event will be deleted.
-
-                        You can customize this with the calendar of your choosing, emojis, and IOB/COB.
-                        """)
+                        Text(
+                            "When enabled, Trio will create a calendar event with every successful loop cycle. The previous calendar event will be deleted."
+                        )
+                        Text("You can customize this with the calendar of your choosing, emojis, and IOB/COB.")
                     },
                     headerText: "Diabetes Data as Calendar Event"
                 )
@@ -93,15 +91,15 @@ extension CalendarEventSettings {
                         Enable to use emojis instead of "IOB" or "COB" and to indicate in-range and out-of-range glucose readings
                         Default: OFF
                         """,
-                        verboseHint: VStack {
+                        verboseHint: VStack(spacing: 10) {
                             Text("Default: OFF").bold()
                             Text("""
-
                              When enabled, the calendar event created will indicate whether glucose readings are in-range or out-of-range using the following color emojis:
                             🟢: In-Range
                             🟠: Above-Range
                             🔴: Below-Range    
-
+                            """)
+                            Text("""
                             If "Display IOB and COB" is also enabled, "IOB" and "COB" will be replaced with the following emojis:
                             💉: IOB
                             🥨: COB
@@ -127,12 +125,9 @@ extension CalendarEventSettings {
                         Include IOB and COB in the calendar event created by Trio
                         Default: OFF
                         """,
-                        verboseHint: VStack {
+                        verboseHint: VStack(spacing: 10) {
                             Text("Default: OFF").bold()
-                            Text("""
-
-                            When enabled, Trio will include the current IOB and COB values in the calendar event created.
-                            """)
+                            Text(" When enabled, Trio will include the current IOB and COB values in the calendar event created.")
                         }
                     )
                 } else if state.useCalendar {

+ 8 - 8
FreeAPS/Sources/Modules/RemoteControlConfig/View/RemoteControlConfig.swift

@@ -52,17 +52,17 @@ extension RemoteControlConfig {
                     type: .boolean,
                     label: "Enable Remote Control",
                     miniHint: """
-                    Allow Trio to receive instructions, such as boluses and temp targets, from LoopFollow remotely.
+                    Allow Trio to receive instructions, such as boluses and temp targets, from Loop Follow remotely
                     Default: OFF
                     """,
-                    verboseHint: VStack {
+                    verboseHint: VStack(spacing: 10) {
                         Text("Default: OFF").bold()
-                        Text("""
-
-                        When Remote Control is enabled, you can send boluses, overrides, temporary targets, carbs, and other commands to Trio via push notifications.
-
-                        To ensure security, these commands are protected by a shared secret, which must be entered in LoopFollow.
-                        """)
+                        Text(
+                            "When Remote Control is enabled, you can send boluses, overrides, temporary targets, carbs, and other commands to Trio via push notifications."
+                        )
+                        Text(
+                            "To ensure security, these commands are protected by a shared secret, which must be entered in the Loop Follow app."
+                        )
                     },
                     headerText: "Trio Remote Control"
                 )