new summary
This commit is contained in:
@@ -263,9 +263,6 @@ final class SwitcherModel {
|
||||
close()
|
||||
if store.inbox.contains(where: { $0.taskId == taskId }) {
|
||||
store.showQuestion(taskId)
|
||||
} else if let task = store.findTask(taskId), store.unreadSummary(task) {
|
||||
store.composerFocus = taskId
|
||||
store.openSummary(task)
|
||||
} else {
|
||||
store.composerFocus = taskId
|
||||
store.focusTask(taskId, .transcript)
|
||||
@@ -418,17 +415,18 @@ private struct SwitcherRowView: 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)
|
||||
case .project(let p):
|
||||
StateDot(filled: nil)
|
||||
Text(p.name)
|
||||
|
||||
Reference in New Issue
Block a user