ufosc / Jukebox-Frontend

Front end application for the Jukebox project.
GNU General Public License v3.0
10 stars 27 forks source link

Jukebox Redux Store #117

Open IkeHunter opened 3 weeks ago

IkeHunter commented 3 weeks ago

Info

A "Jukebox" is an object that stores information related to the track queue, the current device, etc. Currently, the jukebox store just stores all available jukeboxes for the user. Ideally, the store should also include the currently selected jukebox, and access to the currently active spotify account. It should also be able to set the active jukebox, and set the active spotify account for that jukebox.

Tasks

Active Jukebox

//...
initialState: {
  //...
  currentJukebox: null as IJukebox | null
}
//...

For now, the user can have a different "current" jukebox for separate devices.

Jukebox Link

Note: A jukeboxLink is an object that attaches a spotify account to a jukebox, and allows a user to connect one spotify account to multiple jukeboxes (but only one can control playback at a time)

Integration & Spotify Connection

IkeHunter commented 3 weeks ago

@JonathanHooth There's a lot to this issue, but it should be a bit more straight forward than the tracks store issue. Thought you might prefer this one over that one.

IkeHunter commented 2 weeks ago

Changed "active" terminology to "current" to align with implementation for clubs and tracks.