Notifications: drop decorative ✓ glyphs from action title and done body
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -40,7 +40,7 @@ final class NotificationManager: NSObject, ObservableObject, @unchecked Sendable
|
|||||||
intentIdentifiers: [], options: .customDismissAction)
|
intentIdentifiers: [], options: .customDismissAction)
|
||||||
|
|
||||||
let logAction = UNNotificationAction(identifier: Self.logWorkoutActId,
|
let logAction = UNNotificationAction(identifier: Self.logWorkoutActId,
|
||||||
title: "Yes, I completed it ✓", options: [])
|
title: "Yes, I completed it", options: [])
|
||||||
let missedAction = UNNotificationAction(identifier: Self.missedWorkoutActId,
|
let missedAction = UNNotificationAction(identifier: Self.missedWorkoutActId,
|
||||||
title: "No, I didn't", options: [])
|
title: "No, I didn't", options: [])
|
||||||
let snoozeAction = UNNotificationAction(identifier: Self.snoozeWorkoutActId,
|
let snoozeAction = UNNotificationAction(identifier: Self.snoozeWorkoutActId,
|
||||||
@@ -191,7 +191,7 @@ final class NotificationManager: NSObject, ObservableObject, @unchecked Sendable
|
|||||||
|| settings.authorizationStatus == .provisional else { return }
|
|| settings.authorizationStatus == .provisional else { return }
|
||||||
let content = UNMutableNotificationContent()
|
let content = UNMutableNotificationContent()
|
||||||
content.title = title
|
content.title = title
|
||||||
content.body = nextOccurrence.map { "✓ Done. Repeats \(Self.relativeRepeat(to: $0))." } ?? "✓ Done."
|
content.body = nextOccurrence.map { "Done. Repeats \(Self.relativeRepeat(to: $0))." } ?? "Done."
|
||||||
content.sound = nil // quiet confirmation, not an alert
|
content.sound = nil // quiet confirmation, not an alert
|
||||||
self.center.add(UNNotificationRequest(
|
self.center.add(UNNotificationRequest(
|
||||||
identifier: "kisani.recurdone.\(UUID().uuidString)",
|
identifier: "kisani.recurdone.\(UUID().uuidString)",
|
||||||
|
|||||||
Reference in New Issue
Block a user