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

fix typos and combine help text from Add/Edit OR,

also use VStack to format paragraphs like other help texts
Mike Plante 1 год назад
Родитель
Сommit
6368ccfca3

+ 25 - 12
FreeAPS/Sources/Modules/Adjustments/View/Overrides/AddOverrideForm.swift

@@ -57,18 +57,31 @@ struct AddOverrideForm: View {
             .sheet(isPresented: $state.isHelpSheetPresented) {
             .sheet(isPresented: $state.isHelpSheetPresented) {
                 NavigationStack {
                 NavigationStack {
                     List {
                     List {
-                        Text(
-                            "This feature can be used to override these therepy settings for a chosen length of time:\n• Basal Rate\n  ◦ Insulin Sensitivity\n  ◦ Carb Ratio\n• Glucose Target"
-                        )
-                        Text(
-                            "You can also override your Max SMB Minutes and Max UAM SMB Minutes, as well as an option to disable SMBs."
-                        )
-                        Text(
-                            "Select \"Start Override\" to immediate start using the Override, or select \"Save as Preset\" to be able to easily start the Override at a later time."
-                        )
-                        Text(
-                            "If using Dynamic ISF (without Sigmoid), overriding your ISF will only adjust the limits of the ISF the algorithm is allowed to set.\n\nIf using Dynamic ISF (with Sigmoid), overriding your ISF will adjust the ISF used at your glucose target which extends to the ISF used at other glucose. Overriding your glucose target will change glucose level your ISF will be set to your profile ISF. Both of these can be combined in a single Override."
-                        )
+                        VStack(alignment: .leading, spacing: 10) {
+                            VStack(alignment: .leading, spacing: 0) {
+                                Text("This feature can be used to override these therapy settings for a chosen length of time:")
+                                    .fixedSize(horizontal: false, vertical: true)
+                                Text("• Basal Rate")
+                                Text("  ◦ Insulin Sensitivity")
+                                Text("  ◦ Carb Ratio")
+                                Text("• Glucose Target")
+                            }
+                            Text(
+                                "There are also options to override your Max SMB Minutes and Max UAM SMB Minutes, as well as to disable SMBs."
+                            )
+                            Text(
+                                "Select \"Start Override\" to immediately start using the Override, or select \"Save as Preset\" to be able to easily start the Override at a later time."
+                            )
+                            Text(
+                                "If an active override preset is edited, the changes will also apply to the currently running override. However, if you edit the currently running override directly, the preset stays unchanged."
+                            )
+                            Text(
+                                "If using Dynamic ISF (without Sigmoid), overriding your ISF will only adjust the limits of the ISF the algorithm is allowed to set."
+                            )
+                            Text(
+                                "If using Dynamic ISF (with Sigmoid), overriding your ISF will adjust the ISF used at your glucose target which extends to the ISF used at other glucose. Overriding your glucose target will change glucose level your ISF will be set to your profile ISF. Both of these can be combined in a single Override."
+                            )
+                        }
                     }
                     }
                     .padding(.trailing, 10)
                     .padding(.trailing, 10)
                     .navigationBarTitle("Help", displayMode: .inline)
                     .navigationBarTitle("Help", displayMode: .inline)

+ 25 - 3
FreeAPS/Sources/Modules/Adjustments/View/Overrides/EditOverrideForm.swift

@@ -119,9 +119,31 @@ struct EditOverrideForm: View {
             .sheet(isPresented: $state.isHelpSheetPresented) {
             .sheet(isPresented: $state.isHelpSheetPresented) {
                 NavigationStack {
                 NavigationStack {
                     List {
                     List {
-                        Text(
-                            "If a preset is running, editing that preset will also edit the current running override, but if you edit the currently running override directly, the preset will not be affected."
-                        )
+                        VStack(alignment: .leading, spacing: 10) {
+                            VStack(alignment: .leading, spacing: 0) {
+                                Text("This feature can be used to override these therapy settings for a chosen length of time:")
+                                    .fixedSize(horizontal: false, vertical: true)
+                                Text("• Basal Rate")
+                                Text("  ◦ Insulin Sensitivity")
+                                Text("  ◦ Carb Ratio")
+                                Text("• Glucose Target")
+                            }
+                            Text(
+                                "There are also options to override your Max SMB Minutes and Max UAM SMB Minutes, as well as to disable SMBs."
+                            )
+                            Text(
+                                "Select \"Start Override\" to immediately start using the Override, or select \"Save as Preset\" to be able to easily start the Override at a later time."
+                            )
+                            Text(
+                                "If an active override preset is edited, the changes will also apply to the currently running override. However, if you edit the currently running override directly, the preset stays unchanged."
+                            )
+                            Text(
+                                "If using Dynamic ISF (without Sigmoid), overriding your ISF will only adjust the limits of the ISF the algorithm is allowed to set."
+                            )
+                            Text(
+                                "If using Dynamic ISF (with Sigmoid), overriding your ISF will adjust the ISF used at your glucose target which extends to the ISF used at other glucose. Overriding your glucose target will change glucose level your ISF will be set to your profile ISF. Both of these can be combined in a single Override."
+                            )
+                        }
                     }
                     }
                     .padding(.trailing, 10)
                     .padding(.trailing, 10)
                     .navigationBarTitle("Help", displayMode: .inline)
                     .navigationBarTitle("Help", displayMode: .inline)