mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[PR #234] [CLOSED] Implement UI for creating new playlists #1619
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#1619
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/234
Author: @nuugen
Created: 8/13/2023
Status: ❌ Closed
Base:
master← Head:create-playlist-ui📝 Commits (1)
77c08d0Implement UI for creating new playlists📊 Changes
9 files changed (+252 additions, -37 deletions)
View changed files
📝
spotify_player/src/cli/client.rs(+14 -31)📝
spotify_player/src/client/mod.rs(+49 -0)📝
spotify_player/src/command.rs(+4 -0)📝
spotify_player/src/config/keymap.rs(+4 -0)📝
spotify_player/src/event/mod.rs(+6 -0)📝
spotify_player/src/event/popup.rs(+103 -1)📝
spotify_player/src/event/window.rs(+7 -0)📝
spotify_player/src/state/ui/popup.rs(+28 -5)📝
spotify_player/src/ui/popup.rs(+37 -0)📄 Description
This attempts to implement a rudimentary UI flow for creating a new playlist.
Resolves #87.
Usage:
While focused on the playlist window, pressing
Nwill show a pop-up prompting user to enter the name and the description of the new playlist to be created. PressingTabhere will switch focus between the two fields.Limitation:
For simplicity, the
publicandcollabstatuses will be omitted.TheThis seems to be a misobservation.descfield looks to be broken upstream inrspotify- the new playlist does not seem to have this informatino attached. Both of these limitations are also observed in the CLI implementation (#222).I'm also relatively new to Rust, so I mainly focused on submitting a purely functioning implementation, without much regard to the DRYness of code - once there are more instances of the pop-up with input prompt (similar to both
SearchandPlaylistCreatehere), it should be abstracted.Suggestions and critics are of course more than welcome and would help me a lot getting started in my Rust journey.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.