Merge lp:~whosdaz/ubuntu-qa-website/fix1531980 into lp:ubuntu-qa-website

Proposed by Matthew Allen on 2016-01-08
Status: Merged
Approved by: Nicholas Skaggs on 2016-01-12
Approved revision: 422
Merged at revision: 417
Proposed branch: lp:~whosdaz/ubuntu-qa-website/fix1531980
Merge into: lp:ubuntu-qa-website
Diff against target: 152 lines (+57/-7)
3 files modified
modules/qatracker/user/qatracker.user.results.php (+35/-6)
modules/qawebsite/misc/qawebsite_form.css (+21/-0)
modules/qawebsite/misc/qawebsite_tooltip.css (+1/-1)
To merge this branch: bzr merge lp:~whosdaz/ubuntu-qa-website/fix1531980
Reviewer Review Type Date Requested Status
Nicholas Skaggs 2016-01-08 Approve on 2016-01-12
Kev Bowring ui design 2016-01-10 Pending
Review via email: mp+282043@code.launchpad.net

Description of the Change

Rearranged the results page as per lp:1531980.

New order is now:

* bugs to look for
* add a test result
* reports completed by other users

To post a comment you must log in.
416. By Matthew Allen on 2016-01-09

Fixed order as per disccusion with Balloons

Nicholas Skaggs (nskaggs) wrote :

I've asked for some images to help make the decision

review: Needs Fixing
Matthew Allen (whosdaz) wrote :

Changes can be seen at the Imgur link below.
http://i.imgur.com/6evjTYT.png

Nicholas Skaggs (nskaggs) wrote :

flocculant, what do you think? Checkout the image

Nicholas Skaggs (nskaggs) wrote :

From IRC:

balloons Condensing / tweaking the UI layout would help too I think
11:55 balloons the add a test result has elements laid out all vertically
11:56 balloons anyways, it's sort of overlapping with making sweeping changes to the UI
11:56 MatthewAllen you could potentially have the submit a result section as a button that opens as a pop-up
11:56 MatthewAllen which would free up a decent amount of space, and it could be added with the link to download and additional info
11:58 balloons ohh, popups are a nice idea
11:58 balloons again, feel free to give fresh eyes and fresh ideas to the page :-)
11:59 MatthewAllen maybe I'll have a play with that, because I'm sure you could save that space with a popup
11:59 MatthewAllen and if you compress the tables, you could probally cut down size a bunch
12:00 balloons ok, so i'll just leave this as a comment on the MP. See what you can do with the vertical sizing

Kev Bowring (flocculant) wrote :

> flocculant, what do you think? Checkout the image

Looks the same as it does now to me. That is no change.

Matthew Allen (whosdaz) wrote :

> > flocculant, what do you think? Checkout the image
>
> Looks the same as it does now to me. That is no change.

If you compare the screenshot to the live version, where the submitted results are positioned has changed. So people going to publish results do not have to scroll past it. So it's shifted up once in the order of the sections.

Kev Bowring (flocculant) wrote :

http://iso.qa.ubuntu.com/qatracker/milestones/351/builds/110137/testcases/1301/results

Look there - all that's changed is an orphan frame and a small line of text has gone.

The bug list is not below Add a test result.

Matthew Allen (whosdaz) wrote :

> http://iso.qa.ubuntu.com/qatracker/milestones/351/builds/110137/testcases/1301
> /results
>
> Look there - all that's changed is an orphan frame and a small line of text
> has gone.
>
> The bug list is not below Add a test result.

If you have a look at a page that has results submitted - http://iso.qa.ubuntu.com/qatracker/milestones/351/builds/110045/testcases/1310/results

You can see that it is in the order:
 * Testcase instructions
 * Testcase result submitted by "adueppen" < this changed
 * Bugs to look for
 * Add a test result

Whereas, in the screenshot it is:
 * Testcase instructions
 * Bugs to look for
 * Add a test result
 * Testcase result submitted < this changed

Kev Bowring (flocculant) wrote :

and if you look at the bug report it clearly notes putting the bug list at the bottom.

Matthew Allen (whosdaz) wrote :

Oh I must be confused by your wording in the bug report :/ My bad.
So do you want the list of bugs to look for at the bottom?

As in

 * Testcase instructions
 * Testcase result submitted
 * Add a test result
 * Testcase bugs to look for

Perhaps if that's wrong, we could talk over IRC - I'm currently in the #Ubuntu-Google channel.

Kev Bowring (flocculant) wrote :

>
> So do you want the list of bugs to look for at the bottom?
>
> As in
>
> * Testcase instructions
> * Testcase result submitted
> * Add a test result
> * Testcase bugs to look for
>
>

That's right.

Matthew Allen (whosdaz) wrote :

Ok, I misunderstood you - sorry.
Will fix that up tomorrow then you can have another look.
On 11 Jan 2016 4:43 am, "flocculant" <email address hidden> wrote:

> >
> > So do you want the list of bugs to look for at the bottom?
> >
> > As in
> >
> > * Testcase instructions
> > * Testcase result submitted
> > * Add a test result
> > * Testcase bugs to look for
> >
> >
>
> That's right.
> --
>
> https://code.launchpad.net/~whosdaz/ubuntu-qa-website/fix1531980/+merge/282043
> You are the owner of lp:~whosdaz/ubuntu-qa-website/fix1531980.
>
> Launchpad-Message-Rationale: Owner
> Launchpad-Message-For: whosdaz
> Launchpad-Notification-Type: code-review
> Launchpad-Branch: ~whosdaz/ubuntu-qa-website/fix1531980
> Launchpad-Project: ubuntu-qa-website
>

417. By Matthew Allen on 2016-01-11

Fixed ordering of sections

Matthew Allen (whosdaz) wrote :

See the screenshot below to see my changes.
http://i.imgur.com/cJRDPV2.png

Kev Bowring (flocculant) wrote :

Thanks - that looks fine.

Nicholas Skaggs (nskaggs) wrote :

The vertical space still needs compressed.

Something like this: http://imgur.com/ckk6hpW

Perhaps even make the submit results button be next to the radio buttons for pass / fail. So long as it fits and looks ok, that would be my first choice.

review: Needs Fixing
418. By Matthew Allen on 2016-01-11

Changed layout of the result submission form

419. By Matthew Allen on 2016-01-11

Added custom css for the form

Matthew Allen (whosdaz) wrote :

Made some changes as per your request.
Current page looks like: http://i.imgur.com/c8LmcZM.png

Will have a look at moving the submit button.

Matthew Allen (whosdaz) wrote :

Leaving it as is, as moving the submit button makes the form look quite odd.

Nicholas Skaggs (nskaggs) wrote :

The Critical bugs box has a red background now.. I see your css changes, but I'm curious why the red background.

flocculan, thoughts on the red background?

Also, I'm not sure the right positioning for critical bugs works -- it gets a little weird when you make a wide display. Thoughts on improving it?

http://imgur.com/45McOfu

review: Needs Fixing
Matthew Allen (whosdaz) wrote :

Sorry background was unintentional while testing, can fix.
Not sure what you want done about the bug boxes, maybe widen them to fit the display.

Nicholas Skaggs (nskaggs) wrote :

In talking on IRC, sounds like you should swap the critical and normal bug fields, and remove the red background. Widening to fit gets a bit weird too, but sure give it a try and try resizing it. See if it works better. I'll defer to you on which works better. With that, this gets my +1. I'll try and sneak it in the release if it's done :-)

Kev Bowring (flocculant) wrote :

I'll ignore the red now following comments.

I will add that regardless of size and ensuing weirdness - critical bugs needs to be on left, bugs on the right

420. By Matthew Allen on 2016-01-12

Fixed layout of bug fields, and removed coloring

421. By Matthew Allen on 2016-01-12

Removed wrong tag

422. By Matthew Allen on 2016-01-12

Moved critical bugs to the left

Nicholas Skaggs (nskaggs) wrote :

TY. Looks good.

review: Approve
Kev Bowring (flocculant) wrote :

Thank you Matthew

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'modules/qatracker/user/qatracker.user.results.php'
2--- modules/qatracker/user/qatracker.user.results.php 2016-01-06 18:33:10 +0000
3+++ modules/qatracker/user/qatracker.user.results.php 2016-01-12 19:45:06 +0000
4@@ -23,6 +23,19 @@
5 # FIXME: Turn off caching for now as it's a fairly trivial page to render
6 drupal_page_is_cacheable(FALSE);
7
8+ // Add custom css to style forms
9+
10+ $formcss = array(
11+ '#tag' => 'link', // The #tag is the html tag - <link />
12+ '#attributes' => array( // Set up an array of attributes inside the tag
13+ 'rel' => 'stylesheet',
14+ 'type' => 'text/css',
15+ 'href' => '/modules/qawebsite/misc/qawebsite_form.css',
16+ ),
17+ );
18+ drupal_add_html_head($formcss, 'formcss');
19+
20+
21 $site = qatracker_get_current_site();
22 $items = qatracker_site_header($site);
23
24@@ -270,8 +283,6 @@
25 );
26 }
27
28- $user_result = Null;
29-
30 foreach ($result as $record) {
31 # Skip removed results unless we're an admin
32 if (!$admin && $record->status == 1) {
33@@ -340,6 +351,8 @@
34 }
35 }
36
37+
38+
39 # Get data about the user
40 $account = user_load($record->reporterid);
41 if (!$account) {
42@@ -403,22 +416,28 @@
43 }
44 $items[] = new_table($rows, $status);
45
46+
47+ # Add a test result section (moved)
48 if ($user_acl) {
49 $items = array_merge($items, qatracker_user_results_form());
50 }
51 elseif ($user->uid == 0) {
52- $items['result'] = array(
53+ $items[] = array(
54 '#type' => 'fieldset',
55 '#title' => 'Add a test result',
56 '#attributes' => array('id' => array('add_result')),
57 );
58- $items['result'][] = array(
59+ $items[][] = array(
60 '#type' => 'markup',
61 '#prefix' => '<br /><div style="text-align:center;font-weight:bold;">',
62 '#markup' => t("You need to be logged in to submit your test results."),
63 '#suffix' => '</div>',
64 );
65 }
66+ # End of add a test result section
67+
68+ $user_result = Null;
69+
70
71 return $items;
72 }
73@@ -533,7 +552,7 @@
74 $bugs = t("None");
75 }
76
77- $form['old bugs'] = create_bug_table();
78+
79
80 if ($user_result) {
81 $form['qatracker_result'] = array(
82@@ -579,6 +598,7 @@
83 '#default_value' => implode(", ", $user_result->regular_bugs),
84 );
85
86+
87 $form['qatracker_result']['comment'] = array(
88 '#type' => 'textarea',
89 '#title' => t('Comment'),
90@@ -605,6 +625,16 @@
91 );
92 }
93
94+
95+ // Bug table section (moved)
96+ // Add the header, as it cannot be in the prefix as it draws in the wrong location
97+ $form[] = array(
98+ '#type' => 'markup',
99+ '#prefix' => '<h2> Bugs to look for </h2>',
100+ );
101+
102+ $form['old bugs'] = create_bug_table();
103+
104 return $form;
105 }
106
107@@ -847,7 +877,6 @@
108 '#theme' => "table",
109 '#header' => $header,
110 '#rows' => $rows,
111- '#prefix' => '<h2>'.t("Bugs to look for").'</h2>'
112 );
113 }
114
115
116=== added file 'modules/qawebsite/misc/qawebsite_form.css'
117--- modules/qawebsite/misc/qawebsite_form.css 1970-01-01 00:00:00 +0000
118+++ modules/qawebsite/misc/qawebsite_form.css 2016-01-12 19:45:06 +0000
119@@ -0,0 +1,21 @@
120+.form-item-critical-bugs {
121+ float:left;
122+ width: 46%;
123+}
124+
125+.form-item-regular-bugs {
126+ float: left;
127+ width: 46%;
128+}
129+
130+.form-textarea {
131+ height: 50px;
132+}
133+
134+.form-actions {
135+ padding-top: 0px;
136+}
137+
138+.form-item-comment{
139+ clear:both;
140+}
141\ No newline at end of file
142
143=== modified file 'modules/qawebsite/misc/qawebsite_tooltip.css'
144--- modules/qawebsite/misc/qawebsite_tooltip.css 2014-04-01 21:53:12 +0000
145+++ modules/qawebsite/misc/qawebsite_tooltip.css 2016-01-12 19:45:06 +0000
146@@ -36,4 +36,4 @@
147
148 .blacklink {
149 display: inline-block;
150-}
151\ No newline at end of file
152+}

Subscribers

People subscribed via source and target branches