Merge lp:~seb128/ubuntu-system-settings/update-uis-tweaks into lp:ubuntu-system-settings

Proposed by Sebastien Bacher
Status: Merged
Approved by: Iain Lane
Approved revision: 750
Merged at revision: 761
Proposed branch: lp:~seb128/ubuntu-system-settings/update-uis-tweaks
Merge into: lp:ubuntu-system-settings
Diff against target: 54 lines (+7/-3)
1 file modified
plugins/system-update/PageComponent.qml (+7/-3)
To merge this branch: bzr merge lp:~seb128/ubuntu-system-settings/update-uis-tweaks
Reviewer Review Type Date Requested Status
Iain Lane Approve
PS Jenkins bot continuous-integration Needs Fixing
Diego Sarmentero (community) Approve
Review via email: mp+224463@code.launchpad.net

Commit message

updates: tweak the interface
- don't use dividers between list items
- use the labels specified in the design
- show the "install n updates" button only when there are several updates

Description of the change

updates: tweak the interface
- don't use dividers between list items
- use the labels specified in the design
- show the "install n updates" button only when there are several updates

To post a comment you must log in.
Revision history for this message
Diego Sarmentero (diegosarmentero) :
749. By Sebastien Bacher

use explicit objects as requested in review

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the review, I've a one question about one of the review comments, addressed the other ones

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:748
http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-ci/897/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/1199
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1065
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-amd64-ci/89
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-armhf-ci/89
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-armhf-ci/89/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-i386-ci/89
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1535
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2074
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2074/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/8842
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/885
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1208
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1208/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-system-settings-ci/897/rebuild

review: Approve (continuous-integration)
750. By Sebastien Bacher

use a property for better readability

Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

+1!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:749
http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-ci/899/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/1205
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1072/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-amd64-ci/91
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-armhf-ci/91
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-armhf-ci/91/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-i386-ci/91
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1540
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2081
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2081/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/8850
    FAILURE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/892/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1215
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1215/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-system-settings-ci/899/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:750
http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-ci/900/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/1213
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1080
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-amd64-ci/92
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-armhf-ci/92
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-armhf-ci/92/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-system-settings-utopic-i386-ci/92
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1546
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2091
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2091/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/8859
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/897
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1223
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1223/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-system-settings-ci/900/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Iain Lane (laney) :
review: Approve
751. By Sebastien Bacher

clean out duplicated visible

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/system-update/PageComponent.qml'
2--- plugins/system-update/PageComponent.qml 2014-05-15 12:08:30 +0000
3+++ plugins/system-update/PageComponent.qml 2014-07-03 15:25:24 +0000
4@@ -35,6 +35,7 @@
5 title: i18n.tr("Updates")
6
7 property bool installAll: false
8+ property bool includeSystemUpdate: false
9 property int updatesAvailable: 0
10
11 property var notificationAction;
12@@ -99,7 +100,7 @@
13 State {
14 name: "UPDATE"
15 PropertyChanges { target: updateList; visible: true}
16- PropertyChanges { target: installAllButton; visible: true}
17+ PropertyChanges { target: installAllButton; visible: true && root.updatesAvailable > 1}
18 PropertyChanges { target: updateNotification; visible: false}
19 }
20 ]
21@@ -120,6 +121,8 @@
22
23 onUpdateAvailableFound: {
24 root.updatesAvailable = updateManager.model.length;
25+ if (root.updatesAvailable > 0)
26+ root.includeSystemUpdate = updateManager.model[0].systemUpdate
27 root.state = "UPDATE";
28 root.installAll = downloading;
29 }
30@@ -211,7 +214,7 @@
31 id: installAllButton
32 objectName: "installAllButton"
33
34- property string primaryText: i18n.tr("Install %1 update", "Install %1 updates", root.updatesAvailable).arg(root.updatesAvailable)
35+ property string primaryText: includeSystemUpdate ? i18n.tr("Install %1 updates…").arg(root.updatesAvailable) : i18n.tr("Install %1 updates").arg(root.updatesAvailable)
36 property string secondaryText: i18n.tr("Pause All")
37 text: root.installAll ? secondaryText : primaryText
38 anchors {
39@@ -249,7 +252,7 @@
40 anchors {
41 left: parent.left
42 right: parent.right
43- top: installAllButton.bottom
44+ top: installAllButton.visible ? installAllButton.bottom : parent.top
45 bottom: notification.visible ? notification.top : configuration.top
46 margins: units.gu(2)
47 bottomMargin: 0
48@@ -264,6 +267,7 @@
49 iconSource: Qt.resolvedUrl(modelData.iconUrl)
50 iconFrame: false
51 height: modelData.selected ? units.gu(14) : units.gu(8)
52+ showDivider: false
53
54 property alias actionButton: buttonAppUpdate
55

Subscribers

People subscribed via source and target branches