Files
ShoeGaze/docs/plans/1.1-pedal-info-ui.md
T
josh 9bc049d8a3 Add 1.1 feature plans + ShoeGaze CLAUDE.md (mandatory pedal summary)
docs/plans: chorus (stereo), sustainer, ring modulator, and pedal-info UI.
CLAUDE.md: project conventions + a required checklist for new pedals, including
a mandatory user-facing summary used by the pedal-info UI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 17:44:47 -07:00

2.0 KiB
Raw Blame History

1.1 — Pedal info UI (description + control ranges)

Show a short description of each pedal in the picker, and an info button on the pedal that opens a panel with the description and the effect controls (knobs / sliders / switches) plus their value ranges — excluding the common Mix / Level / bypass controls.

Model (core, LyrebirdShoeGaze)

  • Add to Pedal: open var summary: String { "" } — one-line description, overridden by every pedal. Single source of truth.
  • PedalRegistry.summary(for displayName: String) -> String for the palette: instantiates builtIn[name]?() and reads .summary. No engine.add, so build() never runs — only a cheap object alloc. Cache in the palette view.
  • (Optional stretch) richer rows: add detail: String? and/or unit: String? to PedalKnob / PedalSlider / PedalSwitch. Not required — range / options already carry enough to show ranges.

Palette (PedalPaletteView)

  • Row → VStack(alignment: .leading): name (callout) + summary (caption2, secondary, ~2 lines). Keep the + glyph and .draggable.

Pedal info affordance (PedalView)

  • Small ⓘ button in the name-plate (top-right of the enclosure header).
  • Tap → .sheet / .popover on its own anchor node (one presentation per node — same pattern as the file pickers) presenting a new PedalInfoView(pedal:).

PedalInfoView (LyrebirdShoeGazeUI)

  • Title = pedal.displayName; body = pedal.summary.
  • Controls list from effectKnobs + effectSliders + effectSwitches only (not knobs, which includes Mix/Level; not bypass):
    • knob / slider → label + range, e.g. "200 – 8000" (raw range; add unit later).
    • switch → label + option titles.

Wiring

  • Override summary on all pedals (short sentences).
  • Going forward, every new pedal MUST set summary — see CLAUDE.md.

Tests

  • every entry in PedalRegistry.builtIn produces a pedal with non-empty summary.
  • PedalInfoView (or a helper that builds its rows) lists exactly the effect controls, not the common three.