Skip to content

Commit

Permalink
chore(protocol-designer): add assets folder to align pd with app (#16060
Browse files Browse the repository at this point in the history
)

* chore(protocol-designer): add assets folder to align pd with app
  • Loading branch information
koji authored Aug 20, 2024
1 parent e6ff13c commit f595599
Show file tree
Hide file tree
Showing 122 changed files with 93 additions and 92 deletions.
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
getCurrentPage,
getNewProtocolModal,
} from '../../../navigation/selectors'
import { i18n } from '../../../localization'
import { i18n } from '../../../assets/localization'
import {
getAdditionalEquipment,
getInitialDeckSetup,
Expand Down
6 changes: 3 additions & 3 deletions protocol-designer/src/components/Hints/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import {
import { actions, selectors } from '../../tutorial'
import { getMainPagePortalEl } from '../portals/MainPageModalPortal'
import styles from './hints.module.css'
import EXAMPLE_ADD_LIQUIDS_IMAGE from '../../images/example_add_liquids.png'
import EXAMPLE_WATCH_LIQUIDS_MOVE_IMAGE from '../../images/example_watch_liquids_move.png'
import EXAMPLE_BATCH_EDIT_IMAGE from '../../images/announcements/multi_select.gif'
import EXAMPLE_ADD_LIQUIDS_IMAGE from '../../assets/images/example_add_liquids.png'
import EXAMPLE_WATCH_LIQUIDS_MOVE_IMAGE from '../../assets/images/example_watch_liquids_move.png'
import EXAMPLE_BATCH_EDIT_IMAGE from '../../assets/images/announcements/multi_select.gif'
import type { HintKey } from '../../tutorial'

const HINT_IS_ALERT: HintKey[] = ['add_liquids_and_labware']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ADAPTER_96_CHANNEL,
getLabwareCompatibleWithAdapter,
} from '../../../utils/labwareModuleCompatibility'
import { i18n } from '../../../localization'
import { i18n } from '../../../assets/localization'
import { LabwareSelectionModal } from '../LabwareSelectionModal'
import {
getInitialDeckSetup,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, it, vi, beforeEach, expect } from 'vitest'
import { fixtureTiprack1000ul } from '@opentrons/shared-data'

import { renderWithProviders } from '../../../../../__testing-utils__'
import { i18n } from '../../../../../localization'
import { i18n } from '../../../../../assets/localization'
import { getAllTiprackOptions } from '../../../../../ui/labware/selectors'
import { getEnableReturnTip } from '../../../../../feature-flags/selectors'
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, it, vi, beforeEach, expect } from 'vitest'
import { fireEvent, screen } from '@testing-library/react'
import { fixtureP100096V2Specs } from '@opentrons/shared-data'
import { renderWithProviders } from '../../../../../__testing-utils__'
import { i18n } from '../../../../../localization'
import { i18n } from '../../../../../assets/localization'
import { getPipetteEntities } from '../../../../../step-forms/selectors'
import { FlowRateField } from '../index'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ import {
useHoverTooltip,
} from '@opentrons/components'
import { selectors as stepFormSelectors } from '../../../../step-forms'
import SINGLE_IMAGE from '../../../../images/path_single_transfers.svg'
import MULTI_DISPENSE_IMAGE from '../../../../images/path_multi_dispense.svg'
import MULTI_ASPIRATE_IMAGE from '../../../../images/path_multi_aspirate.svg'
import SINGLE_IMAGE from '../../../../assets/images/path_single_transfers.svg'
import MULTI_DISPENSE_IMAGE from '../../../../assets/images/path_multi_dispense.svg'
import MULTI_ASPIRATE_IMAGE from '../../../../assets/images/path_multi_aspirate.svg'
import { getDisabledPathMap } from './getDisabledPathMap'
import styles from '../../StepEditForm.module.css'
import type { PathOption } from '../../../../form-types'
import type { FieldProps } from '../../types'
import type { DisabledPathMap, ValuesForPath } from './getDisabledPathMap'

const PATH_ANIMATION_IMAGES = {
single: new URL('../../../../images/path_single.gif', import.meta.url).href,
single: new URL('../../../../assets/images/path_single.gif', import.meta.url)
.href,
multiAspirate: new URL(
'../../../../images/path_multiAspirate.gif',
'../../../../assets/images/path_multiAspirate.gif',
import.meta.url
).href,
multiDispense: new URL(
'../../../../images/path_multiDispense.gif',
'../../../../assets/images/path_multiDispense.gif',
import.meta.url
).href,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { screen } from '@testing-library/react'
import { describe, it, vi, beforeEach, expect } from 'vitest'

import { renderWithProviders } from '../../../../../__testing-utils__'
import { i18n } from '../../../../../localization'
import { i18n } from '../../../../../assets/localization'
import { getAllTiprackOptions } from '../../../../../ui/labware/selectors'
import { PickUpTipField } from '../index'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react'
import round from 'lodash/round'

import PIPETTE_TIP_IMAGE from '../../../../images/pipette_tip.svg'
import WELL_CROSS_SECTION_IMAGE from '../../../../images/well_cross_section.svg'
import PIPETTE_TIP_IMAGE from '../../../../assets/images/pipette_tip.svg'
import WELL_CROSS_SECTION_IMAGE from '../../../../assets/images/well_cross_section.svg'

import styles from './TipPositionInput.module.css'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react'
import round from 'lodash/round'

import PIPETTE_TIP_IMAGE from '../../../../images/pipette_tip.svg'
import WELL_CROSS_SECTION_IMAGE from '../../../../images/well_cross_section.svg'
import PIPETTE_TIP_IMAGE from '../../../../assets/images/pipette_tip.svg'
import WELL_CROSS_SECTION_IMAGE from '../../../../assets/images/well_cross_section.svg'

import styles from './TipPositionInput.module.css'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { fireEvent, screen } from '@testing-library/react'
import { describe, it, expect, vi, beforeEach } from 'vitest'
import { fixture96Plate } from '@opentrons/shared-data'
import { renderWithProviders } from '../../../../../__testing-utils__'
import { i18n } from '../../../../../localization'
import { i18n } from '../../../../../assets/localization'
import { getLabwareEntities } from '../../../../../step-forms/selectors'
import { ZTipPositionModal } from '../ZTipPositionModal'
import { TipPositionModal } from '../TipPositionModal'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { fireEvent, screen } from '@testing-library/react'
import { describe, it, expect, vi, beforeEach } from 'vitest'
import { renderWithProviders } from '../../../../../__testing-utils__'
import { i18n } from '../../../../../localization'
import { i18n } from '../../../../../assets/localization'
import { TipPositionModal } from '../TipPositionModal'
import { TipPositionAllViz } from '../TipPositionAllViz'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { fireEvent, screen } from '@testing-library/react'
import { describe, it, expect, vi, beforeEach } from 'vitest'
import { renderWithProviders } from '../../../../../__testing-utils__'
import { i18n } from '../../../../../localization'
import { i18n } from '../../../../../assets/localization'
import { ZTipPositionModal } from '../ZTipPositionModal'
import { TipPositionZAxisViz } from '../TipPositionZAxisViz'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { fireEvent, screen } from '@testing-library/react'
import { describe, it, vi, beforeEach } from 'vitest'

import { renderWithProviders } from '../../../../../__testing-utils__'
import { i18n } from '../../../../../localization'
import { i18n } from '../../../../../assets/localization'
import { getPipetteEntities } from '../../../../../step-forms/selectors'
import { WellSelectionModal } from '../../WellSelectionField/WellSelectionModal'
import { TipWellSelectionField } from '../index'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react'
import cx from 'classnames'

import WELLS_IMAGE from '../../../../images/well_order_wells.svg'
import PATH_IMAGE from '../../../../images/well_order_path.svg'
import WELLS_IMAGE from '../../../../assets/images/well_order_wells.svg'
import PATH_IMAGE from '../../../../assets/images/well_order_path.svg'

import type { WellOrderOption } from '../../../../form-types'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
C_LIGHT_GRAY,
} from '@opentrons/components'
import cx from 'classnames'
import ZIG_ZAG_IMAGE from '../../../../images/zig_zag_icon.svg'
import ZIG_ZAG_IMAGE from '../../../../assets/images/zig_zag_icon.svg'
import { WellOrderModal } from './WellOrderModal'
import stepEditStyles from '../../StepEditForm.module.css'
import styles from './WellOrderInput.module.css'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { describe, it, vi, beforeEach } from 'vitest'
import { screen } from '@testing-library/react'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { getPipetteEntities } from '../../../../step-forms/selectors'
import { renderWithProviders } from '../../../../__testing-utils__'
import { getTiprackOptions } from '../../../../ui/labware/selectors'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, it, beforeEach, afterEach, vi } from 'vitest'
import { screen } from '@testing-library/react'
import { renderWithProviders } from '../../../../__testing-utils__'
import { getHeaterShakerLabwareOptions } from '../../../../ui/modules/selectors'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { HeaterShakerForm } from '../HeaterShakerForm'
import type * as ModulesSelectors from '../../../../ui/modules/selectors'
import type * as Fields from '../../fields'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, it, afterEach, vi, beforeEach } from 'vitest'
import '@testing-library/jest-dom/vitest'
import { cleanup, fireEvent, screen } from '@testing-library/react'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { getMagneticLabwareOptions } from '../../../../ui/modules/selectors'
import { getModuleEntities } from '../../../../step-forms/selectors'
import { getMagnetLabwareEngageHeight } from '../../../../ui/modules/utils'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { describe, it, vi, beforeEach } from 'vitest'
import { fireEvent, screen } from '@testing-library/react'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import {
getTemperatureLabwareOptions,
getTemperatureModuleIds,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
OT2_ROBOT_TYPE,
TEMPERATURE_MODULE_TYPE,
} from '@opentrons/shared-data'
import { i18n } from '../../localization'
import { i18n } from '../../assets/localization'
import { getInitialDeckSetup } from '../../step-forms/selectors'
import { getDismissedHints } from '../../tutorial/selectors'
import { getEnableMoam } from '../../feature-flags/selectors'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { vi, describe, expect, beforeEach, it } from 'vitest'
import { fireEvent, screen } from '@testing-library/react'
import { renderWithProviders } from '../../__testing-utils__'
import { i18n } from '../../localization'
import { i18n } from '../../assets/localization'
import { getFileMetadata } from '../../file-data/selectors'
import {
getInitialDeckSetup,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
getInitialDeckSetup,
} from '../../step-forms/selectors'
import { getIsMultiSelectMode } from '../../ui/steps'
import { i18n } from '../../localization'
import { i18n } from '../../assets/localization'
import { getEnableComment } from '../../feature-flags/selectors'
import { StepCreationButton } from '../StepCreationButton'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import '@testing-library/jest-dom/vitest'
import { fireEvent, screen, cleanup } from '@testing-library/react'
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { getLocalStorageItem, setLocalStorageItem } from '../../../../persist'
import { useAnnouncements } from '../announcements'
import { AnnouncementModal } from '../index'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import {
SPACING,
} from '@opentrons/components'

import magTempCombined from '../../../images/modules/magdeck_tempdeck_combined.png'
import thermocycler from '../../../images/modules/thermocycler.png'
import multiSelect from '../../../images/announcements/multi_select.gif'
import batchEdit from '../../../images/announcements/batch_edit.gif'
import heaterShaker from '../../../images/modules/heatershaker.png'
import thermocyclerGen2 from '../../../images/modules/thermocycler_gen2.png'
import liquidEnhancements from '../../../images/announcements/liquid-enhancements.gif'
import opentronsFlex from '../../../images/OpentronsFlex.png'
import deckConfigutation from '../../../images/deck_configuration.png'
import magTempCombined from '../../../assets/images/modules/magdeck_tempdeck_combined.png'
import thermocycler from '../../../assets/images/modules/thermocycler.png'
import multiSelect from '../../../assets/images/announcements/multi_select.gif'
import batchEdit from '../../../assets/images/announcements/batch_edit.gif'
import heaterShaker from '../../../assets/images/modules/heatershaker.png'
import thermocyclerGen2 from '../../../assets/images/modules/thermocycler_gen2.png'
import liquidEnhancements from '../../../assets/images/announcements/liquid-enhancements.gif'
import opentronsFlex from '../../../assets/images/OpentronsFlex.png'
import deckConfigutation from '../../../assets/images/deck_configuration.png'

import styles from './AnnouncementModal.module.css'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ import {
THERMOCYCLER_MODULE_TYPE,
} from '@opentrons/shared-data'
import { getIsCrashablePipetteSelected } from '../../../step-forms'
import gripperImage from '../../../images/flex_gripper.png'
import wasteChuteImage from '../../../images/waste_chute.png'
import trashBinImage from '../../../images/flex_trash_bin.png'
import gripperImage from '../../../assets/images/flex_gripper.png'
import wasteChuteImage from '../../../assets/images/waste_chute.png'
import trashBinImage from '../../../assets/images/flex_trash_bin.png'
import { uuid } from '../../../utils'
import { getEnableMoam } from '../../../feature-flags/selectors'
import { selectors as featureFlagSelectors } from '../../../feature-flags'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import {
OT2_DISPLAY_NAME,
OT2_ROBOT_TYPE,
} from '@opentrons/shared-data'
import opentronsFlexImage from '../../../images/OpentronsFlex.png'
import OT2Image from '../../../images/OT2.png'
import opentronsFlexImage from '../../../assets/images/OpentronsFlex.png'
import OT2Image from '../../../assets/images/OT2.png'
import { HandleEnter } from './HandleEnter'

import type { RobotType } from '@opentrons/shared-data'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import '@testing-library/jest-dom/vitest'
import { fireEvent, screen, cleanup } from '@testing-library/react'
import { fixture_tiprack_10_ul } from '@opentrons/shared-data/labware/fixtures/2'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { getNewProtocolModal } from '../../../../navigation/selectors'
import {
getCustomLabwareDefsByURI,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
MAGNETIC_BLOCK_TYPE,
TEMPERATURE_MODULE_TYPE,
} from '@opentrons/shared-data'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { renderWithProviders } from '../../../../__testing-utils__'
import { EquipmentOption } from '../EquipmentOption'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { it, describe, beforeEach, expect, vi } from 'vitest'
import { fireEvent, screen } from '@testing-library/react'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { GoBack } from '../GoBack'

const render = (props: React.ComponentProps<typeof GoBack>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import '@testing-library/jest-dom/vitest'
import { fireEvent, screen, cleanup } from '@testing-library/react'
import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { MetadataTile } from '../MetadataTile'
import type { FormState, WizardTileProps } from '../types'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import '@testing-library/jest-dom/vitest'
import { fireEvent, screen, cleanup } from '@testing-library/react'
import { FLEX_ROBOT_TYPE, OT2_ROBOT_TYPE } from '@opentrons/shared-data'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import {
getDisableModuleRestrictions,
getEnableMoam,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
fixture_tiprack_300_ul,
} from '@opentrons/shared-data/labware/fixtures/2'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { getLabwareDefsByURI } from '../../../../labware-defs/selectors'
import { getAllowAllTipracks } from '../../../../feature-flags/selectors'
import { getTiprackOptions } from '../../utils'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import '@testing-library/jest-dom/vitest'
import { fireEvent, screen, cleanup } from '@testing-library/react'
import { FLEX_ROBOT_TYPE, OT2_ROBOT_TYPE } from '@opentrons/shared-data'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { PipetteTypeTile } from '../PipetteTypeTile'
import { EquipmentOption } from '../EquipmentOption'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { fireEvent, screen, cleanup } from '@testing-library/react'
import { COLORS } from '@opentrons/components'
import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { RobotTypeTile } from '../RobotTypeTile'
import type { FormState, WizardTileProps } from '../types'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import '@testing-library/jest-dom/vitest'
import { vi, describe, beforeEach, expect, it } from 'vitest'
import { FLEX_ROBOT_TYPE, OT2_ROBOT_TYPE } from '@opentrons/shared-data'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { StagingAreaTile } from '../StagingAreaTile'

import type * as Components from '@opentrons/components'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest'
import { fireEvent, screen } from '@testing-library/react'
import { FLEX_ROBOT_TYPE, OT2_ROBOT_TYPE } from '@opentrons/shared-data'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { getRobotType } from '../../../../file-data/selectors'
import { getInitialDeckSetup } from '../../../../step-forms/selectors'
import { getLabwareIsCompatible } from '../../../../utils/labwareModuleCompatibility'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { describe, it, expect, vi, beforeEach } from 'vitest'
import { fireEvent, screen } from '@testing-library/react'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { getInitialDeckSetup } from '../../../../step-forms/selectors'
import { getLabwareIsCompatible } from '../../../../utils/labwareModuleCompatibility'
import { getLabwareOnSlot, getSlotIsEmpty } from '../../../../step-forms'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import '@testing-library/jest-dom/vitest'
import { screen, cleanup } from '@testing-library/react'
import { OT2_ROBOT_TYPE } from '@opentrons/shared-data'
import { renderWithProviders } from '../../../../__testing-utils__'
import { i18n } from '../../../../localization'
import { i18n } from '../../../../assets/localization'
import { EquipmentOption } from '../../CreateFileWizard/EquipmentOption'
import { ModuleFields } from '../../FilePipettesModal/ModuleFields'
import type { FormPipettesByMount } from '../../../../step-forms'
Expand Down
Loading

0 comments on commit f595599

Please sign in to comment.