mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #13] [MERGED] Add show actions on item #1513
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#1513
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/13
Author: @aome510
Created: 10/10/2021
Status: ✅ Merged
Merged: 10/11/2021
Merged by: @aome510
Base:
master← Head:add-show-actions-on-item📝 Commits (10+)
0c06435remove browse selected track's artist/album commandsb8d66daaddActionListpopup state16bffb2addShowActionsOnSelectedItemandevent/item.rsfor handling commands on items6e13e4daddtodo!()forPopupState::ActionListand reduce the refresh075f901addcommand::Actionrepresents an action on an item5d42100refactor the list popup rendering codes and add rendering logic forActionListpopupe168291handleShowActionsOnSelectedItemcommand for album,playlist,artist6bda474fix clippy large enum variant error3a4addcmove the action list event handler to a separate helper functionfabf255addShowActionsOnSelectedItemtoREADME📊 Changes
12 files changed (+615 additions, -354 deletions)
View changed files
📝
README.md(+38 -39)📝
spotify_player/src/client.rs(+109 -35)📝
spotify_player/src/command.rs(+12 -7)📝
spotify_player/src/config/keymap.rs(+8 -16)📝
spotify_player/src/event/mod.rs(+11 -3)📝
spotify_player/src/event/popup.rs(+164 -18)📝
spotify_player/src/event/window.rs(+88 -101)📝
spotify_player/src/main.rs(+24 -5)📝
spotify_player/src/state/player.rs(+57 -4)📝
spotify_player/src/state/ui.rs(+13 -3)📝
spotify_player/src/token.rs(+5 -1)📝
spotify_player/src/ui/popup.rs(+86 -122)📄 Description
Brief description of changes
ShowActionsOnSelectedItemto show a popup containing of possible actions to act on a Spotify item (Track, Album, Artist, Album, Playlist)command::Actionto represent an action to act on a Spotify item.playlist::SimplifiedPlaylistwithstate::PlaylistBrowseSelectedTrack(Album|Artist)commands.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.