Have re-used the Booking questions UI here in routing forms, to maintain the sanity of the currently built forms have made the zod schema of routing forms extend that of booking form so that the other old fields are included as optional thus breaking nothing.
Major changes are the use of booking questions UI and widgets, defining a new boolean and number widget configuration in react awesome query builder to handle checkbox and number inputs, Transforming the “name” field used as identifier to “id” field in routing forms. Major changes are schema based.
Benefits of this change? Now we don’t have to maintain separate widgets and components for questions thus forming regularity in the UI and the codebase
https://www.loom.com/share/315ef5c28a5a410f8199becf218fcb28?sid=cf392281-33af-4540-89de-f7a9a383c969
https://www.loom.com/share/bb6fce98264b43098aa4ab87393323ea?sid=e972a994-8979-43b2-8c48-bb375eed321e
https://www.loom.com/share/29f7620c66934dbea2ee979e1b1d1961?sid=881ac07e-ffb0-40b1-9eae-32c9d6618324
Updated routing forms to use the booking questions UI and unified form schema, making the UI consistent and reducing duplicate code.
Pradumn Kumar
@Pradumn27
Cal.com, Inc.
@cal