Prechádzať zdrojové kódy

Alerts: rename Device Alarms → Pump & CGM Alarms

Deniz Cengiz 3 týždňov pred
rodič
commit
8472f55f18

+ 4 - 7
Trio/Sources/Localizations/Main/Localizable.xcstrings

@@ -27490,9 +27490,6 @@
       "comment" : "A comparison operator.",
       "isCommentAutoGenerated" : true
     },
-    "Acknowledge" : {
-
-    },
     "Acknowledge all alerts" : {
       "localizations" : {
         "bg" : {
@@ -94678,9 +94675,6 @@
         }
       }
     },
-    "Device Alarms" : {
-
-    },
     "Device App Settings" : {
       "comment" : "A section header for settings related to a connected device.",
       "localizations" : {
@@ -202172,6 +202166,9 @@
         }
       }
     },
+    "Pump & CGM Alarms" : {
+
+    },
     "Pump config" : {
       "extractionState" : "manual",
       "localizations" : {
@@ -250504,7 +250501,7 @@
     "These two times define the Day and Night windows. Each alarm's Active setting picks one — Day & Night, Day only, or Night only — and only fires when that window is current." : {
 
     },
-    "These windows are shared between Glucose Alarms and Device Alarms." : {
+    "These windows are shared between Glucose Alarms and Pump & CGM Alarms." : {
 
     },
     "This 15% minimum is a safety limit taken from oref (OpenAPS reference design) and AndroidAPS. It helps prevent insulin delivery from dropping to unsafe levels." : {

+ 1 - 1
Trio/Sources/Modules/AlarmWindows/View/AlarmWindowsRootView.swift

@@ -88,7 +88,7 @@ extension AlarmWindows {
                                                 )
                                             )
                                             Text(
-                                                "These windows are shared between Glucose Alarms and Device Alarms."
+                                                "These windows are shared between Glucose Alarms and Pump & CGM Alarms."
                                             )
                                         }
                                     )

+ 1 - 1
Trio/Sources/Modules/DeviceAlarms/View/DeviceAlarmsRootView.swift

@@ -46,7 +46,7 @@ extension DeviceAlarms {
             }
             .scrollContentBackground(.hidden)
             .background(appState.trioBackgroundColor(for: colorScheme))
-            .navigationTitle("Device Alarms")
+            .navigationTitle("Pump & CGM Alarms")
             .navigationBarTitleDisplayMode(.inline)
             .toolbar {
                 ToolbarItem(placement: .primaryAction) {

+ 1 - 1
Trio/Sources/Modules/Settings/SettingItems.swift

@@ -353,7 +353,7 @@ enum SettingItems {
                 "Sensor Failure",
                 "Device Expired"
             ],
-            path: ["Notifications", "Device Alarms"]
+            path: ["Notifications", "Pump & CGM Alarms"]
         ),
         SettingItem(
             title: "Day & Night Windows",

+ 1 - 1
Trio/Sources/Modules/Settings/View/Subviews/NotificationsView.swift

@@ -79,7 +79,7 @@ struct NotificationsView: BaseView {
                     Text("Glucose Alarms")
                         .navigationLink(to: .glucoseAlerts, from: self)
 
-                    Text("Device Alarms")
+                    Text("Pump & CGM Alarms")
                         .navigationLink(to: .deviceAlarms, from: self)
 
                     Text("Day & Night Windows")

+ 1 - 1
Trio/Sources/Services/Alerts/NotLoopingMonitor.swift

@@ -11,7 +11,7 @@ import Swinject
 ///
 /// Replaces the legacy `scheduleMissingLoopNotifiactions` direct-UN path
 /// in `BaseUserNotificationsManager`. The alert now flows through
-/// `TrioAlertManager` and inherits tier config from Device Alarms
+/// `TrioAlertManager` and inherits tier config from Pump & CGM Alarms
 /// (Critical tier by default).
 final class NotLoopingMonitor: Injectable {
     @Injected() private var apsManager: APSManager!

+ 1 - 1
Trio/Sources/Services/Alerts/TrioAlertCategory.swift

@@ -268,7 +268,7 @@ enum TrioAlertClassifier {
 
         // Algorithm error — emitted by APSManager after dwell suppression.
         // Re-classification by identifier needs to land here so the tier
-        // config in Device Alarms applies on the round-trip through issueAlert.
+        // config in Pump & CGM Alarms applies on the round-trip through issueAlert.
         if id.contains("algorithmerror") || id.contains("apserror") { return .algorithmError }
 
         return .other(alertIdentifier)