diff --git a/src/components/ProgressionBanner.jsx b/src/components/ProgressionBanner.jsx index a851faa..cf8b282 100644 --- a/src/components/ProgressionBanner.jsx +++ b/src/components/ProgressionBanner.jsx @@ -2,15 +2,21 @@ import { useRef, useEffect } from 'react' import { toRomanNumeral } from '../lib/theory' import { findLoopPosition } from '../lib/match' -const HISTORY_SHOWN = 8 +// ─── ProgressionBanner — the SLIM LOOP STRIP (task L-50, one-screen.md §1.2) ── +// +// One full-width status row: key chip · chord history (last 5, age-faded) · +// ♻ loop chips. The old right-30% "Now Playing" text-6xl chord + its divider +// are GONE per the user directive — the enlarged current history chip and the +// accent-glowing active loop chip ARE the now-playing display. Chrome trimmed +// (p-4 → p-2, history pb-1 dropped) so the strip lands at ~76px. +const HISTORY_SHOWN = 5 -export default function ProgressionBanner({ chordHistory, keyInfo, detectedProgression, currentChord, onChordClick }) { +export default function ProgressionBanner({ chordHistory, keyInfo, detectedProgression, onChordClick }) { const { root, mode, confidence } = keyInfo ?? {} const visible = chordHistory.slice(-HISTORY_SHOWN) const current = visible[visible.length - 1] const loopPos = findLoopPosition(chordHistory, detectedProgression) - const currentRN = root && current ? toRomanNumeral(current, root, mode) : '' const currentRef = useRef(null) const prevChord = useRef(null) @@ -25,70 +31,68 @@ export default function ProgressionBanner({ chordHistory, keyInfo, detectedProgr }, [current]) return ( -
Start listening…
- ) : ( -Start listening…
+ ) : ( +Play a chord
- )} -