feat(ui): Amp Model pedal category

Add an "Amp Model" PedalCategory and move the amps (California, British, Chime,
Fullerton Reverb, Jazz Clean, Chime Top Boost, Neural Amp) out of Gain into it.
Overdrive/Distortion/Fuzz/Volume stay in Gain. Purely a palette grouping /
filter-menu change (UI); no audio or pedal behavior. New amps register .amp.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-03 10:23:25 -07:00
parent 9abc613fc3
commit e5deb8f94a
@@ -10,6 +10,7 @@ import SwiftUI
/// drive the "filter by type" menu. Purely a UI concern: the mapping from a pedal's `displayName`
/// to its category lives here, keyed by name like ``PedalPaletteView``'s preferred order.
public enum PedalCategory: String, CaseIterable, Identifiable, Sendable {
case amp = "Amp Model"
case gain = "Gain"
case dynamics = "Dynamics"
case filter = "EQ & Filter"
@@ -24,6 +25,7 @@ public enum PedalCategory: String, CaseIterable, Identifiable, Sendable {
/// Accent colour used to tint the palette card and the filter chip.
var color: Color {
switch self {
case .amp: return Color(red: 0.70, green: 0.45, blue: 0.18) // warm valve-glow copper
case .gain: return Color(red: 0.82, green: 0.38, blue: 0.12)
case .dynamics: return Color(red: 0.20, green: 0.50, blue: 0.32)
case .filter: return Color(red: 0.14, green: 0.46, blue: 0.55)
@@ -42,7 +44,8 @@ public enum PedalCategory: String, CaseIterable, Identifiable, Sendable {
}
private static let mapping: [String: PedalCategory] = [
"California": .gain, "British": .gain, "Chime": .gain, "Fullerton Reverb": .gain, "Jazz Clean": .gain, "Chime Top Boost": .gain, "Neural Amp": .gain, "Overdrive": .gain, "Distortion": .gain, "Fuzz": .gain, "Volume": .gain,
"California": .amp, "British": .amp, "Chime": .amp, "Fullerton Reverb": .amp, "Jazz Clean": .amp, "Chime Top Boost": .amp, "Neural Amp": .amp,
"Overdrive": .gain, "Distortion": .gain, "Fuzz": .gain, "Volume": .gain,
"Compressor": .dynamics, "Sustainer": .dynamics, "Limiter": .dynamics, "Noise Gate": .dynamics,
"Graphic EQ": .filter, "Auto-Wah": .filter, "Wah": .filter, "Mutant": .filter,
"Cabinet": .filter,