Skip to content

Conversation

@chris-miaskowski
Copy link

@chris-miaskowski chris-miaskowski commented Jul 10, 2019

What change is introduced

  • added rowRendererRight agnostic of the content (will enable Studio to render checkboxes). This component renders arbitrary elements on the right hand side of the row.
  • added schemaControlsRenderer agnostic of the content (will enable Studio to render 'apply mask' and 'clear mask' buttons). This renders any content right under the JSON Schema
  • fix for combiner dividers. previously it was relative to the immediate parent which cause an issue if rowRendererRight had any margin or modified height in any way. it resulted in that parent's calculated height to be altered and therefore the relative positionig of divider become broken. We had to use calc but it's supported by all major browsers.

See a storybook with example checkbox added.

image

@chris-miaskowski chris-miaskowski marked this pull request as ready for review July 11, 2019 09:45
Copy link

@mallachari mallachari 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 in general. I'll run it locally but for now just few comments.

@P0lip P0lip changed the title Refactor/stu 313 masks feat: introduce rowRendererRight Jul 11, 2019
@P0lip
Copy link
Contributor

P0lip commented Jul 11, 2019

I reviewed the code and it's alright. If the component looks okay, we can merge it. I'm not fully happy with that renderer prop, yet I won't reject PR because of this.

@chris-miaskowski
Copy link
Author

I reviewed the code and it's alright. If the component looks okay, we can merge it. I'm not fully happy with that renderer prop, yet I won't reject PR because of this.

Cool! Thank you, can you please hit approve in such case? Would get one dependency ticked off.

@chris-miaskowski chris-miaskowski requested a review from P0lip July 11, 2019 13:54
@chris-miaskowski chris-miaskowski merged commit dd89bc4 into master Jul 11, 2019
@chris-miaskowski chris-miaskowski deleted the refactor/stu-313-masks branch July 11, 2019 14:10
@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version 2.5.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.

7 participants