After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772090 - [playlist dialog] improve interaction
[playlist dialog] improve interaction
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks:
 
 
Reported: 2016-09-27 23:25 UTC by Marinus Schraal
Modified: 2017-12-11 20:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
playlistdialog,query,playlistview: Improved Inte... (2.91 KB, patch)
2016-12-15 18:37 UTC, Sambhav Kothari
needs-work Details | Review
Arrrange playlist in decreasing order of creation (848 bytes, patch)
2017-10-30 15:38 UTC, svensevenslow
none Details | Review
Playlist dialog waits for user input on new playlist creation (1.09 KB, patch)
2017-10-30 15:43 UTC, svensevenslow
none Details | Review
Arrrange playlist in decreasing order of creation (1.69 KB, patch)
2017-10-30 17:09 UTC, svensevenslow
none Details | Review
Implement playlist ordering (1.98 KB, patch)
2017-11-03 19:00 UTC, svensevenslow
none Details | Review
Implement playlist ordering (1.94 KB, patch)
2017-11-04 06:25 UTC, svensevenslow
committed Details | Review

Description Marinus Schraal 2016-09-27 23:25:58 UTC
With the recent changes to the playlist dialog, we disregarded some interaction suggestions as seen here: https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/music/wire-add-to-playlist-dialog.png

Please improve the current code base with these interaction fixes.
Comment 1 Sambhav Kothari 2016-12-15 18:37:10 UTC
Created attachment 342037 [details] [review]
playlistdialog,query,playlistview: Improved Inte...

...raction with playlists. Playlists are now shown in decreasing order
of creation.

Playlist dialog box is now not dismissed automatically on new playlist
creation and waits for user input.
Comment 2 Sambhav Kothari 2016-12-15 18:37:57 UTC
I can amend the changes in playlist ordering as needed on the basis of reviews.
Comment 3 Marinus Schraal 2017-02-13 21:56:11 UTC
Review of attachment 342037 [details] [review]:

Apologies for the delayed review.

This looks alright, although there have been changes that it needs adapting to: it doesn't apply cleanly anymore and it needs adapting to some recent changes.

One thing I would also like to ask is to make it 2 patches, one for each of the issues fixed. They can be the same bug still, but are different issues.

::: gnomemusic/query.py
@@ +255,3 @@
+    ORDER BY
+        DESC(tracker:added(?playlist))
+        !BOUND(?tag) LCASE(?title)

In this case I don't mind it being on one line.

If you would separate it by line you should do a line for all distinct statements (so that's 3), but nvm that and go for 1 line.

I'm not quite sure the order is correct.. maybe !BOUND(?tag) still should be first, but should look into that to be sure.

::: gnomemusic/widgets/playlistdialog.py
@@ -173,3 @@
-            self.view.row_activated(self.model.get_path(new_iter),
-                                    self.view.get_columns()[0])
-            self.dialog_box.response(Gtk.ResponseType.ACCEPT)

This removal doesn't jive with the empty state dialog now implemented, because it will make it stay around and the 'create' button there sort of does seemingly nothing. So it's gonna need a special case or even just switch to the normal state and select the newly created playlist.
Comment 4 svensevenslow 2017-10-30 15:38:58 UTC
Created attachment 362553 [details] [review]
Arrrange playlist in decreasing order of creation
Comment 5 svensevenslow 2017-10-30 15:43:17 UTC
Created attachment 362554 [details] [review]
Playlist dialog waits for user input on new playlist creation
Comment 6 svensevenslow 2017-10-30 15:50:48 UTC
I can make improvements if any required on the basis of the review
Comment 7 svensevenslow 2017-10-30 17:09:11 UTC
Created attachment 362566 [details] [review]
Arrrange playlist in decreasing order of creation

Sorry for the mistake.This is the patch for arranging playlists in decreasing order of creation
Comment 8 Marinus Schraal 2017-11-02 09:43:29 UTC
Review of attachment 362566 [details] [review]:

lgtm

Needs a proper commit message however: see https://wiki.gnome.org/Git/CommitMessages and the commit messages in music for style.
Comment 9 svensevenslow 2017-11-03 19:00:38 UTC
Created attachment 362929 [details] [review]
Implement playlist ordering
Comment 10 Marinus Schraal 2017-11-03 23:33:55 UTC
Review of attachment 362929 [details] [review]:

I think the commit message lacks clarity, keep it short and to the point:

'Playlist are now displayed in order of creation (newest first) in the playlist dialog and view, where applicable, following the design document.'

Or something along those lines.
Comment 11 svensevenslow 2017-11-04 06:25:50 UTC
Created attachment 362952 [details] [review]
Implement playlist ordering
Comment 12 Marinus Schraal 2017-12-11 20:43:33 UTC
Review of attachment 362952 [details] [review]:

lgtm, thanks for your patience :)
Comment 13 Marinus Schraal 2017-12-11 20:43:34 UTC
Review of attachment 362952 [details] [review]:

lgtm, thanks for your patience :)