mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 17:35:50 +03:00
[PR #54] [MERGED] Action on item improvements #1546
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1546
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aome510/spotify-player/pull/54
Author: @aome510
Created: 6/12/2022
Status: ✅ Merged
Merged: 6/12/2022
Merged by: @aome510
Base:
master← Head:item-action-improvements📝 Commits (10+)
2b1bfe6force re-fetching the context page afterPreviousPagecommandca0afb5rewrite "action-on-item" code to be more item specific392dba9addClientRequest::GetUserSavedTracksand its handler7797115handle add/remove to liked track actions on a track8ebd651update user data in state directly after handlingClientRequest::SaveToLibrarye0e34b7addClientRequest::DeleteFromLibraryand its handler45b4e66handle delete from library actions on itembbfb105implement auto-indexing [1] for list window in library page71e19afremoveRemoveFromCurrentPlaylisttrack action37d1c08add more comments inclient/mod.rs📊 Changes
13 files changed (+440 additions, -174 deletions)
View changed files
📝
spotify_player/src/client/mod.rs(+84 -2)📝
spotify_player/src/command.rs(+25 -5)📝
spotify_player/src/event/mod.rs(+31 -6)📝
spotify_player/src/event/page.rs(+8 -4)📝
spotify_player/src/event/popup.rs(+98 -82)📝
spotify_player/src/event/window.rs(+86 -7)📝
spotify_player/src/main.rs(+1 -2)📝
spotify_player/src/state/data.rs(+3 -0)📝
spotify_player/src/state/model.rs(+8 -35)📝
spotify_player/src/state/ui/popup.rs(+48 -3)📝
spotify_player/src/ui/mod.rs(+21 -17)📝
spotify_player/src/ui/page.rs(+22 -3)📝
spotify_player/src/ui/popup.rs(+5 -8)📄 Description
Changes
Actionstruct in favour of more specific item-based structs, suchTrackAction,AlbumAction, etcClientRequest::{GetUserSavedTracks, RemoveFromLibrary}, renameClientRequest::SaveToLibrarytoClientRequest::AddToLibrary🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.