ant-digitalSolutions / antScriber-ui

0 stars 0 forks source link

Feature Request: Consolidate Form Data into Single data Field #23

Closed flechilla closed 1 year ago

flechilla commented 1 year ago

Description

Our form data is currently sent in multiple fields, making it cumbersome for the server to handle. The proposed feature consolidates all form data into a single data field. This would involve using the same philosophy we currently employ with the fields of the specific use case. The server would only have to handle one object with conditional fields, making the wizard form more extensible.

The solution involves modifications to the WizardCreatorFormComponent. The idea is to use common components that handle specific fields. This way, the common field components (WizardCreatorTextFieldComponent, WizardCreatorCheckboxFieldComponent, ...) will automatically handle the data with the wizard form.

Motivation

This feature is essential to improve the efficiency of our server-side form data handling. By sending all data in one field, we reduce the complexity of the data structure the server has to process. This makes the server's job easier and allows us to extend the wizard form more quickly in the future.

Use Cases

Expected Behavior

Upon implementation of this feature, the WizardCreatorFormComponent should automatically handle all form data, regardless of the specific fields involved. All form data should be sent to the server in a single data field. The server should then be able to process this data as one object with conditional fields.

Additional Context (Optional)

This feature request is part of our ongoing efforts to optimize server-side operations and improve the extensibility of our forms. We believe that this change will significantly contribute to these goals.