chore(macos): simplify health status menu and messaging

This commit is contained in:
Peter Steinberger
2025-12-07 14:54:58 +01:00
parent 42c74e864a
commit a23846b3a1
2 changed files with 2 additions and 1 deletions

View File

@@ -127,6 +127,8 @@ final class HealthStore: ObservableObject {
}
var summaryLine: String {
if self.isRefreshing { return "Health check running…" }
if let error = self.lastError { return "Health check failed: \(error)" }
guard let snap = self.snapshot else { return "Health check pending" }
if !snap.web.linked { return "Not linked — run clawdis login" }
let auth = snap.web.authAgeMs.map { msToAge($0) } ?? "unknown"

View File

@@ -70,7 +70,6 @@ private struct MenuContent: View {
Button("Settings…") { self.open(tab: .general) }
.keyboardShortcut(",", modifiers: [.command])
Button("About Clawdis") { self.open(tab: .about) }
Button("Run Health Check") { Task { await self.healthStore.refresh(onDemand: true) } }
Divider()
Button("Quit") { NSApplication.shared.terminate(nil) }
}