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 762491 - PlaceBubble needs small design fixups
PlaceBubble needs small design fixups
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2016-02-22 21:15 UTC by Hashem Nasarat
Modified: 2017-06-22 10:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PlaceBubble: Add tooltip-text to edit button (1.02 KB, patch)
2016-02-22 21:15 UTC, Hashem Nasarat
none Details | Review
PlaceBubble: Show website url instead of "website" (840 bytes, patch)
2016-02-22 21:15 UTC, Hashem Nasarat
none Details | Review
PlaceBubble: Add tooltip-text to edit button (1.03 KB, patch)
2016-02-23 18:25 UTC, Hashem Nasarat
committed Details | Review
PlaceBubble: Show website url instead of "website" (1.19 KB, patch)
2016-02-23 18:25 UTC, Hashem Nasarat
reviewed Details | Review
PlaceBubble: Use the title as a hyperlink (2.08 KB, patch)
2017-05-30 23:13 UTC, Robert Ancell
committed Details | Review
Screenshot showing place title as link (297.13 KB, image/png)
2017-05-30 23:14 UTC, Robert Ancell
  Details

Description Hashem Nasarat 2016-02-22 21:15:32 UTC
See patch. After image: http://i.imgur.com/Srlrpx6.jpg
Comment 1 Hashem Nasarat 2016-02-22 21:15:36 UTC
Created attachment 321897 [details] [review]
PlaceBubble: Add tooltip-text to edit button

All the other buttons in the popover have tooltip-text.
Comment 2 Hashem Nasarat 2016-02-22 21:15:42 UTC
Created attachment 321898 [details] [review]
PlaceBubble: Show website url instead of "website"

Showing the actual url provides useful information.
Comment 3 Jonas Danielsson 2016-02-23 11:23:11 UTC
Review of attachment 321897 [details] [review]:

Thanks!

::: data/ui/place-bubble.ui
@@ +46,3 @@
                         <property name="valign">GTK_ALIGN_START</property>
                         <property name="halign">GTK_ALIGN_CENTER</property>
+                        <property name="tooltip-text" translatable="yes">Edit information</property>

I think this should be "Edit on OpenStreetMap" since that is the title of the osm-edit-dialog, and maybe we don't have to announce the string then? If we want to add this in 3.20?
Comment 4 Jonas Danielsson 2016-02-23 11:24:16 UTC
Review of attachment 321898 [details] [review]:

Thanks!

This is a free-text input from OSM right? Do we need to take some pre-cautions? Should we ellipsize if it is too long?
Comment 5 Hashem Nasarat 2016-02-23 18:25:55 UTC
Created attachment 322157 [details] [review]
PlaceBubble: Add tooltip-text to edit button

All the other buttons in the popover have tooltip-text.
Comment 6 Hashem Nasarat 2016-02-23 18:25:59 UTC
Created attachment 322158 [details] [review]
PlaceBubble: Show website url instead of "website"

Showing the actual url provides useful information.
Comment 7 Hashem Nasarat 2016-02-23 18:31:42 UTC
Screenshot of a long url
http://i.imgur.com/RvkCkFp.png
Comment 8 Jonas Danielsson 2016-02-24 08:58:55 UTC
Review of attachment 322157 [details] [review]:

Thanks!
Comment 9 Jonas Danielsson 2016-02-24 08:59:24 UTC
Review of attachment 322158 [details] [review]:

Thanks!

Code looks fine.
Andreas what do you think of this?
Comment 10 Hashem Nasarat 2016-02-24 20:30:37 UTC
Before: http://i.imgur.com/pZsA9Vl.png
After: http://i.imgur.com/M9zS2xF.png
Comment 11 Andreas Nilsson 2016-02-25 09:53:43 UTC
My first reaction was that the alignment of the labels are all off, but that's probably another bug.

Since it's the only entry without a label to it, it looks slightly out of place.
I think something like "Website: https://www.gnome.org"

Another thing to consider would be to drop the protocol part of the address, and make it just "Website: www.gnome.org"

How are very long addresses, such as http://www.thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com/ handled? Will it expand the width of the bubble, or truncate at some point?
Comment 12 Robert Ancell 2017-05-30 23:13:06 UTC
Created attachment 352905 [details] [review]
PlaceBubble: Use the title as a hyperlink

I thought the website link was unnecessarily hidden, so I tried using the place title as a hyperlink.
Comment 13 Robert Ancell 2017-05-30 23:14:12 UTC
Created attachment 352906 [details]
Screenshot showing place title as link
Comment 14 Marcus Lundblad 2017-06-01 08:30:16 UTC
(In reply to Robert Ancell from comment #13)
> Created attachment 352906 [details]
> Screenshot showing place title as link

I think it looks pretty nice! I would wait for some additional (design) opinion before proceeding though!
Comment 15 Andreas Nilsson 2017-06-01 09:59:16 UTC
Placing it in the header indeed does it more visible, but it still has the issue, just like the "Website" label does, it won't tell you where you'll end up if you click the url. So I like Hashem's approach a bit better.

Both Google Maps and Apple Maps will show you the domain name in their UIs.

Google Maps: https://www.thurrott.com/wp-content/uploads/2017/02/paris-hero-1024x576.jpg
Apple Maps: http://media.idownloadblog.com/wp-content/uploads/2015/06/Google-Maps-desktop-send-to-mobile-device.png
Comment 16 Robert Ancell 2017-06-01 10:08:57 UTC
Does that matter if you don't know the full address? Most hyperlinks in websites don't show you where they go unless you look at the bottom of the browser. The link will be shown in the browser once you follow the link.
Comment 17 Andreas Nilsson 2017-06-11 16:35:14 UTC
> I thought the website link was unnecessarily hidden, so I tried using the place title as a hyperlink.

I've been thinking more about this, and I feel more and more that hiding the web link by default is the root of the problem here. It's a very popular tag in the OSM database, and it deserves to be seen.

Then comes the question of how to handle that, what to hide instead.
In my opinion, the postal address, and the opening hours of other days than the current are good candidates for that.

https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/maps/popup-bubble.png

This requires Maps to know what time it currently is. I've filed bug #783664 about that.
Comment 18 Robert Ancell 2017-06-14 04:02:27 UTC
I'll keep trying :)

The point of a hyperlink is to hide the mechanism (the URL) behind the context (i.e. the POI name). By making a separate element for the link we're exposing this gory detail and losing some of the context. If you abbreviate the URL, then it gets misleading as the link is *almost* the same as what you read (see below for an example of where this is bad). IMHO using a web address as the text of a hyperlink is a bad design anti-pattern.

I would suggest the primary method of getting more information about a POI is to visit the website. By putting the link in the title it's very fast to click on a POI and click to the website.

Every line makes the popup into a wall of text, and using the title as a hyperlink solves this. (The Google design is hard to read to me).

There are lots of lousy websites out there, you get things like:
- http://www.generic-site.com/name-of-place. If you abbreviate this like Google has you won't differentiate between "name-of-place" and "name-of-other-place".
- http://www.wereallydontknow.how/tothinkof/a/memorableaddresssowechosesomethingoverlylong.html - This will either truncate badly or make the popup really wide.

If we're worried about security of the link (you don't know what you get to until you click on it) then we're more paranoid than the browser developers. Most of the web is made up of links like this. With a mouse you can hover for more information on the link (we can do this too) but in a touch display you never know until you click on it. I think if it's safe for the web then it's safe for us.
Comment 19 Andreas Nilsson 2017-06-19 17:56:09 UTC
(In reply to Robert Ancell from comment #18)
> I'll keep trying :)
> I would suggest the primary method of getting more information about a POI
> is to visit the website. By putting the link in the title it's very fast to
> click on a POI and click to the website.
> 
> Every line makes the popup into a wall of text, and using the title as a
> hyperlink solves this. (The Google design is hard to read to me).

These are good arguments. While I'm worried about the discoverability of this, it's easy to test in a usability test (I want to conduct one on a general redesign of the bubbles matching the mockup above, so we can test that then).

So yeah, let's get this one in.
Comment 20 Robert Ancell 2017-06-22 00:27:57 UTC
So to confirm, Andreas and Marcus you're both OK to commit my patch as-is?
Comment 21 Andreas Nilsson 2017-06-22 09:04:00 UTC
(In reply to Robert Ancell from comment #20)
> So to confirm, Andreas and Marcus you're both OK to commit my patch as-is?

Yes.
Comment 22 Marcus Lundblad 2017-06-22 10:33:48 UTC
Review of attachment 352905 [details] [review]:

LGTM
Comment 23 Marcus Lundblad 2017-06-22 10:37:28 UTC
Attachment 322157 [details] pushed as 5a3f284 - PlaceBubble: Add tooltip-text to edit button
Attachment 352905 [details] pushed as 120c3b4 - PlaceBubble: Use the title as a hyperlink