task description auto

This commit is contained in:
Ian Gulliver
2026-10-20 08:57:37 -07:00
parent 8f3226350e
commit d530ec5edc
20 changed files with 434 additions and 342 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ private func enqueue(_ op: @escaping @MainActor () async -> Void) {
private func show(_ store: Store, _ taskId: String, _ tag: String, _ text: String) {
let line = trimmed(text).split(separator: "\n", omittingEmptySubsequences: false).first.map(String.init) ?? ""
let content = UNMutableNotificationContent()
content.title = store.findTask(taskId).map { "byre · \($0.title)" } ?? "byre"
content.title = store.findTask(taskId).map { "byre · \($0.name)" } ?? "byre"
content.body = line.count > 200 ? "\(line.prefix(199))…" : line
content.sound = .default
content.userInfo = ["task_id": taskId, "origin": store.api.origin.absoluteString]