Add "Preview" link in the creation view
nuest opened this issue · 6 comments
When looking at the current candidate draft, e.g. https://o2r.uni-muenster.de/#/createERC/lnXZx, then I must manually change the URL to get a preview, i.e. https://o2r.uni-muenster.de/#/erc/lnXZx
This way it is hard for authors to test-run their ERC without publishing it first. Should open a new tab.
Related to #149
I modified the Go To ERC Button to display Preview while it is not published. This takes you to desired url in a new tab. View changed code in my fork.
However there are two problems:
- If you run an analysis in the preview tab and publish the ERC afterwards that analysis will be listed as run
- If change something in the createERC tab like metadata or a binding it will not be displayed in the Preview tab
Should i add the Preview Button anyway?
- Yes. Let's keep it that way - I think the most sensible way to handle that would be to allow owners to delete job runs > o2r-project/api#95
- Not a problem. Maybe you can add a little frame or overlay that says "PREVIEW (will not be updated)" to make it clear to the user? I think users should not expect that the preview to be automatically updated across tabs.
Also, screenshots please :-)
Looks nice. Can you increase the padding around the text please, and either have a margin both left and right, or no margin (though maybe that's just cut of in the screenshot).
Please open a PR so me and @NJaku01 can take a look at the code.