You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to make an inventory of all the features supported by the current SmartForm component, and think about how to create a better version.
Goals
A new version should ideally accomplish the following goals:
Better document and define the props required and/or accepted by form components.
Disconnect form components and form "wrapper" so that they can potentially be each used without the other.
Make forms work in a no-JS environment (rely on HTML forms and not on internal React state).
Do more processing (for example, field serialization into a JSON object) server-side when possible.
Better-defined error management.
Use hooks and/or context to avoid prop drilling
Client-side validation (I'm not sure if we do that currently, I don't think so)
Smarter schema loading (currently in a Vulcan app we assume that every model schema is loaded in its entirety all the time, we should be able to load partial schemas on-demand maybe).
Fewer component layers, maybe get rid of FormWrapper, FormComponent, and FormComponentInner.
Current Features
FormWrapper
load document to update (get fragment based on fields, show loader etc.)
SmartForm
prefilled props
nested forms support
field label i18n
multi-language fields
update/create forms
delete document
automatically figure out mutable fields based on current user
manually add/remove specific fields in addition to auto fields
Trying to make an inventory of all the features supported by the current SmartForm component, and think about how to create a better version.
Goals
A new version should ideally accomplish the following goals:
Current Features
FormWrapper
SmartForm
FormLayout
FormGroup
FormComponent
FormComponentInner
FormItem
The text was updated successfully, but these errors were encountered: