Preview panel improvement

Hello!
It would be greate if user can be able to edit the URL that is currently opened in the preview panel. It will provide an opportunity to navigate easily into the different components of an application
Does it make sense?

I would like to know your opinion about it
Thanks in advance!

[original thread by RomanNikitenko]

@rnikitenko the issue would be good. There are UX issues with the mini-browser. That’s a reason why it was disabled. @svenefftinge @kittaakos know more

[Nate Aune]

yes, i have the same request. it’s very annoying that you can’t navigate to a different URL, but it seems to be hardcoded to a single URL.

There are UX issues with the mini-browser.

99% will run into a security exception due to CORS

Use MiniBrowserProps.toolbar = ‘visible’ if you want to navigate. I do not want to change the default in Theia.

@kittaakos but it is possible to switch defaults via the custom extension for existing widgets?

[RomanNikitenko]

thank you for answers!

We use theia.commands.executeCommand API to run mini-browser.openUrl command from plugin side. It’s possible to pass URL to command handler, but looks like toolbar property is harcoded

What is the alternative way?
thank you!

but it is possible to switch defaults via the custom extension for existing widgets?

Should be.

What is the alternative way?
thank you!

You can customize the MiniBrowserOpenHandler#getOpenPreviewProps and rebind it.

[RomanNikitenko]

thank you!