[SailfishOS] Device linking UI improvements: feedback about success/failure, last-seen time delta.
Device linking is implemented in !61 (merged), but no feedback about success or failure has been implemented.
Some UI elements to be improved:
- After adding the device, a new page should pop up showing a "loading" page while the device is being added.
- On failure, said page should change and show the reason of failure
- On success, the page stack should pop (possibly after a second) and a notification should show success. The device list automatically refreshes
- In the device list:
Formatter.DurationElapsed
gives "x hours ago", butlast_seen
contains only a date, not a time. A formatter that shows "today"/"yesterday"/x days ago would be more appropriate, but Formatter is undocumented.Note: This may be solved by using a(apparently this is not enough, see 529e5731).QDate
instead of aQDateTime
, which is some doable Rust work
Edited by Ruben De Smet