Skip to content

Setup material-ui tests#1641

Merged
epicfaace merged 15 commits intomasterfrom
setup-mui
Apr 6, 2020
Merged

Setup material-ui tests#1641
epicfaace merged 15 commits intomasterfrom
setup-mui

Conversation

@epicfaace
Copy link
Member

@epicfaace epicfaace commented Mar 9, 2020

Reasons for making this change

Add tests to the material-ui theme so that it can be released.

Also, update the docs to discuss the themes in more detail.

Finally, refactors utils to be exported from the default @rjsf/core package so that they are properly transpiled -- fixes #1655 (this had to be done in order to get material-ui tests to work, so that's why both are done in the same PR)

So, previously an import would look like this:

import { getDefaultRegistry } from "@rjsf/core/lib/utils";

Now you would need to do this:

import { utils } from "@rjsf/core";
import { getDefaultRegistry } from utils;

Related: #1561 #1585 -- we'd have to get the theme documentation in first before merging these two PRs.

Copy link
Contributor

@Saulzi Saulzi left a comment

Choose a reason for hiding this comment

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

I did the same as this except for I pulled typings in and I found that the material-ui did not work

@epicfaace epicfaace changed the title Setup material-ui Setup material-ui tests Mar 14, 2020
epicfaace added a commit that referenced this pull request Mar 16, 2020
Building off of work done in #1606 and #1641.

Update build and dev process and documentation (as discussed in #1630 (comment)). The developer will just need to run lerna bootstrap, run npm start from the package they are modifying, then run the playground from packages/playground to get a live-reloading playground.
Fix deploy previews by configuring netlify so that it runs lerna bootstrap, thus linking the packages with the local changes in the PR, before building the playground.
Export typings from @rjsf/core (fixes #1583) -- did this in this PR so that @rjsf/material-ui would work as well.
Fix playground issues in which the material-ui playground did not use the right ObjectFieldTemplate or ArrayFieldTemplate.
Fixes #1630 .
@epicfaace epicfaace requested a review from edi9999 April 5, 2020 15:57
@epicfaace epicfaace merged commit 2eae50c into master Apr 6, 2020
@epicfaace epicfaace deleted the setup-mui branch April 6, 2020 02:01
@heath-freenome
Copy link
Member

Can we get a release with these fixes soon?

@epicfaace
Copy link
Member Author

Soon!

@heath-freenome
Copy link
Member

heath-freenome commented Apr 22, 2020

I really hope so, I've just reached the point where this is completely blocking me. Is there anyway I can help? Review a PR or something?

@Morriz
Copy link

Morriz commented Apr 23, 2020

Yes please, so that we may override ArrayFieldTemplate properly to inject our custom AddButton to use color='primary' instead of secondary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create separate @rjsf/utils package

5 participants