|
|
@@ -197,7 +197,7 @@ struct TrioAlertBanner: View {
|
|
|
@State private var presentedAt = Date()
|
|
|
@State private var dragOffset: CGSize = .zero
|
|
|
|
|
|
- private static let quickSnooze: TimeInterval = 20 * 60
|
|
|
+ private static let quickSnooze: TimeInterval = 15 * 60
|
|
|
|
|
|
/// Critical alerts and urgent-low glucose alarms are limited to the
|
|
|
/// 20-minute quick snooze — the safety floor. Other alerts get the full
|
|
|
@@ -305,7 +305,7 @@ struct TrioAlertBanner: View {
|
|
|
Button {
|
|
|
onSnooze(Self.quickSnooze)
|
|
|
} label: {
|
|
|
- Label(String(localized: "Snooze (20 min)"), systemImage: "moon.zzz")
|
|
|
+ Label(String(localized: "Snooze (15 min)"), systemImage: "moon.zzz")
|
|
|
}
|
|
|
} else {
|
|
|
Section(String(localized: "Snooze")) {
|
|
|
@@ -322,7 +322,7 @@ struct TrioAlertBanner: View {
|
|
|
}
|
|
|
|
|
|
private var snoozeOptions: [NotificationResponseAction] {
|
|
|
- isQuickSnoozeOnly ? [.snooze20] : NotificationResponseAction.allCases
|
|
|
+ isQuickSnoozeOnly ? [.snooze15] : NotificationResponseAction.allCases
|
|
|
}
|
|
|
|
|
|
private func relativeTimestamp(now: Date) -> String {
|
|
|
@@ -390,10 +390,10 @@ struct TrioAlertModifier: ViewModifier {
|
|
|
HStack {
|
|
|
Spacer()
|
|
|
Button {
|
|
|
- scheduler.snoozeAll(duration: 20 * 60)
|
|
|
+ scheduler.snoozeAll(duration: 15 * 60)
|
|
|
} label: {
|
|
|
HStack(spacing: 4) {
|
|
|
- Text(String(localized: "Snooze all (20 min)"))
|
|
|
+ Text(String(localized: "Snooze all (15 min)"))
|
|
|
.font(.footnote.weight(.semibold))
|
|
|
Image(systemName: "moon.zzz.fill")
|
|
|
.font(.footnote)
|