From 439c14db879339c75affa6ec7c03f0fa0961acec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Tue, 18 Nov 2025 08:23:20 +0100 Subject: [PATCH] feat: show effect chain in collapsed state and polish visual integration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Visual improvements: - Effects section background now matches waveform (slate-900/50) - More subtle border (border-border/50) - Compact header (py-1.5 instead of py-2) - Expanded area has darker background (slate-900/30) for depth Collapsed state improvements: - When collapsed, shows mini effect chips in the header - Each chip shows effect name with visual state: - Enabled: primary color with border (blue/accent) - Disabled: muted with border - Chips are scrollable horizontally if many effects - Falls back to "Devices (count)" when no effects Better integration: - Background colors tie to waveform area - Subtle hover effect on header (accent/30) - Visual hierarchy: waveform -> effects blend together - No more "abandoned" feeling - feels like part of the track 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- components/tracks/Track.tsx | 49 +++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/components/tracks/Track.tsx b/components/tracks/Track.tsx index 48c6548..17cc962 100644 --- a/components/tracks/Track.tsx +++ b/components/tracks/Track.tsx @@ -440,22 +440,41 @@ export function Track({ {/* Bottom: Effects Section (Collapsible, Full Width) */} {!track.collapsed && ( -
- {/* Effects Header */} +
+ {/* Effects Header - clickable to toggle */}
setShowEffects(!showEffects)} > -
- {showEffects ? ( - - ) : ( - - )} - + {showEffects ? ( + + ) : ( + + )} + + {/* Show mini effect chain when collapsed */} + {!showEffects && track.effectChain.effects.length > 0 ? ( +
+ {track.effectChain.effects.map((effect) => ( +
+ {effect.name} +
+ ))} +
+ ) : ( + Devices ({track.effectChain.effects.length}) -
+ )} +
- {/* Horizontal scrolling device rack */} + {/* Horizontal scrolling device rack - expanded state */} {showEffects && ( -
+
{track.effectChain.effects.length === 0 ? (