Bug 449517

Summary: Applet instance should show a brief error in addition to the notification about connection failure
Product: [Plasma] Bluedevil Reporter: ratijas <me>
Component: system trayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: me, nate, nowrep
Priority: NOR Keywords: usability
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.1

Description ratijas 2022-02-02 19:27:17 UTC
SUMMARY

When an attempt to connect to a device fails, Plasma workspace shows a timed notification in a corner of the screen. If the attempt was triggered by clicking in an applet instance far from that corner, it might be hard to notice, and user might get frustrated because nothing seems to happen ("I clikk — it dasan't work"). Also, the bigger the screen — the more prominent this issue becomes; see LTT video of Linux Challenge about Ark's compression status.

STEPS TO REPRODUCE
1. Pair with a Bluetooth device.
2a. Turn off the device, take off the batteries, put it far away and make sure it won't be able to connect
2b. Or a Bluetooth stack that crashes all the time installed (ahem…)
3. Press Connect button on that device's view in the applet.

OBSERVED RESULT

Either immediately or after some time — an error notification appears in Plasma, but there's no visual feedback in the applet itself.

EXPECTED RESULT

Applet should briefly show an error state somewhere over the device item/row, or as an inline message on top/bottom of the list.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.2-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2
Comment 1 Bug Janitor Service 2024-03-05 12:06:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/bluedevil/-/merge_requests/160
Comment 2 Kai Uwe Broulik 2024-03-05 12:55:30 UTC
Git commit 3efb2a2dbe8e60de11a6033ef4977f64100a9646 by Kai Uwe Broulik, on behalf of Patrik Fábián.
Committed on 05/03/2024 at 12:55.
Pushed by broulik into branch 'master'.

applet: Indicate connnection failure in the applet

There is no indication of an unsuccessful connection attempt in the applet, only a notification is shown, which could be missed in some cases.

This adds a "Connection failed" message under the device's name.

M  +5    -0    src/applet/package/contents/ui/DeviceItem.qml

https://invent.kde.org/plasma/bluedevil/-/commit/3efb2a2dbe8e60de11a6033ef4977f64100a9646