Skip to content

Commit

Permalink
fix(app): display correct pipette configuration names in run preview (#…
Browse files Browse the repository at this point in the history
…16191)

Covers RQA-3128
Includes all configurations in the app run preview for any given layout
  • Loading branch information
CaseyBatten authored Sep 10, 2024
1 parent 9d9c360 commit 8940797
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/assets/localization/en/protocol_command_text.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"closing_tc_lid": "Closing Thermocycler lid",
"comment": "Comment",
"configure_for_volume": "Configure {{pipette}} to aspirate {{volume}} µL",
"configure_nozzle_layout": "Configure {{pipette}} to use {{amount}} nozzles",
"configure_nozzle_layout": "Configure {{pipette}} to use {{layout}}",
"confirm_and_resume": "Confirm and resume",
"deactivate_hs_shake": "Deactivating shaker",
"deactivate_temperature_module": "Deactivating Temperature Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,17 @@ export function getConfigureNozzleLayoutCommandText({
pip => pip.id === pipetteId
)?.pipetteName

// TODO(cb, 2024-09-10): confirm these strings for copy consistency and add them to i18n
const ConfigAmount = {
SINGLE: 'single nozzle layout',
COLUMN: 'column layout',
ROW: 'row layout',
QUADRANT: 'partial layout',
ALL: 'all nozzles',
}

return t('configure_nozzle_layout', {
amount: configurationParams.style === 'COLUMN' ? '8' : 'all',
layout: ConfigAmount[configurationParams.style],
pipette:
pipetteName != null ? getPipetteSpecsV2(pipetteName)?.displayName : '',
})
Expand Down
6 changes: 3 additions & 3 deletions shared-data/command/types/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ interface LoadLiquidResult {
}

export const COLUMN = 'COLUMN'
const SINGLE = 'SINGLE'
const ROW = 'ROW'
const QUADRANT = 'QUADRANT'
export const SINGLE = 'SINGLE'
export const ROW = 'ROW'
export const QUADRANT = 'QUADRANT'
export const ALL = 'ALL'

export type NozzleConfigurationStyle =
Expand Down

0 comments on commit 8940797

Please sign in to comment.