fix(notifications): remove emoji from briefing title and body
"Good morning ☀️" / "Good evening 🌙" → "Good morning" / "Good evening" "📣 Needs your attention:" → "Needs your attention:" Co-Authored-By: Kutesir <tqwyy79vzn@privaterelay.appleid.com>
This commit is contained in:
@@ -15,7 +15,6 @@ import BackgroundTasks
|
|||||||
|
|
||||||
enum BriefingPeriod { case morning, evening
|
enum BriefingPeriod { case morning, evening
|
||||||
var greeting: String { self == .morning ? "Good morning" : "Good evening" }
|
var greeting: String { self == .morning ? "Good morning" : "Good evening" }
|
||||||
var emoji: String { self == .morning ? "☀️" : "🌙" }
|
|
||||||
var requestID: String { self == .morning ? "briefing.morning" : "briefing.evening" }
|
var requestID: String { self == .morning ? "briefing.morning" : "briefing.evening" }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,7 +114,7 @@ final class NotificationManager: NSObject, ObservableObject {
|
|||||||
/// Build the "Jarvis" briefing: greeting + weather/rain + top stories to watch.
|
/// Build the "Jarvis" briefing: greeting + weather/rain + top stories to watch.
|
||||||
private func buildBriefing(_ period: BriefingPeriod) async -> UNMutableNotificationContent {
|
private func buildBriefing(_ period: BriefingPeriod) async -> UNMutableNotificationContent {
|
||||||
let content = UNMutableNotificationContent()
|
let content = UNMutableNotificationContent()
|
||||||
content.title = "\(period.greeting) \(period.emoji)"
|
content.title = period.greeting
|
||||||
content.sound = .default
|
content.sound = .default
|
||||||
|
|
||||||
var lines: [String] = []
|
var lines: [String] = []
|
||||||
@@ -128,7 +127,7 @@ final class NotificationManager: NSObject, ObservableObject {
|
|||||||
|
|
||||||
let top = await topStories(limit: 3)
|
let top = await topStories(limit: 3)
|
||||||
if !top.isEmpty {
|
if !top.isEmpty {
|
||||||
lines.append("📣 Needs your attention:")
|
lines.append("Needs your attention:")
|
||||||
for s in top { lines.append("• \(s.headline) (\(s.signalScore))") }
|
for s in top { lines.append("• \(s.headline) (\(s.signalScore))") }
|
||||||
} else if lines.isEmpty {
|
} else if lines.isEmpty {
|
||||||
lines.append("No new high-signal stories right now.")
|
lines.append("No new high-signal stories right now.")
|
||||||
|
|||||||
Reference in New Issue
Block a user