feat(player): add now playing lyrics view and polish synced lyric presentation - #267
Open
yeonfish6040 wants to merge 109 commits into
Open
feat(player): add now playing lyrics view and polish synced lyric presentation#267yeonfish6040 wants to merge 109 commits into
yeonfish6040 wants to merge 109 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a new full-screen "Now Playing" lyrics surface with album art and transport controls, refactors SyncedLyricsDisplayView/SyncedLineView to be reusable and visually richer, and fixes related caching/race issues in CachedAsyncImage and ImageCache.
Changes:
- New
NowPlayingLyricsViewpresented as an overlay fromMainWindow, triggered by tapping thePlayerBar, with a newshowNowPlayingLyricsstate onPlayerService. - Refactor of
SyncedLyricsDisplayViewto support custom scroll anchor / insets / disabled auto-scroll, and visual polish (color helpers, scale-based sizing, pre-wrapped text) inSyncedLineView. - Image caching improvements:
CachedAsyncImageno longer flashes during URL changes, andImageCachekeys memory entries by(url, targetSize).
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| Sources/Kaset/Views/NowPlayingLyricsView.swift | New full-screen now-playing surface with artwork, controls, and lyrics. |
| Sources/Kaset/Views/SyncedLyricsDisplayView.swift | Parameterized scrolling/insets and reworked line styling. |
| Sources/Kaset/Views/MainWindow.swift | Overlays NowPlayingLyricsView and disables hit testing on background. |
| Sources/Kaset/Views/PlayerBar.swift | Tap on player bar opens the now-playing view. |
| Sources/Kaset/Views/LyricsView.swift | Shows small inline spinner when refreshing already-available lyrics. |
| Sources/Kaset/Views/CachedAsyncImage.swift | Prevents flashing/race on URL changes via loadingURL guard. |
| Sources/Kaset/Utilities/ImageCache.swift | Memory cache keyed by url + target size. |
| Sources/Kaset/Services/Player/PlayerService.swift | Adds showNowPlayingLyrics state. |
| Sources/Kaset/Services/AI/FoundationModelsService.swift | Drops await on onPartial callback. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Author
Co-authored-by: Sertac Ozercan <sozercan@gmail.com>
Co-authored-by: Sertac Ozercan <sozercan@gmail.com>
Co-authored-by: Sertac Ozercan <sozercan@gmail.com> Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: Sertac Ozercan <sozercan@gmail.com>
Co-authored-by: Sertac Ozercan <sozercan@gmail.com>
Co-authored-by: Sertac Ozercan <sozercan@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
…actions group (sozercan#410) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com> Co-authored-by: Sertac Ozercan <sozercan@gmail.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
…ercan#419) Signed-off-by: Sertac Ozercan <sozercan@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Sertac Ozercan <sozercan@gmail.com>
…zercan#426) Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Sertac Ozercan <sozercan@gmail.com> Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Adds the now playing lyrics surface and refines the synced lyric presentation, artwork layout, scrolling behavior, and thumbnail handling.
AI Prompt (Optional)
🤖 AI Prompt Used
N/A - Manual implementation
AI Tool: OpenAI Codex
Type of Change
Related Issues
Changes Made
Testing
xcodebuild test -only-testing:KasetTests)Checklist
swiftlint --strict && swiftformat .Screenshots
Additional Notes