-
Notifications
You must be signed in to change notification settings - Fork 0
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
Minimum Width Warning #53
Conversation
UI may be kind of wonky
@voltaaage is this ready to review? |
If you have some advice, I'm open to any feedback you have. I'm planning to
|
Ready for review 🎾 @trezy @bmherold |
|
||
|
||
|
||
let maxWidth = 13 |
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.
Doesn't look like this is used anywhere
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.
It's used in the comparison on ln 125
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.
In Wizard.jsx, yeah. It's not used anywhere in Board.js.
<div className="warning"> | ||
<span> | ||
{this.state.peakedWidth ? | ||
"Warning: the maximum width reached (" + currentWidth+ "\")" : |
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.
Is it supposed to be max width or min width? I don't think we have a max.
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.
Wow, completely missed that. Must've misinterpreted "limit the width" to be max. It'll be an easier flip
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'm not sure what's causing it, but the board gets really short when I remove a strip.
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.
The total width calculation in the overlay is displaying {calculated}
instead of the calculated width.
Where do you see {calculated}? I'm pulling in the current width in the warning |
Found the {calculated} piece:
This breaks because I removed the update length method. I'll have to throw it back in. |
approaching this with the philosophy that width should represent the side that gets larger as you add more strips
we were previously updating the width with the length update binding
{calculated} issue fixed!! |
|
@trezy I'm not disabling any controls at minimum width - just showing a warning like we discussed The {calculated} issue is related to the length rendering. It seems to be coupled fairly tightly in the virtual board and I'm wondering if it's worthwhile to switch the logic over to use change how we're using width vs length - or just keep using length as is. |
Current Issues:
|
I added a temporary swap of length/width in the backbone model. This looks good. Once @trezy verifies as well we should merge this in and then make new tickets for anything outstanding. |
Builds the feature for #30
Goals:
Considerations