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 762892 - joinDialog: Add placeholder content when searching networks returns no result
joinDialog: Add placeholder content when searching networks returns no result
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
3.19.x
Other Linux
: Normal enhancement
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2016-02-29 20:15 UTC by Bastian Ilsø
Modified: 2017-10-28 17:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mockup of how placeholder could look like. (94.51 KB, image/png)
2016-02-29 20:15 UTC, Bastian Ilsø
  Details
placeholder: add placeholder to Add Network section (1.91 KB, patch)
2016-12-07 15:21 UTC, Augusto César
none Details | Review
placeholder: add placeholder to Add Network section (2.47 KB, patch)
2016-12-09 18:22 UTC, Augusto César
none Details | Review
placeholder: add placeholder to Add Network section (2.47 KB, patch)
2016-12-14 14:14 UTC, Augusto César
none Details | Review
placeholder: add placeholder to Add Network section (1.80 KB, patch)
2016-12-16 14:12 UTC, Augusto César
committed Details | Review

Description Bastian Ilsø 2016-02-29 20:15:40 UTC
Created attachment 322703 [details]
mockup of how placeholder could look like.

inside the "Add Network" section of Polari's join dialog we we should give some feedback when searching and no results are found.[1]

[1]: https://developer.gnome.org/hig/stable/search.html.en

See attached picture.
Comment 1 Bastian Ilsø 2016-02-29 20:16:18 UTC
Adding 'newcomers' tag. This bug should be suitable for new contributors to fix.
Comment 2 Augusto César 2016-12-07 15:21:49 UTC
Created attachment 341559 [details] [review]
placeholder: add placeholder to Add Network section

The "Add Network" section of Polari's join dialog doesn't give any feedback
when the search does not return any results.

To fix this, add a GTK label as a placeholder in the connections list
Comment 3 Bastian Ilsø 2016-12-07 22:30:37 UTC
(In reply to Augusto César from comment #2)
> Created attachment 341559 [details] [review] [review]
> placeholder: add placeholder to Add Network section
> 
> The "Add Network" section of Polari's join dialog doesn't give any feedback
> when the search does not return any results.
> 
> To fix this, add a GTK label as a placeholder in the connections list

Cool! And I think we also want an image of the looking glass so it looks like in the mockup I attached. If you want, you can try to look at how this was done in the other places we use a placeholder, fx in userList. :-)
Comment 4 Augusto César 2016-12-09 18:22:14 UTC
Created attachment 341688 [details] [review]
placeholder: add placeholder to Add Network section

The "Add Network" section of Polari's join dialog doesn't give any feedback
when the search does not return any results.

To fix this, add a GTK box with the looking glass icon and a label giving the proper feedback
as a placeholder in the connections list.
Comment 5 Bastian Ilsø 2016-12-10 13:33:53 UTC
Review of attachment 341688 [details] [review]:

I tested it and it works nicely.

The code also looks good to me except that the patch adds some unnecessary whitespace. Remove that and I think your patch is good to go. :-)
Comment 6 Augusto César 2016-12-14 14:14:10 UTC
Created attachment 341961 [details] [review]
placeholder: add placeholder to Add Network section

The "Add Network" section of Polari's join dialog doesn't give any
feedback when the search does not return any results.

To fix this, add a GTK box with the looking glass icon and a label
giving the proper feedback as a placeholder in the connections list.
Comment 7 Bastian Ilsø 2016-12-14 18:21:45 UTC
Review of attachment 341961 [details] [review]:

hi, your patch still contains whitespace errors. Try "git log -p"  and you will see that git will mark the whitespaces with red. If you try to do "git am placeholder-add-placeholder-to-Add-Network-section.patch", git will also give you some warnings. :-)
Comment 8 Augusto César 2016-12-16 14:12:29 UTC
Created attachment 342060 [details] [review]
placeholder: add placeholder to Add Network section

The "Add Network" section of Polari's join dialog doesn't give any
feedback when the search does not return any results.

To fix this, add a GTK box with the looking glass icon and a label
giving the proper feedback as a placeholder in the connections list.
Comment 9 Florian Müllner 2017-10-28 17:11:51 UTC
Sorry this fell through the cracks - the last revision looks good to me, so pushed to master.