Skip to content

Commit 3d913a7

Browse files
authored
Merge branch 'edge' into lc-snapshot-protocols-96-happy-path
2 parents 4312b27 + 7f28026 commit 3d913a7

File tree

77 files changed

+1974
-746
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1974
-746
lines changed

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

+17-1
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,17 @@
5151
"exit_screen_title": "Exit before completing Labware Position Check?",
5252
"failed_to_save_final_position": "Failed to save final position",
5353
"get_labware_offset_data": "Get Labware Offset Data",
54-
"install_probe": "<block>Take the calibration probe from its storage location. Ensure the collar is fully unlocked. Push the pipette ejector up and press the probe firmly onto the pipette nozzle as far as it can go. Twist the collar to lock the probe.</block><block>Test that the probe is secure by gently pulling it back and forth. It should be firmly in place.</block>",
54+
"go_back": "Go back",
55+
"go_back_confirmation": "Are you sure you want to go back to the the labware list without saving?",
56+
"install_probe_1ch": "<block>Take the calibration probe from its storage location. Ensure the collar is fully unlocked. Push the pipette ejector up and press the probe firmly onto the pipette nozzle as far as it can go. Twist the collar to lock the probe.</block><block>Test that the probe is secure by gently pulling it back and forth. It should be firmly in place.</block>",
57+
"install_probe_8ch": "<block>Take the calibration probe from its storage location. Ensure the collar is fully unlocked. Push the pipette ejector up and press the probe firmly onto the <strong>backmost</strong> pipette nozzle as far as it can go. Twist the collar to lock the probe.</block><block>Test that the probe is secure by gently pulling it back and forth. It should be firmly in place.</block>",
58+
"install_probe_96ch": "<block>Take the calibration probe from its storage location. Ensure the collar is fully unlocked. Push the pipette ejector up and press the probe firmly onto the <strong>A1 (back left corner)</strong> pipette nozzle as far as it can go. Twist the collar to lock the probe.</block><block>Test that the probe is secure by gently pulling it back and forth. It should be firmly in place.</block>",
5559
"jog_controls_adjustment": "Need to make an adjustment?",
60+
"jog_too_far": "Jog too far?",
5661
"jupyter_notebook": "Jupyter Notebook",
5762
"labware": "labware",
63+
"labware_default_offset_added": "{{labware}} default offset added",
64+
"labware_default_offset_updated": "{{labware}} default offset updated",
5865
"labware_display_location_text": "Deck Slot {{slot}}",
5966
"labware_offset": "Labware Offset",
6067
"labware_offset_data": "Labware Offset Data",
@@ -81,6 +88,7 @@
8188
"labware_step_detail_modal_nozzle_or_tip_image_3_text": "If you’re having trouble, slide 1 sheet of printer paper between the nozzle and the tip. A single piece of paper should barely pass between them.",
8289
"labware_step_detail_tiprack": "The pipette nozzle should be centered above A1 in <italic>{{tiprack_name}}</italic> and <bold>level</bold> with the top of the tip.",
8390
"labware_step_detail_tiprack_plural": "The pipette nozzles should be centered above column 1 in <italic>{{tiprack_name}}</italic> and <bold>level</bold> with the top of the tips.",
91+
"labware_type": "Labware Type",
8492
"learn_more": "Learn more",
8593
"legacy_calibration_probe": "calibration probe",
8694
"legacy_clear_all_slots": "Clear all deck slots of labware, leaving modules in place",
@@ -99,6 +107,7 @@
99107
"move_pipette": "Move pipette",
100108
"move_to_a1_position": "Move the pipette to line up in the A1 position",
101109
"moving_to_slot_title": "Moving to slot {{slot}}",
110+
"need_help": "Need help?",
102111
"new_labware_offset_data": "New labware offset data",
103112
"ninety_six_probe_location": "A1 (back left corner)",
104113
"no_labware_offsets": "No Labware Offset",
@@ -125,6 +134,7 @@
125134
"remove_calibration_probe": "Remove calibration probe",
126135
"remove_probe": "Unlock the calibraiton probe, remove it from the nozzle, and return it to its storage location.",
127136
"remove_probe_before_exit": "Remove the calibration probe before exiting",
137+
"remove_probe_before_exiting_error": "First, remove the calibration probe before exiting. Then, restart Labware Position Check to continue.",
128138
"reset_to_default": "Reset to default",
129139
"return_tip_rack_to_location": "Return tip rack to {{location}}",
130140
"return_tip_section": "Return tip",
@@ -140,18 +150,24 @@
140150
"see_how_offsets_work": "See how labware offsets work",
141151
"select_labware_to_view_data": "Select a labware to view its stored offset data.",
142152
"slot": "Slot {{slotName}}",
153+
"slot_applied_location_offset_updated": "{{slot}} applied location offset updated",
154+
"slot_in_module_applied_location_offset_updated": "{{slot}} in {{module}} applied location offset updated",
143155
"slot_location": "Slot Location",
144156
"slot_name": "slot {{slotName}}",
157+
"something_went_wrong": "Something went wrong",
145158
"specific_slots_can_be_adjusted": "Specific slot locations can be adjusted as needed",
159+
"start_over": "Start over",
146160
"start_position_check": "begin labware position check, move to Slot {{initial_labware_slot}}",
147161
"store_probe": "Before exiting, unlock the calibration probe, remove it from the nozzle, and return it to its storage location.",
148162
"stored_offset_data": "Apply Stored Labware Offset Data?",
149163
"stored_offsets_for_this_protocol": "Stored Labware Offset data that applies to this protocol",
150164
"table_view": "Table View",
151165
"tip_rack": "tip rack",
166+
"total_offsets": "Total Offsets",
152167
"try_again": "Try again",
153168
"unsaved_changes_will_be_lost": "Unsaved changes will be lost",
154169
"view_current_offsets": "view current offsets",
155170
"view_data": "View data",
171+
"view_labware_list": "View labware list",
156172
"what_is_labware_offset_data": "What is labware offset data?"
157173
}

app/src/molecules/MultiDeckLabelTagBtns/index.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ import {
1212
JUSTIFY_END,
1313
JUSTIFY_FLEX_START,
1414
RESPONSIVENESS,
15+
SecondaryButton,
1516
SPACING,
1617
StyledText,
1718
} from '@opentrons/components'
1819

19-
import { QuaternaryButton, SmallButton } from '/app/atoms/buttons'
20+
import { SmallButton } from '/app/atoms/buttons'
2021

2122
import type { SmallButtonTypes } from '/app/atoms/buttons/SmallButton'
2223

@@ -75,11 +76,11 @@ export function MultiDeckLabelTagBtns({
7576
)}
7677
<>
7778
<SmallButton {...colThreePrimaryBtn} css={ODD_ONLY_BUTTON} />
78-
<QuaternaryButton {...colThreePrimaryBtn} css={DESKTOP_ONLY_BUTTON}>
79+
<SecondaryButton {...colThreePrimaryBtn} css={DESKTOP_ONLY_BUTTON}>
7980
<StyledText desktopStyle="captionSemiBold">
8081
{colThreePrimaryBtn.buttonText}
8182
</StyledText>
82-
</QuaternaryButton>
83+
</SecondaryButton>
8384
</>
8485
</Flex>
8586
</Flex>

app/src/molecules/WizardHeader/index.tsx

+19-14
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
SPACING,
1414
LegacyStyledText,
1515
TYPOGRAPHY,
16+
StyledText,
1617
} from '@opentrons/components'
1718
import { StepMeter } from '/app/atoms/StepMeter'
1819

@@ -22,6 +23,7 @@ interface WizardHeaderProps {
2223
totalSteps?: number | null
2324
currentStep?: number | null
2425
exitDisabled?: boolean
26+
hideStepText?: boolean
2527
}
2628

2729
const EXIT_BUTTON_STYLE = css`
@@ -59,14 +61,7 @@ const HEADER_CONTAINER_STYLE = css`
5961
border-radius: ${BORDERS.borderRadius16};
6062
}
6163
`
62-
const HEADER_TEXT_STYLE = css`
63-
${TYPOGRAPHY.pSemiBold}
64-
@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
65-
font-size: ${TYPOGRAPHY.fontSize22};
66-
font-weight: ${TYPOGRAPHY.fontWeightBold};
67-
line-height: ${TYPOGRAPHY.lineHeight28};
68-
}
69-
`
64+
7065
const STEP_TEXT_STYLE = css`
7166
${TYPOGRAPHY.pSemiBold}
7267
color: ${COLORS.grey60};
@@ -77,21 +72,31 @@ const STEP_TEXT_STYLE = css`
7772
`
7873

7974
export const WizardHeader = (props: WizardHeaderProps): JSX.Element => {
80-
const { totalSteps, currentStep, title, onExit, exitDisabled } = props
75+
const {
76+
totalSteps,
77+
currentStep,
78+
hideStepText,
79+
title,
80+
onExit,
81+
exitDisabled,
82+
} = props
8183
const { t } = useTranslation('shared')
8284

8385
return (
8486
<Box css={BOX_STYLE}>
8587
<Flex css={HEADER_CONTAINER_STYLE}>
8688
<Flex flexDirection={DIRECTION_ROW} alignItems={ALIGN_CENTER}>
87-
<LegacyStyledText
88-
css={HEADER_TEXT_STYLE}
89-
marginRight={SPACING.spacing8}
89+
<StyledText
90+
desktopStyle="bodyLargeSemiBold"
91+
oddStyle="bodyTextSemiBold"
9092
>
9193
{title}
92-
</LegacyStyledText>
94+
</StyledText>
9395

94-
{currentStep != null && totalSteps != null && currentStep > 0 ? (
96+
{!hideStepText &&
97+
currentStep != null &&
98+
totalSteps != null &&
99+
currentStep > 0 ? (
95100
<LegacyStyledText css={STEP_TEXT_STYLE}>
96101
{t('step', { current: currentStep, max: totalSteps })}
97102
</LegacyStyledText>

0 commit comments

Comments
 (0)