-
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(protocol-designer): initial refactoring of MoveLiquidTools #17470
Conversation
create new two components to reduce MoveLiquidTools and add basic tests close AUTH-1417
<> | ||
<Divider marginY="0" /> | ||
<Flex | ||
flexDirection={DIRECTION_COLUMN} | ||
gridGap={SPACING.spacing8} | ||
padding={`0 ${SPACING.spacing16}`} | ||
> | ||
<Flex gridGap={SPACING.spacing8} alignItems={ALIGN_CENTER}> | ||
<StyledText | ||
desktopStyle="bodyDefaultRegular" | ||
color={COLORS.grey60} | ||
> | ||
{t('protocol_steps:submerge')} | ||
</StyledText> | ||
<Flex {...targetProps}> | ||
<Icon | ||
name="information" | ||
size="1rem" | ||
color={COLORS.grey60} | ||
data-testid="information_icon" | ||
/> | ||
</Flex> | ||
<Tooltip tooltipProps={tooltipProps}> | ||
{t(`tooltip:step_fields.defaults.${tab}_submerge`)} | ||
</Tooltip> | ||
</Flex> | ||
<ListItem type="noActive"> | ||
<Flex | ||
padding={SPACING.spacing12} | ||
width="100%" | ||
flexDirection={DIRECTION_COLUMN} | ||
gridGap={SPACING.spacing8} | ||
> | ||
<InputStepFormField | ||
showTooltip={false} | ||
padding="0" | ||
title={t('protocol_steps:submerge_speed')} | ||
{...propsForFields[`${tab}_submerge_speed`]} | ||
units={t('application:units.millimeterPerSec')} | ||
errorToShow={getFormLevelError( | ||
`${tab}_submerge_speed`, | ||
mappedErrorsToField | ||
)} | ||
/> | ||
<InputStepFormField | ||
showTooltip={false} | ||
padding="0" | ||
title={t('protocol_steps:delay_duration')} | ||
{...propsForFields[`${tab}_submerge_delay_seconds`]} | ||
units={t('application:units.seconds')} | ||
errorToShow={getFormLevelError( | ||
`${tab}_submerge_delay_seconds`, | ||
mappedErrorsToField | ||
)} | ||
/> | ||
</Flex> | ||
</ListItem> | ||
</Flex> | ||
</> | ||
) : null} |
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.
@ncdiehl11 @syao1226
Do you think we should export this part as LiquidClassesForm something?
or
export these lines as Submerge component and we will add forms for liquid classese?
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.
Would exporting this part conflict with the new MultiInputField
component?
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.
one nit, looks good
Overview
https://opentrons.slack.com/archives/C07E9T2NAQK/p1738950409218899
close AUTH-1417
Test Plan and Hands on Testing
Changelog
Review requests
low
Risk assessment