Feat: Widgets configs through workflows #12437
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Types of changes
Description of Change
This PR adds the ability to provide configuration for individual widgets within a workflow by passing config options for the workflow directly in the workflow file.
This allows for different options to be applied to a node/widget in a workflow without editing the graph and affecting various workflows that may not need the applied config. For example disabling input or making adjustments to the label or placeholder string.
It modifies the card-component.js to take the input config and process this to overwrite the matching params that are passed to the widget on render.
This is done through a series of handlers to create the correct data type depending on the param that is being overwritten.
Issues Solved
This is a new feature that we have been using to allow us to use the same node and apply different configurations to the widget dependent upon the workflow being used.
Checklist
Accessibility Checklist
Developer Guide
Ticket Background
Further comments