ui: move health/cli info to Debug; add single health row in General

This commit is contained in:
Peter Steinberger
2025-12-07 23:22:54 +01:00
parent 091471293d
commit 1019872832
2 changed files with 24 additions and 11 deletions
@@ -61,17 +61,7 @@ var body: some View {
}
}
VStack(alignment: .leading, spacing: 8) {
Text("Health")
.font(.callout.weight(.semibold))
self.healthCard
}
VStack(alignment: .leading, spacing: 6) {
Text("CLI helper")
.font(.callout.weight(.semibold))
self.cliInstaller
}
self.healthRow
Spacer(minLength: 12)
HStack {
@@ -317,6 +307,16 @@ private enum RemoteStatus: Equatable {
}
extension GeneralSettings {
private var healthRow: some View {
HStack(spacing: 10) {
Circle()
.fill(self.healthStore.state.tint)
.frame(width: 10, height: 10)
Text(self.healthStore.summaryLine)
.font(.callout)
}
}
@MainActor
fileprivate func testRemote() async {
self.remoteStatus = .checking