Display Live Tool UI during development #124
Labels
feature
New feature proposal
help wanted
Extra attention is needed
vscode extension
Related to the VS Code extension
It would be nice to have the ability to see the tool UI rendered beside the code as you made some tweaks with the parameters, the help, etc. as @hexylena proposed way back in 2015. Maybe not as the core part of the development but as a refining final step to make sure the UI is consistent and all your parameters are well documented and render correctly in the UI.
The initial prototype could be something like this (
Disclaimer: the following image is fake 😝
):Feature planning
Use case
planemo lint
and can be loaded into Galaxy without structural errors.run
the tool).planemo serve
under the hood and opens a Webview panel beside the current tool document in the editor.Possible difficulties
Using an
iframe
in the Webview to contain the Galaxy tool UI seems like a reasonable solution, however, after exploring a bit this path I found some obstacles, probably more because of my lack of knowledge in the matter than the problem itself:planemo serve
must deactivatex_frame_options
or allow something different thanSAMEORIGIN
in the config to be able to display the Galaxy UI inside the vscode panel.x_frame_options
is disabled... when trying to display the inneriframe
containing the tool UI still similar problems occur this time in the vscode end:Maybe just opening the Galaxy web served by planemo in the default browser will be just enough, but I think this way we lose the option to auto-refresh the tool when it changes since we are now not in control. Maybe there is another solution for this?
The text was updated successfully, but these errors were encountered: