Merge lp:~vthompson/music-app/remix-fix-1390252 into lp:music-app/remix

Proposed by Victor Thompson
Status: Merged
Approved by: Andrew Hayzen
Approved revision: 733
Merged at revision: 744
Proposed branch: lp:~vthompson/music-app/remix-fix-1390252
Merge into: lp:music-app/remix
Diff against target: 35 lines (+2/-6)
1 file modified
MusicNowPlaying.qml (+2/-6)
To merge this branch: bzr merge lp:~vthompson/music-app/remix-fix-1390252
Reviewer Review Type Date Requested Status
Andrew Hayzen Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Victor Thompson Needs Information
Review via email: mp+241159@code.launchpad.net

Commit message

* Only add currently playing item to the playlist from queue
* Show 'Add to playlist' and 'Clear queue' in Now Playing view
* Change toggle action to switch between 'Now playing' and 'Queue' to be the swap icon.

Description of the change

* Only add currently playing item to the playlist from queue
* Show 'Add to playlist' and 'Clear queue' in Now Playing view
* Change toggle action to switch between 'Now playing' and 'Queue' to be the swap icon.

This change has design approval

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
730. By Victor Thompson

Add changes per design direction

731. By Victor Thompson

merge of trunk

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

I'd like input on the Design decision we received today.

Now Playing: http://i.imgur.com/cAzkPzo.png
Queue: http://i.imgur.com/kWT2NtE.png

I think the Now Playing header actions of "toggle to queue" and "add to playlist" are far too similar. I want to once again push to recommend that we add "Clear queue" to the actions in the Now Playing view. I want to reiterate that I think the header actions should be the same in each view, since they both present the same data.

review: Needs Information
732. By Victor Thompson

Use swap icon for toggle and add 'Clear queue' action to Now Playing.

733. By Victor Thompson

merge of trunk

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Looks much better than before :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'MusicNowPlaying.qml'
2--- MusicNowPlaying.qml 2014-11-15 22:21:53 +0000
3+++ MusicNowPlaying.qml 2014-11-16 22:07:15 +0000
4@@ -78,7 +78,7 @@
5 actions: [
6 Action {
7 objectName: "toggleView"
8- iconName: "media-playlist"
9+ iconName: "swap"
10 onTriggered: {
11 isListView = !isListView
12 }
13@@ -87,13 +87,10 @@
14 enabled: trackQueue.model.count > 0
15 iconName: "add-to-playlist"
16 text: i18n.tr("Add to playlist")
17- visible: isListView
18 onTriggered: {
19 var items = []
20
21- for (var i=0; i < trackQueue.model.count; i++) {
22- items.push(makeDict(trackQueue.model.get(i)));
23- }
24+ items.push(makeDict(trackQueue.model.get(player.currentIndex)));
25
26 var comp = Qt.createComponent("MusicaddtoPlaylist.qml")
27 var addToPlaylist = comp.createObject(mainPageStack, {"chosenElements": items});
28@@ -110,7 +107,6 @@
29 iconName: "delete"
30 objectName: "clearQueue"
31 text: i18n.tr("Clear queue")
32- visible: isListView
33 onTriggered: {
34 pageStack.pop()
35 trackQueue.clear()

Subscribers

People subscribed via source and target branches