breadboard icon indicating copy to clipboard operation
breadboard copied to clipboard

Ports and Complexity

Open paullewis opened this issue 11 months ago • 2 comments

So one of the things on my mind is the node / schema / array editing. Because of the flexibility of our types we have a fairly extensive set of switch statements in a form, each of which requires slightly different validation and so forth. And when we hit port-specs or array we then spin up separate "sub forms" for those types (in the form of <bb-schema-editor> and <bb-array-editor> respectively), which then need to report up to the "super form" when their internal values change.

I don't know if there's much we can do overall, because ultimately we support a lot of types and a lot of variation within certain types, but it feels complex in that machinery 🤔

/cc @dglazkov

paullewis avatar Mar 28 '24 17:03 paullewis