Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Write access for plugins? #21

Open
allmarkedup opened this issue Mar 14, 2019 · 0 comments
Open

Feature request: Write access for plugins? #21

allmarkedup opened this issue Mar 14, 2019 · 0 comments
Labels
enhancement New feature or request plugins Issues related to plugins

Comments

@allmarkedup
Copy link
Member

As suggested in #15:

"It also might be interesting to consider if there's merit in a standard pattern for plugins to feed data back into a running Fractal server instance. This could be pretty simple, e.g. allowing plugins to register for a hook, and then providing an endpoint that accepts (say) something like a component handle, a plugin handle and an arbitrary payload that is received by the plugin fn registered to the hook.

A couple of example workflows that I can think of that could make use of something like this:

Design review: Our design team will often use our Fractal instances to design review components while they're in dev. It would be great to be able to update component metadata / config to store data about that process in the component's config file, e.g. storing a timestamp or updating component status after a designer has hit a "complete review" button in the fractal UI.

In-browser prop editor: Being able to fiddle about with prop values live in the browser a la Storybook Knobs would be great, but to get it working for SSR templates like Twig you would need a way to tell Fractal to re-render a given component with a revises set of prop values. See also my FR for typed props or similar below.

To be clear, I'm suggesting Fractalite should just provide the hook for plugins to register on and endpoint to invoke the hook, and leave everything else to plugins."

@allmarkedup allmarkedup added the enhancement New feature or request label Mar 14, 2019
@allmarkedup allmarkedup mentioned this issue Mar 14, 2019
11 tasks
@allmarkedup allmarkedup added the plugins Issues related to plugins label Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugins Issues related to plugins
Projects
None yet
Development

No branches or pull requests

1 participant