fast_playlist icon indicating copy to clipboard operation
fast_playlist copied to clipboard

Add multiple playlists

Open aniketgattani opened this issue 6 years ago • 4 comments

I would like to work on this issue and provide a PR for the same.

  1. I would like to make all variables respective to a playlist.
  2. Add multiple playlists to localStorage and keep another variable in it "no_of_playlists"
  3. I would also make a change in the UI and display name of the playlist according to its id.
  4. I would add a "Add a playlist" option and a function for the same.

aniketgattani avatar Dec 12 '17 13:12 aniketgattani

So currently in localStorage, a variable playlist is stored which is a list of snippets. You need to change it to a list of lists.

I don't think explicitly storing the no_of_playlists is necessary, but do whatever makes your implementation easy and we'll see later.

You could extend the playlist module, or maybe create a new module for playlist switching.

For the UI, I had thought a dropdown list of playlists in the top right corner, with a "plus" icon to create new playlist would be good.

Do think of a better implementation if possible. Let's discuss this feature here further before you start implementation.

udiboy1209 avatar Dec 12 '17 16:12 udiboy1209

Actually I didnt think of the no of playlists just wrote it anyway :p. For the UI I thought of the samething. Probably later I will make another PR in which the playlist name will be editable. For now I will be mainly focusing on the backend portion and will submit the PR in bits for u to check easily. Anything u want in UI is mostly welcomed coz I am not that gr8 in it :p. So should I start then with the backend part ??

aniketgattani avatar Dec 12 '17 16:12 aniketgattani

You can start in anyway you are comfortable. Keep the whole feature in a single PR, so it is easy for me to review. Although you can keep updating it as you progress and test your code, and I will be able to review every part. The point is I will not be able to merge the back-end without the front-end, because that will break the beta. So if they both are in a single PR, it will be easily mergable.

Don't hesitate to ask questions, and join the Gitter chat in case you want to ask something. 😄

udiboy1209 avatar Dec 12 '17 17:12 udiboy1209

@udiboy1209 can u please help me in the gitter chat. I have asked some doubts there :)

aniketgattani avatar Dec 15 '17 05:12 aniketgattani