saumya-banthia / tailscale-control

A Decky plugin to control Tailscale, while staying in Gaming mode.
BSD 3-Clause "New" or "Revised" License
56 stars 8 forks source link

Show tailscale devices and their status #5

Closed gustakasn0v closed 10 months ago

gustakasn0v commented 1 year ago

Context

I was debugging my Steam Deck not establishing a direct connection with my home router. It's rather cumbersome to switch to desktop mode to run tailscale status on a terminal, especially if you don't have mouse and keyboard. So this PR allows users to see the status of their tailscale network directly from the Decky Loader.

Changes

I appreciate the UI is most likely not ready for publishing to the Decky store; I mostly did this to help myself while debugging my network, but happy to take feedback and polish this until it's ready for publishing (if we agree this is a worthwhile feature)

Screenshot

imgonline-com-ua-dexifbMMU1LBmqHDo

saumya-banthia commented 1 year ago

Context

I was debugging my Steam Deck not establishing a direct connection with my home router. It's rather cumbersome to switch to desktop mode to run tailscale status on a terminal, especially if you don't have mouse and keyboard. So this PR allows users to see the status of their tailscale network directly from the Decky Loader.

Changes

  • Shows a very rudimentary text output from tailscale status if the tailscale network is up
  • Refreshes it every 5s

I appreciate the UI is most likely not ready for publishing to the Decky store; I mostly did this to help myself while debugging my network, but happy to take feedback and polish this until it's ready for publishing (if we agree this is a worthwhile feature)

Screenshot

imgonline-com-ua-dexifbMMU1LBmqHDo

Will take a look, at a cursory glance it seems like a good feature addon, might take me a few weeks to get to this since I work on this as a hobby.

EDIT: The screenshot wasn't visible until I dropped this comment, and you are right the UI for the status would definitely require polish

saumya-banthia commented 11 months ago

@gustakasn0v I will be closing this PR soon, but will be mentioning this as the reason for this feature addon. I've pushed a version which has the capability to view device names and their status, I am thinking of using Modals and lists to replace the current version, but for now, HTML tables would have to do. I'll wait a few days for your response in case you have something to add, else I will raise a PR to plugin DB and close this one.

gustakasn0v commented 11 months ago

Sounds good, thanks for building the feature! I didn't have time to fully implement the UI myself, and this quick-and-dirty PR helped me get my setup working anyway, so looking forward to the new version of the plugin!