Integrate initial workflow configs with Formik
& yup
#153
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.
Description
This PR begins the process of refactoring configs / data that were stored in the data of the ReactFlow nodes, to stored in the config/state of the new form component. It also sets up the initial form schema and validation schema so we have basic form functionality. See video below for a short demo.
More details:
IComponentField
/ similar interfaces toIConfigField
/ similar interfacesconfigs/
dir to contain all of the initial configs that will be used to piece together preset workflows. For example, selecting semantic search will automatically populate a config with a text embedding processor within the ingest form step. This is inspired from thecomponent_types
dir which contains very similar configurations that were previously used within the reactflow components directly.workflow_inputs
child components to integrate with the new form structurevalidateFormAndFlow
inResizableWorkspace
and renames tovalidaterAndSubmit
. This is where the actual create or update workflow APIs will be executedDemo video showing form & validation integration: (note the create fails - fns to generate the e2e template will be part of the next PR)
screen-capture.32.webm
Issues Resolved
Makes progress on #23
Check List
--signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.