feat: show refresh icon + last-updated time in popover header
Header now always shows: ↻ 2m ago (or 'Never' before first fetch). Refresh spinner replaces the text while loading. More discoverable than the bare relative timestamp that was there before. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f4668b38d6
commit
07ac29faa6
|
|
@ -27,9 +27,11 @@ struct BugListPopover: View {
|
|||
ProgressView()
|
||||
.scaleEffect(0.7)
|
||||
.frame(width: 16, height: 16)
|
||||
}
|
||||
if let lastUpdated = bugStore.lastUpdated {
|
||||
Text(formatted(lastUpdated))
|
||||
} else {
|
||||
Image(systemName: "arrow.triangle.2.circlepath")
|
||||
.font(.caption2)
|
||||
.foregroundStyle(.secondary)
|
||||
Text(bugStore.lastUpdated.map(formatted) ?? "Never")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue