mirror of
https://github.com/awizemann/scarf.git
synced 2026-05-10 10:36:35 +00:00
c6f45ac22e
New Health section in the Manage group combining hermes status and hermes doctor output: - Version header with update available banner (e.g. "47 commits behind") - Summary badges: passing/warning/issue counts - Status sections: environment, API keys, auth providers, terminal backend, messaging platforms, gateway service, scheduled jobs - Diagnostics sections: Python environment, required/optional packages, config files, directory structure, external tools, API connectivity, submodules, tool availability, Skills Hub, Honcho memory - Each check shows green/orange/red icon with label and detail - Refresh button to re-run both commands Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
32 lines
1.1 KiB
Swift
32 lines
1.1 KiB
Swift
import SwiftUI
|
|
|
|
struct SidebarView: View {
|
|
@Environment(AppCoordinator.self) private var coordinator
|
|
|
|
var body: some View {
|
|
@Bindable var coordinator = coordinator
|
|
List(selection: $coordinator.selectedSection) {
|
|
Section("Monitor") {
|
|
ForEach([SidebarSection.dashboard, .insights, .sessions, .activity]) { section in
|
|
Label(section.rawValue, systemImage: section.icon)
|
|
.tag(section)
|
|
}
|
|
}
|
|
Section("Interact") {
|
|
ForEach([SidebarSection.chat, .memory, .skills]) { section in
|
|
Label(section.rawValue, systemImage: section.icon)
|
|
.tag(section)
|
|
}
|
|
}
|
|
Section("Manage") {
|
|
ForEach([SidebarSection.tools, .gateway, .cron, .health, .logs, .settings]) { section in
|
|
Label(section.rawValue, systemImage: section.icon)
|
|
.tag(section)
|
|
}
|
|
}
|
|
}
|
|
.listStyle(.sidebar)
|
|
.navigationTitle("Scarf")
|
|
}
|
|
}
|