Merge lp:~allenap/launchpad/dd-beta-icon-bug-827508 into lp:launchpad

Proposed by Gavin Panella
Status: Merged
Approved by: Matthew Revell
Approved revision: no longer in the source branch.
Merged at revision: 13854
Proposed branch: lp:~allenap/launchpad/dd-beta-icon-bug-827508
Merge into: lp:launchpad
Diff against target: 154 lines (+113/-0)
4 files modified
lib/canonical/launchpad/icing/style-3-0.css (+10/-0)
lib/canonical/launchpad/images/src/beta.svg (+94/-0)
lib/lp/registry/templates/distroseries-localdifferences.pt (+5/-0)
lib/lp/registry/templates/distroseries-portlet-derivation.pt (+4/-0)
To merge this branch: bzr merge lp:~allenap/launchpad/dd-beta-icon-bug-827508
Reviewer Review Type Date Requested Status
Matthew Revell (community) ui Approve
Graham Binns (community) code Approve
Review via email: mp+72492@code.launchpad.net

Commit message

[r=gmb][ui=matthew.revell][bug=827508] Add a BETA notice for Derived Distributions.

Description of the change

Add a wretched beta icon to the +localpackagediffs page (and its
siblings) and to the DD portlet that appears on DistroSeries:+index.

An earlier attempt used the existing beta.png, but it's fairly, and
didn't look right anywhere. See the non-#2 images at [1] for an idea.

I then tried putting a diagonal sash across the top left of the page
(in the case of +localpackagediffs) and a smaller sash across the top
left of the portlet. It looks good, but interfered with the content on
the page (not layout, things like being able to use links, or just
reading the text underneath) so I abandoned that.

Finally there's the current proposal, a simple short red bar with BETA
written within. It looks better than the existing beta icon, and also
works in paragraph context without looking like it's been left
behind. See the #2 images at [1] for example screenshots.

[1] http://people.canonical.com/~gavin/ui/dd-beta-icon-bug-827508/

I have little experience as a designer so this has been frustrating,
slow going, and it's probably fairly crap. There's more that could be
done with this, like adding a help page, but someone else (or me next
week) can follow up on that. I see blood red mist when I think of the
time this branch has soaked up.

To post a comment you must log in.
Revision history for this message
Matthew Revell (matthew.revell) wrote :

Thanks for taking the time to find the best way to communicate that this feature is in beta.

If Huw were here, we'd have sorted this fairly swiftly, I think. We need a re-usable recipe for indicating that something's in beta.

I agree that the red strip is better than the original beta icon. However, it looks a little lost on the full page.

Could we re-use the privacy ribbon from the Managing Disclosure project for the full page beta indicator? That would make it more clear that it's talking about the feature/page, rather than just one part of it, and it wouldn't interrupt the flow of the page.

The Teal squad originally allowed for dismissing the privacy ribbon, so that'd be a good way to avoid it being annoying.

I marking this "Needs information" because I want to know how long it would take to re-purpose the Teal squad's privacy ribbon. I think the portlet beta indicator is fine in the circumstances; we need Huw to re-work the design of the portlets generally.

review: Needs Information (ui)
Revision history for this message
Graham Binns (gmb) wrote :

Approving the code, though this should probably be marked WIP if there's more discussion to be had.

review: Approve (code)
Revision history for this message
Gavin Panella (allenap) wrote :

> Thanks for taking the time to find the best way to communicate that this
> feature is in beta.
>
> If Huw were here, we'd have sorted this fairly swiftly, I think. We need a re-
> usable recipe for indicating that something's in beta.
>
> I agree that the red strip is better than the original beta icon. However, it
> looks a little lost on the full page.
>
> Could we re-use the privacy ribbon from the Managing Disclosure project for
> the full page beta indicator? That would make it more clear that it's talking
> about the feature/page, rather than just one part of it, and it wouldn't
> interrupt the flow of the page.

We could do I suppose, but I'm reluctant to dig back into UI
design-like stuff. I do not have the design skills and experience of
someone like Huw, and I cannot acquire or even reasonably imitate
those skills quickly enough to make addressing this problem "properly"
be much more than an expensive folly.

>
> The Teal squad originally allowed for dismissing the privacy ribbon, so that'd
> be a good way to avoid it being annoying.

ISTR reading that dismissing the ribbon was considered a Bad
Thing. Indeed, it's no longer possible to dismiss it.

Also, overloading the top of the page for a BETA message is probably
confusing, especially since we have a red colour for both the BETA
icon and the privacy message. In other words, we'd probably have to
choose another colour for BETA.

>
> I marking this "Needs information" because I want to know how long it would
> take to re-purpose the Teal squad's privacy ribbon. I think the portlet beta
> indicator is fine in the circumstances; we need Huw to re-work the design of
> the portlets generally.

Technically, repurposing probably would not take too long, but it
opens new cans of design and interaction worms.

In short, I don't think I'm the right person to fix this issue
generally, I just need to get something done for Derived Distributions
and move on.

Revision history for this message
Matthew Revell (matthew.revell) wrote :

You're right, in that code review isn't the time for us to be making UI decisions.

In future, we'll make these decisions before implementation begins. Also, when Huw returns I'll work with him to produce a standard way to show that's something's in beta .

review: Approve (ui)
Revision history for this message
Gavin Panella (allenap) wrote :

Thanks Matt :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/canonical/launchpad/icing/style-3-0.css'
2--- lib/canonical/launchpad/icing/style-3-0.css 2011-08-18 08:00:28 +0000
3+++ lib/canonical/launchpad/icing/style-3-0.css 2011-09-02 11:16:24 +0000
4@@ -1197,6 +1197,16 @@
5 /* Work around float bug in MSIE */
6 height: 1%;
7 }
8+div.beta {
9+ background-color: #c24848;
10+ margin-bottom: 7px;
11+ margin-top: 7px;
12+ height: 10px;
13+ width: 175px;
14+ }
15+div.beta img {
16+ height: 10px;
17+ }
18
19
20 /* =========================
21
22=== added file 'lib/canonical/launchpad/images/beta.png'
23Binary files lib/canonical/launchpad/images/beta.png 1970-01-01 00:00:00 +0000 and lib/canonical/launchpad/images/beta.png 2011-09-02 11:16:24 +0000 differ
24=== removed file 'lib/canonical/launchpad/images/beta.png'
25Binary files lib/canonical/launchpad/images/beta.png 2010-06-24 05:19:16 +0000 and lib/canonical/launchpad/images/beta.png 1970-01-01 00:00:00 +0000 differ
26=== added file 'lib/canonical/launchpad/images/src/beta.svg'
27--- lib/canonical/launchpad/images/src/beta.svg 1970-01-01 00:00:00 +0000
28+++ lib/canonical/launchpad/images/src/beta.svg 2011-09-02 11:16:24 +0000
29@@ -0,0 +1,94 @@
30+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
31+<!-- Created with Inkscape (http://www.inkscape.org/) -->
32+
33+<svg
34+ xmlns:dc="http://purl.org/dc/elements/1.1/"
35+ xmlns:cc="http://creativecommons.org/ns#"
36+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
37+ xmlns:svg="http://www.w3.org/2000/svg"
38+ xmlns="http://www.w3.org/2000/svg"
39+ xmlns:xlink="http://www.w3.org/1999/xlink"
40+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
41+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
42+ width="52"
43+ height="20"
44+ id="svg5276"
45+ version="1.1"
46+ inkscape:version="0.48.1 r9760"
47+ sodipodi:docname="New document 4">
48+ <defs
49+ id="defs5278">
50+ <linearGradient
51+ id="linearGradient5794">
52+ <stop
53+ style="stop-color:#aa0000;stop-opacity:1;"
54+ offset="0"
55+ id="stop5796" />
56+ <stop
57+ style="stop-color:#aa0000;stop-opacity:0;"
58+ offset="1"
59+ id="stop5798" />
60+ </linearGradient>
61+ <radialGradient
62+ inkscape:collect="always"
63+ xlink:href="#linearGradient5794"
64+ id="radialGradient5802"
65+ cx="-1.4285693"
66+ cy="-68.800606"
67+ fx="-1.4285693"
68+ fy="-68.800606"
69+ r="106.07143"
70+ gradientTransform="matrix(5.7303931e-8,0.87228176,-2.0000197,1.3138987e-7,-140.53115,999.94761)"
71+ gradientUnits="userSpaceOnUse" />
72+ </defs>
73+ <sodipodi:namedview
74+ id="base"
75+ pagecolor="#ffffff"
76+ bordercolor="#666666"
77+ borderopacity="1.0"
78+ inkscape:pageopacity="0.0"
79+ inkscape:pageshadow="2"
80+ inkscape:zoom="8"
81+ inkscape:cx="89.731391"
82+ inkscape:cy="-20.203044"
83+ inkscape:document-units="px"
84+ inkscape:current-layer="layer1"
85+ showgrid="false"
86+ showguides="true"
87+ inkscape:guide-bbox="true"
88+ inkscape:window-width="2560"
89+ inkscape:window-height="1547"
90+ inkscape:window-x="0"
91+ inkscape:window-y="24"
92+ inkscape:window-maximized="1" />
93+ <metadata
94+ id="metadata5281">
95+ <rdf:RDF>
96+ <cc:Work
97+ rdf:about="">
98+ <dc:format>image/svg+xml</dc:format>
99+ <dc:type
100+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
101+ <dc:title></dc:title>
102+ </cc:Work>
103+ </rdf:RDF>
104+ </metadata>
105+ <g
106+ inkscape:label="Layer 1"
107+ inkscape:groupmode="layer"
108+ id="layer1"
109+ transform="translate(0,-1032.3622)">
110+ <text
111+ xml:space="preserve"
112+ style="font-size:18.58152771px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#b3b3b3;stroke-width:0.38711515;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;font-family:Ubuntu;-inkscape-font-specification:Ubuntu Bold"
113+ x="1.8477888"
114+ y="1048.7914"
115+ id="text5804"
116+ sodipodi:linespacing="125%"><tspan
117+ sodipodi:role="line"
118+ id="tspan5806"
119+ x="1.8477888"
120+ y="1048.7914"
121+ style="stroke-width:0.38711515">BETA</tspan></text>
122+ </g>
123+</svg>
124
125=== modified file 'lib/lp/registry/templates/distroseries-localdifferences.pt'
126--- lib/lp/registry/templates/distroseries-localdifferences.pt 2011-08-30 22:42:01 +0000
127+++ lib/lp/registry/templates/distroseries-localdifferences.pt 2011-09-02 11:16:24 +0000
128@@ -39,6 +39,11 @@
129 tal:define="differences view/cached_differences;
130 series_name context/displayname;
131 can_perform_sync view/canPerformSync;">
132+
133+ <div class="beta">
134+ <img src="/@@/beta" alt="[BETA]" />
135+ </div>
136+
137 <p><tal:replace replace="structure view/explanation/escapedtext" /></p>
138
139 <metal:package_filter_form
140
141=== modified file 'lib/lp/registry/templates/distroseries-portlet-derivation.pt'
142--- lib/lp/registry/templates/distroseries-portlet-derivation.pt 2011-08-22 03:20:59 +0000
143+++ lib/lp/registry/templates/distroseries-portlet-derivation.pt 2011-09-02 11:16:24 +0000
144@@ -13,6 +13,10 @@
145 <h2>Derived from <tal:name replace="view/number_of_parents"/> parents</h2>
146 </tal:multiple_parents>
147
148+ <div class="beta">
149+ <img src="/@@/beta" alt="[BETA]" />
150+ </div>
151+
152 <tal:diffs define="nb_diffs view/num_version_differences;
153 nb_diffs_in_parent view/num_differences_in_parent;
154 nb_diffs_in_child view/num_differences_in_child;">