fix(library) - Audio Library Issues - #1078
Merged
RadicalMuffinMan merged 3 commits intoAug 7, 2026
Merged
Conversation
…uerying - Optimize library browse viewmodel with server-side nameLessThan offset lookup for 15ms letter indexing. - Prevent UI thread thrashing by suppressing notifyListeners during batch page loads. - Replace endOfFrame listener with scheduleFrame post-frame completer callback in library browse screen. - Hide alphabet jump bar on Songs browse view while keeping it active for Albums and Artists. - Export TrackTile widget for reusable track list rendering.
…y-load-search-safeguards # Conflicts: # lib/data/viewmodels/library_browse_view_model.dart # lib/ui/screens/browse/library_browse_screen.dart
…er jump with main.
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.
Pull Request
Summary
This is similar to #1075 but specifically targets Audio libraries. As noticed during testing, these libraries were jamming up the UI (especially the Songs tab) with way too many requests. This PR optimizes library browse pagination and alphabet letter jump performance for audio libraries.
Specifically it implements nameLessThan offset lookups (15ms total query time) for letter jump indexing, eliminates UI thread thrashing by suppressing intermediate notifyListeners() calls during batch page loads, and replaces deadlocking post-frame listeners with explicit frame scheduling completer callbacks.
The outcome is: for artists and albums, both letter jump and search are fully functional and responsive. For songs libraries, however, search works great but the letter jump is not really amenable here and so this PR hides the alphabet picker bar instead of having it be visible but broken.
Related Issues
Link related issues or tickets separated by commas.
Type of Change
Changes Made
List the key changes included in this PR.
Platform
Testing
Describe how this change was tested.
Test Steps
Screenshots (if applicable)
Include screenshots or recordings for UI changes.
Checklist