Skip to content
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

Closed
wants to merge 5 commits into from

Conversation

inrumi
Copy link

@inrumi inrumi commented May 7, 2021

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

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests
    • I've updated docs if needed
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

Deploy preview

image

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/

@inrumi inrumi requested a review from agustin107 as a code owner May 7, 2021 23:02
@inrumi
Copy link
Author

inrumi commented May 13, 2021

@epicfaace is there any chance I can get a review here 🙏?

Copy link
Member

@epicfaace epicfaace left a 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.

@inrumi inrumi force-pushed the inrumi/examples-4-materialui branch from 311cc5b to 7a66b5e Compare May 14, 2021 03:01
@inrumi inrumi force-pushed the inrumi/examples-4-materialui branch from 7a66b5e to a5b04f4 Compare May 14, 2021 03:03
@inrumi
Copy link
Author

inrumi commented May 14, 2021

Thanks for the PR -- it would be great to add tests (snapshot tests) if you're able.

Done! :D

@inrumi
Copy link
Author

inrumi commented May 25, 2021

@epicfaace hi again! so I added the tests, everything is ok for this PR to be reviewed/merged?

Copy link
Member

@epicfaace epicfaace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

Copy link
Member

@epicfaace epicfaace left a 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}`,
Copy link
Member

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.

@JameStitel
Copy link

Please, we need this implementation... What needs to be done?

@heath-freenome heath-freenome added the p1 Important to fix soon label Aug 12, 2022
@heath-freenome heath-freenome added the v5 refactor Needs refactor due to v5 breaking changes label Aug 29, 2022
heath-freenome added a commit to heath-freenome/react-jsonschema-form that referenced this pull request Aug 29, 2022
- 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`
heath-freenome added a commit to heath-freenome/react-jsonschema-form that referenced this pull request Aug 29, 2022
- 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`
heath-freenome added a commit to heath-freenome/react-jsonschema-form that referenced this pull request Aug 29, 2022
- 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`
heath-freenome added a commit that referenced this pull request Aug 29, 2022
* 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
@heath-freenome
Copy link
Member

Fixed in v5 beta via refactor of this PR

@inrumi inrumi deleted the inrumi/examples-4-materialui branch May 8, 2023 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p1 Important to fix soon v5 refactor Needs refactor due to v5 breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants