Watch: snooze finished threads, name the files a file approval would edit, Settle on finished notifications, an instant launch from the saved feed, plain Loading states, and no more cancelled errors
Gateway: an approval push for a file change says which files it would edit
This commit is contained in:
1 parent
4dc4e57dac
commit
edc4b88990
35 files changed
+1162
-144
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// The full Recent list, opened from the feed's "N more" row. It loads `GET /v1/recent` when it
|
||||
// appears; nothing polls. Rows look and swipe like the feed's, and the header has Settle all.
|
||||
// appears; nothing polls. Rows look and swipe like the feed's, to settle or snooze, and the header
|
||||
// has Settle all.
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -31,23 +32,10 @@ struct RecentView: View {
|
||||
ForEach(items) { item in
|
||||
RecentRow(item: item).feedRow()
|
||||
}
|
||||
} else if model.allRecentError == nil {
|
||||
ProgressView()
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.top, 20)
|
||||
.feedRow()
|
||||
}
|
||||
if let error = model.allRecentError {
|
||||
Text(error)
|
||||
.font(.system(size: 12))
|
||||
.foregroundStyle(Theme.secondaryText)
|
||||
.padding(.horizontal, 8)
|
||||
if model.allRecent == nil || model.allRecentError != nil {
|
||||
LoadStatus(loaded: model.allRecent != nil, error: model.allRecentError, retry: model.loadAllRecent)
|
||||
.feedRow()
|
||||
if model.allRecent == nil {
|
||||
Button("Try again") { Task { await model.loadAllRecent() } }
|
||||
.buttonStyle(PillButtonStyle(fill: Theme.control, foreground: .white))
|
||||
.feedRow()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user