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
@@ -486,21 +486,8 @@ private struct StatusLoader<Content: View>: View {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
if let status {
|
||||
content(status)
|
||||
} else if error == nil {
|
||||
ProgressView()
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.top, 20)
|
||||
}
|
||||
if let error {
|
||||
Text(error)
|
||||
.font(.system(size: 12))
|
||||
.foregroundStyle(Theme.secondaryText)
|
||||
.padding(.horizontal, 4)
|
||||
if status == nil {
|
||||
Button("Try again") { Task { await load() } }
|
||||
.buttonStyle(PillButtonStyle(fill: Theme.control, foreground: .white))
|
||||
}
|
||||
}
|
||||
LoadStatus(loaded: status != nil, error: error, retry: load)
|
||||
}
|
||||
.padding(.horizontal, 2)
|
||||
}
|
||||
@@ -510,7 +497,7 @@ private struct StatusLoader<Content: View>: View {
|
||||
status = try await model.api.status()
|
||||
error = nil
|
||||
} catch {
|
||||
self.error = model.message(for: error)
|
||||
if let message = model.message(for: error) { self.error = message }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user