DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Phone Connect Plugin Redesign

Open JDKamalakar opened this issue 6 months ago • 26 comments

Compositor

Niri

Distribution

Fedora

Select your Installation Method

DankInstaller

Was your original Installation method different?

Yes

Description

Hey I Am Redesigning Phone Connect Plugin Here Is What I have Reached Till Now Any Suggest From Community What Else Should Be Improved Or Changed.

Screenshots/Recordings

Reference For New Design

Image

JDKamalakar avatar May 12 '26 19:05 JDKamalakar

Looks pretty cool!

purian23 avatar May 13 '26 04:05 purian23

Looks really good.

banicans avatar May 22 '26 21:05 banicans

@Purian23 @banicans This Is Final version Any Comments

https://github.com/user-attachments/assets/417c94c3-5aba-45f2-9c1b-eff06c4db2ba

JDKamalakar avatar May 23 '26 06:05 JDKamalakar

@JDKamalakar I think UI-wise it looks great, but the UX needs a bit more refinement. For example, I expect "Recent Images" to be at the bottom of the popout instead of in between; when a user clicks the button, they expect the content to appear somewhere near that button, not below the recent images section.

hthienloc avatar May 23 '26 06:05 hthienloc

@JDKamalakar I think UI-wise it looks great, but the UX needs a bit more refinement. For example, I expect "Recent Images" to be at the bottom of the popout instead of in between; when a user clicks the button, they expect the content to appear somewhere near that button, not below the recent images section.

Okay thanks for the suggestion, The Reason It Was In Center I Was Replicating UI From ChromeOS (Not Entirely) In That Recent Images Are in center & apps are below it So I That Share & Messages Module Should Be Below The Images What You Said Makes More Sense.

Image

JDKamalakar avatar May 23 '26 10:05 JDKamalakar

@JDKamalakar Thanks for working on the DankKDEConnect improvements. I tested the version from https://github.com/JDKamalakar/dms-plugins-official/tree/master/DankKDEConnect locally and ran into a few issues:

  1. This version uses Qt5Compat.GraphicalEffects, but DMS does not seem to depend on that module by default. On systems without the required Qt component installed, the plugin may fail to load.
  2. The animations for the Share and SMS panels seem to be implemented with fixed timings inside the plugin. They do not appear to follow the global DMS animation settings, so they still play even when animations are disabled globally.
  3. When opening the Share or SMS panel, the inner panel animation is not synchronized with the outer KDE Connect container resizing. For example, after clicking SMS, the SMS form expands faster than the outer window, so during the transition it briefly extends outside the container before the outer window catches up.

jbwfu avatar May 29 '26 14:05 jbwfu

@JDKamalakar Thanks for working on the DankKDEConnect improvements. I tested the version from https://github.com/JDKamalakar/dms-plugins-official/tree/master/DankKDEConnect locally and ran into a few issues:

  1. This version uses Qt5Compat.GraphicalEffects, but DMS does not seem to depend on that module by default. On systems without the required Qt component installed, the plugin may fail to load.
  2. The animations for the Share and SMS panels seem to be implemented with fixed timings inside the plugin. They do not appear to follow the global DMS animation settings, so they still play even when animations are disabled globally.
  3. When opening the Share or SMS panel, the inner panel animation is not synchronized with the outer KDE Connect container resizing. For example, after clicking SMS, the SMS form expands faster than the outer window, so during the transition it briefly extends outside the container before the outer window catches up.

Hey 1st & 2nd are fixed on my local version but are not pushed to github, I am bit bussy.

JDKamalakar avatar May 29 '26 14:05 JDKamalakar

I also noticed two usability issues:

  • If a feature is unavailable on either the local device or the connected device, the corresponding action button should be disabled and visually greyed out. Right now the button can still be clicked, which makes it look available even when it is not.
  • The previous version allowed sending the clipboard directly with one button. This was a common and convenient action, but this version seems to have removed that entry point. It would be nice to keep it available.

jbwfu avatar May 29 '26 14:05 jbwfu

  • If a feature is unavailable on either the local device or the connected device, the corresponding action button should be disabled and visually greyed out. Right now the button can still be clicked, which makes it look available even when it is not.

I previously tested KDE Connect’s feature availability/state sync with media playback as an example. In that test, I played music on my phone and then disabled the media control permission on the phone side. Ideally, KDE Connect would update the feature availability and related state correctly, but it did not seem to do that: the media status exposed to the desktop side still remained as playing, which I confirmed through D-Bus debugging.

So I am not sure how reliably this can be handled from the plugin side.

jbwfu avatar May 29 '26 15:05 jbwfu

I also noticed two usability issues:

  • If a feature is unavailable on either the local device or the connected device, the corresponding action button should be disabled and visually greyed out. Right now the button can still be clicked, which makes it look available even when it is not.
  • The previous version allowed sending the clipboard directly with one button. This was a common and convenient action, but this version seems to have removed that entry point. It would be nice to keep it available.

I also noticed two usability issues:

  • If a feature is unavailable on either the local device or the connected device, the corresponding action button should be disabled and visually greyed out. Right now the button can still be clicked, which makes it look available even when it is not.
  • The previous version allowed sending the clipboard directly with one button. This was a common and convenient action, but this version seems to have removed that entry point. It would be nice to keep it available.

I removed clipboard option as kde connect has option to sync clipboard aka when anything is copied it will show up on mobile & vice a versa but for you I'll add option to toggle this option in settings.

JDKamalakar avatar May 31 '26 14:05 JDKamalakar

  • If a feature is unavailable on either the local device or the connected device, the corresponding action button should be disabled and visually greyed out. Right now the button can still be clicked, which makes it look available even when it is not.

I previously tested KDE Connect’s feature availability/state sync with media playback as an example. In that test, I played music on my phone and then disabled the media control permission on the phone side. Ideally, KDE Connect would update the feature availability and related state correctly, but it did not seem to do that: the media status exposed to the desktop side still remained as playing, which I confirmed through D-Bus debugging.

So I am not sure how reliably this can be handled from the plugin side.

Hey you can try out new changes i have updated git version with almost all the fixies changes that i want to implement only few are left that have not completed with testing.

JDKamalakar avatar May 31 '26 18:05 JDKamalakar

I tested it again and found the following issues:

  1. The Qt5Compat.GraphicalEffects dependency has not actually been removed. DMS does not depend on it by default, so the plugin will fail on systems where that dependency is missing.
  2. Capability detection is broken when using the Valent backend.

Consider adding a feature to specify a preferred backend. Currently, KDE Connect is prioritized by default; allowing users to explicitly prioritize Valent could be beneficial for testing purposes, as it appears that—when KDE Connect is present—the plugin sometimes actively triggers the KDE Connect backend in certain scenarios.

jbwfu avatar Jun 01 '26 08:06 jbwfu

I did some further testing and found a few more issues:

  1. The plugin does not properly distinguish between device types. Desktop/laptop devices are still shown with a phone-oriented view and phone-specific fields such as battery, signal strength, and network type, which results in those fields showing as Unknown.

  2. Battery and charging status updates do not seem to be real-time. KDE Connect's own tray indicator updates promptly, but the plugin state often lags behind.

  3. The notification count always shows 0. The phone currently has active notifications, and KDE Connect exposes them through D-Bus active notifications, but the plugin UI does not appear to count them correctly.

  4. The Max Recent Images slider in the settings page captures mouse wheel events unexpectedly. When scrolling through the plugin settings list, if the cursor happens to pass over that slider, it changes the image count setting instead of only scrolling the page.

  5. The older DeviceCard used in the device switcher does not reuse the same capability gating logic as the new main action row. Some actions remain clickable/highlighted even when the current device does not support them, so the availability behavior is inconsistent across the plugin UI.

  6. After enabling Show Clipboard Quick Action, the top action row no longer lays out correctly. The Switch Device icon can overflow outside the container, and the action row is no longer visually centered.

  7. The new clipboard quick action uses the content_copy icon, while the older device card clipboard action uses content_paste. The two icons communicate slightly different meanings, so this may make the action look like "copy" rather than "send clipboard".

  8. It may be worth adding keyboard navigation support. For example, after opening the panel, keyboard shortcuts could switch between devices. After opening the Share panel, Tab could move focus between the input field, send button, and other controls. A single-key shortcut such as S for Share could also be considered.

jbwfu avatar Jun 01 '26 10:06 jbwfu

  1. Qt5Compat.Graphical

I didn't understand second point can you elebrote properly, also Qt5Compat.Graphical, is not used anywhere just left as import statement (forgot to remove).

JDKamalakar avatar Jun 01 '26 17:06 JDKamalakar

I did some further testing and found a few more issues:

  1. The plugin does not properly distinguish between device types. Desktop/laptop devices are still shown with a phone-oriented view and phone-specific fields such as battery, signal strength, and network type, which results in those fields showing as Unknown.
  2. Battery and charging status updates do not seem to be real-time. KDE Connect's own tray indicator updates promptly, but the plugin state often lags behind.
  3. The notification count always shows 0. The phone currently has active notifications, and KDE Connect exposes them through D-Bus active notifications, but the plugin UI does not appear to count them correctly.
  4. The Max Recent Images slider in the settings page captures mouse wheel events unexpectedly. When scrolling through the plugin settings list, if the cursor happens to pass over that slider, it changes the image count setting instead of only scrolling the page.
  5. The older DeviceCard used in the device switcher does not reuse the same capability gating logic as the new main action row. Some actions remain clickable/highlighted even when the current device does not support them, so the availability behavior is inconsistent across the plugin UI.
  6. After enabling Show Clipboard Quick Action, the top action row no longer lays out correctly. The Switch Device icon can overflow outside the container, and the action row is no longer visually centered.
  7. The new clipboard quick action uses the content_copy icon, while the older device card clipboard action uses content_paste. The two icons communicate slightly different meanings, so this may make the action look like "copy" rather than "send clipboard".
  8. It may be worth adding keyboard navigation support. For example, after opening the panel, keyboard shortcuts could switch between devices. After opening the Share panel, Tab could move focus between the input field, send button, and other controls. A single-key shortcut such as S for Share could also be considered.

I'll Look into it.

JDKamalakar avatar Jun 01 '26 17:06 JDKamalakar

I didn't understand second point can you elebrote properly, also Qt5Compat.Graphical, is not used anywhere just left as import statement (forgot to remove).

Image

These features are restricted to unavailable, but in reality, they are all available; the available feature status does not appear to be updated to the final state.

I'll Look into it.

I look forward to your further optimizations.

jbwfu avatar Jun 01 '26 17:06 jbwfu

I didn't understand second point can you elebrote properly, also Qt5Compat.Graphical, is not used anywhere just left as import statement (forgot to remove).

Image These features are restricted to unavailable, but in reality, they are all available; the available feature status does not appear to be updated to the final state.

I'll Look into it.

I look forward to your further optimizations.

Hey I Pushed New Version, Vallet one is not done. Try it out somethings might not be done as there were too many in multiple comments so it become harder for tracking.

JDKamalakar avatar Jun 04 '26 18:06 JDKamalakar

Thank you for the update. I tested it again and saw many improvements and optimizations, but I also found the following issues:

  • Unable to remove custom images after adding them.

  • The device type placeholder images for Laptop and PC seem too wide, taking up too much space. Perhaps they should be adjusted.

  • Making the device type placeholder image an optional toggle might be more suitable. I know this area is linked to the ping function; this might need to be addressed.

  • For some reason, my notification count is consistently 2, even after removing all notifications on my phone (including persistent notifications). Refreshing and reloading are ineffective.

  • The logs contain a lot of logs unrelated to normal use. That is, every time the status is refreshed, the availability of many functions is checked. The unavailability status corresponding to this check will cause some pollution to the entire DMS log (e.g., ERROR go: DMS API Error: id=1780653509991 error=failed to get properties: No such object path '/modules/kdeconnect/devices/_<uuid>_/mprisremote'). Perhaps it would be more appropriate to change it to debug level logs or remove the logs altogether.

  • Due to the lack of signal strength information for PCs, the status area has significant white space, making it look slightly odd (but functional). Supporting disabling the display of placeholder images to optimize the layout might be better (this is just one solution, and may not be the ideal one).

  • The device switching animation is too slow (but closing is fast), and it's currently unaffected by animation speed settings in DMS.

  • After enabling DMS's animation, clicking on device switching or other operations causes window anomalies, as shown in the image.

Image Image

jbwfu avatar Jun 05 '26 09:06 jbwfu

Thank you for the update. I tested it again and saw many improvements and optimizations, but I also found the following issues:

  • Unable to remove custom images after adding them.
  • The device type placeholder images for Laptop and PC seem too wide, taking up too much space. Perhaps they should be adjusted.
  • Making the device type placeholder image an optional toggle might be more suitable. I know this area is linked to the ping function; this might need to be addressed.
  • For some reason, my notification count is consistently 2, even after removing all notifications on my phone (including persistent notifications). Refreshing and reloading are ineffective.
  • The logs contain a lot of logs unrelated to normal use. That is, every time the status is refreshed, the availability of many functions is checked. The unavailability status corresponding to this check will cause some pollution to the entire DMS log (e.g., ERROR go: DMS API Error: id=1780653509991 error=failed to get properties: No such object path '/modules/kdeconnect/devices/_<uuid>_/mprisremote'). Perhaps it would be more appropriate to change it to debug level logs or remove the logs altogether.
  • Due to the lack of signal strength information for PCs, the status area has significant white space, making it look slightly odd (but functional). Supporting disabling the display of placeholder images to optimize the layout might be better (this is just one solution, and may not be the ideal one).
  • The device switching animation is too slow (but closing is fast), and it's currently unaffected by animation speed settings in DMS.
  • After enabling DMS's animation, clicking on device switching or other operations causes window anomalies, as shown in the image.

Image Image

  1. Unable to reproduce it, But will look into it.
  2. It is intentional, but i'll try it with smaller version but if doesn't look good I'll keep current size.
  3. Although Not To my liking but it will be nice to have such a toggle so i'll implement it.
  4. Unable to Reproduce it, But I'll look if there anything i can do.
  5. I'll do some rework on it.
  6. I think better solution would be if there are any row unavailable, It should reduce size of the container (Specifically for laptop & PC version as this images are horizontal).
  7. Will be Fixed.
  8. Unable to Reproduce it, But I'll Look Into It.

Hey Can you check if there is any other issue when using multiple devices as i don't multiple devices to test. Specifically device Persistence & switching.

JDKamalakar avatar Jun 05 '26 16:06 JDKamalakar

Hey Can you check if there is any other issue when using multiple devices as i don't multiple devices to test. Specifically device Persistence & switching.

On Android, you can clone an app to achieve multi-device connectivity. In my testing, the main issue with device switching was the animation problem mentioned above; no other problems were found so far.

jbwfu avatar Jun 05 '26 16:06 jbwfu