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:
refactors IComponentField / similar interfaces to IConfigField / similar interfaces
sets up new configs/ 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 the component_types dir which contains very similar configurations that were previously used within the reactflow components directly._
updates several workflow_inputs child components to integrate with the new form structure
updates validateFormAndFlow in ResizableWorkspace and renames to validaterAndSubmit. This is where the actual create or update workflow APIs will be executed
partial implementation of the conversion fns: converting the ui_metadata config -> form values and yup schema, and vice versa. As the explicit configs and fields get built out, these will be progressively updated
minor formatting updates
Demo video showing form & validation integration: (note the create fails - fns to generate the e2e template will be part of the next PR)
[x] Commits are signed per the DCO using --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.
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.