fix(rigs): address starter-rig feedback (toggle, Garcia, shimmer, input)

- Center the Mine/Starters toggle in the sidebar column.
- Garcia rig: build it as two plain boards (effects + clean) selected via
  the multi-board Solo/Blend control, instead of a ChainRouter — the builder
  UI renders boards, not routers, so the router version showed empty boards.
- Dreampop Chorus Cathedral: lower shimmer decay/feedback and delay feedback
  so the octave-up regeneration no longer screeches into runaway feedback.
- Preserve the current input across rig switches: loadRig gains a
  keepingCurrentInput flag (default false → file open / launch restore still
  apply the rig's saved input; RigStore session-restore continuity intact),
  and the rig-switch path (loadEntry) passes true so a live guitar isn't
  snapped back to the test tone when changing rigs. Tests updated to cover
  both directions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-09 14:36:49 -07:00
parent 392ae1525a
commit 132515b4cd
5 changed files with 102 additions and 57 deletions
@@ -26,6 +26,7 @@ struct RigLibrarySidebarView: View {
private static let subtitleOpacity: Double = 0.5
private static let headerOpacity: Double = 0.65
private static let emptyOpacity: Double = 0.4
private static let tabPickerWidth: CGFloat = 168
// MARK: - Inputs
@@ -139,7 +140,7 @@ struct RigLibrarySidebarView: View {
}
}
/// Segmented Mine / Starters switch at the top of the list.
/// Segmented Mine / Starters switch, centered at the top of the list.
private var tabPicker: some View {
Picker("", selection: $tab) {
ForEach(RigTab.allCases) { option in
@@ -148,6 +149,9 @@ struct RigLibrarySidebarView: View {
}
.pickerStyle(.segmented)
.labelsHidden()
// Constrain the control's own width, then center it in the full column width.
.frame(maxWidth: RigLibrarySidebarView.tabPickerWidth)
.frame(maxWidth: .infinity, alignment: .center)
}
/// The user's own rigs — a flat, reorderable list.
@@ -1640,7 +1640,9 @@ public struct ShoeGazeBuilderView: View {
let wasRunning: Bool = shoeGaze.engine.isRunning
if wasRunning { shoeGaze.engine.stop() }
do {
try shoeGaze.loadRig(from: entry.state)
// Keep the player's currently-chosen input across the switch (e.g. a live guitar), rather
// than snapping to the input the selected rig was authored with.
try shoeGaze.loadRig(from: entry.state, keepingCurrentInput: true)
currentRigID = entry.id
selectedBoardIndex = 0
autosave()