From 01da939f6557d0ea3ec4ed66eaab2d591ac9cb8d Mon Sep 17 00:00:00 2001 From: Jethary Rader <66035149+jerader@users.noreply.github.com> Date: Wed, 3 May 2023 15:33:22 -0400 Subject: [PATCH] refactor(app): attach, detach desktop app design QA (#12611) closes RLIQ-367 --- .../assets/localization/en/pipette_wizard_flows.json | 2 +- app/src/molecules/SimpleWizardBody/index.tsx | 9 ++++++++- app/src/organisms/PipetteWizardFlows/AttachProbe.tsx | 12 +++--------- app/src/organisms/PipetteWizardFlows/Carriage.tsx | 2 +- .../__tests__/AttachProbe.test.tsx | 12 +++++++++--- .../PipetteWizardFlows/__tests__/Carriage.test.tsx | 7 +++---- 6 files changed, 25 insertions(+), 19 deletions(-) diff --git a/app/src/assets/localization/en/pipette_wizard_flows.json b/app/src/assets/localization/en/pipette_wizard_flows.json index b5ae3f0b64e..535f65d948d 100644 --- a/app/src/assets/localization/en/pipette_wizard_flows.json +++ b/app/src/assets/localization/en/pipette_wizard_flows.json @@ -14,7 +14,7 @@ "calibrate_pipette": "calibrate {{mount}} pipette", "pip_recal_success": "{{pipetteName}} successfully recalibrated", "stand_back": "Stand back, robot is in motion", - "pipette_calibrating": "Stand back, connect and secure, {{pipetteName}} is calibrating", + "pipette_calibrating": "Stand back, {{pipetteName}} is calibrating", "progress_will_be_lost": "{{flow}} progress will be lost", "are_you_sure_exit": "Are you sure you want to exit before completing {{flow}}?", "pipette_calibration": "Pipette Calibration", diff --git a/app/src/molecules/SimpleWizardBody/index.tsx b/app/src/molecules/SimpleWizardBody/index.tsx index f85dc373a12..439c02b748e 100644 --- a/app/src/molecules/SimpleWizardBody/index.tsx +++ b/app/src/molecules/SimpleWizardBody/index.tsx @@ -13,6 +13,7 @@ import { ALIGN_CENTER, StyleProps, JUSTIFY_SPACE_BETWEEN, + POSITION_ABSOLUTE, } from '@opentrons/components' import { getIsOnDevice } from '../../redux/config' import { StyledText } from '../../atoms/text' @@ -77,6 +78,7 @@ export function SimpleWizardBody(props: Props): JSX.Element { return ( )} - + {children} diff --git a/app/src/organisms/PipetteWizardFlows/AttachProbe.tsx b/app/src/organisms/PipetteWizardFlows/AttachProbe.tsx index ce7cd80dbca..af0f90a1a5d 100644 --- a/app/src/organisms/PipetteWizardFlows/AttachProbe.tsx +++ b/app/src/organisms/PipetteWizardFlows/AttachProbe.tsx @@ -15,7 +15,7 @@ import { GenericWizardTile } from '../../molecules/GenericWizardTile' import { InProgressModal } from '../../molecules/InProgressModal/InProgressModal' import pipetteProbe1 from '../../assets/videos/pipette-wizard-flows/Pipette_Probing_1.webm' import pipetteProbe8 from '../../assets/videos/pipette-wizard-flows/Pipette_Probing_8.webm' -import { BODY_STYLE, SECTIONS } from './constants' +import { BODY_STYLE, SECTIONS, FLOWS } from './constants' import { getPipetteAnimations } from './utils' import type { PipetteWizardStepProps } from './types' @@ -53,8 +53,6 @@ export const AttachProbe = (props: AttachProbeProps): JSX.Element | null => { const pipetteId = attachedPipettes[mount]?.serialNumber const displayName = attachedPipettes[mount]?.displayName const is8Channel = attachedPipettes[mount]?.data.channels === 8 - // hard coding calibration slot number for now in case it changes - // in the future const calSlotNum = 'C2' if (pipetteId == null) return null @@ -87,11 +85,7 @@ export const AttachProbe = (props: AttachProbeProps): JSX.Element | null => { } const pipetteProbeVid = ( - +