🎵 New Features
Music Controls Integration
- Added music preview controls for Spotify and Apple Music when hovering over music apps in the dock
- Now playing information displays album artwork, track title, artist, and playback controls
- Media control buttons allow play/pause, skip forward/backward directly from the dock preview
- Real-time synchronization with current playback state and track information
Calendar Integration
- Added calendar preview when hovering over the Calendar app in the dock
- Daily events overview shows upcoming events and appointments at a glance
- Clean, intuitive interface displays event times, titles, and calendar information
- Quick schedule checking without needing to open the Calendar app
🐛 Bug Fixes
Window Preview Issues
- Fixed lateral movement behavior where window previews would incorrectly persist when moving between dock items
- Resolved issue where apps with zero open windows would incorrectly display previews from previously hovered apps
- Improved preview state management to ensure consistent behavior when hovering over closed applications
- Fixed race condition in preview processing that could cause stale previews to remain visible
Technical Improvements
- Enhanced task cancellation by properly resetting
isProcessing
flag when cancelling existing preview tasks - Improved preview reliability by fixing defer block execution in cancelled operations
- Better state management prevents new preview requests from being blocked by stale state from previous operations
📝 Notes
- Music controls feature supports Apple Music and Spotify only due to Apple's restrictions on the MRMediaRemote private API (locked down in macOS 15.4)