Speed up landing screen: drop per-PR enrichment + add inbox cache; bump to 2.1
Build iOS App / Build .ipa and publish source (push) Successful in 23s

The inbox was slow because it enriched every PR with CI runs + reviews (2
extra API calls per PR, sequential). Drop that from the list — CI/review
status now shows only in the PR detail screen. Add a disk cache so the landing
screen renders instantly from the last load, then refreshes in the background
and keeps the cached list on network failure. Bump to 2.1.
This commit is contained in:
Hermes committed 2026-08-13 06:27:32 +00:00
1 parent 53b3f69d0f
commit 2b929e65e9
4 files changed
+76 -79

No files matched your search

+4 -5
View File
@@ -41,7 +41,10 @@ struct InboxView: View {
}
.task { await vm.load() }
.overlay {
if vm.isLoading {
// Only show a spinner when there's nothing cached to display
// yet; with a cache the list renders instantly and refreshes
// in the background.
if vm.isLoading && vm.displayedRows.isEmpty {
ProgressView()
}
}
@@ -74,10 +77,6 @@ struct PRRowView: View {
Text("#\(row.pr.number)")
.font(.subheadline.weight(.bold))
.foregroundColor(.secondary)
CICircle(status: row.ciStatus)
if row.reviewState != .unknown {
ReviewBadge(state: row.reviewState)
}
if row.pr.draft == true {
Text("Draft")
.font(.caption2)