-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening a coder_app in a new browser window is awkward #297
Comments
Instead of doing it in the provider, I propose adding it to User settings. cc: @coder/pms? |
Some apps really need nav buttons. IMO this is something where at least the defaults should be declared at the app level. |
Yes for choosing a full window vs a slim window. I agree but adding tab vs window could be a user option. |
As I investigated this ticket and started to work on it, here are a few things. Comments
Steps to implementConsidering that want to implement the solution described in the ticket - here are the steps :
cc @dannykopping for visibility. |
Er... maybe as a follow-up item? Let's focus first on this issue.
Is it about validation? so that admin can't really configure the window behavior for |
Agree - thanks. I'll open a second issue once this one is validated so we keep track of it.
My concern is more about adding an option to the templates - I feel like only a small percentage of our templates are browser-based - the other ones opening the native software. This option applies only to the browser-based modules. So if we add the option to the modules, it means it will be ignored for all the non browser-based modules. Is it fine ? |
For no browser-based modules, we use |
This PR is the coder/coder part of [the open_in parameter issue](coder/terraform-provider-coder#297) aiming to add a new optional parameter to choose how to open modules. This PR is heavily linked [to this PR](coder/terraform-provider-coder#321). ℹ️ For now, some integrations tests can not be pushed as it requires a release on the terraform-provider repo.
Problem statement
Currently,
coder_app
s open a slimmed down browser without navigation buttons or tabs. While the slim window maximizes display space for the app and makes it feel like a local process, apps like the filebrowser suffer from not having forward/back arrows.You can open the apps in a new tab then pull them into a new window; but, not all users are aware of this shortcut. We're also missing the Shift+Click keybind to open a fresh browser window.
Solution proposal
We add a new property to
coder_app
likeopen_in
with options to specify the default method of opening the app. We should also achieve parody with chrome keybindings. This attribute would set the default on-click behavior:tab
window
slim-window
(default)For example, the following would open the app in a full new window on regular click or shift+click, and a new tab on ctrl+click.
The text was updated successfully, but these errors were encountered: