solid-ui icon indicating copy to clipboard operation
solid-ui copied to clipboard

Create a dedicated lib for forms

Open timea-solid opened this issue 3 years ago • 5 comments

Separate the forms code out of solid-ui into its own lib. This would allow faster loading of it and easier reuse. See discussion: https://gitter.im/solid/solidos?at=62d9064b76cd751a2f55cee9

Just for the record: Jeff had ideas to improve the form with this https://github.com/jeff-zucker/solid-ui-components/issues/15

timea-solid avatar Jul 22 '22 08:07 timea-solid

Another feature idea: https://github.com/SolidOS/solid-ui/issues/509

timea-solid avatar Jul 22 '22 08:07 timea-solid

I generally like this idea but here's what I wonder : in almost all use cases one needs to be authenticated to use a form so if forms are split off then most users will need to also import the inrupt libraries. Are we saving them anything by having the forms separate or would they just need to put most of solid-ui back to use authenticated forms? It may be good for logical reasons but I'm not sure it will solve the size/deployment issues.

jeff-zucker avatar Jul 22 '22 15:07 jeff-zucker

solid-forms, like solid-ui would be using solid-logic. (for now this is the only dependency I see necessary)

timea-solid avatar Jul 22 '22 16:07 timea-solid

So other than forms and solid-logic and rdflib and the inrupt library, what does that leave in solid-ui itself and is what it leaves a large byte-size saver compared to all those other heavy-lifters which would be in solid-forms? (I'm not arguing against doing this, just suggesting that optimization of size may not be one of its benefits)

jeff-zucker avatar Jul 22 '22 16:07 jeff-zucker

Solid-ui has a lot of extra code which solid-forms would not need. But to be honest I do not know how how much less in size it will be. One other advantage: solid-forms will be easier to read and code in, easier to find your way around, hopefully

timea-solid avatar Jul 22 '22 16:07 timea-solid