Improvements Wishlist
“Switch” key when a screen runs a plugin as a test from another origin
What happens A screen runs a plugin added with a GitHub link, without a release, so it is a test of the default branch. I then put the same plugin, with the same id, in config/tessera-plugins// to test it from a folder.
On the Plugins page, ticking the screen and pressing Apply in the folder plugin’s details says: “This screen runs another plugin called … from github.com/…. Switch to this one in its details.” In the screen’s own Plugins tab, the folder plugin’s details show Build again and Remove, but no Switch to the one from … key. So there is no way to switch, short of removing the plugin from the screen first.
Why (as far as I can read the code, dev 22bc80a) web/src/components/plugins/PluginOnScreen.vue: the other-origin note and the switch key (plugins.switchPlugin) sit only in the v-else-if="installed" branch. statusOn() in web/src/stores/plugins.ts returns kind: "test" when the installed record is a test (isTest(have)), so the status.kind === 'test' branch renders first, and its Build again rebuilds the installed test from its own origin. otherOrigin() is true there, but nothing shows it.
Expected When otherOrigin(screen, plugin) is true, show the note and Switch to the one from … whatever the installed plugin’s kind is: test, folder or release. For example, check other before the test branch.
Discussion 0
Add a commentStart the conversation
Share an example, ask a question or explain how you would use this.