diff --git a/protocol-designer/src/assets/images/onboarding_animation_ot2_2.gif b/protocol-designer/src/assets/images/onboarding_animation_ot2_2.gif new file mode 100644 index 00000000000..2ce6504b28c Binary files /dev/null and b/protocol-designer/src/assets/images/onboarding_animation_ot2_2.gif differ diff --git a/protocol-designer/src/assets/images/onboarding_animation_ot2_3.gif b/protocol-designer/src/assets/images/onboarding_animation_ot2_3.gif new file mode 100644 index 00000000000..e1b8cfb9291 Binary files /dev/null and b/protocol-designer/src/assets/images/onboarding_animation_ot2_3.gif differ diff --git a/protocol-designer/src/assets/images/onboarding_animation_ot2_4.gif b/protocol-designer/src/assets/images/onboarding_animation_ot2_4.gif new file mode 100644 index 00000000000..ef437881ae9 Binary files /dev/null and b/protocol-designer/src/assets/images/onboarding_animation_ot2_4.gif differ diff --git a/protocol-designer/src/pages/CreateNewProtocolWizard/AddMetadata.tsx b/protocol-designer/src/pages/CreateNewProtocolWizard/AddMetadata.tsx index fcc9956ad6b..d622b0ab626 100644 --- a/protocol-designer/src/pages/CreateNewProtocolWizard/AddMetadata.tsx +++ b/protocol-designer/src/pages/CreateNewProtocolWizard/AddMetadata.tsx @@ -45,6 +45,7 @@ export function AddMetadata(props: AddMetadataProps): JSX.Element | null { return ( { diff --git a/protocol-designer/src/pages/CreateNewProtocolWizard/SelectPipettes.tsx b/protocol-designer/src/pages/CreateNewProtocolWizard/SelectPipettes.tsx index b3c4e691746..57f2ec6b4b5 100644 --- a/protocol-designer/src/pages/CreateNewProtocolWizard/SelectPipettes.tsx +++ b/protocol-designer/src/pages/CreateNewProtocolWizard/SelectPipettes.tsx @@ -170,6 +170,7 @@ export function SelectPipettes(props: WizardTileProps): JSX.Element | null { ) : null} = { + 2: new URL( + '../../assets/images/onboarding_animation_ot2_2.gif', + import.meta.url + ).href, + 3: new URL( + '../../assets/images/onboarding_animation_ot2_3.gif', + import.meta.url + ).href, + 4: new URL( + '../../assets/images/onboarding_animation_ot2_4.gif', + import.meta.url + ).href, +} + const ONBOARDING_ANIMATIONS: Record = { 1: one, 2: two, @@ -56,6 +74,7 @@ export function WizardBody(props: WizardBodyProps): JSX.Element { proceed, disabled = false, tooltipOnDisabled, + robotType, } = props const { t } = useTranslation('shared') const [targetProps, tooltipProps] = useHoverTooltip({ @@ -153,21 +172,33 @@ export function WizardBody(props: WizardBodyProps): JSX.Element { transition: opacity 0.5s ease-in-out; `} > - + {robotType === FLEX_ROBOT_TYPE || stepNumber === 1 ? ( + + ) : ( + + )} ) diff --git a/protocol-designer/src/pages/CreateNewProtocolWizard/__tests__/WizardBody.test.tsx b/protocol-designer/src/pages/CreateNewProtocolWizard/__tests__/WizardBody.test.tsx index f0493707774..fe33c8266c9 100644 --- a/protocol-designer/src/pages/CreateNewProtocolWizard/__tests__/WizardBody.test.tsx +++ b/protocol-designer/src/pages/CreateNewProtocolWizard/__tests__/WizardBody.test.tsx @@ -2,6 +2,7 @@ import type * as React from 'react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' import { fireEvent, screen } from '@testing-library/react' +import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' import { i18n } from '../../../assets/localization' import { renderWithProviders } from '../../../__testing-utils__' import { WizardBody } from '../WizardBody' @@ -24,6 +25,7 @@ describe('WizardBody', () => { disabled: false, goBack: vi.fn(), subHeader: 'mockSubheader', + robotType: FLEX_ROBOT_TYPE, } })