-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
"examples" implementation for material-ui #2369
Conversation
@epicfaace is there any chance I can get a review here 🙏? |
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.
Thanks for the PR -- it would be great to add tests (snapshot tests) if you're able.
311cc5b
to
7a66b5e
Compare
7a66b5e
to
a5b04f4
Compare
Done! :D |
@epicfaace hi again! so I added the tests, everything is ok for this PR to be reviewed/merged? |
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 good, thanks!
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.
Can you also update snapshots by running npm test -- -u
?
onBlur={_onBlur} | ||
onFocus={_onFocus} | ||
inputProps={{ | ||
list: `examples_${id}`, |
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.
We shouldn't include this prop if schema.examples
doesn't exist.
Please, we need this implementation... What needs to be done? |
- Updated the `BaseInputTemplate` in both `@rjsf/material-ui` and `@rjsf/mui` to add the examples implementation from rjsf-team#2369 - Added the `schema.examples` tests in the `Form.test.tsx`
- Updated the `BaseInputTemplate` in both `@rjsf/material-ui` and `@rjsf/mui` to add the examples implementation from rjsf-team#2369 - Added the `schema.examples` tests in the `Form.test.tsx`
- Updated the `BaseInputTemplate` in both `@rjsf/material-ui` and `@rjsf/mui` to add the examples implementation from rjsf-team#2369 - Added the `schema.examples` tests in the `Form.test.tsx`
* Reimplement #2369 in both material ui themes - Updated the `BaseInputTemplate` in both `@rjsf/material-ui` and `@rjsf/mui` to add the examples implementation from #2369 - Added the `schema.examples` tests in the `Form.test.tsx` * - Updated `CHANGELOG.md` for this fix as well as the fix for the previous commit - Commit the `semantic-ui` lock file since it was updated on my install * - Fixed issue with the wrong placement of the list - Updated tests accordingly - Also added `source-map-loader` to `playground` dev dependencies to fix playground * - Added antd, fluent-ui and semantic-ui as well
Fixed in v5 beta via refactor of this PR |
Reasons for making this change
Related to the issue I raised heh 👉👈 #2368
This wasn't really complicated, most of the heavy lifting was in the bootstrap implementation.
If test are required I can work on them this weekend.
Checklist
Deploy preview
Once CI finishes, you should be able to view a deploy preview of the playground from this PR at this link: https://deploy-preview-[PR_NUMBER]--rjsf.netlify.app/