[scopes] attributes dont show without title

Bug #1409307 reported by Kyle Nitzsche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Savilerow project
Won't Fix
Medium
Unassigned
Ubuntu UX
Won't Fix
High
Paty Davila
unity-scopes-api (Ubuntu)
Invalid
High
Thomas Strehl
unity8 (Ubuntu)
Won't Fix
High
Unassigned

Bug Description

I want to display category attributes but not titles (for the number of Likes under each picture in Facebook Photos scope).

But, it seems attributes do not display unless I add a title component.

So with this catrenderer, attributes do NOT display:

{
    "schema-version" : 1,
    "template" : {
        "category-layout" : "grid",
        "card-size": "small"
    },
    "components" : {
        "art" : "art",
        "attributes": "attrs"
    }
}

And with this one attributes DO display:
{
    "schema-version" : 1,
    "template" : {
        "category-layout" : "grid",
        "card-size": "small"
    },
    "components" : {
        "title": "title",
        "art" : "art",
        "attributes": "attrs"
    }
}

phablet@ubuntu-phablet:~$ apt-cache policy libunity-scopes3
libunity-scopes3:
  Instalados: 0.6.9+15.04.20141216.2~rtm-0ubuntu

See images.

Tags: tracking
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

with "title" component, so attributes show

Revision history for this message
Michi Henning (michihenning) wrote :

The title component is mandatory, so this really is no surprise.

One suggestion would be to map the title component to a field that is empty or contains a blank. That might do what you want?

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

The title field is already set to blank with this: catres.set_title("");

The problem with this is the unused vertical space where the title component is.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@thomas product team asked to bump priority

Changed in unity-scopes-api (Ubuntu):
assignee: nobody → Thomas Strehl (strehl-t)
importance: Undecided → High
Thomas Strehl (strehl-t)
Changed in unity-scopes-api (Ubuntu):
status: New → Invalid
Changed in unity8 (Ubuntu):
importance: Undecided → High
Revision history for this message
Thomas Strehl (strehl-t) wrote :

Setting the title blank cannot be a solution as we wouldn't want to change card layouts depending whether the title is blank or not, but rather by having the component available at all. Saviq, is it possible to make the title optional or would we rather need an entire new card?

Revision history for this message
Michał Sawicz (saviq) wrote :

Per design, title is currently mandatory in cards.

Changed in unity8 (Ubuntu):
status: New → Incomplete
Revision history for this message
Michał Sawicz (saviq) wrote :

Let me restate that. Title is mandatory in card *headers*, if there's no title, the header is blank.

Changed in ubuntu-ux:
assignee: nobody → James Mulholland (jamesjosephmulholland)
importance: Undecided → High
status: New → Triaged
summary: - attributes dont show without title
+ [scopes] attributes dont show without title
Changed in ubuntu-ux:
assignee: James Mulholland (jamesjosephmulholland) → nobody
assignee: nobody → Paty Davila (dizzypaty)
Revision history for this message
Paty Davila (dizzypaty) wrote :

As part of the scope toolkit spec update, there will be design considerations for new cards layouts and/or changes in the arrangements of card components configuration. This work is in progress.

Changed in ubuntu-ux:
status: Triaged → In Progress
Revision history for this message
Paty Davila (dizzypaty) wrote :

This is part of a bigger redesign project (Scopes toolkit). Epic project card: https://canonical.leankit.com/Boards/View/109386535#workflow-view

However, and for the time being, we can make the header title optional.

Changed in ubuntu-ux:
status: In Progress → Won't Fix
Changed in unity8 (Ubuntu):
status: Incomplete → Won't Fix
Changed in savilerow:
importance: Undecided → Medium
Changed in savilerow:
status: New → Triaged
Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

since it's said this exist in another design project, I don't see reason we still track here.

tags: added: tracking
Changed in savilerow:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.