Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Forms #32

Open
3 tasks
jackcmeyer opened this issue Sep 14, 2019 · 10 comments
Open
3 tasks

Forms #32

jackcmeyer opened this issue Sep 14, 2019 · 10 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Milestone

Comments

@jackcmeyer
Copy link
Member

jackcmeyer commented Sep 14, 2019

馃殌 Feature Proposal

Add forms to the component library.

Forms should have:

  • form builder: outputs a jsonschema, including validation and field types
  • auto building forms from a jsonschema
  • auto validating on predefined input types; function on custom input types

Motivation

Forms are used to enter information.

Example

Creating a new patient.

Relevant Links

  • (formik)[https://bundlephobia.com/result?p=formik@1.5.8]
@jackcmeyer jackcmeyer added enhancement New feature or request help wanted Extra attention is needed labels Sep 14, 2019
@jackcmeyer jackcmeyer added this to To do in Version 2.0 via automation Sep 14, 2019
@fox1t fox1t mentioned this issue Sep 14, 2019
20 tasks
@matteovivona matteovivona modified the milestones: v0.1.6, v0.2.0 Sep 16, 2019
This was referenced Oct 4, 2019
@ben-m-j-taylor
Copy link

ben-m-j-taylor commented Nov 3, 2019

Hi, I'd be interested in picking this issue up!

I'm just wondering if it might be worth separating the Form and FormBuilder components into their respective issues? As they seem like two very distinct components and chunks of work :)

If not I鈥檓 perfectly happy to do both as part of this issue :)

@matteovivona
Copy link
Contributor

@irvelervel what do you think?

@irvelervel
Copy link

Hello everyone. I already did a pretty significant amount of work tooling a form generator system in the past, complete with autobuilding-from-schema features; the only problem is that I built it upon redux-form (https://github.com/redux-form/redux-form) which now seems to be much less relevant than it was at the time. Me and the rest of the core team agree that formik (https://github.com/jaredpalmer/formik) is a strong base to build upon right now.
@B-Taylor123 I didn't intended those (the form and the formbuilder) as two separate components :) once the form-generator system is build up, you can pass a configuration to it a that renders a form which outputs the values selected as a valid json schema; then, this json schema could be passed again to our form-generation system to create the desired form.

@ben-m-j-taylor
Copy link

Ahhh, thanks for clearing that up @irvelervel :) I鈥檇 still like to pick this task up if that鈥檚 cool with everyone?

@irvelervel
Copy link

@B-Taylor123 really sorry for the late response. I apologize but I realized I want to take some time to inspect my old code and check all the features implemented at the time in order to have a clearer picture of the code portions we need to write from scratch. We are probably going to have an open talk about this: we'll be glad if you can be a part of it. Stay tuned ;)

@ocBruno
Copy link
Contributor

ocBruno commented Dec 12, 2019

Not sure if this has already been discussed and decided upon but if not I am also interested in helping out with this form builder if any help is needed.
I was taking a look at react-final-form as a substitute for formik as its smaller, only has the final-form dependency which itself has zero dependencies. It might have all the needed functionalities and serve as a better substitute for the form component but i'm not certain.
If anyone with a better grasp wants to check it out and give there opinion here is the project link!
https://github.com/final-form/react-final-form
I am more than willing to read into final-form and react-final-form if needed for the form constructor and even begin the boilerplate code to help start it up.

@fox1t
Copy link
Member

fox1t commented Dec 13, 2019

Hi @ocBruno, we analyze almost everyone form component and we decided to go with Formik. We like its philosophy and flexibility. We will try to use it as first choice and if it won't work for our needs we can re-evaluate react-final-form.
As usual, every contribution is welcomed! Thanks :)

@matteovivona matteovivona added good first issue Good for newcomers and removed good first issue Good for newcomers labels Jan 2, 2020
@matteovivona matteovivona added in progress core-team and removed good first issue Good for newcomers help wanted Extra attention is needed labels Jan 17, 2020
@matteovivona matteovivona added help wanted Extra attention is needed good first issue Good for newcomers and removed core-team in progress labels Jan 26, 2020
@matteovivona matteovivona modified the milestones: v0.2.0, v1.0.0 Feb 20, 2020
@satishbabariya
Copy link

Hello @fox1t, these three libraries will be helpful for the reference implementation.

Drag and Drop UI for Form Which Generates JSON at the end
https://github.com/surveyjs/survey-creator

Form Library that consumes JSON and display form
https://github.com/surveyjs/survey-library

and this one doesn't for creation UI but has JSON to Form implementation.
https://github.com/rjsf-team/react-jsonschema-form

@toniton
Copy link

toniton commented Aug 15, 2020

Hi guys, I'm a bit late to the party, but I think https://react-hook-form.com/ is a much better library than Formik IMO. It was built on react hooks concept, and pretty intuitive to implement.
Does anyone know how much work has been done? As I would like to contribute to this issue.

@cpondoc
Copy link
Contributor

cpondoc commented Dec 18, 2020

Hi, @blestab @fox1t @tehkapa @jackcmeyer -- would love to take this on if no one is working on it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Version 2.0
  
To do
Development

No branches or pull requests

9 participants