Skip to content

armgit / chops

Public Imported from GitHub
0

Your AI agent skills, finally organized. A macOS app to browse, edit, and manage skills across Claude Code, Cursor, Codex, Windsurf, and Amp.

feat: add About tab to settings with version, update check, links

Josh Pigford8d8dddc2c314
diff --git a/Chops/App/ChopsApp.swift b/Chops/App/ChopsApp.swift
index 1e14fd0..8916f56 100644
--- a/Chops/App/ChopsApp.swift
+++ b/Chops/App/ChopsApp.swift
@@ -51,7 +51,7 @@ struct ChopsApp: App {
}
Settings {
- SettingsView()
+ SettingsView(updater: updaterController.updater)
.environment(appState)
.modelContainer(sharedModelContainer)
}
diff --git a/Chops/Views/Settings/SettingsView.swift b/Chops/Views/Settings/SettingsView.swift
index d393e59..5ea6db4 100644
--- a/Chops/Views/Settings/SettingsView.swift
+++ b/Chops/Views/Settings/SettingsView.swift
@@ -1,10 +1,12 @@
import SwiftUI
+import Sparkle
extension Notification.Name {
static let customScanPathsChanged = Notification.Name("customScanPathsChanged")
}
struct SettingsView: View {
+ let updater: SPUUpdater
@State private var customPaths: [String] = []
@State private var defaultTool: ToolSource = .claude
@@ -19,6 +21,11 @@ struct SettingsView: View {
.tabItem {
Label("Scan Directories", systemImage: "folder.badge.gearshape")
}
+
+ aboutView
+ .tabItem {
+ Label("About", systemImage: "info.circle")
+ }
}
.frame(width: 480, height: 320)
.onAppear {
@@ -89,6 +96,61 @@ struct SettingsView: View {
.padding()
}
+ private var aboutView: some View {
+ VStack(spacing: 16) {
+ Image("tool-claude") // App icon from asset catalog
+ .resizable()
+ .aspectRatio(contentMode: .fit)
+ .frame(width: 80, height: 80)
+ .opacity(0) // Hidden — use the actual app icon instead
+ .overlay {
+ if let icon = NSApp.applicationIconImage {
+ Image(nsImage: icon)
+ .resizable()
+ .aspectRatio(contentMode: .fit)
+ .frame(width: 80, height: 80)
+ }
+ }
+
+ Text("Chops")
+ .font(.title)
+ .fontWeight(.bold)
+
+ Text("Version \(appVersion)")
+ .font(.subheadline)
+ .foregroundStyle(.secondary)
+
+ Text("Your AI agent skills, finally organized.")
+ .font(.subheadline)
+ .foregroundStyle(.secondary)
+
+ HStack(spacing: 16) {
+ Button("Check for Updates") {
+ updater.checkForUpdates()
+ }
+
+ Button("Website") {
+ NSWorkspace.shared.open(URL(string: "https://chops.md")!)
+ }
+
+ Button("@Shpigford") {
+ NSWorkspace.shared.open(URL(string: "https://x.com/Shpigford")!)
+ }
+ }
+
+ Text("\u{00A9} 2026 Josh Pigford. MIT License.")
+ .font(.caption)
+ .foregroundStyle(.tertiary)
+ }
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
+ }
+
+ private var appVersion: String {
+ let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "?"
+ let build = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "?"
+ return "\(version) (\(build))"
+ }
+
private func loadCustomPaths() {
customPaths = UserDefaults.standard.stringArray(forKey: "customScanPaths") ?? []
}