Poor heading shown for multi-item exhibit

Bug #849048 reported by Matthew Paul Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Center Agent
Confirmed
Low
Unassigned
software-center (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

software-center trunk r2309, Ubuntu 11.10 beta 1

1. PISTON_MINI_CLIENT_DISABLE_SSL_VALIDATION=1 SOFTWARE_CENTER_BUY_HOST=http://sc.staging.ubuntu.com/ ./software-center
2. Click on the banner for "frozen bubble, k3b, vim and blender".
3. Look at the header for the list.

What you see: "frozen-bubble,k3b,vim,blender"

What you should see: "Morley's morsels", or some similarly imaginative title.

This is because the API no longer includes a title_translated field, on the grounds that the HTML made it unnecessary. But it's still necessary when showing the list. (Even when we switch from the list view to a tile view later, we couldn't really just reuse the banner verbatim, because that would risk looking as if clicking the banner hadn't done anything.)

A short-term improvement in the client would be to show no heading at all, rather than the list of package names. Beyond that, though, we probably need to reintroduce title_translated in the API and the admin interface.

Changed in software-center (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Michael Vogt (mvo) wrote :

The client will now either show:
  - title_translated if that is part of the returned json data
  - the html title (if that is defined) in the html of the json
  - the first h1 tag from the html *if* that does not contain any subtags (like <emph><b> etc)

The best long term fix IMO is to re-introduce either title_translated or ensure to always add a html title.

Changed in software-center (Ubuntu):
status: New → Fix Committed
Kiwinote (kiwinote)
Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
Dave Morley (davmor2)
Changed in software-center-agent:
status: New → Confirmed
importance: Undecided → Low
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.