tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
3.01k stars 252 forks source link

Proof of concept for popping out the remote screen #1574

Closed jotaen4tinypilot closed 1 year ago

jotaen4tinypilot commented 1 year ago

Proof-of-concept implementation for https://github.com/tiny-pilot/tinypilot/issues/728. (Not meant for merging.)

@mtlynch could you briefly check out this branch, whether the functionality/behaviour matches what you had in mind? If so, I’d chop this up into 2–3 smaller PRs, and wrap up the implementation.

https://github.com/tiny-pilot/tinypilot/assets/83721279/a3a99b42-833a-4cc1-be4d-4bf9500df4a1

Review on CodeApprove

mtlynch commented 1 year ago

Cool, this looks great and matches what I had in mind.

One thing that feels a little weird is that it creates duplicate remote screens, which feels disorienting. What if when the user pops out the remote screen, we replace the default remote screen on the full web interface with a message that says, "Remote screen is displaying in another browser window. You can restore the remote screen by reloading this page."

Not sure about the menu item label, “Popup Window” certainly doesn’t sound great, but I also haven’t thought about good wording yet.

How about "Dedicated Window"?

In order to strip off the menu bar and status bar inside the popup window, I’d find it most simple to use a query parameter (here: ?viewMode=standalone) and facilitate the control flow via a template parameter in views.py/index.html.

Yeah, I like this.

jotaen4tinypilot commented 1 year ago

Terrific, thanks for checking it out. I have taken note in the issue, so we can close this PR for now.