Merge lp:~ken-vandine/ubuntu-system-settings/lp1542098 into lp:ubuntu-system-settings

Proposed by Ken VanDine
Status: Work in progress
Proposed branch: lp:~ken-vandine/ubuntu-system-settings/lp1542098
Merge into: lp:ubuntu-system-settings
Diff against target: 21 lines (+7/-4)
1 file modified
plugins/bluetooth/PageComponent.qml (+7/-4)
To merge this branch: bzr merge lp:~ken-vandine/ubuntu-system-settings/lp1542098
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Matthew Paul Thomas (community) design Disapprove
Review via email: mp+285145@code.launchpad.net

Commit message

Dropped the spinner in the connected list, i don't think it's ever visible but it shows a vertical divider

Description of the change

Dropped the spinner in the connected list, i don't think it's ever visible but it shows a vertical divider

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Did you mean “it’s ever visible”? It's supposed to be visible when a device is pairing automatically, so removing it altogether isn’t right. <https://wiki.ubuntu.com/Bluetooth#Listing_devices>

Anyway, we recorded this problem in the Bluetooth panel just because that was a panel we happened to go into while pairing a keyboard with the test tablet. If we’d gone into the Wi-Fi panel instead, we would have recorded the problem there. The dividers are wrong everywhere they appear, so amputating one callsite won’t fix the problem.

Please remove the dividers in the toolkit instead.

review: Disapprove (design)
Revision history for this message
Ken VanDine (ken-vandine) wrote :

> Did you mean “it’s ever visible”? It's supposed to be visible when a device is
> pairing automatically, so removing it altogether isn’t right.
> <https://wiki.ubuntu.com/Bluetooth#Listing_devices>
>
> Anyway, we recorded this problem in the Bluetooth panel just because that was
> a panel we happened to go into while pairing a keyboard with the test tablet.
> If we’d gone into the Wi-Fi panel instead, we would have recorded the problem
> there. The dividers are wrong everywhere they appear, so amputating one
> callsite won’t fix the problem.
>
> Please remove the dividers in the toolkit instead.

AFAICT, that spinner isn't displayed because the device doesn't get put into the connected device model until it's already connected.

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

So you are seeing bug bug 1488885. But we did not see it on Tuesday, and I am not seeing it today: the spinner appears in the list item when pairing it manually, which is what’s supposed to happen. <https://wiki.ubuntu.com/Bluetooth#Pairing_manually> If the spinner was never displayed, the divider would never be displayed either, so there would be no point in making this change anyway!

This is a bit muddled by a connecting device moving to the “Connected devices:” list prematurely, which I’ve just reported as bug 1542368. But whether that bug is fixed or not, removing the spinner would be confusing. As long as it’s unfixed, the lack of spinner would give the impression that a device has paired instantly when it has not. And when it is fixed, the lack of spinner would give the impression that choosing “Connect” had no effect.

1594. By Ken VanDine

Added back the ActivityIndicator but commented out with a comment explaining we want this when we switch to the new ListItem

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

Please, no, we don’t want the spinner just “when we switch to the new list item”. The spinner already exists, and removing it would make the UI worse in the way I described. That new problem would be much worse than the visual glitch of the divider.

Bug 1542098 is one of a grab-bag of problems, varying hugely in severity, that we happened to notice in the parts of the UI that we happened to look at in two hours. They are not the worst problems on the device. (If Bill got that impression, please ask him to call Ben who will be happy to clarify this.) And certainly this one is not so critical that it is worth fixing by making the UI more confusing.

Unmerged revisions

1594. By Ken VanDine

Added back the ActivityIndicator but commented out with a comment explaining we want this when we switch to the new ListItem

1593. By Ken VanDine

Dropped the spinner in the connected list, i don't think it's every visible but it shows a vertical divider

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/bluetooth/PageComponent.qml'
2--- plugins/bluetooth/PageComponent.qml 2016-01-28 14:22:51 +0000
3+++ plugins/bluetooth/PageComponent.qml 2016-02-05 18:03:31 +0000
4@@ -303,10 +303,13 @@
5 iconSource: iconPath
6 iconFrame: false
7 text: getDisplayName(type, displayName)
8- control: ActivityIndicator {
9- visible: connection == Device.Connecting
10- running: visible
11- }
12+ /* Dropped to work around #1542098, we should
13+ * add this back when we switch to the new listitem
14+ * control: ActivityIndicator {
15+ * visible: connection == Device.Connecting
16+ * running: visible
17+ * }
18+ */
19 onClicked: {
20 backend.setSelectedDevice(addressName);
21 pageStack.push(Qt.resolvedUrl("DevicePage.qml"), {backend: backend, root: root});

Subscribers

People subscribed via source and target branches