Merge ~ya-bo-ng/maas:hardware-testing-qa into ~deadlight/maas:vanilla

Proposed by Anthony Dillon
Status: Merged
Approved by: Karl Williams
Approved revision: 8c3fc63df0659eab78332b1a5b301e24d46cd640
Merged at revision: 8e98d8f1271f3f62575c857fe92230e02ed750c5
Proposed branch: ~ya-bo-ng/maas:hardware-testing-qa
Merge into: ~deadlight/maas:vanilla
Diff against target: 74 lines (+23/-13)
2 files modified
src/maasserver/static/partials/node-result.html (+16/-8)
src/maasserver/static/partials/script-results-list.html (+7/-5)
Reviewer Review Type Date Requested Status
LukeWH (community) Approve
Karl Williams Pending
Review via email: mp+337567@code.launchpad.net

Description of the change

## Done
Made the actions menu an icon not the word. Hot fixed the tabbed nav in the test log page.

## QA
- Go to a node details
- Go to Hardware testing
- Check the Actions menu in the tables are now icons
- Click on view logs and see that the tabbed menu has correct active styling

Fixes https://github.com/ubuntudesign/MAAS-design-squad/issues/250, https://github.com/ubuntudesign/MAAS-design-squad/issues/249

To post a comment you must log in.
Revision history for this message
LukeWH (0-luke) wrote :

+1 Looks good thanks Ant

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/src/maasserver/static/partials/node-result.html b/src/maasserver/static/partials/node-result.html
2index f4d9428..08ed104 100644
3--- a/src/maasserver/static/partials/node-result.html
4+++ b/src/maasserver/static/partials/node-result.html
5@@ -66,17 +66,25 @@
6 <h2 class="ng-binding">Output</h2>
7 <nav class="p-tabs">
8 <ul class="p-tabs__list">
9- <li class="p-tabs__item" data-ng-class="{ 'is-active': output === 'combined' }">
10- <a href="" class="p-tabs__link" data-ng-click="get_result_data('combined')">combined</a>
11+ <li class="p-tabs__item">
12+ <a href="" class="p-tabs__link"
13+ data-ng-class="{ 'is-active': output === 'combined' }"
14+ data-ng-click="get_result_data('combined')">combined</a>
15 </li>
16- <li class="p-tabs__item" data-ng-class="{ 'is-active': output === 'stdout' }">
17- <a href="" class="p-tabs__link" data-ng-click="get_result_data('stdout')">stdout</a>
18+ <li class="p-tabs__item">
19+ <a href="" class="p-tabs__link"
20+ data-ng-class="{ 'is-active': output === 'stdout' }"
21+ data-ng-click="get_result_data('stdout')">stdout</a>
22 </li>
23- <li class="p-tabs__item" data-ng-class="{ 'is-active': output === 'stderr' }">
24- <a href="" class="p-tabs__link" data-ng-click="get_result_data('stderr')">stderr</a>
25+ <li class="p-tabs__item">
26+ <a href="" class="p-tabs__link"
27+ data-ng-class="{ 'is-active': output === 'stderr' }"
28+ data-ng-click="get_result_data('stderr')">stderr</a>
29 </li>
30- <li class="p-tabs__item" data-ng-class="{ 'is-active': output === 'result' }">
31- <a href="" class="p-tabs__link" data-ng-click="get_result_data('result')">yaml</a>
32+ <li class="p-tabs__item">
33+ <a href="" class="p-tabs__link"
34+ data-ng-class="{ 'is-active': output === 'result' }"
35+ data-ng-click="get_result_data('result')">yaml</a>
36 </li>
37 </ul>
38 </nav>
39diff --git a/src/maasserver/static/partials/script-results-list.html b/src/maasserver/static/partials/script-results-list.html
40index 87323d3..0e3c325 100644
41--- a/src/maasserver/static/partials/script-results-list.html
42+++ b/src/maasserver/static/partials/script-results-list.html
43@@ -17,8 +17,8 @@
44 <th class="col-2">Tags</th>
45 <th class="col-1">Runtime</th>
46 <th class="col-2">Date</th>
47- <th class="col-1">Result</th>
48- <th class="col-2 u-align--right">Actions</th>
49+ <th class="col-2">Result</th>
50+ <th class="col-1 u-align--right">Actions</th>
51 </tr>
52 </thead>
53 <tbody>
54@@ -31,15 +31,17 @@
55 <td class="col-2" aria-label="Tags"><span data-ng-hide="result.showing_history">{$ result.tags $}</span></td>
56 <td class="col-1" aria-label="Runtime"><span data-ng-hide="result.showing_history" data-maas-script-run-time="script-runtime" data-start-time="result.starttime" data-run-time="{{result.runtime}}" data-estimated-run-time="{{result.estimated_runtime}}" data-script-status="result.status"></span></td>
57 <td class="col-2" aria-label="Date"><span data-ng-hide="result.showing_history">{$ result.updated $}</span></td>
58- <td class="col-1" aria-label="Result">
59+ <td class="col-2" aria-label="Result">
60 <span data-ng-hide="result.showing_history">
61 <!-- Only link to the testing result when we've received it. This is indicated with status 2(passed), 3(failed), 4(timedout), 6(degraded), 8(failed installing)-->
62 {$ result.status_name $} <a data-ng-if="result.status === 2 || result.status === 3 || result.status === 4 || result.status === 6 || result.status === 8" href="#/node/{$ type_name $}/{$ node.system_id $}/{$ section.area $}/{$ result.id $}">View log</a>
63 </span>
64 </td>
65- <td class="col-2 u-align--right">
66+ <td class="col-1 u-align--right">
67 <div class="p-contextual-menu" toggle-ctrl data-ng-hide="isShowingAdd() || isEditing(interface) || isShowingDeleteConfirm() || isShowingAdd()">
68- <button class="p-contextual-menu__toggle" data-ng-click="toggleMenu()">Actions</button>
69+ <button class="p-button--base p-contextual-menu__toggle" data-ng-click="toggleMenu()">
70+ <i class="p-icon--contextual-menu u-no-margin--right">Actions</i>
71+ </button>
72 <div class="p-contextual-menu__dropdown" role="menu" data-ng-show="isToggled">
73 <button class="p-contextual-menu__link" aria-label="View metrics" data-ng-if="!result.showing_results" data-ng-click="toggleMenu(); result.showing_history = false; result.showing_results = true">View metrics</button>
74 <button class="p-contextual-menu__link" aria-label="Hide metrics" data-ng-if="result.showing_results" data-ng-click="toggleMenu(); result.showing_history = false; result.showing_results = false">Hide metrics</button>

Subscribers

People subscribed via source and target branches

to all changes: