Repository navigation
feat(gui): filter playlists in Your Library - #907
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
LargeModGames
left a comment
There was a problem hiding this comment.
The issue's "no Rust change" line is my mistake: I wrote it before the GUI i18n catalog landed. Your first commit was right, so please revert 0fbabe0 to bring back filter_your_library and no_library_matches. Right now zh users get an English empty state and aria-label. I'll ignore CodeRabbit's scope check here.
This reverts commit 0fbabe0.
Signed-off-by: Nico <[email protected]>
|
Thanks for clarifying! I've reverted 0fbabe0, restoring |
Summary
Fixes #842.
This adds a filter box below the Your Library chips so you can find a playlist without scrolling through the whole list. It works across all sources, ignores case, and matches search words in any order.
Matching playlists inside closed Spotify folders appear without folder rows or indentation. Clearing the search brings back the folder view with the same folders open as before. Liked Songs, Recently played, and Library health are filtered by their displayed titles too. When nothing matches, the panel shows a short message.
Screenshots
Before
After
Searching for “film” finds “Film scores” inside a closed folder and shows it without indentation.
Testing
I ran the following checks locally:
npm cinpm run lintnpm run format:checknpm run typechecknpm test— 533 tests passednpm run buildnpx playwright test --project=chromium -g "library f"— both scenes passed, including checks that clearing the filter preserves open and closed foldersThe browser checks used Chromium with the fake bridge. I haven't tested this with a live Spotify session.
I used the existing translation system for the two new messages and included the updated generated files.
Summary by CodeRabbit