-
Notifications
You must be signed in to change notification settings - Fork 7
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.
seveibar
left a comment
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
getPortArrangementSizeto support taking aschWidthprop, 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 |
Anshgrover23
left a comment
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.