Skip to content

Commit

Permalink
Add tiprack selection to overview screen based on updated designs
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed May 16, 2024
1 parent 7e5759d commit 75577eb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/organisms/QuickTransferFlow/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export function Overview(props: OverviewProps): JSX.Element | null {
option: t('pipette'),
value: state.pipette.displayName,
},
{
option: t('tip_rack'),
value: state.tipRack.metadata.displayName,
},
{
option: t('source_labware'),
value: state.sourceLabware.metadata.displayName,
Expand All @@ -61,7 +65,7 @@ export function Overview(props: OverviewProps): JSX.Element | null {
{displayItems.map(displayItem => (
<ListItem type="noActive" key={displayItem.option}>
<Flex justifyContent={JUSTIFY_SPACE_BETWEEN} width="100%">
<StyledText css={TYPOGRAPHY.level4HeaderSemiBold} width="30rem">
<StyledText css={TYPOGRAPHY.level4HeaderSemiBold} width="20rem">
{displayItem.option}
</StyledText>
<StyledText
Expand Down
17 changes: 17 additions & 0 deletions app/src/organisms/QuickTransferFlow/__tests__/Overview.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ describe('Overview', () => {
pipette: {
displayName: 'Pipette display name',
} as any,
tipRack: {
metadata: {
displayName: 'Tip rack display name',
},
} as any,
sourceLabware: {
metadata: {
displayName: 'Source labware name',
Expand All @@ -44,6 +49,8 @@ describe('Overview', () => {
render(props)
screen.getByText('Pipette')
screen.getByText('Pipette display name')
screen.getByText('Tip rack')
screen.getByText('Tip rack display name')
screen.getByText('Source labware')
screen.getByText('Source labware name')
screen.getByText('Destination labware')
Expand All @@ -57,6 +64,11 @@ describe('Overview', () => {
pipette: {
displayName: 'Pipette display name',
} as any,
tipRack: {
metadata: {
displayName: 'Tip rack display name',
},
} as any,
sourceLabware: {
metadata: {
displayName: 'Source labware name',
Expand All @@ -80,6 +92,11 @@ describe('Overview', () => {
pipette: {
displayName: 'Pipette display name',
} as any,
tipRack: {
metadata: {
displayName: 'Tip rack display name',
},
} as any,
sourceLabware: {
metadata: {
displayName: 'Source labware name',
Expand Down

0 comments on commit 75577eb

Please sign in to comment.