Skip to content

Commit ebeb162

Browse files
authored
fix(app): thermocycler location display (#15945)
Special case thermocycler location on ODD ProtocolDetails Hardware (A1+B1) Closes RQA-2938
1 parent a9fc050 commit ebeb162

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

app/src/pages/ProtocolDetails/Hardware.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import {
2121
GRIPPER_V1_2,
2222
MAGNETIC_BLOCK_FIXTURES,
2323
MAGNETIC_BLOCK_TYPE,
24+
TC_MODULE_LOCATION_OT3,
25+
THERMOCYCLER_MODULE_TYPE,
2426
} from '@opentrons/shared-data'
2527

2628
import {
@@ -113,7 +115,11 @@ function HardwareItem({
113115
</LegacyStyledText>
114116
)
115117
if (hardware.hardwareType === 'module') {
116-
location = <DeckInfoLabel deckLabel={hardware.slot} />
118+
const slot =
119+
getModuleType(hardware.moduleModel) === THERMOCYCLER_MODULE_TYPE
120+
? TC_MODULE_LOCATION_OT3
121+
: hardware.slot
122+
location = <DeckInfoLabel deckLabel={slot} />
117123
} else if (hardware.hardwareType === 'fixture') {
118124
location = (
119125
<DeckInfoLabel

app/src/pages/ProtocolDetails/__tests__/Hardware.test.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ describe('Hardware', () => {
5959
hasSlotConflict: false,
6060
connected: false,
6161
},
62+
{
63+
hardwareType: 'module',
64+
moduleModel: 'thermocyclerModuleV2',
65+
slot: 'B1',
66+
hasSlotConflict: false,
67+
connected: false,
68+
},
6269
{
6370
hardwareType: 'fixture',
6471
cutoutFixtureId: WASTE_CHUTE_RIGHT_ADAPTER_NO_COVER_FIXTURE,
@@ -92,6 +99,7 @@ describe('Hardware', () => {
9299
})
93100
screen.getByRole('row', { name: '1 Heater-Shaker Module GEN1' })
94101
screen.getByRole('row', { name: '3 Temperature Module GEN2' })
102+
screen.getByRole('row', { name: 'A1+B1 Thermocycler Module GEN2' })
95103
screen.getByRole('row', { name: 'D3 Waste chute only' })
96104
screen.getByRole('row', { name: 'B3 Staging area slot' })
97105
})

0 commit comments

Comments
 (0)