(feat)ui: migrate form builder in connection form#27812
(feat)ui: migrate form builder in connection form#27812harsh-vador wants to merge 14 commits intomainfrom
Conversation
Code Review ✅ Approved 3 resolved / 3 findingsMigrates the connection form to the new builder while addressing stale state issues in CoreOneOfField and adding standardized label formatting. All previously identified issues with component naming, stale state, and label casing have been resolved. ✅ 3 resolved✅ Quality: Missing displayName on forwardRef component FormBuilderV1
✅ Edge Case: CoreOneOfField selectedOption can go stale on formData changes
✅ Bug: startCase() corrupts acronyms and pre-formatted labels
OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
FormBuilderV1to memoizemergedFieldsandmergedWidgetsusinguseMemofor better performance.CoreOneOfFieldto prevent stale state issues by usinguseEffectandgetClosestMatchingOptionto track option selection.CoreOneOfFieldwhen switching options to ensure form data consistency across schema changes.getWidgetLabelto automatically applystartCaseformatting to camelCase field identifiers while preserving existing display labels.FormBuilderV1Widgets.test.tsxto reflect standardizedstartCaselabel casing in the UI.CoreOneOfField.test.tsxto verify correct selection persistence when form data matches multiple schema options.getWidgetLabelto validate label formatting logic for different naming conventions.This will update automatically on new commits.