New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 716022 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Email to this user bounced
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Handle empty titles in content suggestions

Project Member Reported by dgn@chromium.org, Apr 27 2017

Issue description

It is possible to have suggestions without title nor description (e.g. bookmarks without title synced from desktop). In that case, we currently see a card with lots of whitespace and just the attribution line (see screenshot). We should do something better.
 
bookmarks.png
214 KB View Download

Comment 1 by treib@chromium.org, Apr 27 2017

I thought we had a fallback to the URL (without path maybe?) for that case? Maybe that's just in the RemoteSuggestionsProvider?

Comment 2 by dgn@chromium.org, Apr 27 2017

The UI does not do anything special with titles, it just sets what the backend returns. And according to the bookmarks provider implementation[1] the title is just whatever the user set it to, which no fallback.

An option to be consistent with desktop (which just removes the title[2]), would be to just remove the empty space.

Or as you said, the backend could fallback to the URL when the title is empty.


And FYI, on mobile it's currently not possible to create/edit a bookmark and set an empty title. The UI blocks that.


[1]: https://cs.chromium.org/chromium/src/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc?sq=package:chromium&l=278&dr=C
[2]: https://cdn.ghacks.net/wp-content/uploads/2013/04/chrome-bookmarks-toolbar-tips.jpg

Comment 3 by galinap@google.com, Apr 28 2017

I played around with it and got it to this. 
Let me know what you think.
Screenshot is on Nexus 5.

screenshot-060f1f5d13c85a28-20170428T104451.png
162 KB View Download

Comment 4 by rachelis@google.com, Apr 28 2017

Thanks folks!

This is definitely an improvement. That said - ideally this case wouldn't happen (we should prioritize content with more complete sets of information). Can you help me understand how we're ending up with these states, and whether they will go away in the Chrome Home (no bookmarks) world?

Comment 5 by galinap@google.com, Apr 28 2017

This happens when you set a bookmark from Chrome on Desktop and remove the title so that only the icon is shown in the bookmarks tab as in the screenshot below. When this bookmark gets transferred on your phone, we get this case :)
Screenshot from 2017-04-28 12:47:07.png
7.9 KB View Download

Comment 6 by rachelis@google.com, Apr 28 2017

Thanks Galina! This seems like a great solution for the case you described. :) 

Comment 8 by dgn@chromium.org, May 2 2017

Status: Fixed (was: Assigned)

Sign in to add a comment