···1111import Debouncer.Basic as Debouncer
1212import Dict
1313import Equalizer
1414+import InfiniteList
1415import Keyboard
1516import LastFm
1617import Maybe.Extra as Maybe
···1819import Playlists.Encoding as Playlists
1920import Queue
2021import Return
2121-import Return3
2222import Sources
2323import Sources.Encoding as Sources
2424import Task
···4949import UI.Sources.ContextMenu as Sources
5050import UI.Sources.Form
5151import UI.Sources.State as Sources
5252-import UI.Tracks as Tracks
5352import UI.Tracks.ContextMenu as Tracks
5453import UI.Tracks.State as Tracks
5454+import UI.Tracks.Types as Tracks
5555import UI.Types as UI exposing (..)
5656import UI.User.State.Export as User
5757import UI.User.State.Import as User
···160160 , newPlaylistContext = Nothing
161161 , playlists = []
162162 , playlistToActivate = Nothing
163163+ , selectedPlaylist = Nothing
163164164165 -----------------------------------------
165166 -- Queue
···184185 , sourceForm = UI.Sources.Form.initialModel
185186186187 -----------------------------------------
187187- -- 🦉 Nested
188188+ -- Tracks
188189 -----------------------------------------
189189- , authentication = Authentication.initialModel url
190190+ , cachedTracks = []
191191+ , cachedTracksOnly = False
192192+ , cachingTracksInProgress = []
193193+ , favourites = []
194194+ , favouritesOnly = False
195195+ , grouping = Nothing
196196+ , hideDuplicates = False
197197+ , scene = Tracks.List
198198+ , searchResults = Nothing
199199+ , searchTerm = Nothing
200200+ , selectedTrackIndexes = []
201201+ , sortBy = Tracks.Artist
202202+ , sortDirection = Tracks.Asc
203203+ , tracks = Tracks.emptyCollection
204204+205205+ -- List scene
206206+ -------------
207207+ , infiniteList = InfiniteList.init
190208191209 -----------------------------------------
192192- -- Children (TODO)
210210+ -- 🦉 Nested
193211 -----------------------------------------
194194- , tracks = Tracks.initialModel
212212+ , authentication = Authentication.initialModel url
195213 }
196214 |> Routing.transition page
197215 |> Return.command
···338356 Interface.stoppedDragging
339357340358 UI.ToggleLoadingScreen a ->
341341- Interface.toggleLoadingScreen a
359359+ Common.toggleLoadingScreen a
342360343361 -----------------------------------------
344362 -- Playlists
···358376 DeletePlaylist a ->
359377 Playlists.delete a
360378379379+ DeselectPlaylist ->
380380+ Playlists.deselect
381381+361382 ModifyPlaylist ->
362383 Playlists.modify
384384+385385+ MoveTrackInSelectedPlaylist a ->
386386+ Playlists.moveTrackInSelectedPlaylist a
387387+388388+ SelectPlaylist a ->
389389+ Playlists.select a
363390364391 SetPlaylistCreationContext a ->
365392 Playlists.setCreationContext a
···442469 SourcesMsg a ->
443470 Sources.update a
444471472472+ TracksMsg a ->
473473+ Tracks.update a
474474+445475 -----------------------------------------
446476 -- 📭 Other
447477 -----------------------------------------
···450480451481 SetIsOnline a ->
452482 Other.setIsOnline a
453453-454454- -----------------------------------------
455455- -- Children (TODO)
456456- -----------------------------------------
457457- TracksMsg sub ->
458458- \model ->
459459- Return3.wieldNested
460460- Reply.translate
461461- { mapCmd = TracksMsg
462462- , mapModel = \child -> { model | tracks = child }
463463- , update = Tracks.update
464464- }
465465- { model = model.tracks
466466- , msg = sub
467467- }
468483469484470485
+1-1
src/Applications/UI/Alien.elm
···66import Notifications
77import UI.Authentication.Types as Authentication
88import UI.Sources.Types as Sources
99-import UI.Tracks as Tracks
99+import UI.Tracks.Types as Tracks
1010import UI.Types exposing (..)
1111import User.Layer exposing (..)
1212
+1-1
src/Applications/UI/Audio/State.elm
···5454setDuration duration model =
5555 let
5656 cmd =
5757- case model.tracks.nowPlaying of
5757+ case Maybe.map .identifiedTrack model.nowPlaying of
5858 Just ( _, track ) ->
5959 LastFm.nowPlaying model.lastFm
6060 { duration = round duration