new summary

This commit is contained in:
Ian Gulliver
2026-10-19 19:00:52 -07:00
parent 2bb527aca0
commit 6d9abc8585
6 changed files with 16 additions and 60 deletions
+7 -10
View File
@@ -169,11 +169,7 @@ private struct TaskRow: View {
let color = taskPalette[task.color]
let count = store.inbox.filter { $0.taskId == task.id }.count
HoverRow(selected: task.id == store.selectedTaskId, indent: task.parentTaskId != nil ? 20 * CGFloat(depth - 1) : 0) {
if store.unreadSummary(task) {
store.openSummary(task)
} else {
store.focusTask(task.id)
}
store.focusTask(task.id)
} content: {
if let parent = task.parentTaskId {
Text("↳")
@@ -189,17 +185,18 @@ private struct TaskRow: View {
if count > 0 {
Badge(count: count).help("open questions")
}
if store.unreadSummary(task) {
if ts.kind == .idle && store.unreadSummary(task) {
Text("new summary")
.font(Fonts.font(11, weight: 700))
.foregroundStyle(Palette.accent)
.help("A turn summary you haven't read")
.accessibilityLabel("New summary from \(task.title), unread")
} else {
Text(ts.label)
.font(Fonts.font(11))
.foregroundStyle(ts.needsYou ? Palette.warn : Palette.muted)
.help(ts.title)
}
Text(ts.label)
.font(Fonts.font(11))
.foregroundStyle(ts.needsYou ? Palette.warn : Palette.muted)
.help(ts.title)
}
}
}