-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add schWidth prop with a test #87
base: main
Are you sure you want to change the base?
Conversation
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.
this is a pretty good PR, but i think it would be better to modify getPortArrangementSize
to support taking a schWidth
prop, transforming things can make the code more complicated over time since it's not clear where the original width is.
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.
I dont see how this code could work, you should show it worked in the test. Also there are a lot of unnecessary changes or changes to the API (schWidth should be top level, not inside of portArrangement)
There was no math to compute the width as far as i could see so i dont know if this would work? Maybe show in the test that it worked
schPortArrangement: { | ||
leftSize: 4, | ||
rightSize: 4, | ||
schWidth: 2, |
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.
Isnt this supposed the be a top level prop? Why is it inside portArrangement?
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.
this is a pretty good PR, but i think it would be better to modify
getPortArrangementSize
to support taking aschWidth
prop, transforming things can make the code more complicated over time since it's not clear where the original width is.
I thought you meant that I needed to add it there.
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.
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.
Yea it looks broken, the ports should be outside of the box
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.
) | ||
.build() | ||
|
||
await logSoup(soup) |
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.
Add a test for the schWidth
@seveibar from what I see here the only place that will get the |
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.
@Slaviiiii checks are failing. kindly run npm run format
No description provided.