-
Notifications
You must be signed in to change notification settings - Fork 179
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
refactor(step-generation, protocol-designer, app): touchTip to emit from top of well origin #17375
Changes from 8 commits
4f10226
b59ebe9
11ed60a
9718219
e70cb18
c6f5f64
c5535c9
5093290
b015c16
379a047
d6cbf45
40ac284
cd2790a
debd28d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,7 +130,7 @@ export function TouchTip(props: TouchTipProps): JSX.Element { | |
} | ||
|
||
// the allowed range for touch tip is half the height of the well to 1x the height | ||
const positionRange = { min: Math.round(wellHeight / 2), max: wellHeight } | ||
const positionRange = { min: -Math.round(wellHeight / 2), max: 0 } | ||
const positionError = | ||
position !== null && | ||
(position < positionRange.min || position > positionRange.max) | ||
|
@@ -211,6 +211,7 @@ export function TouchTip(props: TouchTipProps): JSX.Element { | |
borderRadius="0" | ||
> | ||
<NumericalKeyboard | ||
hasHyphen | ||
keyboardRef={keyboardRef} | ||
initialValue={String(position ?? '')} | ||
onChange={e => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the addition of the
and then handle casting from number to string when grabbing the initial values from state and then from string to number sending them via dispatch There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for catching this Sarah! I just pushed a fix according to your comment. Hopefully it works as expected now. |
||
|
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 think we need an input handler because you can enter hypens in invalid places
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 this modal from PD? I'm a bit confused because you commented on the code that is part of TouchTip from Quick Transfer
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.
sorry, i left this comment in the wrong place. this is PD
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.
thanks, i think i'll leave as is and address that in a follow up. seems like it is an issue for
blowOut
andtouchTip