-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update @rjsf/* to 5.22.4 #1744
Update @rjsf/* to 5.22.4 #1744
Conversation
d0a577f
to
2b24ca6
Compare
2b24ca6
to
2bc81c1
Compare
…se "enum" everywhere and provide enumMetadata, remove support of number values in radio group (problematic and not used)
…us to join SelectMultiple + CheckboxGroup and Select + RadioGroup
2bc81c1
to
be4b111
Compare
…, the possibility to have number was removed as it doesn't make sense, and it is hard to cast to string safely, new ValueAdapter was created to handle conversion between boolean <-> string as react-aria RadioGroup only support string values, the previous logic (creating "value-1", "value-2") was cumbersome
be4b111
to
142f504
Compare
# Conflicts: # forms-shared/tests/definitions/__snapshots__/formDefinitions.ts.snap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right - I understand what is happening where and why, that's probably enough :)
🚢
Test build pipeline info 🚀 🔜 forms-shared together with nest-forms-backend and next as those needs to be rebuild when forms-shared are changed |
This update is part of larger set of changes needed for #1715.
In order to have support for advanced conditions I managed to implement custom
experimental_customMergeAllOf
to have super fast merging of conditional fields (the slowest part of RJSF right now):rjsf-team/react-jsonschema-form#4308
However the same update brought these two regression (or improvements 🤷?)
Consider reverting "Make fields with const pre-fiiled and readonly" rjsf-team/react-jsonschema-form#4344
There's temporary fix in c91c994
Unwanted default value for object field (regression introduced in 5.22.0) rjsf-team/react-jsonschema-form#4361
This is the major part of the PR, this led me to migrate all
anyOf
s toenum
s. This is a good change, as it would increase our resilience to future RJSF changes. I managed to share previously atomized logic between 4 fields (select, select multiple, radio group, checkbox group) and between domains (schema generator, summary generator, RJSF widget components). As a part there's lot of needed refactoring and I also support for numeric values in radio group was removed (unused and problematic).Also, I wouldn't be confident to make such a change without extensive test coverage we have now so it helps us to move fast tremendously. In addition, Cypress tests helped me to find a serious issue during the development for the first time. 💪