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 744464 - No results screen for Search
No results screen for Search
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
3.15.x
Other Linux
: Normal enhancement
: 3.18
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks:
 
 
Reported: 2015-02-13 12:17 UTC by Vadim Rutkovsky
Modified: 2015-07-13 13:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adding a view for searches with no result (4.42 KB, patch)
2015-06-19 14:12 UTC, Hapoofesgeli
none Details | Review
Adding a view for searches with no result (6.27 KB, patch)
2015-06-20 04:16 UTC, Hapoofesgeli
none Details | Review
Adding a view for searches with no result (6.73 KB, patch)
2015-06-22 18:13 UTC, Hapoofesgeli
committed Details | Review
Fixing some bugs related to the EmptySearch view (3.71 KB, patch)
2015-07-06 13:36 UTC, Hapoofesgeli
committed Details | Review
Fixing wrong showing ups of the EmptySearch view in external sources (1020 bytes, patch)
2015-07-09 18:05 UTC, Hapoofesgeli
committed Details | Review

Description Vadim Rutkovsky 2015-02-13 12:17:25 UTC
We should make a new view for search when no results found
Comment 1 Allan Day 2015-04-21 16:58:37 UTC
This could reuse visuals from the "empty states" designs: https://wiki.gnome.org/Design/OS/EmptyStates

Just change the text:

"No music found"
"Try a different search"
Comment 2 Hapoofesgeli 2015-06-19 14:12:52 UTC
Created attachment 305699 [details] [review]
Adding a view for searches with no result

Added a new view which uses the NoMusic.ui with a different text as Allan proposed.
Comment 3 Allan Day 2015-06-19 14:23:21 UTC
I've just tried the patch, and it looks great from a UI point of view. :)
Comment 4 Allan Day 2015-06-19 14:26:28 UTC
Oh, one issue I just noticed, though: if you cancel a search (by pressing escape or the search button), the search view should disappear, and the previous view should be reinstated. This doesn't seem to happen with the "no search results" screen.
Comment 5 Hapoofesgeli 2015-06-19 16:08:26 UTC
I see, also clicking on the selection mode makes it crash since there is no player object in the view, and there are probably more problems that I've missed...
I'll continue working on this, see where I can get.
Comment 6 Hapoofesgeli 2015-06-20 04:16:03 UTC
Created attachment 305734 [details] [review]
Adding a view for searches with no result

Fixed the mentioned issues and used signals instead of throwing codes around.
Though right now selection mode can get activated even when no search results are found, is this the expected behavior or the button should not be sensitive while no results are found?
Comment 7 Vadim Rutkovsky 2015-06-22 09:26:36 UTC
(In reply to Hapoofesgeli from comment #6)
> Created attachment 305734 [details] [review] [review]
> Adding a view for searches with no result

Looks great!

> Though right now selection mode can get activated even when no search
> results are found, is this the expected behavior or the button should not be
> sensitive while no results are found?

Lets make it disabled as soon as we enter this screen.
Comment 8 Hapoofesgeli 2015-06-22 18:13:45 UTC
Created attachment 305847 [details] [review]
Adding a view for searches with no result

Added toggling the sensitivity of the selection button when dealing with EmptySearch view.
Also fixed some problems with getting back to the right view after canceling the search.
Comment 9 Vadim Rutkovsky 2015-06-23 10:56:30 UTC
Thanks, pushed https://git.gnome.org/browse/gnome-music/commit/?id=ed1059b to master
Comment 10 Allan Day 2015-06-23 11:02:15 UTC
Great, thanks Hapoofesgeli!
Comment 11 Piotr Drąg 2015-06-23 16:22:27 UTC
New string ("Try a different search") is not marked for translation.
Comment 12 Vadim Rutkovsky 2015-06-23 16:32:57 UTC
(In reply to Piotr Drąg from comment #11)
> New string ("Try a different search") is not marked for translation.

Oops, overlooked this one. Fixed in https://git.gnome.org/browse/gnome-music/commit/?id=23a6bff
Comment 13 Hapoofesgeli 2015-06-26 20:29:30 UTC
There are currently problems with different sources/filters in search and the EmptySearch view gets shown when there are actually some external results to show and this breaks the usage of search options. 

And I'm still trying fix that issue but I'm yet to find a proper way of finding out how many search results we actually get at the end, and in the way the "All" source shows up some weird behaviors which create some other problems...

Also there are some other small issues but they are not too hard to fix.
Comment 14 Hapoofesgeli 2015-07-06 13:36:40 UTC
Created attachment 306923 [details] [review]
Fixing some bugs related to the EmptySearch view

*Disabling the view for multiple-source searches till I get more info on Bug 751890, with this patch the view will work for local and Jamendo searches and later on Magnatune if the bug gets fixed. After that I'll fix it for searches with multiple sources too.

*Fixed the wrong showing up of the view when there is only one song result to show.
Comment 15 Vadim Rutkovsky 2015-07-09 11:15:38 UTC
(In reply to Hapoofesgeli from comment #14)
> Created attachment 306923 [details] [review] [review]
> Fixing some bugs related to the EmptySearch view

Pushed as https://git.gnome.org/browse/gnome-music/commit/?id=ab6d99f to master
Comment 16 Hapoofesgeli 2015-07-09 18:05:02 UTC
Created attachment 307165 [details] [review]
Fixing wrong showing ups of the EmptySearch view in external sources
Comment 17 Vadim Rutkovsky 2015-07-13 13:53:21 UTC
Review of attachment 307165 [details] [review]:

Thanks, pushed as https://git.gnome.org/browse/gnome-music/commit/?id=c878246
Comment 18 Vadim Rutkovsky 2015-07-13 13:53:42 UTC
Review of attachment 306923 [details] [review]:

.
Comment 19 Vadim Rutkovsky 2015-07-13 13:53:47 UTC
Review of attachment 305847 [details] [review]:

.