Skip to content

Playlist Sorting#392

Merged
Insprill merged 17 commits intojpochyla:masterfrom
JonVaysman:master
Apr 22, 2023
Merged

Playlist Sorting#392
Insprill merged 17 commits intojpochyla:masterfrom
JonVaysman:master

Conversation

@JonVaysman
Copy link
Copy Markdown
Contributor

@JonVaysman JonVaysman commented Apr 21, 2023

Resolves #372

I implemented the feature as described, adding an arrow that indicates descending or ascending order. You can also right click the arrow to select different sorting criteria. It defaults to date added and ascending order, which is the default order of both Spotify and Psst. I implemented the sorting criteria in Spotify, plus sorting by artist name. Sort preferences persist across playlists and across boots of the application.

image

image

image

A potential improvement would be to manipulate the underlying data structure of a playlist to sort the tracks, rather than just refreshing the playlist and sorting the tracks at the time they are fetched, which is what this does.

Implemented in collaboration with @podojilr

JonVaysman and others added 17 commits April 5, 2023 14:39
Added a dropdown icon in mod.rs. Identical to back button for now.
Added a dropdown icon in icons.rs. Modified the back button SVG.
Co-authored-by: podojilr <podojilr@users.noreply.github.com>
viewing playlist detail

Removed ascending and descending choice in menu.
Will implement icon inversion to indicate direction

Implemented context menu for multiple sorts.
Default sort will be by date added.
Ensured sort button appears on first boot of application.
dependent on what the previous viewstate was.
playlist sorting preferences.
Currently designed so that all playlists are sorted in the same manner.
Made sorting order persistent between runs.
Began implementation of Title sort.
Need  to figure out how to pass preferences to
playlist.rs, or sort elsewhere.
@JonVaysman JonVaysman closed this Apr 21, 2023
@JonVaysman JonVaysman reopened this Apr 21, 2023
Copy link
Copy Markdown
Collaborator

@Insprill Insprill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! Sorting the playlist locally would be better, but this works fine for now. LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playlist sorting

2 participants