blockly-samples
blockly-samples copied to clipboard
Sharing helper functions
Category Plugins
Component
new component (possibly an extension of the Backpack)
Is your feature request related to a problem? Please describe.
Students often create helper functions that they want to reuse across projects. Sometimes there is a bug or the helper function could be improved and would like to be able to update the helper function in one place and have that change be reflected across all projects.
Describe the solution you'd like
A way to set a function definition as "linked" so that any updates to it are stored in a manager (that may communicate with an external server) and any detected updates to the function definition can be loaded into the workspace to update it. This API should allow for un-"linking" so that it can be considered a regular function definition.
A "linked" function should have a visual indication (like a different color).
As for UI. At minimum, the test page for this plugin should allow for setting a function as a helper function and importing a helper function in a second workspace.
Describe alternatives you've considered
Additional context
Related to, but not the same ask as the Backpack