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
+6 -8
View File
@@ -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)