incentivizinggood / vize

Vize's core products and services.
https://www.vize.mx
6 stars 0 forks source link

Redo forms without AutoForms package #66

Open jhigginbotham64 opened 6 years ago

jhigginbotham64 commented 6 years ago

AutoForms is a Meteor thing, and will no longer we usable after we migrate away from Meteor. But in any case, AutoForms was nice to start out with but has become more difficult to work with over time. We need something that's easier to edit and change, and probably that integrates naturally with GraphQL.

jhigginbotham64 commented 6 years ago

"...has become more difficult to work with over time" To say the least. The following issue has been making it VERY difficult to do the request location fixes, and it doesn't look like there's a proper solution in the works. The recommended workaround seems to be working so far (will update here if it doesn't), but it is brutally hackish: downgrade the simpl-schema package. https://github.com/aldeed/meteor-autoform/issues/1653 I suppose that ultimately it's an issue with SimpleSchema, not AutoForms (if you read to the end). Except AutoForms depends on SimpleSchema for everything important.

joshuatshaffer commented 6 years ago

I looked at some React based alternatives and the best option seems to be Formik. I first looked at Informed. It looks like it has a nice design and simple interface, but it is missing some important features. Redux Form is the most popular but it looks over done. I don't see a good reason to store form state in Redux and it doesn't seem to have any features beyond what Formik can do.

I am experimenting with this on experiment/formik.

jhigginbotham64 commented 6 years ago

I'm actively working on replacing AutoForms with Formik. Formik can be said to integrate "organically" with GraphQL via the Query component provided by the Apollo GraphQL package, and is certainly easier to edit, change, and shape to our needs than AutoForms because...it doesn't do as much magic.