Add pagination to extension selection screen - #3
Open
eder-dalpizzol wants to merge 1 commit into
Open
Conversation
- Implement 16-item pagination (8 rows × 2 columns) - Add persistent state management across pages - Add Select All / Clear All quick actions - Improve layout with two-column checkbox display This enhancement addresses usability issues when playlists contain many different file extensions (20+). The previous single-screen approach became unwieldy with large extension lists. Key improvements: - Pagination system with navigation buttons - ext_selected_state table preserves selections across pages - Quick action buttons for bulk selection/deselection - Updated run_remove_by_extension_paged() collects selections from all pages - save_checkbox_state() captures checkbox states before page transitions
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.
Enhancement: Paginated Extension Selection with Persistent State
Summary
Adds pagination to extension selection screen to handle playlists with many file types, implements persistent checkbox state across page navigation, and adds quick-action buttons for improved usability.
Motivation
When playlists contain many different file extensions (20+), the previous single-screen dropdown approach became unwieldy. This enhancement provides a scalable solution that maintains usability regardless of extension count.
Changes
ext_selected_statetable preserves selections across pagesrun_remove_by_extension_paged()collects selections from all pagesTechnical Details
save_checkbox_state(): Captures checkbox states before page transitionsadd_check_box()andadd_list(): New widget helper functionstrigger_menu(): Handles double-click events on checkboxesTesting
Tested with playlists containing 5-50+ different file extensions across multiple pages.