Remove unnecessary stats panel

This commit is contained in:
Hariharan Mudaliar 2025-11-15 00:04:07 +05:30
commit fb7fa7d02b
8 changed files with 15 additions and 1051 deletions

View file

@ -1745,34 +1745,6 @@ struct Shortcuts: View {
.font(.caption)
}
Section {
HStack {
VStack(alignment: .leading) {
KeyboardShortcuts.Recorder("Stats Panel:", name: .statsPanel)
.disabled(!enableShortcuts || !enableStatsFeature || !Defaults[.showStatsPanel])
if !enableStatsFeature {
Text("Stats feature is disabled")
.font(.caption)
.foregroundStyle(.secondary)
.padding(.top, 2)
} else if !Defaults[.showStatsPanel] {
Text("Stats panel is disabled")
.font(.caption)
.foregroundStyle(.secondary)
.padding(.top, 2)
}
}
Spacer()
}
} header: {
Text("Stats")
} footer: {
Text("Opens the detailed system performance monitor panel. Default is Cmd+Shift+S. Only works when stats feature is enabled.")
.multilineTextAlignment(.trailing)
.foregroundStyle(.secondary)
.font(.caption)
}
Section {
HStack {
VStack(alignment: .leading) {
@ -2267,7 +2239,6 @@ struct StatsSettings: View {
@Default(.showGpuGraph) var showGpuGraph
@Default(.showNetworkGraph) var showNetworkGraph
@Default(.showDiskGraph) var showDiskGraph
@Default(.showStatsPanel) var showStatsPanel
var enabledGraphsCount: Int {
[showCpuGraph, showMemoryGraph, showGpuGraph, showNetworkGraph, showDiskGraph].filter { $0 }.count
@ -2299,23 +2270,13 @@ struct StatsSettings: View {
// Note: Smart monitoring will handle starting when switching to stats tab
}
if enableStatsFeature {
Defaults.Toggle("Enable detailed stats panel", key: .showStatsPanel)
}
} header: {
Text("General")
} footer: {
if enableStatsFeature && showStatsPanel {
Text("Stats monitoring displays performance graphs in the Dynamic Island. The detailed panel (Cmd+Shift+S) shows Activity Monitor-style detailed graphs and metrics.")
.multilineTextAlignment(.trailing)
.foregroundStyle(.secondary)
.font(.caption)
} else {
Text("When enabled, the Stats tab will display real-time system performance graphs. This feature requires system permissions and may use additional battery.")
.multilineTextAlignment(.trailing)
.foregroundStyle(.secondary)
.font(.caption)
}
Text("When enabled, the Stats tab will display real-time system performance graphs. This feature requires system permissions and may use additional battery.")
.multilineTextAlignment(.trailing)
.foregroundStyle(.secondary)
.font(.caption)
}
if enableStatsFeature {