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

feat: add oneOf renderer #42

Merged
merged 14 commits into from
Mar 20, 2024
Merged

feat: add oneOf renderer #42

merged 14 commits into from
Mar 20, 2024

Conversation

DrewHoo
Copy link
Contributor

@DrewHoo DrewHoo commented Mar 17, 2024

No description provided.

@DrewHoo DrewHoo marked this pull request as ready for review March 19, 2024 19:37

export const OneOfRenderer = withJsonFormsOneOfProps(OneOfControl)

function CombinatorTitle({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note to self; put this in a different file

Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be used? This is switching between stylings for the label based on if the label was passed in the controlUISchema and the schema.title?


export const OneOfRenderer = withJsonFormsOneOfProps(OneOfControl)

function CombinatorTitle({
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be used? This is switching between stylings for the label based on if the label was passed in the controlUISchema and the schema.title?

src/controls/OneOfControl.tsx Outdated Show resolved Hide resolved
rootSchema: JsonSchema
}

function handleCombinatorTypeChange({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

write a test for the default value bug

@DrewHoo DrewHoo force-pushed the f/one-of-renderer branch from 1b36d73 to c4e56e9 Compare March 20, 2024 16:01
Copy link
Contributor

@TrangPham TrangPham left a comment

Choose a reason for hiding this comment

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

It looks good to me.

@DrewHoo DrewHoo merged commit d570957 into main Mar 20, 2024
2 of 3 checks passed
@DrewHoo DrewHoo deleted the f/one-of-renderer branch March 20, 2024 18:45
Copy link

🎉 This PR is included in version 1.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants