Skip to content

Commit fcbe7f5

Browse files
authored
fix(app): fix module calibration wizard copy (#14192)
* fix(app): fix module calibration wizard copy
1 parent 4c76d5f commit fcbe7f5

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

app/src/assets/localization/en/module_wizard_flows.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
"error_during_calibration": "Error during calibration",
2020
"error_prepping_module": "Error prepping module for calibration",
2121
"exit": "Exit",
22-
"firmware_updated": "{{module}} firmware updated!",
2322
"firmware_up_to_date": "{{module}} firmware up to date.",
23+
"firmware_updated": "{{module}} firmware updated!",
2424
"get_started": "<block>To get started, remove labware from the deck and clean up the working area to make the calibration easier. Also gather the needed equipment shown to the right.</block><block>The calibration adapter came with your module. The pipette probe came with your Flex pipette.</block>",
25+
"install_adapter": "Place calibration adapter in {{module}}",
26+
"install_calibration_adapter": "Install calibration adapter",
2527
"module_calibrating": "Stand back, {{moduleName}} is calibrating",
2628
"module_calibration_failed": "The module calibration could not be completed. Contact customer support for assistance.",
2729
"module_calibration": "Module calibration",
@@ -30,14 +32,15 @@
3032
"move_gantry_to_front": "Move gantry to front",
3133
"next": "Next",
3234
"pipette_probe": "Pipette probe",
33-
"install_adapter": "Place calibration adapter in {{module}}",
35+
"place_flush_heater_shaker": "Place the adapter flush on the top of the module. Secure the adapter to the module with a thermal adapter screw and T10 Torx screwdriver.",
36+
"place_flush_thermocycler": "Ensure the Thermocycler lid is open and place the adapter flush on top of the module where the labware would normally go. ",
3437
"place_flush": "Place the adapter flush on top of the module.",
3538
"prepping_module": "Prepping {{module}} for module calibration",
3639
"recalibrate": "Recalibrate",
3740
"select_location": "Select module location",
3841
"select_the_slot": "Select the slot where you installed the {{module}} on the deck map to the right. The location must be correct for successful calibration.",
39-
"stand_back": "Stand back, calibration in progress",
4042
"stand_back_exiting": "Stand back, robot is in motion",
43+
"stand_back": "Stand back, calibration in progress",
4144
"start_setup": "Start setup",
4245
"successfully_calibrated": "{{module}} successfully calibrated"
4346
}

app/src/organisms/ModuleWizardFlows/PlaceAdapter.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import {
1818
CreateCommand,
1919
getCalibrationAdapterLoadName,
2020
getModuleDisplayName,
21+
HEATERSHAKER_MODULE_TYPE,
22+
THERMOCYCLER_MODULE_TYPE,
2123
} from '@opentrons/shared-data'
2224

2325
import { StyledText } from '../../atoms/text'
@@ -59,7 +61,6 @@ export const PlaceAdapter = (props: PlaceAdapterProps): JSX.Element | null => {
5961
isRobotMoving,
6062
} = props
6163
const { t } = useTranslation('module_wizard_flows')
62-
const moduleName = getModuleDisplayName(attachedModule.moduleModel)
6364
const mount = attachedPipette.mount
6465
const handleOnClick = (): void => {
6566
const calibrationAdapterLoadName = getCalibrationAdapterLoadName(
@@ -109,9 +110,18 @@ export const PlaceAdapter = (props: PlaceAdapterProps): JSX.Element | null => {
109110
.catch((e: Error) => setErrorMessage(e.message))
110111
}
111112

112-
const bodyText = (
113-
<StyledText css={BODY_STYLE}>{t('place_flush', { moduleName })}</StyledText>
114-
)
113+
const moduleType = attachedModule.moduleType
114+
let bodyText = <StyledText css={BODY_STYLE}>{t('place_flush')}</StyledText>
115+
if (moduleType === HEATERSHAKER_MODULE_TYPE) {
116+
bodyText = (
117+
<StyledText css={BODY_STYLE}>{t('place_flush_heater_shaker')}</StyledText>
118+
)
119+
}
120+
if (moduleType === THERMOCYCLER_MODULE_TYPE) {
121+
bodyText = (
122+
<StyledText css={BODY_STYLE}>{t('place_flush_thermocycler')}</StyledText>
123+
)
124+
}
115125

116126
const moduleDisplayName = getModuleDisplayName(attachedModule.moduleModel)
117127
const isInLeftSlot = LEFT_SLOTS.some(slot => slot === slotName)
@@ -171,7 +181,11 @@ export const PlaceAdapter = (props: PlaceAdapterProps): JSX.Element | null => {
171181
)
172182
return (
173183
<GenericWizardTile
174-
header={t('install_adapter', { module: moduleDisplayName })}
184+
header={
185+
moduleType === HEATERSHAKER_MODULE_TYPE
186+
? t('install_calibration_adapter')
187+
: t('install_adapter', { module: moduleDisplayName })
188+
}
175189
rightHandBody={placeAdapterVid}
176190
bodyText={bodyText}
177191
proceedButtonText={t('confirm_placement')}

0 commit comments

Comments
 (0)