new summary
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user