Merge lp:~rvb/launchpad/deriv-ui-fixes into lp:launchpad

Proposed by Raphaël Badin
Status: Merged
Approved by: Raphaël Badin
Approved revision: no longer in the source branch.
Merged at revision: 12928
Proposed branch: lp:~rvb/launchpad/deriv-ui-fixes
Merge into: lp:launchpad
Diff against target: 130 lines (+28/-18)
5 files modified
lib/lp/registry/browser/tests/test_distroseries.py (+4/-4)
lib/lp/registry/javascript/tests/test_distroseries.js (+1/-1)
lib/lp/registry/templates/distroseries-initialize.pt (+4/-0)
lib/lp/registry/templates/distroseries-portlet-derivation.pt (+18/-12)
lib/lp/registry/templates/distroseriesdifference-listing-extra.pt (+1/-1)
To merge this branch: bzr merge lp:~rvb/launchpad/deriv-ui-fixes
Reviewer Review Type Date Requested Status
Graham Binns (community) code Approve
Review via email: mp+58793@code.launchpad.net

Commit message

[r=gmb][bug=747392] Fix a few minor UI glitches in the UI for derived series.

Description of the change

This branch fixes a few minor glitches in the derived series' UI.

= Test =
(modified test)
./bin/test -cvv test_distroseries test_differences_portlet_all_differences

= List of fixes/QA =
- On a difference page, the comments section's header should be <strong> (and not <h2>)
https://staging.launchpad.net/ubuntu/natty/+localpackagediffs
- The derivation portlet on a derived series home page should say "2772 packages *only* in Sid." instead of "2772 packages in Sid."
https://staging.launchpad.net/ubuntu/natty
- The links inside the derivation portlet on a derived series should have a title, and the icon next to the text should be clickable.
- The initseries page should have a message at the bottom of the page saying "Note that initializing with many thousands of packages is likely to take hours to complete.".
https://dogfood.launchpad.net/deribuntu/anewseries/+initseries
- The submit button of the initseries page should say "Commence initialization". The title of this page should say "Initialize series" (as opposed to "Initialise series")
https://dogfood.launchpad.net/deribuntu/anewseries/+initseries

To post a comment you must log in.
Revision history for this message
Graham Binns (gmb) wrote :

Hi Raphaël,

Only one minor change suggested, as discussed on IRC:

<gmb> rvba: I know that bigjools suggested it in the bug, but I think "Commence Initialization" isn't a good choice of wording for the button. It sounds pretty formal (and a bit silly). It would make more sense to have the help text read something like:
<gmb> "Note that initialization is not instantaneous; initializing with many thousands of packages is likely to take hours to complete."
<gmb> And leave the button as it is already.
<gmb> rvba: How's that sound?
<rvba> gmb: sound good to me!

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/registry/browser/tests/test_distroseries.py'
2--- lib/lp/registry/browser/tests/test_distroseries.py 2011-04-18 10:43:39 +0000
3+++ lib/lp/registry/browser/tests/test_distroseries.py 2011-04-27 07:33:07 +0000
4@@ -190,15 +190,15 @@
5 text='Derived from Sid'),
6 soupmatchers.Tag(
7 'Differences link', 'a',
8- text=re.compile('\s*1 package with differences.\s*'),
9+ text=re.compile('\s*1 package with differences\s*'),
10 attrs={'href': re.compile('.*/\+localpackagediffs')}),
11 soupmatchers.Tag(
12 'Parent diffs link', 'a',
13- text=re.compile('\s*2 packages in Sid.\s*'),
14+ text=re.compile('\s*2 packages only in Sid\s*'),
15 attrs={'href': re.compile('.*/\+missingpackages')}),
16 soupmatchers.Tag(
17 'Child diffs link', 'a',
18- text=re.compile('\s*3 packages in Deri.\s*'),
19+ text=re.compile('\s*3 packages only in Deri\s*'),
20 attrs={'href': re.compile('.*/\+uniquepackages')}))
21
22 with person_logged_in(self.simple_user):
23@@ -249,7 +249,7 @@
24 portlet_display = soupmatchers.HTMLContains(
25 soupmatchers.Tag(
26 'Derived series', 'h2',
27- text='Derived series'),
28+ text='Series initialisation in progress'),
29 soupmatchers.Tag(
30 'Init message', True,
31 text=re.compile('\s*This series is initialising.\s*')),
32
33=== modified file 'lib/lp/registry/javascript/tests/test_distroseries.js'
34--- lib/lp/registry/javascript/tests/test_distroseries.js 2011-04-21 11:56:39 +0000
35+++ lib/lp/registry/javascript/tests/test_distroseries.js 2011-04-27 07:33:07 +0000
36@@ -716,7 +716,7 @@
37 makeActionsDiv: function() {
38 var submit = Y.Node.create("<input />")
39 .set("type", "submit")
40- .set("value", "Initialize series");
41+ .set("value", "Initialize Series");
42 var cancel = Y.Node.create("<a>Cancel</a>");
43 var div = Y.Node.create("<div />")
44 .addClass("actions")
45
46=== modified file 'lib/lp/registry/templates/distroseries-initialize.pt'
47--- lib/lp/registry/templates/distroseries-initialize.pt 2011-04-21 09:00:39 +0000
48+++ lib/lp/registry/templates/distroseries-initialize.pt 2011-04-27 07:33:07 +0000
49@@ -34,6 +34,10 @@
50 Y.on('domready', Y.lp.registry.distroseries.initseries.setup);
51 });
52 </script>
53+ <p class="formHelp">
54+ Note that initialization is not instantaneous; initializing with
55+ many thousands of packages is likely to take hours to complete.
56+ </p>
57 </tal:enabled>
58 <tal:disabled condition="not:view/is_derived_series_feature_enabled">
59 <p class="error message">
60
61=== modified file 'lib/lp/registry/templates/distroseries-portlet-derivation.pt'
62--- lib/lp/registry/templates/distroseries-portlet-derivation.pt 2011-04-12 15:38:07 +0000
63+++ lib/lp/registry/templates/distroseries-portlet-derivation.pt 2011-04-27 07:33:07 +0000
64@@ -12,27 +12,33 @@
65 nb_diffs_in_parent view/num_differences_in_parent;
66 nb_diffs_in_child view/num_differences_in_child;">
67 <ul id="derivation_stats">
68- <li class="sprite info" tal:condition="nb_diffs">
69- <a tal:attributes="href string:${context/fmt:url}/+localpackagediffs">
70+ <li tal:condition="nb_diffs">
71+ <a tal:attributes="href string:${context/fmt:url}/+localpackagediffs"
72+ class="sprite info"
73+ title="Source package differences between this series and his parent">
74 <tal:nb_diffs replace="nb_diffs"/> package<tal:plural
75 content="string:s"
76- condition="python:nb_diffs!=1"/> with differences.
77+ condition="python:nb_diffs!=1"/> with differences
78 </a>
79 </li>
80- <li class="sprite info" tal:condition="nb_diffs_in_parent">
81- <a tal:attributes="href string:${context/fmt:url}/+missingpackages">
82+ <li tal:condition="nb_diffs_in_parent">
83+ <a tal:attributes="href string:${context/fmt:url}/+missingpackages"
84+ class="sprite info"
85+ title="Source packages only in parent series">
86 <tal:nb_diffs replace="nb_diffs_in_parent"/> package<tal:plural
87 content="string:s"
88- condition="python:nb_diffs_in_parent!=1"/> in <tal:replace
89- replace="context/parent_series/displayname">Sid</tal:replace>.
90+ condition="python:nb_diffs_in_parent!=1"/> only in <tal:replace
91+ replace="context/parent_series/displayname">Sid</tal:replace>
92 </a>
93 </li>
94- <li class="sprite info" tal:condition="nb_diffs_in_child">
95- <a tal:attributes="href string:${context/fmt:url}/+uniquepackages">
96+ <li tal:condition="nb_diffs_in_child">
97+ <a tal:attributes="href string:${context/fmt:url}/+uniquepackages"
98+ class="sprite info"
99+ title="Source packages only in derived series">
100 <tal:nb_diffs replace="nb_diffs_in_child"/> package<tal:plural
101 content="string:s"
102- condition="python:nb_diffs_in_child!=1"/> in <tal:replace
103- replace="context/displayname">Natty</tal:replace>.
104+ condition="python:nb_diffs_in_child!=1"/> only in <tal:replace
105+ replace="context/displayname">Natty</tal:replace>
106 </a>
107 </li>
108 </ul>
109@@ -43,7 +49,7 @@
110 </tal:diffs>
111 </tal:is_initialised>
112 <tal:is_initialising condition="context/is_initialising">
113- <h2>Derived series</h2>
114+ <h2>Series initialisation in progress</h2>
115 This series is initialising.
116 </tal:is_initialising>
117 </tal:is_derived>
118
119=== modified file 'lib/lp/registry/templates/distroseriesdifference-listing-extra.pt'
120--- lib/lp/registry/templates/distroseriesdifference-listing-extra.pt 2011-04-18 14:23:22 +0000
121+++ lib/lp/registry/templates/distroseriesdifference-listing-extra.pt 2011-04-27 07:33:07 +0000
122@@ -120,7 +120,7 @@
123 </tal:package-diffs>
124 </dl>
125
126- <h2>Comments:</h2>
127+ <strong>Comments:</strong>
128 <tal:conversation replace="structure view/@@+render"/>
129 <tal:show_options condition="view/show_edit_options"
130 define="src_name context/source_package_name/name">