From 44a395a2e3805d509fdb99815f8f045a497ca4a8 Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Wed, 18 Sep 2024 16:19:02 -0400 Subject: [PATCH] refactor(app): allow "absolute" imports in app js (#16288) This PR adds configuration to tsc for typechecking and lint, vite for bundling, and vitest for testing to allow code in `app/` to import things via paths that look absolute from the root of the repo (but are really just a specific binding). Any path in an import or mock statement that starts with `/app` will get rewritten to (the appropriate resolved absolute path for) `app/src/`. In addition, rewrite any import that was a relative path that used a string of `../` to get all the way to the top of the repo before going down to another top-level directory as such an absolute-path import. There are a lot of these, which is kind of gross. Each commit after the first handles this rewriting for another kind of import target. ## Note on merging and reviewing This PR will conflict with basically any change to the app code, so I'm not going to make it always up to date. Rather, please review this as is, including checking it out and building/bundling the app if you want, and when it's approved I'll do all the merge conflicts then. ## review requests - Is this what we want to do? --- .eslintrc.js | 6 ++ app-shell-odd/tsconfig.json | 5 +- app-shell/tsconfig.json | 5 +- app/src/App/DesktopApp.tsx | 41 +++++---- app/src/App/DesktopAppFallback.tsx | 9 +- app/src/App/Navbar.tsx | 4 +- .../__tests__/useCurrentRunRoute.test.ts | 4 +- .../hooks/useCurrentRunRoute.ts | 2 +- app/src/App/ODDTopLevelRedirects/index.tsx | 2 +- app/src/App/OnDeviceDisplayApp.tsx | 67 +++++++------- app/src/App/OnDeviceDisplayAppFallback.tsx | 14 +-- app/src/App/__tests__/App.test.tsx | 10 +-- app/src/App/__tests__/DesktopApp.test.tsx | 52 +++++------ .../App/__tests__/OnDeviceDisplayApp.test.tsx | 88 +++++++++---------- .../OnDeviceDisplayAppFallback.test.tsx | 18 ++-- app/src/App/__tests__/hooks.test.tsx | 6 +- app/src/App/hooks.ts | 6 +- app/src/App/index.tsx | 4 +- .../atoms/Banner/__tests__/Banner.test.tsx | 4 +- .../__tests__/InlineNotification.test.tsx | 4 +- .../__tests__/InstrumentContainer.test.tsx | 2 +- .../Link/__tests__/ExternalLink.test.tsx | 2 +- .../__tests__/ProgressBar.test.tsx | 2 +- .../Skeleton/__tests__/Skeleton.test.tsx | 4 +- .../__tests__/SleepScreen.test.tsx | 2 +- .../Slideout/__tests__/Slideout.test.tsx | 4 +- .../__tests__/CustomKeyboard.test.tsx | 2 +- .../__tests__/FullKeyboard.test.tsx | 2 +- .../__tests__/IndividualKey.test.tsx | 2 +- .../__tests__/NumericalKeyboard.test.tsx | 2 +- .../__tests__/StatusLabel.test.tsx | 2 +- .../StepMeter/__tests__/StepMeter.test.tsx | 4 +- .../buttons/__tests__/BackButton.test.tsx | 4 +- .../__tests__/FloatingActionButton.test.tsx | 4 +- .../buttons/__tests__/MediumButton.test.tsx | 2 +- .../__tests__/QuaternaryButton.test.tsx | 2 +- .../buttons/__tests__/SmallButton.test.tsx | 2 +- .../__tests__/SubmitPrimaryButton.test.tsx | 2 +- .../buttons/__tests__/TertiaryButton.test.tsx | 2 +- .../buttons/__tests__/ToggleButton.test.tsx | 2 +- .../structure/__tests__/Divider.test.tsx | 2 +- .../atoms/structure/__tests__/Line.test.tsx | 2 +- .../__tests__/BackgroundOverlay.test.tsx | 2 +- .../CardButton/__tests__/CardButton.test.tsx | 4 +- app/src/molecules/CardButton/index.tsx | 2 +- app/src/molecules/Command/Command.tsx | 2 +- .../Command/__tests__/CommandText.test.tsx | 4 +- .../FileUpload/__tests__/FileUpload.test.tsx | 4 +- .../GenericWizardTile.stories.tsx | 4 +- .../__tests__/GenericWizardTile.test.tsx | 8 +- app/src/molecules/GenericWizardTile/index.tsx | 6 +- .../__tests__/InProgressModal.test.tsx | 8 +- .../__tests__/InfoMessage.test.tsx | 4 +- .../molecules/InstrumentCard/MenuOverlay.tsx | 2 +- app/src/molecules/InstrumentCard/index.tsx | 2 +- .../InterventionModal/DescriptionContent.tsx | 2 +- .../InterventionContent/InterventionInfo.tsx | 2 +- .../InterventionContent/index.tsx | 2 +- .../InterventionModal.stories.tsx | 2 +- .../ModalContentMixed.stories.tsx | 2 +- .../InterventionModal/TwoColumn.stories.tsx | 4 +- .../__tests__/InterventionModal.test.tsx | 10 +-- app/src/molecules/InterventionModal/index.tsx | 2 +- .../JogControls/TouchControlButton.tsx | 2 +- .../molecules/MiniCard/MiniCard.stories.tsx | 4 +- .../MiniCard/__tests__/MiniCard.test.tsx | 2 +- .../ModuleIcon/ModuleIcon.stories.tsx | 2 +- .../ModuleIcon/__tests__/ModuleIcon.test.tsx | 4 +- app/src/molecules/ModuleIcon/index.tsx | 2 +- .../NavTab/__tests__/NavTab.test.tsx | 2 +- .../__tests__/ODDBackButton.test.tsx | 2 +- .../molecules/OddModal/SmallModalChildren.tsx | 2 +- .../OddModal/__tests__/OddModal.test.tsx | 2 +- .../__tests__/OddModalHeader.test.tsx | 2 +- .../__tests__/SmallModalChildren.test.tsx | 2 +- .../__tests__/OffsetVector.test.tsx | 2 +- app/src/molecules/PipetteSelect/index.tsx | 4 +- .../createSnippet.ts | 4 +- app/src/molecules/ReleaseNotes/index.tsx | 2 +- .../SimpleWizardBody.stories.tsx | 2 +- .../SimpleWizardBodyContent.tsx | 6 +- .../__tests__/SimpleWizardBody.test.tsx | 10 +-- .../__tests__/useToggleGroup.test.tsx | 6 +- .../molecules/ToggleGroup/useToggleGroup.tsx | 2 +- .../__tests__/UpdateBanner.test.tsx | 12 +-- app/src/molecules/UpdateBanner/index.tsx | 6 +- .../__tests__/UploadInput.test.tsx | 4 +- .../__tests__/WizardHeader.test.tsx | 12 +-- app/src/molecules/WizardHeader/index.tsx | 2 +- .../equipmentImages.ts | 22 ++--- .../WizardRequiredEquipmentList/index.tsx | 6 +- .../AddCustomLabwareSlideout.test.tsx | 12 +-- .../AddCustomLabwareSlideout/index.tsx | 10 +-- .../AdditionalCustomLabwareSourceFolder.tsx | 8 +- .../ClearUnavailableRobots.tsx | 8 +- .../AdvancedSettings/EnableDevTools.tsx | 6 +- .../AdvancedSettings/OT2AdvancedSettings.tsx | 6 +- .../AdvancedSettings/OverridePathToPython.tsx | 10 +-- .../AdvancedSettings/PreventRobotCaching.tsx | 6 +- .../ShowHeaterShakerAttachmentModal.tsx | 9 +- .../ShowLabwareOffsetSnippets.tsx | 6 +- .../AdvancedSettings/U2EInformation.tsx | 6 +- .../AdvancedSettings/UpdatedChannel.tsx | 8 +- ...ditionalCustomLabwareSourceFolder.test.tsx | 12 +-- .../__tests__/ClearUnavailableRobots.test.tsx | 13 ++- .../__tests__/EnableDevTools.test.tsx | 8 +- .../__tests__/OT2AdvancedSettings.test.tsx | 12 +-- .../__tests__/OverridePathToPython.test.tsx | 16 ++-- .../__tests__/PreventRobotCaching.test.tsx | 10 +-- .../ShowHeaterShakerAttachmentModal.test.tsx | 11 +-- .../ShowLabwareOffsetSnippets.test.tsx | 8 +- .../__tests__/U2EInformation.test.tsx | 10 +-- .../__tests__/UpdatedChannel.test.tsx | 8 +- app/src/organisms/Alerts/AlertsModal.tsx | 10 +-- .../Alerts/U2EDriverOutdatedAlert.tsx | 4 +- .../AppSettings/ConnectRobotSlideout.tsx | 10 +-- .../organisms/AppSettings/FeatureFlags.tsx | 10 +-- .../AppSettings/ManualIpHostnameField.tsx | 2 +- .../AppSettings/ManualIpHostnameForm.tsx | 8 +- .../AppSettings/ManualIpHostnameItem.tsx | 2 +- .../AppSettings/ManualIpHostnameList.tsx | 6 +- .../AppSettings/PreviousVersionModal.tsx | 2 +- .../__tests__/ConnectRobotSlideout.test.tsx | 12 +-- .../__tests__/PreviousVersionModal.test.tsx | 4 +- .../LabwareOffsetTable.tsx | 2 +- .../__tests__/ApplyHistoricOffsets.test.tsx | 12 +-- .../__tests__/LabwareOffsetTable.test.tsx | 4 +- .../__tests__/useHistoricRunDetails.test.tsx | 4 +- .../useOffsetCandidatesForAnalysis.test.tsx | 6 +- .../hooks/useHistoricRunDetails.ts | 2 +- .../organisms/ApplyHistoricOffsets/index.tsx | 8 +- .../__tests__/Breadcrumbs.test.tsx | 26 +++--- app/src/organisms/Breadcrumbs/index.tsx | 14 +-- .../__tests__/CalibrateDeck.test.tsx | 18 ++-- app/src/organisms/CalibrateDeck/index.tsx | 10 +-- app/src/organisms/CalibrateDeck/types.ts | 4 +- .../__tests__/CalibratePipetteOffset.test.tsx | 18 ++-- .../CalibratePipetteOffset/index.tsx | 10 +-- .../organisms/CalibratePipetteOffset/types.ts | 6 +- .../useCalibratePipetteOffset.tsx | 14 +-- .../AskForCalibrationBlockModal.tsx | 8 +- .../AskForCalibrationBlockModal.test.tsx | 6 +- .../__tests__/CalibrateTipLength.test.tsx | 16 ++-- .../organisms/CalibrateTipLength/index.tsx | 14 +-- app/src/organisms/CalibrateTipLength/types.ts | 4 +- .../CalibrationPanels/ChooseTipRack.tsx | 18 ++-- .../organisms/CalibrationPanels/DeckSetup.tsx | 2 +- .../CalibrationPanels/Introduction/Body.tsx | 4 +- .../Introduction/InvalidationWarning.tsx | 4 +- .../Introduction/__tests__/Body.test.tsx | 6 +- .../__tests__/Introduction.test.tsx | 8 +- .../__tests__/InvalidationWarning.test.tsx | 4 +- .../CalibrationPanels/Introduction/index.tsx | 4 +- .../CalibrationPanels/MeasureNozzle.tsx | 30 +++---- .../CalibrationPanels/MeasureTip.tsx | 30 +++---- .../CalibrationPanels/SaveXYPoint.tsx | 32 +++---- .../CalibrationPanels/SaveZPoint.tsx | 14 +-- .../CalibrationPanels/TipConfirmation.tsx | 4 +- .../organisms/CalibrationPanels/TipPickUp.tsx | 10 +-- .../__tests__/ChooseTipRack.test.tsx | 26 +++--- .../__tests__/ChosenTipRackRender.test.tsx | 6 +- .../__tests__/CompleteConfirmation.test.tsx | 4 +- .../__tests__/ConfirmCrashRecovery.test.tsx | 4 +- .../__tests__/ConfirmExit.test.tsx | 4 +- .../__tests__/DeckSetup.test.tsx | 10 +-- .../__tests__/MeasureNozzle.test.tsx | 8 +- .../__tests__/MeasureTip.test.tsx | 8 +- .../__tests__/SaveXYPoint.test.tsx | 8 +- .../__tests__/SaveZPoint.test.tsx | 8 +- .../__tests__/TipConfirmation.test.tsx | 8 +- .../__tests__/TipPickUp.test.tsx | 8 +- .../useConfirmCrashRecovery.test.tsx | 8 +- .../CalibrationPanels/labwareImages.ts | 22 ++--- app/src/organisms/CalibrationPanels/types.ts | 4 +- .../useConfirmCrashRecovery.tsx | 2 +- app/src/organisms/CalibrationPanels/utils.ts | 4 +- .../__tests__/CalibrationStatusCard.test.tsx | 4 +- .../organisms/CalibrationStatusCard/index.tsx | 4 +- .../__tests__/CalibrationTaskList.test.tsx | 8 +- .../organisms/CalibrationTaskList/index.tsx | 10 +-- .../ChangePipette/ConfirmPipette.tsx | 6 +- app/src/organisms/ChangePipette/ExitModal.tsx | 2 +- .../ChangePipette/InstructionStep.tsx | 4 +- .../organisms/ChangePipette/Instructions.tsx | 2 +- .../organisms/ChangePipette/LevelPipette.tsx | 4 +- .../ChangePipette/PipetteSelection.tsx | 2 +- .../__tests__/ChangePipette.test.tsx | 30 +++---- .../__tests__/CheckPipettesButton.test.tsx | 4 +- .../__tests__/ClearDeckModal.test.tsx | 4 +- .../__tests__/ConfirmPipette.test.tsx | 8 +- .../__tests__/ExitModal.test.tsx | 4 +- .../__tests__/InstructionStep.test.tsx | 4 +- .../__tests__/Instructions.test.tsx | 9 +- .../__tests__/LevelPipette.test.tsx | 7 +- .../__tests__/PipetteSelection.test.tsx | 8 +- app/src/organisms/ChangePipette/index.tsx | 14 +-- .../CalibrationHealthCheckResults.tsx | 2 +- .../ResultsSummary/RenderMountInformation.tsx | 4 +- .../CalibrationHealthCheckResults.test.tsx | 4 +- .../__tests__/CalibrationResult.test.tsx | 4 +- .../__tests__/RenderMountInformation.test.tsx | 8 +- .../__tests__/RenderResult.test.tsx | 4 +- .../__tests__/ResultsSummary.test.tsx | 14 +-- .../CheckCalibration/ResultsSummary/index.tsx | 10 +-- .../organisms/CheckCalibration/ReturnTip.tsx | 6 +- .../__tests__/CheckCalibration.test.tsx | 14 +-- app/src/organisms/CheckCalibration/index.tsx | 12 +-- app/src/organisms/CheckCalibration/types.ts | 4 +- .../ChildNavigation.stories.tsx | 2 +- .../__tests__/ChildNavigation.test.tsx | 4 +- app/src/organisms/ChildNavigation/index.tsx | 10 +-- .../__tests__/ChooseProtocolSlideout.test.tsx | 22 ++--- .../ChooseProtocolSlideout/index.tsx | 20 ++--- .../AvailableRobotOption.tsx | 18 ++-- .../__tests__/ChooseRobotSlideout.test.tsx | 20 ++--- .../__tests__/FileCard.test.tsx | 14 +-- .../organisms/ChooseRobotSlideout/index.tsx | 20 ++--- .../ChooseRobotToRunProtocolSlideout.test.tsx | 44 +++++----- .../index.tsx | 10 +-- .../useCreateRunFromProtocol.ts | 4 +- .../ConfigFormResetButton.tsx | 2 +- .../__tests__/ConfigFormResetButton.test.tsx | 4 +- .../__tests__/ConfigFormSubmitButton.test.tsx | 4 +- .../__tests__/ConfigurePipette.test.tsx | 18 ++-- .../AddFixtureModal.tsx | 10 +-- .../DeckConfigurationDiscardChangesModal.tsx | 6 +- .../DeckFixtureSetupInstructionsModal.tsx | 8 +- .../__tests__/AddFixtureModal.test.tsx | 8 +- ...kConfigurationDiscardChangesModal.test.tsx | 4 +- ...DeckFixtureSetupInstructionsModal.test.tsx | 4 +- .../DeviceDetailsDeckConfiguration.test.tsx | 16 ++-- .../DeviceDetailsDeckConfiguration/index.tsx | 8 +- .../Devices/CalibrationStatusBanner.tsx | 2 +- .../organisms/Devices/DevicesEmptyState.tsx | 2 +- app/src/organisms/Devices/EstopBanner.tsx | 2 +- .../Devices/HistoricalProtocolRunDrawer.tsx | 4 +- .../HistoricalProtocolRunOverflowMenu.tsx | 10 +-- .../Devices/InstrumentsAndModules.tsx | 6 +- app/src/organisms/Devices/ModuleInfo.tsx | 2 +- .../PipetteCard/AboutPipetteSlideout.tsx | 4 +- .../Devices/PipetteCard/FlexPipetteCard.tsx | 4 +- .../PipetteCard/PipetteOverflowMenu.tsx | 4 +- .../PipetteRecalibrationWarning.tsx | 2 +- .../PipetteCard/PipetteSettingsSlideout.tsx | 4 +- .../__tests__/AboutPipetteSlideout.test.tsx | 6 +- .../__tests__/FlexPipetteCard.test.tsx | 6 +- .../__tests__/PipetteCard.test.tsx | 21 ++--- .../__tests__/PipetteOverflowMenu.test.tsx | 10 +-- .../PipetteSettingsSlideout.test.tsx | 6 +- .../organisms/Devices/PipetteCard/index.tsx | 4 +- .../Devices/ProtocolRun/BackToTopButton.tsx | 4 +- .../ProtocolRun/LabwareInfoOverlay.tsx | 2 +- .../ProtocolAnalysisErrorBanner.tsx | 2 +- .../TerminalRunBannerContainer.tsx | 4 +- .../ProtocolAnalysisErrorBanner.test.tsx | 4 +- .../RunHeaderBannerContainer/index.tsx | 2 +- .../hooks/useActionButtonProperties.ts | 2 +- .../hooks/useIsFixtureMismatch.ts | 2 +- .../RunHeaderContent/ActionButton/index.tsx | 4 +- .../hooks/useHeaterShakerConfirmationModal.ts | 2 +- .../hooks/useRunHeaderDropTip.ts | 4 +- .../modals/ConfirmCancelModal.tsx | 2 +- .../HeaterShakerIsRunningModal.tsx | 2 +- .../HeaterShakerModuleCard.tsx | 4 +- .../HeaterShakerIsRunningModal.test.tsx | 6 +- .../__tests__/HeaterShakerModuleCard.test.tsx | 6 +- .../__tests__/hooks.test.tsx | 2 +- .../HeaterShakerIsRunningModal/utils.ts | 2 +- .../modals/ProtocolDropTipModal.tsx | 2 +- .../__tests__/ConfirmCancelModal.test.tsx | 8 +- .../ProtocolAnalysisErrorModal.test.tsx | 4 +- .../__tests__/ProtocolDropTipModal.test.tsx | 4 +- .../modals/__tests__/RunFailedModal.test.tsx | 4 +- .../useRunHeaderModalContainer.ts | 2 +- .../__tests__/ProtocolRunHeader.test.tsx | 8 +- .../ProtocolRunHeader/hooks/useIsDoorOpen.ts | 4 +- .../hooks/useRunAnalytics.ts | 4 +- .../ProtocolRun/ProtocolRunHeader/index.tsx | 2 +- .../ProtocolRun/ProtocolRunHeader/utils.ts | 4 +- .../ProtocolRunRunTimeParameters.tsx | 6 +- .../Devices/ProtocolRun/ProtocolRunSetup.tsx | 10 +-- .../Devices/ProtocolRun/RunTimer.tsx | 2 +- .../ProtocolRun/SetupDeckCalibration.tsx | 2 +- .../SetupFlexPipetteCalibrationItem.tsx | 4 +- .../SetupGripperCalibrationItem.tsx | 2 +- .../SetupInstrumentCalibration.tsx | 6 +- .../SetupLabware/CurrentOffsetsModal.tsx | 6 +- .../SetupLabware/LabwareListItem.tsx | 6 +- .../SetupLabware/LabwareStackModal.tsx | 8 +- .../SetupLabware/OffDeckLabwareList.tsx | 2 +- .../SetupLabware/SecureLabwareModal.tsx | 4 +- .../SetupLabware/SetupLabwareList.tsx | 4 +- .../SetupLabware/SetupLabwareMap.tsx | 2 +- .../__tests__/LabwareListItem.test.tsx | 8 +- .../__tests__/OffDeckLabwareList.test.tsx | 4 +- .../__tests__/SecureLabwareModal.test.tsx | 4 +- .../__tests__/SetupLabware.test.tsx | 12 +-- .../__tests__/SetupLabwareList.test.tsx | 4 +- .../__tests__/SetupLabwareMap.test.tsx | 4 +- .../__tests__/getNestedLabwareInfo.test.tsx | 4 +- .../SetupLabware/getNestedLabwareInfo.ts | 2 +- .../ProtocolRun/SetupLabware/index.tsx | 2 +- .../CurrentOffsetsTable.tsx | 8 +- .../__tests__/CurrentOffsetsTable.test.tsx | 8 +- .../__tests__/HowLPCWorksModal.test.tsx | 4 +- .../SetupLabwarePositionCheck.test.tsx | 12 +-- .../SetupLabwarePositionCheck/index.tsx | 2 +- .../SetupLiquids/LiquidDetailCard.tsx | 6 +- .../LiquidsLabwareDetailsModal.tsx | 4 +- .../SetupLiquids/SetupLiquidsList.tsx | 2 +- .../__tests__/LiquidDetailCard.test.tsx | 15 ++-- .../LiquidsLabwareDetailsModal.test.tsx | 13 ++- .../__tests__/SetupLiquids.test.tsx | 4 +- .../__tests__/SetupLiquidsList.test.tsx | 15 ++-- .../__tests__/SetupLiquidsMap.test.tsx | 8 +- .../ProtocolRun/SetupLiquids/index.tsx | 4 +- .../ChooseModuleToConfigureModal.tsx | 6 +- .../LocationConflictModal.tsx | 6 +- .../SetupModuleAndDeck/NotConfiguredModal.tsx | 4 +- .../OT2MultipleModulesHelp.tsx | 4 +- .../SetupModuleAndDeck/SetupFixtureList.tsx | 6 +- .../SetupModuleAndDeck/SetupModulesList.tsx | 8 +- .../SetupModuleAndDeck/SetupModulesMap.tsx | 2 +- .../UnMatchedModuleWarning.tsx | 2 +- .../__tests__/LocationConflictModal.test.tsx | 10 +-- .../__tests__/NotConfiguredModal.test.tsx | 8 +- .../__tests__/OT2MultipleModulesHelp.test.tsx | 8 +- .../__tests__/SetupFixtureList.test.tsx | 8 +- .../__tests__/SetupModulesAndDeck.test.tsx | 12 +-- .../__tests__/SetupModulesList.test.tsx | 16 ++-- .../__tests__/SetupModulesMap.test.tsx | 6 +- .../__tests__/UnMatchedModuleWarning.test.tsx | 4 +- .../ProtocolRun/SetupModuleAndDeck/index.tsx | 6 +- .../ProtocolRun/SetupModuleAndDeck/utils.ts | 30 +++---- .../SetupPipetteCalibrationItem.tsx | 8 +- .../ProtocolRun/SetupRobotCalibration.tsx | 4 +- .../ProtocolRun/SetupTipLengthCalibration.tsx | 2 +- .../SetupTipLengthCalibrationButton.tsx | 4 +- .../__tests__/BackToTopButton.test.tsx | 10 +-- .../__tests__/EmptySetupStep.test.tsx | 4 +- .../__tests__/LabwareInfoOverlay.test.tsx | 7 +- .../ProtocolRunModuleControls.test.tsx | 6 +- .../ProtocolRunRuntimeParameters.test.tsx | 10 +-- .../__tests__/ProtocolRunSetup.test.tsx | 20 ++--- .../__tests__/SetupCalibrationItem.test.tsx | 4 +- .../__tests__/SetupDeckCalibration.test.tsx | 6 +- .../SetupFlexPipetteCalibrationItem.test.tsx | 4 +- .../SetupPipetteCalibration.test.tsx | 10 +-- .../SetupPipetteCalibrationItem.test.tsx | 8 +- .../__tests__/SetupRobotCalibration.test.tsx | 10 +-- .../ProtocolRun/__tests__/SetupStep.test.tsx | 4 +- .../SetupTipLengthCalibration.test.tsx | 8 +- .../SetupTipLengthCalibrationButton.test.tsx | 16 ++-- .../ProtocolRun/useLabwareOffsetForLabware.ts | 2 +- .../getSlotLabwareDefinition.test.ts | 2 +- app/src/organisms/Devices/ReachableBanner.tsx | 6 +- .../organisms/Devices/RecentProtocolRuns.tsx | 2 +- app/src/organisms/Devices/RobotCard.tsx | 14 +-- .../organisms/Devices/RobotOverflowMenu.tsx | 12 +-- app/src/organisms/Devices/RobotOverview.tsx | 12 +-- .../Devices/RobotOverviewOverflowMenu.tsx | 28 +++--- .../AdvancedTabSlideouts/DeviceResetModal.tsx | 11 +-- .../DeviceResetSlideout.tsx | 16 ++-- .../FactoryModeSlideout.tsx | 12 +-- .../RenameRobotSlideout.tsx | 13 ++- .../__tests__/DeviceResetModal.test.tsx | 14 +-- .../__tests__/DeviceResetSlideout.test.tsx | 12 +-- .../__tests__/RenameRobotSlideout.test.tsx | 19 ++-- .../RobotSettings/AdvancedTab/DeviceReset.tsx | 2 +- .../AdvancedTab/DisplayRobotName.tsx | 2 +- .../AdvancedTab/EnableStatusLight.tsx | 2 +- .../RobotSettings/AdvancedTab/FactoryMode.tsx | 2 +- .../AdvancedTab/GantryHoming.tsx | 8 +- .../AdvancedTab/LegacySettings.tsx | 8 +- .../AdvancedTab/OpenJupyterControl.tsx | 9 +- .../AdvancedTab/RobotInformation.tsx | 4 +- .../AdvancedTab/RobotServerVersion.tsx | 8 +- .../AdvancedTab/ShortTrashBin.tsx | 8 +- .../AdvancedTab/Troubleshooting.tsx | 6 +- .../AdvancedTab/UpdateRobotSoftware.tsx | 12 +-- .../AdvancedTab/UsageSettings.tsx | 8 +- .../AdvancedTab/UseOlderAspirateBehavior.tsx | 8 +- .../__tests__/DeviceReset.test.tsx | 4 +- .../__tests__/DisplayRobotName.test.tsx | 4 +- .../__tests__/EnableStatusLight.test.tsx | 4 +- .../__tests__/GantryHoming.test.tsx | 8 +- .../__tests__/LegacySettings.test.tsx | 8 +- .../__tests__/OpenJupyterControl.test.tsx | 11 +-- .../__tests__/RobotInformation.test.tsx | 10 +-- .../__tests__/RobotServerVersion.test.tsx | 14 +-- .../__tests__/ShortTrashBin.test.tsx | 8 +- .../__tests__/Troubleshooting.test.tsx | 12 +-- .../__tests__/UpdateRobotSoftware.test.tsx | 12 +-- .../__tests__/UsageSettings.test.tsx | 8 +- .../UseOlderAspirateBehavior.test.tsx | 8 +- .../ConnectNetwork/ConnectModal/FormModal.tsx | 2 +- .../ConnectModal/UploadKeyInput.tsx | 9 +- .../__tests__/form-fields.test.ts | 4 +- .../ConnectNetwork/DisconnectModal.tsx | 12 +-- .../ConnectNetwork/ResultModal.tsx | 6 +- .../SelectSsid/NetworkOptionLabel.tsx | 4 +- .../ConnectNetwork/SelectSsid/index.tsx | 2 +- .../__tests__/DisconnectModal.test.tsx | 30 +++---- .../RobotSettings/ConnectNetwork/constants.ts | 2 +- .../RobotSettings/ConnectNetwork/i18n.ts | 2 +- .../RobotSettings/ConnectNetwork/types.ts | 4 +- .../RobotSettings/RobotSettingsAdvanced.tsx | 16 ++-- .../RobotSettingsFeatureFlags.tsx | 8 +- .../RobotSettings/RobotSettingsNetworking.tsx | 17 ++-- .../Devices/RobotSettings/SelectNetwork.tsx | 10 +-- .../Devices/RobotSettings/SettingToggle.tsx | 8 +- .../UpdateBuildroot/MigrationWarningModal.tsx | 4 +- .../RobotUpdateProgressModal.tsx | 14 +-- .../UpdateBuildroot/UpdateRobotModal.tsx | 14 +-- .../UpdateBuildroot/ViewUpdateModal.tsx | 10 +-- .../RobotUpdateProgressModal.test.tsx | 18 ++-- .../__tests__/UpdateRobotModal.test.tsx | 14 +-- .../__tests__/useRobotUpdateInfo.test.tsx | 10 +-- .../RobotSettings/UpdateBuildroot/index.tsx | 10 +-- .../UpdateBuildroot/useRobotUpdateInfo.ts | 6 +- .../__tests__/RobotSettingsAdvanced.test.tsx | 16 ++-- .../RobotSettingsFeatureFlags.test.tsx | 6 +- .../RobotSettingsNetworking.test.tsx | 31 +++---- .../organisms/Devices/RobotStatusHeader.tsx | 16 ++-- .../CalibrationStatusBanner.test.tsx | 4 +- .../ConnectionTroubleshootingModal.test.tsx | 4 +- .../__tests__/DevicesEmptyState.test.tsx | 8 +- .../Devices/__tests__/EstopBanner.test.tsx | 4 +- .../__tests__/HistoricalProtocolRun.test.tsx | 10 +-- ...HistoricalProtocolRunOverflowMenu.test.tsx | 28 +++--- .../__tests__/InstrumentsAndModules.test.tsx | 18 ++-- .../Devices/__tests__/ModuleInfo.test.tsx | 4 +- .../__tests__/RecentProtocolRuns.test.tsx | 8 +- .../Devices/__tests__/RobotCard.test.tsx | 24 ++--- .../__tests__/RobotOverflowMenu.test.tsx | 16 ++-- .../Devices/__tests__/RobotOverview.test.tsx | 32 +++---- .../RobotOverviewOverflowMenu.test.tsx | 36 ++++---- .../__tests__/RobotStatusHeader.test.tsx | 26 +++--- .../Devices/__tests__/utils.test.tsx | 4 +- app/src/organisms/Devices/constants.ts | 2 +- .../Devices/getModulePrepCommands.ts | 2 +- app/src/organisms/Devices/getModuleTooHot.ts | 2 +- .../__fixtures__/storedProtocolAnalysis.ts | 2 +- .../hooks/__fixtures__/taskListFixtures.ts | 4 +- .../useAttachedPipetteCalibrations.test.tsx | 12 +-- ...tachedPipettesFromInstrumentsQuery.test.ts | 4 +- .../__tests__/useCalibrationTaskList.test.tsx | 4 +- .../__tests__/useDeckCalibrationData.test.tsx | 18 ++-- .../useDeckCalibrationStatus.test.tsx | 10 +-- .../hooks/__tests__/useIsFlex.test.tsx | 4 +- .../hooks/__tests__/useIsRobotBusy.test.ts | 8 +- .../__tests__/useIsRobotViewable.test.tsx | 6 +- .../__tests__/useLPCDisabledReason.test.tsx | 4 +- .../useModuleCalibrationStatus.test.tsx | 2 +- ...seModuleRenderInfoForProtocolById.test.tsx | 8 +- .../usePipetteOffsetCalibration.test.tsx | 16 ++-- .../usePipetteOffsetCalibrations.test.tsx | 2 +- .../useProtocolAnalysisErrors.test.tsx | 4 +- .../useProtocolDetailsForRun.test.tsx | 4 +- .../__tests__/useProtocolMetadata.test.tsx | 2 +- .../useProtocolRunAnalyticsData.test.tsx | 10 +-- .../Devices/hooks/__tests__/useRobot.test.tsx | 6 +- .../__tests__/useRobotAnalyticsData.test.tsx | 18 ++-- .../useRunCalibrationStatus.test.tsx | 6 +- .../useRunCreatedAtTimestamp.test.tsx | 4 +- .../hooks/__tests__/useRunHasStarted.test.tsx | 4 +- .../useRunPipetteInfoByMount.test.tsx | 6 +- ...nStartedOrLegacySessionInProgress.test.tsx | 4 +- .../hooks/__tests__/useRunStatuses.test.tsx | 4 +- .../useStoredProtocolAnalysis.test.tsx | 12 +-- .../__tests__/useSyncRobotClock.test.tsx | 4 +- .../useTipLengthCalibrations.test.tsx | 2 +- .../useTrackCreateProtocolRunEvent.test.tsx | 14 +-- .../useTrackProtocolRunEvent.test.tsx | 12 +-- .../useUnmatchedModulesForProtocol.test.tsx | 4 +- .../hooks/useAttachedPipetteCalibrations.ts | 2 +- .../Devices/hooks/useAttachedPipettes.ts | 4 +- ...useAttachedPipettesFromInstrumentsQuery.ts | 2 +- .../Devices/hooks/useCalibrationTaskList.ts | 10 +-- .../Devices/hooks/useDeckCalibrationData.ts | 2 +- .../Devices/hooks/useDeckCalibrationStatus.ts | 2 +- .../Devices/hooks/useDownloadRunLog.ts | 2 +- app/src/organisms/Devices/hooks/useIsFlex.ts | 7 +- .../organisms/Devices/hooks/useIsRobotBusy.ts | 4 +- .../Devices/hooks/useIsRobotViewable.ts | 2 +- .../organisms/Devices/hooks/useLEDLights.ts | 6 +- .../Devices/hooks/useLastRunCommand.ts | 2 +- .../useModuleRenderInfoForProtocolById.ts | 4 +- .../hooks/usePipetteOffsetCalibration.ts | 10 +-- .../hooks/usePipetteOffsetCalibrations.ts | 2 +- .../hooks/useProtocolAnalysisErrors.ts | 2 +- .../Devices/hooks/useProtocolDetailsForRun.ts | 2 +- .../hooks/useProtocolRunAnalyticsData.ts | 14 +-- app/src/organisms/Devices/hooks/useRobot.ts | 6 +- .../Devices/hooks/useRobotAnalyticsData.ts | 10 +-- .../Devices/hooks/useRunCalibrationStatus.ts | 6 +- .../Devices/hooks/useRunCreatedAtTimestamp.ts | 2 +- .../Devices/hooks/useRunHasStarted.ts | 2 +- .../Devices/hooks/useRunPipetteInfoByMount.ts | 4 +- .../useRunStartedOrLegacySessionInProgress.ts | 2 +- .../organisms/Devices/hooks/useRunStatuses.ts | 2 +- .../hooks/useStoredProtocolAnalysis.ts | 6 +- .../Devices/hooks/useSyncRobotClock.ts | 4 +- .../Devices/hooks/useTipLengthCalibrations.ts | 2 +- .../hooks/useTrackCreateProtocolRunEvent.ts | 4 +- .../Devices/hooks/useTrackProtocolRunEvent.ts | 2 +- .../hooks/useUnmatchedModulesForProtocol.ts | 2 +- app/src/organisms/Devices/utils.ts | 2 +- .../DropTipWizardFlows/DropTipWizard.tsx | 4 +- .../DropTipWizardHeader.tsx | 2 +- .../DropTipWizardFlows/TipsAttachedModal.tsx | 8 +- .../DropTipWizardFlows/__fixtures__/index.ts | 2 +- .../__tests__/DropTipWizard.test.tsx | 8 +- .../__tests__/DropTipWizardHeader.test.tsx | 4 +- .../__tests__/TipsAttachedModal.test.tsx | 6 +- .../__tests__/useTipAttachmentStatus.test.tsx | 2 +- .../DropTipWizardFlows/hooks/errors.tsx | 2 +- .../hooks/useDropTipCommands.ts | 4 +- .../hooks/useDropTipCreateCommands.ts | 4 +- .../hooks/useDropTipMaintenanceRun.tsx | 4 +- .../hooks/useHomePipettes.ts | 4 +- .../DesktopEstopMissingModal.stories.tsx | 2 +- .../DesktopEstopPressedModal.stories.tsx | 2 +- .../EmergencyStop/EstopMissingModal.tsx | 6 +- .../EmergencyStop/EstopPressedModal.tsx | 10 +-- .../organisms/EmergencyStop/EstopTakeover.tsx | 2 +- .../TouchscreenEstopMissingModal.stories.tsx | 2 +- .../TouchscreenEstopPressedModal.stories.tsx | 2 +- .../__tests__/EstopMissingModal.test.tsx | 8 +- .../__tests__/EstopPressedModal.test.tsx | 8 +- .../__tests__/EstopTakeover.test.tsx | 10 +-- .../__tests__/ErrorRecoveryBanner.test.tsx | 4 +- .../__tests__/useErrorRecoveryBanner.test.ts | 8 +- .../organisms/ErrorRecoveryBanner/index.tsx | 8 +- .../ErrorRecoveryFlows/RecoveryError.tsx | 2 +- .../ErrorRecoveryFlows/RecoveryInProgress.tsx | 2 +- .../RecoveryOptions/FillWellAndSkip.tsx | 2 +- .../__tests__/CancelRun.test.tsx | 4 +- .../__tests__/FillWellAndSkip.test.tsx | 8 +- .../__tests__/IgnoreErrorSkipStep.test.tsx | 4 +- .../__tests__/ManageTips.test.tsx | 6 +- .../__tests__/RetryNewTips.test.tsx | 6 +- .../__tests__/RetrySameTips.test.tsx | 6 +- .../__tests__/RetryStep.test.tsx | 6 +- .../__tests__/SelectRecoveryOptions.test.tsx | 4 +- .../__tests__/SkipStepNewTips.test.tsx | 6 +- .../__tests__/SkipStepSameTips.test.tsx | 6 +- .../ErrorRecoveryFlows/RecoveryTakeover.tsx | 4 +- .../ErrorRecoveryFlows/__fixtures__/index.ts | 2 +- .../__tests__/ErrorRecoveryFlows.test.tsx | 8 +- .../__tests__/ErrorRecoveryWizard.test.tsx | 4 +- .../__tests__/RecoveryDoorOpen.test.tsx | 4 +- .../__tests__/RecoveryError.test.tsx | 4 +- .../__tests__/RecoveryInProgress.test.tsx | 4 +- .../__tests__/RecoveryTakeover.test.tsx | 8 +- .../__tests__/RunPausedSplash.test.tsx | 8 +- .../useCurrentlyRecoveringFrom.test.ts | 4 +- .../__tests__/useRecoveryCommands.test.ts | 4 +- .../__tests__/useRecoveryOptionCopy.test.tsx | 4 +- .../__tests__/useRecoveryTakeover.test.ts | 8 +- .../__tests__/useRecoveryToasts.test.tsx | 6 +- .../hooks/useCurrentlyRecoveringFrom.ts | 2 +- .../ErrorRecoveryFlows/hooks/useERUtils.ts | 6 +- .../hooks/useFailedLabwareUtils.ts | 2 +- .../hooks/useRecoveryAnalytics.ts | 2 +- .../hooks/useRecoveryCommands.ts | 2 +- .../hooks/useRecoveryTakeover.ts | 6 +- .../hooks/useRecoveryToasts.ts | 6 +- .../organisms/ErrorRecoveryFlows/index.tsx | 2 +- .../shared/ErrorDetailsModal.tsx | 6 +- .../shared/FailedStepNextStep.tsx | 2 +- .../shared/LeftColumnLabwareInfo.tsx | 2 +- .../shared/RecoveryContentWrapper.tsx | 2 +- .../shared/RecoveryFooterButtons.tsx | 2 +- .../shared/RecoveryInterventionModal.tsx | 4 +- .../ErrorRecoveryFlows/shared/ReplaceTips.tsx | 2 +- .../ErrorRecoveryFlows/shared/SelectTips.tsx | 2 +- .../ErrorRecoveryFlows/shared/StepInfo.tsx | 2 +- .../shared/TipSelectionModal.tsx | 4 +- .../TwoColTextAndFailedStepNextStep.tsx | 2 +- .../__tests__/ErrorDetailsModal.test.tsx | 12 +-- .../__tests__/LeftColumnLabwareInfo.test.tsx | 14 ++- .../__tests__/RecoveryFooterButtons.test.tsx | 4 +- .../shared/__tests__/SelectTips.test.tsx | 4 +- .../shared/__tests__/StepInfo.test.tsx | 8 +- .../shared/__tests__/TipSelection.test.tsx | 4 +- .../__tests__/TipSelectionModal.test.tsx | 4 +- .../FirmwareUpdateTakeover.tsx | 2 +- .../UpdateInProgressModal.tsx | 2 +- .../FirmwareUpdateModal/UpdateNeededModal.tsx | 6 +- .../UpdateResultsModal.tsx | 8 +- .../__tests__/FirmwareUpdateModal.test.tsx | 4 +- .../__tests__/FirmwareUpdateTakeover.test.tsx | 8 +- .../__tests__/UpdateInProgressModal.test.tsx | 4 +- .../__tests__/UpdateNeededModal.test.tsx | 4 +- .../__tests__/UpdateResultsModal.test.tsx | 4 +- .../GripperCard/AboutGripperSlideout.tsx | 2 +- .../__tests__/AboutGripperSlideout.test.tsx | 4 +- .../__tests__/GripperCard.test.tsx | 4 +- app/src/organisms/GripperCard/index.tsx | 4 +- .../GripperWizardFlows/BeforeBeginning.tsx | 6 +- .../GripperWizardFlows/ExitConfirmation.tsx | 6 +- .../GripperWizardFlows.stories.tsx | 6 +- .../GripperWizardFlows/MountGripper.tsx | 10 +-- .../organisms/GripperWizardFlows/MovePin.tsx | 16 ++-- .../organisms/GripperWizardFlows/Success.tsx | 6 +- .../GripperWizardFlows/UnmountGripper.tsx | 10 +-- .../__tests__/BeforeBeginning.test.tsx | 8 +- .../__tests__/ExitConfirmation.test.tsx | 4 +- .../__tests__/MountGripper.test.tsx | 4 +- .../__tests__/MovePin.test.tsx | 4 +- .../__tests__/Success.test.tsx | 4 +- .../__tests__/UnmountGripper.test.tsx | 4 +- .../organisms/GripperWizardFlows/index.tsx | 10 +-- .../HowCalibrationWorksModal.test.tsx | 4 +- .../HowCalibrationWorksModal/index.tsx | 6 +- .../IncompatibleModuleDesktopModalBody.tsx | 2 +- .../IncompatibleModuleODDModalBody.tsx | 4 +- ...ncompatibleModuleDesktopModalBody.test.tsx | 4 +- .../IncompatibleModuleODDModalBody.test.tsx | 4 +- .../IncompatibleModuleTakeover.test.tsx | 4 +- .../__tests__/InstrumentInfo.test.tsx | 6 +- app/src/organisms/InstrumentInfo/index.tsx | 4 +- .../AttachedInstrumentMountItem.tsx | 4 +- .../InstrumentMountItem/LabeledMount.tsx | 2 +- .../ProtocolInstrumentMountItem.tsx | 6 +- .../ProtocolInstrumentMountItem.test.tsx | 4 +- .../InterventionModal.stories.tsx | 6 +- .../MoveLabwareInterventionContent.tsx | 6 +- .../InterventionCommandMesage.test.tsx | 4 +- .../InterventionCommandMessage.test.tsx | 4 +- .../__tests__/InterventionModal.test.tsx | 6 +- app/src/organisms/InterventionModal/index.tsx | 8 +- .../utils/getLabwareNameFromRunData.ts | 4 +- .../getModuleDisplayLocationFromRunData.ts | 2 +- .../utils/getModuleModelFromRunData.ts | 2 +- .../LabwareCard/CustomLabwareOverflowMenu.tsx | 8 +- .../CustomLabwareOverflowMenu.test.tsx | 8 +- .../__tests__/LabwareCard.test.tsx | 13 ++- app/src/organisms/LabwareCard/index.tsx | 2 +- .../organisms/LabwareDetails/Dimensions.tsx | 2 +- app/src/organisms/LabwareDetails/Gallery.tsx | 2 +- .../LabwareDetails/InsertDetails.tsx | 2 +- .../LabwareDetails/ManufacturerDetails.tsx | 2 +- .../StyledComponents/ExpandingTitle.tsx | 2 +- .../__tests__/ExpandingTitle.test.tsx | 2 +- .../__tests__/LabeledValue.test.tsx | 2 +- .../LabwareDetails/WellDimensions.tsx | 2 +- .../LabwareDetails/WellProperties.tsx | 2 +- .../organisms/LabwareDetails/WellSpacing.tsx | 2 +- .../__tests__/Dimensions.test.tsx | 6 +- .../LabwareDetails/__tests__/Gallery.test.tsx | 4 +- .../__tests__/LabwareDetails.test.tsx | 10 +-- .../__tests__/ManufacturerDetails.test.tsx | 4 +- .../__tests__/WellCount.test.tsx | 4 +- .../__tests__/WellDimensions.test.tsx | 6 +- .../__tests__/WellProperties.test.tsx | 6 +- .../__tests__/WellSpacing.test.tsx | 6 +- .../LabwareDetails/helpers/labels.ts | 2 +- app/src/organisms/LabwareDetails/index.tsx | 4 +- .../__tests__/LabwareOffsetTabs.test.tsx | 4 +- .../LabwarePositionCheck/AttachProbe.tsx | 12 +-- .../LabwarePositionCheck/CheckItem.tsx | 10 +-- .../LabwarePositionCheck/DetachProbe.tsx | 12 +-- .../LabwarePositionCheck/ExitConfirmation.tsx | 4 +- .../LabwarePositionCheck/FatalErrorModal.tsx | 4 +- .../IntroScreen/index.tsx | 12 +-- .../LabwarePositionCheck/JogToWell.tsx | 16 ++-- .../LabwarePositionCheckComponent.tsx | 10 +-- .../LabwarePositionCheck/LiveOffsetValue.tsx | 2 +- .../LabwarePositionCheck/PickUpTip.tsx | 10 +-- .../LabwarePositionCheck/PrepareSpace.tsx | 6 +- .../LabwarePositionCheck/ResultsSummary.tsx | 8 +- .../LabwarePositionCheck/ReturnTip.tsx | 8 +- .../TerseOffsetTable.stories.tsx | 2 +- .../LabwarePositionCheck/TipConfirmation.tsx | 8 +- .../__tests__/CheckItem.test.tsx | 9 +- .../__tests__/ExitConfirmation.test.tsx | 4 +- .../__tests__/PickUpTip.test.tsx | 11 +-- .../__tests__/ResultsSummary.test.tsx | 10 +-- .../__tests__/ReturnTip.test.tsx | 8 +- .../__tests__/RobotMotionLoader.test.tsx | 4 +- .../__tests__/TipConfirmation.test.tsx | 4 +- .../__tests__/useLaunchLPC.test.tsx | 6 +- .../organisms/LabwarePositionCheck/index.tsx | 2 +- .../LabwarePositionCheck/useLaunchLPC.tsx | 4 +- .../useMostRecentCompletedAnalysis.ts | 2 +- .../utils/getProbeBasedLPCSteps.ts | 2 +- .../utils/getTipBasedLPCSteps.ts | 2 +- .../LabwarePositionCheck/utils/labware.ts | 2 +- .../ModuleCard/AboutModuleSlideout.tsx | 6 +- .../ModuleCard/AbsorbanceReaderData.tsx | 2 +- .../ModuleCard/AbsorbanceReaderSlideout.tsx | 4 +- .../ModuleCard/ConfirmAttachmentModal.tsx | 6 +- app/src/organisms/ModuleCard/ErrorInfo.tsx | 4 +- .../ModuleCard/FirmwareUpdateFailedModal.tsx | 2 +- .../ModuleCard/HeaterShakerModuleData.tsx | 6 +- .../ModuleCard/HeaterShakerSlideout.tsx | 6 +- .../ModuleCard/MagneticModuleData.tsx | 4 +- .../ModuleCard/MagneticModuleSlideout.tsx | 6 +- .../ModuleCard/ModuleOverflowMenu.tsx | 4 +- .../organisms/ModuleCard/ModuleSetupModal.tsx | 2 +- .../ModuleCard/TemperatureModuleData.tsx | 4 +- .../ModuleCard/TemperatureModuleSlideout.tsx | 6 +- .../ModuleCard/TestShakeSlideout.tsx | 10 +-- .../ModuleCard/ThermocyclerModuleData.tsx | 4 +- .../ModuleCard/ThermocyclerModuleSlideout.tsx | 6 +- .../__tests__/AboutModuleSlideout.test.tsx | 6 +- .../ModuleCard/__tests__/Collapsible.test.tsx | 2 +- .../__tests__/ConfirmAttachmentModal.test.tsx | 4 +- .../ModuleCard/__tests__/ErrorInfo.test.tsx | 8 +- .../FirmwareUpdateFailedModal.test.tsx | 6 +- .../__tests__/HeaterShakerModuleData.test.tsx | 8 +- .../__tests__/HeaterShakerSlideout.test.tsx | 6 +- .../__tests__/MagneticModuleData.test.tsx | 10 +-- .../__tests__/MagneticModuleSlideout.test.tsx | 6 +- .../ModuleCard/__tests__/ModuleCard.test.tsx | 34 +++---- .../__tests__/ModuleOverflowMenu.test.tsx | 10 +-- .../__tests__/ModuleSetupModal.test.tsx | 4 +- .../__tests__/TemperatureModuleData.test.tsx | 10 +-- .../TemperatureModuleSlideout.test.tsx | 6 +- .../__tests__/TestShakeSlideout.test.tsx | 10 +-- .../__tests__/ThermocyclerModuleData.test.tsx | 8 +- .../ThermocyclerModuleSlideout.test.tsx | 6 +- .../ModuleCard/__tests__/hooks.test.tsx | 10 +-- .../ModuleCard/__tests__/utils.test.ts | 6 +- app/src/organisms/ModuleCard/hooks.tsx | 4 +- app/src/organisms/ModuleCard/index.tsx | 18 ++-- app/src/organisms/ModuleCard/utils.ts | 20 ++--- .../ModuleWizardFlows/AttachProbe.tsx | 12 +-- .../ModuleWizardFlows/BeforeBeginning.tsx | 4 +- .../ModuleWizardFlows/DetachProbe.tsx | 8 +- .../ModuleWizardFlows/PlaceAdapter.tsx | 14 +-- .../ModuleWizardFlows/SelectLocation.tsx | 4 +- .../organisms/ModuleWizardFlows/Success.tsx | 4 +- app/src/organisms/ModuleWizardFlows/index.tsx | 14 +-- .../organisms/Navigation/NavigationMenu.tsx | 4 +- .../RestartRobotConfirmationModal.tsx | 10 +-- .../Navigation/__tests__/Navigation.test.tsx | 14 +-- .../__tests__/NavigationMenu.test.tsx | 10 +-- .../RestartRobotConfirmationModal.test.tsx | 8 +- app/src/organisms/Navigation/index.tsx | 6 +- .../ODD/NameRobot/ConfirmRobotName.tsx | 6 +- .../__tests__/ConfirmRobotName.test.tsx | 4 +- .../AlternativeSecurityTypeModal.tsx | 6 +- .../ODD/NetworkSettings/DisplayWifiList.tsx | 6 +- .../ODD/NetworkSettings/FailedToConnect.tsx | 4 +- .../SelectAuthenticationType.tsx | 6 +- .../ODD/NetworkSettings/SetWifiCred.tsx | 2 +- .../ODD/NetworkSettings/SetWifiSsid.tsx | 2 +- .../NetworkSettings/WifiConnectionDetails.tsx | 10 +-- .../AlternativeSecurityTypeModal.test.tsx | 4 +- .../__tests__/ConnectingNetwork.test.tsx | 4 +- .../__tests__/DisplaySearchNetwork.test.tsx | 4 +- .../__tests__/DisplayWifiList.test.tsx | 10 +-- .../__tests__/FailedToConnect.test.tsx | 6 +- .../SelectAuthenticationType.test.tsx | 13 ++- .../__tests__/SetWifiCred.test.tsx | 8 +- .../__tests__/SetWifiSsid.test.tsx | 4 +- .../__tests__/WifiConnectionDetails.test.tsx | 19 ++-- .../ProtocolDetailsSkeleton.tsx | 2 +- .../ProtocolSetupDeckConfiguration.test.tsx | 8 +- .../ProtocolSetupDeckConfiguration/index.tsx | 2 +- .../ProtocolSetupInstruments.tsx | 6 +- .../ProtocolSetupInstruments.test.tsx | 14 ++- .../ProtocolSetupInstruments/utils.ts | 2 +- .../SingleLabwareModal.tsx | 2 +- .../__tests__/LabwareMapView.test.tsx | 8 +- .../__tests__/ProtocolSetupLabware.test.tsx | 14 ++- .../ProtocolSetupLabware/index.tsx | 10 +-- .../__tests__/LiquidDetails.test.tsx | 4 +- .../__tests__/ProtocolSetupLiquids.test.tsx | 6 +- .../ProtocolSetupLiquids/index.tsx | 4 +- .../FixtureTable.tsx | 10 +-- .../ModuleTable.tsx | 8 +- .../ProtocolSetupModulesAndDeck.tsx | 14 +-- .../SetupInstructionsModal.tsx | 6 +- .../__tests__/FixtureTable.test.tsx | 18 ++-- .../__tests__/ModulesAndDeckMapView.test.tsx | 8 +- .../ProtocolSetupModulesAndDeck.test.tsx | 32 +++---- .../__tests__/SetupInstructionsModal.test.tsx | 4 +- .../__tests__/utils.test.tsx | 2 +- .../ProtocolSetupModulesAndDeck/utils.ts | 2 +- .../ProtocolSetupOffsets/index.tsx | 14 +-- .../AnalysisFailedModal.tsx | 6 +- .../ProtocolSetupParameters/ChooseCsvFile.tsx | 2 +- .../ProtocolSetupParameters/ChooseNumber.tsx | 2 +- .../ResetValuesModal.tsx | 6 +- .../__tests__/AnalysisFailedModal.test.tsx | 4 +- .../__tests__/ChooseCsvFile.test.tsx | 14 +-- .../__tests__/ChooseEnum.test.tsx | 4 +- .../__tests__/ChooseNumber.test.tsx | 6 +- .../__tests__/EmptyFile.test.tsx | 4 +- .../ProtocolSetupParameters.test.tsx | 10 +-- .../__tests__/ResetValuesModal.test.tsx | 4 +- .../__tests__/ViewOnlyParameters.test.tsx | 6 +- .../ProtocolSetup/ProtocolSetupSkeleton.tsx | 2 +- .../ODD/RobotDashboard/EmptyRecentRun.tsx | 2 +- .../RobotDashboard/RecentRunProtocolCard.tsx | 8 +- .../__tests__/EmptyRecentRun.test.tsx | 4 +- .../__tests__/RecentRunProtocolCard.test.tsx | 30 +++---- .../RecentRunProtocolCarousel.test.tsx | 6 +- .../__tests__/useHardwareStatusText.test.tsx | 6 +- .../hooks/useHardwareStatusText.ts | 2 +- .../hooks/useRerunnableStatusText.ts | 2 +- .../RobotSettingsDashboard/DeviceReset.tsx | 16 ++-- .../EthernetConnectionDetails.tsx | 8 +- .../NetworkSettings/NetworkDetailsModal.tsx | 4 +- .../RobotSettingsJoinOtherNetwork.tsx | 2 +- .../RobotSettingsSelectAuthenticationType.tsx | 2 +- .../RobotSettingsSetWifiCred.tsx | 2 +- .../NetworkSettings/RobotSettingsWifi.tsx | 2 +- .../RobotSettingsWifiConnect.tsx | 6 +- .../NetworkSettings/WifiConnectionDetails.tsx | 8 +- .../EthernetConnectionDetails.test.tsx | 18 ++-- .../__tests__/NetworkDetailsModal.test.tsx | 4 +- .../__tests__/NetworkSettings.test.tsx | 16 ++-- .../__tests__/WifiConnectionDetails.test.tsx | 14 +-- .../NetworkSettings/index.tsx | 4 +- .../ODD/RobotSettingsDashboard/Privacy.tsx | 6 +- .../RobotSystemVersion.tsx | 6 +- .../RobotSystemVersionModal.tsx | 10 +-- .../TouchScreenSleep.tsx | 6 +- .../TouchscreenBrightness.tsx | 8 +- .../RobotSettingsDashboard/UpdateChannel.tsx | 6 +- .../__tests__/DeviceReset.test.tsx | 17 ++-- .../__tests__/Privacy.test.tsx | 12 +-- .../__tests__/RobotSystemVersion.test.tsx | 6 +- .../RobotSystemVersionModal.test.tsx | 4 +- .../__tests__/TextSize.test.tsx | 4 +- .../__tests__/TouchScreenSleep.test.tsx | 8 +- .../__tests__/TouchscreenBrightness.test.tsx | 8 +- .../__tests__/UpdateChannel.test.tsx | 8 +- .../ODD/RunningProtocol/CancelingRunModal.tsx | 2 +- .../RunningProtocol/ConfirmCancelRunModal.tsx | 14 +-- .../CurrentRunningProtocolCommand.tsx | 12 +-- .../ODD/RunningProtocol/PlayPauseButton.tsx | 2 +- .../ODD/RunningProtocol/RunFailedModal.tsx | 6 +- .../RunningProtocolCommandList.tsx | 8 +- .../RunningProtocolSkeleton.tsx | 4 +- .../ODD/RunningProtocol/StopButton.tsx | 2 +- .../__tests__/CancelingRunModal.test.tsx | 4 +- .../__tests__/ConfirmCancelRunModal.test.tsx | 22 ++--- .../CurrentRunningProtocolCommand.test.tsx | 14 +-- .../__tests__/RunFailedModal.test.tsx | 4 +- .../RunningProtocolCommandList.test.tsx | 6 +- .../RunningProtocolSkeleton.test.tsx | 2 +- .../useIsUnboxingFlowOngoing.test.tsx | 9 +- .../ODD/hooks/useIsUnboxingFlowOngoing.ts | 5 +- .../__tests__/OpenDoorAlertModal.test.tsx | 4 +- .../organisms/OpenDoorAlertModal/index.tsx | 2 +- .../PipetteWizardFlows/AttachProbe.tsx | 14 +-- .../PipetteWizardFlows/BeforeBeginning.tsx | 12 +-- .../organisms/PipetteWizardFlows/Carriage.tsx | 6 +- .../PipetteWizardFlows/CheckPipetteButton.tsx | 2 +- .../PipetteWizardFlows/ChoosePipette.tsx | 14 +-- .../PipetteWizardFlows/DetachPipette.tsx | 10 +-- .../PipetteWizardFlows/DetachProbe.tsx | 4 +- .../PipetteWizardFlows/ExitModal.tsx | 4 +- .../PipetteWizardFlows/MountPipette.tsx | 6 +- .../PipetteWizardFlows/MountingPlate.tsx | 4 +- .../PipetteWizardFlows/ProbeNotAttached.tsx | 4 +- .../organisms/PipetteWizardFlows/Results.tsx | 6 +- .../PipetteWizardFlows/UnskippableModal.tsx | 4 +- .../__tests__/AttachProbe.test.tsx | 13 ++- .../__tests__/BeforeBeginning.test.tsx | 10 +-- .../__tests__/Carriage.test.tsx | 6 +- .../__tests__/CheckPipetteButton.test.tsx | 2 +- .../__tests__/ChoosePipette.test.tsx | 10 +-- .../__tests__/DetachPipette.test.tsx | 10 +-- .../__tests__/DetachProbe.test.tsx | 10 +-- .../__tests__/ExitModal.test.tsx | 4 +- .../__tests__/MountPipette.test.tsx | 6 +- .../__tests__/MountingPlate.test.tsx | 6 +- .../__tests__/Results.test.tsx | 10 +-- .../__tests__/UnskippableModal.test.tsx | 4 +- .../getPipetteWizardStepsForProtocol.test.tsx | 2 +- .../__tests__/hooks.test.tsx | 4 +- .../__tests__/utils.test.ts | 2 +- .../getPipetteWizardStepsForProtocol.ts | 2 +- .../organisms/PipetteWizardFlows/index.tsx | 10 +-- .../organisms/PipetteWizardFlows/utils.tsx | 36 ++++---- .../ProtocolAnalysisStale.tsx | 6 +- .../ProtocolAnalysisFailure.test.tsx | 6 +- .../ProtocolAnalysisFailure/index.tsx | 6 +- .../ProtocolDetails/AnnotatedSteps.tsx | 2 +- .../ProtocolLabwareDetails.tsx | 4 +- .../ProtocolLiquidsDetails.tsx | 2 +- .../__tests__/ProtocolParameters.test.tsx | 4 +- .../ProtocolParameters/index.tsx | 2 +- .../RobotConfigurationDetails.tsx | 4 +- .../__tests__/ProtocolDetails.test.tsx | 30 +++---- .../__tests__/ProtocolLabwareDetails.test.tsx | 4 +- .../__tests__/ProtocolLiquidsDetails.test.tsx | 4 +- .../RobotConfigurationDetails.test.tsx | 4 +- app/src/organisms/ProtocolDetails/index.tsx | 14 +-- .../__tests__/ProtocolStatusBanner.test.tsx | 4 +- .../organisms/ProtocolStatusBanner/index.tsx | 2 +- .../ProtocolTimelineScrubber/CommandItem.tsx | 4 +- .../hooks/__tests__/useCloneRun.test.tsx | 4 +- .../__tests__/useMostRecentRunId.test.tsx | 4 +- .../ProtocolUpload/hooks/useCloneRun.ts | 2 +- .../hooks/useCloseCurrentRun.ts | 2 +- .../ProtocolUpload/hooks/useCurrentRun.ts | 2 +- .../hooks/useCurrentRunCommands.ts | 2 +- .../hooks/useMostRecentRunId.ts | 2 +- .../ProtocolUpload/hooks/useRunCommands.ts | 2 +- .../ProtocolsLanding/ProtocolCard.tsx | 10 +-- .../ProtocolsLanding/ProtocolList.tsx | 8 +- .../ProtocolsLanding/ProtocolOverflowMenu.tsx | 10 +-- .../ProtocolsLanding/ProtocolUploadInput.tsx | 8 +- .../ConfirmDeleteProtocolModal.test.tsx | 4 +- .../__tests__/EmptyStateLinks.test.tsx | 4 +- .../__tests__/ProtocolList.test.tsx | 12 +-- .../__tests__/ProtocolOverflowMenu.test.tsx | 14 +-- .../__tests__/UploadInput.test.tsx | 8 +- .../ProtocolsLanding/__tests__/hooks.test.tsx | 4 +- app/src/organisms/ProtocolsLanding/hooks.tsx | 2 +- .../QuickTransferFlow/ConfirmExitModal.tsx | 4 +- .../QuickTransferFlow/CreateNewTransfer.tsx | 4 +- .../QuickTransferFlow/NameQuickTransfer.tsx | 2 +- .../QuickTransferAdvancedSettings/AirGap.tsx | 4 +- .../QuickTransferAdvancedSettings/BlowOut.tsx | 4 +- .../QuickTransferAdvancedSettings/Delay.tsx | 4 +- .../FlowRate.tsx | 2 +- .../QuickTransferAdvancedSettings/Mix.tsx | 4 +- .../PipettePath.tsx | 6 +- .../TipPosition.tsx | 2 +- .../TouchTip.tsx | 4 +- .../QuickTransferAdvancedSettings/index.tsx | 2 +- .../QuickTransferFlow/SaveOrRunModal.tsx | 4 +- .../QuickTransferFlow/SelectDestLabware.tsx | 4 +- .../QuickTransferFlow/SelectDestWells.tsx | 12 +-- .../QuickTransferFlow/SelectPipette.tsx | 4 +- .../QuickTransferFlow/SelectSourceLabware.tsx | 4 +- .../QuickTransferFlow/SelectSourceWells.tsx | 6 +- .../QuickTransferFlow/SelectTipRack.tsx | 2 +- .../QuickTransferFlow/SummaryAndSettings.tsx | 4 +- .../TipManagement/TipDropLocation.tsx | 2 +- .../QuickTransferFlow/VolumeEntry.tsx | 4 +- .../__tests__/ConfirmExitModal.test.tsx | 4 +- .../__tests__/CreateNewTransfer.test.tsx | 4 +- .../__tests__/NameQuickTransfer.test.tsx | 6 +- .../__tests__/Overview.test.tsx | 4 +- .../__tests__/SelectDestLabware.test.tsx | 4 +- .../__tests__/SelectPipette.test.tsx | 8 +- .../__tests__/SelectSourceLabware.test.tsx | 4 +- .../__tests__/SelectTipRack.test.tsx | 4 +- .../__tests__/SummaryAndSettings.test.tsx | 8 +- .../TipManagement/ChangeTip.test.tsx | 4 +- .../TipManagement/TipDropLocation.test.tsx | 8 +- .../TipManagement/TipManagement.test.tsx | 4 +- .../__tests__/VolumeEntry.test.tsx | 8 +- app/src/organisms/QuickTransferFlow/index.tsx | 2 +- .../generateCompatibleLabwareForPipette.ts | 2 +- .../utils/getCompatibleLabwareByCategory.ts | 2 +- .../CalibrationDataDownload.tsx | 8 +- .../ModuleCalibrationOverflowMenu.tsx | 6 +- .../CalibrationDetails/OverflowMenu.tsx | 8 +- .../PipetteOffsetCalibrationItems.tsx | 8 +- .../TipLengthCalibrationItems.tsx | 6 +- .../CalibrationDetails/__fixtures__/index.ts | 2 +- .../__tests__/ModuleCalibrationItems.test.tsx | 6 +- .../ModuleCalibrationOverflowMenu.test.tsx | 14 +-- .../__tests__/OverflowMenu.test.tsx | 26 +++--- .../PipetteOffsetCalibrationItems.test.tsx | 18 ++-- .../TipLengthCalibrationItems.test.tsx | 16 ++-- .../CalibrationDetails/utils.ts | 2 +- .../CalibrationHealthCheck.tsx | 20 ++--- .../RobotSettingsDeckCalibration.tsx | 8 +- .../RobotSettingsGripperCalibration.tsx | 4 +- .../RobotSettingsTipLengthCalibration.tsx | 4 +- .../CalibrationDataDownload.test.tsx | 24 ++--- .../__tests__/CalibrationHealthCheck.test.tsx | 24 ++--- .../RobotSettingsCalibration.test.tsx | 30 +++---- .../RobotSettingsDeckCalibration.test.tsx | 22 ++--- .../RobotSettingsGripperCalibration.test.tsx | 12 +-- .../RobotSettingsModuleCalibration.test.tsx | 6 +- ...tSettingsPipetteOffsetCalibration.test.tsx | 12 +-- ...RobotSettingsTipLengthCalibration.test.tsx | 18 ++-- .../RobotSettingsCalibration/index.tsx | 26 +++--- app/src/organisms/RobotSetupHeader/index.tsx | 6 +- app/src/organisms/RunPreview/index.tsx | 6 +- .../__tests__/InterventionTicks.test.tsx | 4 +- .../__tests__/RunProgressMeter.test.tsx | 16 ++-- .../hooks/useRunProgressCopy.tsx | 4 +- app/src/organisms/RunProgressMeter/index.tsx | 6 +- .../RunTimeControl/__tests__/hooks.test.tsx | 4 +- app/src/organisms/RunTimeControl/hooks.ts | 2 +- .../SendProtocolToFlexSlideout.test.tsx | 36 ++++---- .../SendProtocolToFlexSlideout/index.tsx | 22 ++--- .../MaintenanceRunStatusProvider.tsx | 2 +- .../organisms/TakeoverModal/TakeoverModal.tsx | 6 +- .../__tests__/MaintenanceRunTakeover.test.tsx | 8 +- .../__tests__/TakeoverModal.test.tsx | 4 +- app/src/organisms/TaskList/index.tsx | 2 +- app/src/organisms/ToasterOven/ToasterOven.tsx | 2 +- .../__tests__/UpdateAppModal.test.tsx | 14 +-- app/src/organisms/UpdateAppModal/index.tsx | 12 +-- .../__tests__/UpdateRobotBanner.test.tsx | 10 +-- app/src/organisms/UpdateRobotBanner/index.tsx | 8 +- .../CompleteUpdateSoftware.tsx | 2 +- .../UpdateRobotSoftware/NoUpdateFound.tsx | 2 +- .../__tests__/CheckUpdates.test.tsx | 4 +- .../__tests__/CompleteUpdateSoftware.test.tsx | 6 +- .../__tests__/ErrorUpdateSoftware.test.tsx | 4 +- .../__tests__/NoUpdateFound.test.tsx | 4 +- .../__tests__/UpdateRobotSoftware.test.tsx | 24 ++--- .../__tests__/UpdateSoftware.test.tsx | 4 +- .../organisms/UpdateRobotSoftware/index.tsx | 10 +-- .../WellSelection/Selection384Wells.tsx | 2 +- .../Desktop/AppSettings/AdvancedSettings.tsx | 4 +- .../Desktop/AppSettings/GeneralSettings.tsx | 22 ++--- .../Desktop/AppSettings/PrivacySettings.tsx | 6 +- .../__test__/AdvancedSettings.test.tsx | 22 ++--- .../AppSettings/__test__/AppSettings.test.tsx | 12 +-- .../__test__/GeneralSettings.test.tsx | 16 ++-- .../__test__/PrivacySettings.test.tsx | 8 +- app/src/pages/Desktop/AppSettings/index.tsx | 8 +- .../__tests__/CalibrationDashboard.test.tsx | 16 ++-- .../hooks/useDashboardCalibrateDeck.tsx | 20 ++--- .../hooks/useDashboardCalibratePipOffset.tsx | 22 ++--- .../hooks/useDashboardCalibrateTipLength.tsx | 26 +++--- .../Devices/CalibrationDashboard/index.tsx | 8 +- .../DeviceDetails/DeviceDetailsComponent.tsx | 17 ++-- .../__tests__/DeviceDetails.test.tsx | 31 +++---- .../__tests__/DeviceDetailsComponent.test.tsx | 28 +++--- .../Desktop/Devices/DeviceDetails/index.tsx | 9 +- .../DevicesLanding/NewRobotSetupHelp.tsx | 2 +- .../__tests__/DevicesLanding.test.tsx | 18 ++-- .../__tests__/NewRobotSetupHelp.test.tsx | 4 +- .../Desktop/Devices/DevicesLanding/index.tsx | 14 +-- .../__tests__/ProtocolRunDetails.test.tsx | 48 +++++----- .../Devices/ProtocolRunDetails/index.tsx | 26 +++--- .../__tests__/RobotSettings.test.tsx | 32 ++++--- .../Desktop/Devices/RobotSettings/index.tsx | 26 +++--- .../Labware/__tests__/Labware.test.tsx | 22 ++--- .../Desktop/Labware/__tests__/hooks.test.tsx | 12 +-- app/src/pages/Desktop/Labware/hooks.tsx | 4 +- app/src/pages/Desktop/Labware/index.tsx | 14 +-- .../ProtocolDetails/ProtocolTimeline.tsx | 9 +- .../__tests__/ProtocolDetails.test.tsx | 16 ++-- .../Protocols/ProtocolDetails/index.tsx | 9 +- .../__tests__/ProtocolsLanding.test.tsx | 16 ++-- .../Protocols/ProtocolsLanding/index.tsx | 11 +-- .../Protocols/hooks/__tests__/hooks.test.tsx | 2 +- .../pages/Desktop/Protocols/hooks/index.ts | 4 +- .../DisplayConnectionStatus.tsx | 2 +- .../__tests__/ConnectViaEthernet.test.tsx | 10 +-- .../DisplayConnectionStatus.test.tsx | 4 +- .../__tests__/TitleHeader.test.tsx | 2 +- .../pages/ODD/ConnectViaEthernet/index.tsx | 10 +-- .../_tests__/ConnectedViaUSB.test.tsx | 4 +- app/src/pages/ODD/ConnectViaUSB/index.tsx | 4 +- .../ODD/ConnectViaWifi/JoinOtherNetwork.tsx | 4 +- .../SelectAuthenticationType.tsx | 4 +- .../pages/ODD/ConnectViaWifi/SetWifiCred.tsx | 4 +- .../ODD/ConnectViaWifi/WifiConnectStatus.tsx | 8 +- .../__tests__/ConnectViaWifi.test.tsx | 20 ++--- app/src/pages/ODD/ConnectViaWifi/index.tsx | 14 +-- .../__tests__/DeckConfiguration.test.tsx | 14 +-- app/src/pages/ODD/DeckConfiguration/index.tsx | 10 +-- .../__tests__/EmergencyStop.test.tsx | 4 +- app/src/pages/ODD/EmergencyStop/index.tsx | 6 +- .../__tests__/InitialLoadingScreen.test.tsx | 8 +- .../pages/ODD/InitialLoadingScreen/index.tsx | 2 +- .../InstrumentDetailOverflowMenu.tsx | 10 +-- .../__tests__/InstrumentDetail.test.tsx | 12 +-- .../InstrumentDetailOverflowMenu.test.tsx | 20 ++--- app/src/pages/ODD/InstrumentDetail/index.tsx | 8 +- .../__tests__/InstrumentsDashboard.test.tsx | 18 ++-- .../PipetteRecalibrationODDWarning.test.tsx | 4 +- .../pages/ODD/InstrumentsDashboard/index.tsx | 10 +-- .../NameRobot/__tests__/NameRobot.test.tsx | 20 ++--- app/src/pages/ODD/NameRobot/index.tsx | 16 ++-- .../__tests__/NetworkSetupMenu.test.tsx | 4 +- app/src/pages/ODD/NetworkSetupMenu/index.tsx | 4 +- .../DeleteProtocolConfirmationModal.tsx | 8 +- .../ODD/ProtocolDashboard/LongPressModal.tsx | 8 +- .../ODD/ProtocolDashboard/NoProtocols.tsx | 2 +- .../ODD/ProtocolDashboard/PinnedProtocol.tsx | 2 +- .../PinnedProtocolCarousel.tsx | 2 +- .../ODD/ProtocolDashboard/ProtocolCard.tsx | 8 +- .../DeleteProtocolConfirmationModal.test.tsx | 8 +- .../__tests__/LongPressModal.test.tsx | 4 +- .../__tests__/NoProtocols.test.tsx | 4 +- .../__tests__/PinnedProtocol.test.tsx | 8 +- .../__tests__/ProtocolCard.test.tsx | 8 +- app/src/pages/ODD/ProtocolDashboard/index.tsx | 12 +-- app/src/pages/ODD/ProtocolDashboard/utils.ts | 2 +- app/src/pages/ODD/ProtocolDetails/Deck.tsx | 6 +- .../pages/ODD/ProtocolDetails/Hardware.tsx | 6 +- app/src/pages/ODD/ProtocolDetails/Labware.tsx | 2 +- .../pages/ODD/ProtocolDetails/Parameters.tsx | 4 +- .../ProtocolDetails/__tests__/Deck.test.tsx | 4 +- .../__tests__/EmptySection.test.tsx | 4 +- .../__tests__/Hardware.test.tsx | 10 +-- .../__tests__/Labware.test.tsx | 8 +- .../__tests__/Liquids.test.tsx | 4 +- .../__tests__/Parameters.test.tsx | 12 +-- .../__tests__/ProtocolDetails.test.tsx | 28 +++--- app/src/pages/ODD/ProtocolDetails/index.tsx | 26 +++--- app/src/pages/ODD/ProtocolSetup/Buttons.tsx | 2 +- .../ProtocolSetup/ConfirmAttachedModal.tsx | 6 +- .../ConfirmSetupStepsCompleteModal.tsx | 6 +- .../__tests__/ConfirmAttachedModal.test.tsx | 4 +- .../__tests__/ProtocolSetup.test.tsx | 72 +++++++-------- app/src/pages/ODD/ProtocolSetup/index.tsx | 38 ++++---- .../DeleteTransferConfirmationModal.tsx | 8 +- .../IntroductoryModal.tsx | 6 +- .../QuickTransferDashboard/LongPressModal.tsx | 11 +-- .../NoQuickTransfers.tsx | 2 +- .../QuickTransferDashboard/PinnedTransfer.tsx | 2 +- .../PipetteNotAttachedErrorModal.tsx | 4 +- .../QuickTransferCard.tsx | 8 +- .../StorageLimitReachedErrorModal.tsx | 4 +- .../DeleteTransferConfirmationModal.test.tsx | 8 +- .../__tests__/LongPressModal.test.tsx | 4 +- .../__tests__/NoQuickTransfers.test.tsx | 4 +- .../__tests__/PinnedTransfer.test.tsx | 4 +- .../__tests__/QuickTransferCard.test.tsx | 4 +- .../ODD/QuickTransferDashboard/index.tsx | 10 +-- .../pages/ODD/QuickTransferDashboard/utils.ts | 2 +- .../ODD/QuickTransferDetails/Hardware.tsx | 6 +- .../ODD/QuickTransferDetails/Labware.tsx | 2 +- .../__tests__/Deck.test.tsx | 4 +- .../__tests__/Hardware.test.tsx | 12 +-- .../__tests__/Labware.test.tsx | 8 +- .../__tests__/QuickTransferDetails.test.tsx | 22 ++--- .../pages/ODD/QuickTransferDetails/index.tsx | 20 ++--- .../pages/ODD/RobotDashboard/WelcomeModal.tsx | 6 +- .../__tests__/RobotDashboard.test.tsx | 26 +++--- .../__tests__/WelcomeModal.test.tsx | 6 +- app/src/pages/ODD/RobotDashboard/index.tsx | 10 +-- .../RobotSettingsList.tsx | 24 ++--- .../__tests__/RobotSettingsDashboard.test.tsx | 54 ++++++------ .../ODD/RobotSettingsDashboard/index.tsx | 20 ++--- app/src/pages/ODD/RunSummary/index.tsx | 26 +++--- .../__tests__/RunningProtocol.test.tsx | 60 ++++++------- app/src/pages/ODD/RunningProtocol/index.tsx | 26 +++--- app/src/pages/ODD/UpdateRobot/UpdateRobot.tsx | 14 +-- .../UpdateRobotDuringOnboarding.tsx | 16 ++-- .../__tests__/UpdateRobot.test.tsx | 16 ++-- .../UpdateRobotDuringOnboarding.test.tsx | 16 ++-- .../ODD/Welcome/__tests__/Welcome.test.tsx | 4 +- app/src/pages/ODD/Welcome/index.tsx | 4 +- app/src/redux/config/schema-types.ts | 2 +- app/src/redux/config/selectors.ts | 4 +- .../custom-labware/__fixtures__/index.ts | 2 +- app/src/redux/pipettes/__fixtures__/index.ts | 2 +- app/src/redux/robot-api/http.ts | 4 +- .../robot-update/__tests__/hooks.test.tsx | 2 +- .../__tests__/useNotifyDataReady.test.ts | 14 +-- .../recovery/useUpdateClientDataRecovery.ts | 2 +- .../resources/deck_configuration/hooks.tsx | 2 +- .../useIsEstopNotDisengaged.test.tsx | 6 +- .../devices/hooks/useIsEstopNotDisengaged.ts | 4 +- .../__tests__/useCanDisconnect.test.tsx | 10 +-- .../__tests__/useNetworkConnection.test.tsx | 14 +-- .../networking/__tests__/useWifiList.test.ts | 4 +- .../networking/hooks/useCanDisconnect.ts | 6 +- .../networking/hooks/useNetworkConnection.ts | 6 +- .../resources/networking/hooks/useWifiList.ts | 2 +- .../__tests__/useRunningStepCount.test.ts | 6 +- .../protocols/hooks/useRunningStepCounts.ts | 2 +- app/src/resources/robot-settings/hooks.ts | 2 +- app/src/resources/runs/hooks.ts | 6 +- app/src/resources/runs/useNotifyRunQuery.ts | 2 +- app/src/resources/runs/utils.ts | 2 +- app/src/resources/useNotifyDataReady.ts | 10 +-- .../useMissingProtocolHardware.test.tsx | 8 +- ...colHardwareFromRequiredProtocolHardware.ts | 2 +- ...useRequiredProtocolHardwareFromAnalysis.ts | 2 +- app/tsconfig-data.json | 5 +- app/tsconfig.json | 5 +- app/vite.config.ts | 3 + tsconfig-base.json | 30 +++---- tsconfig-eslint.json | 5 +- vite.config.ts | 1 + vitest.config.ts | 3 + 1180 files changed, 4424 insertions(+), 4536 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 5af0e54a419..3d54b0c8fe9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -116,6 +116,12 @@ module.exports = { ], }, }, + { + files: ['./app/src/**/*.@(ts|tsx)'], + rules: { + 'import/no-absolute-path': 'off', + }, + }, { files: [ '**/test/**.js', diff --git a/app-shell-odd/tsconfig.json b/app-shell-odd/tsconfig.json index 58241ce4dd0..a4a45531dac 100644 --- a/app-shell-odd/tsconfig.json +++ b/app-shell-odd/tsconfig.json @@ -11,7 +11,10 @@ "compilerOptions": { "composite": true, "rootDir": "src", - "outDir": "lib" + "outDir": "lib", + "paths": { + "/app/*": ["../app/src/*"] + } }, "include": ["typings", "src"] } diff --git a/app-shell/tsconfig.json b/app-shell/tsconfig.json index bb29d546ddb..afe7e4d4182 100644 --- a/app-shell/tsconfig.json +++ b/app-shell/tsconfig.json @@ -17,7 +17,10 @@ "rootDir": "src", "outDir": "lib", "target": "esnext", - "module": "ESNext" + "module": "ESNext", + "paths": { + "/app/*": ["../app/src/*"] + } }, "include": ["typings", "src"] } diff --git a/app/src/App/DesktopApp.tsx b/app/src/App/DesktopApp.tsx index dfa4c2bb544..070e3428563 100644 --- a/app/src/App/DesktopApp.tsx +++ b/app/src/App/DesktopApp.tsx @@ -12,27 +12,30 @@ import { import { ApiHostProvider } from '@opentrons/react-api-client' import NiceModal from '@ebay/nice-modal-react' -import { i18n } from '../i18n' -import { Alerts } from '../organisms/Alerts' -import { Breadcrumbs } from '../organisms/Breadcrumbs' -import { ToasterOven } from '../organisms/ToasterOven' -import { CalibrationDashboard } from '../pages/Desktop/Devices/CalibrationDashboard' -import { DeviceDetails } from '../pages/Desktop/Devices/DeviceDetails' -import { DevicesLanding } from '../pages/Desktop/Devices/DevicesLanding' -import { ProtocolRunDetails } from '../pages/Desktop/Devices/ProtocolRunDetails' -import { RobotSettings } from '../pages/Desktop/Devices/RobotSettings' -import { ProtocolsLanding } from '../pages/Desktop/Protocols/ProtocolsLanding' -import { ProtocolDetails } from '../pages/Desktop/Protocols/ProtocolDetails' -import { AppSettings } from '../pages/Desktop/AppSettings' -import { Labware } from '../pages/Desktop/Labware' +import { i18n } from '/app/i18n' +import { Alerts } from '/app/organisms/Alerts' +import { Breadcrumbs } from '/app/organisms/Breadcrumbs' +import { ToasterOven } from '/app/organisms/ToasterOven' +import { CalibrationDashboard } from '/app/pages/Desktop/Devices/CalibrationDashboard' +import { DeviceDetails } from '/app/pages/Desktop/Devices/DeviceDetails' +import { DevicesLanding } from '/app/pages/Desktop/Devices/DevicesLanding' +import { ProtocolRunDetails } from '/app/pages/Desktop/Devices/ProtocolRunDetails' +import { RobotSettings } from '/app/pages/Desktop/Devices/RobotSettings' +import { ProtocolsLanding } from '/app/pages/Desktop/Protocols/ProtocolsLanding' +import { ProtocolDetails } from '/app/pages/Desktop/Protocols/ProtocolDetails' +import { AppSettings } from '/app/pages/Desktop/AppSettings' +import { Labware } from '/app/pages/Desktop/Labware' import { useSoftwareUpdatePoll } from './hooks' import { Navbar } from './Navbar' -import { EstopTakeover, EmergencyStopContext } from '../organisms/EmergencyStop' -import { IncompatibleModuleTakeover } from '../organisms/IncompatibleModule' -import { OPENTRONS_USB } from '../redux/discovery' -import { appShellRequestor } from '../redux/shell/remote' -import { useRobot, useIsFlex } from '../organisms/Devices/hooks' -import { ProtocolTimeline } from '../pages/Desktop/Protocols/ProtocolDetails/ProtocolTimeline' +import { + EstopTakeover, + EmergencyStopContext, +} from '/app/organisms/EmergencyStop' +import { IncompatibleModuleTakeover } from '/app/organisms/IncompatibleModule' +import { OPENTRONS_USB } from '/app/redux/discovery' +import { appShellRequestor } from '/app/redux/shell/remote' +import { useRobot, useIsFlex } from '/app/organisms/Devices/hooks' +import { ProtocolTimeline } from '/app/pages/Desktop/Protocols/ProtocolDetails/ProtocolTimeline' import { PortalRoot as ModalPortalRoot } from './portal' import { DesktopAppFallback } from './DesktopAppFallback' diff --git a/app/src/App/DesktopAppFallback.tsx b/app/src/App/DesktopAppFallback.tsx index d39552323a3..a1bb6528f45 100644 --- a/app/src/App/DesktopAppFallback.tsx +++ b/app/src/App/DesktopAppFallback.tsx @@ -3,7 +3,10 @@ import { useDispatch } from 'react-redux' import { useNavigate } from 'react-router-dom' import { useTranslation } from 'react-i18next' -import { useTrackEvent, ANALYTICS_DESKTOP_APP_ERROR } from '../redux/analytics' +import { + useTrackEvent, + ANALYTICS_DESKTOP_APP_ERROR, +} from '/app/redux/analytics' import type { FallbackProps } from 'react-error-boundary' @@ -18,9 +21,9 @@ import { Modal, } from '@opentrons/components' -import { reloadUi } from '../redux/shell' +import { reloadUi } from '/app/redux/shell' -import type { Dispatch } from '../redux/types' +import type { Dispatch } from '/app/redux/types' export function DesktopAppFallback({ error }: FallbackProps): JSX.Element { const { t } = useTranslation('app_settings') diff --git a/app/src/App/Navbar.tsx b/app/src/App/Navbar.tsx index eaea2575836..ed960c93d08 100644 --- a/app/src/App/Navbar.tsx +++ b/app/src/App/Navbar.tsx @@ -20,8 +20,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import logoSvg from '../assets/images/logo_nav.svg' -import logoSvgThree from '../assets/images/logo_nav_three.svg' +import logoSvg from '/app/assets/images/logo_nav.svg' +import logoSvgThree from '/app/assets/images/logo_nav_three.svg' import { NAV_BAR_WIDTH } from './constants' diff --git a/app/src/App/ODDTopLevelRedirects/hooks/__tests__/useCurrentRunRoute.test.ts b/app/src/App/ODDTopLevelRedirects/hooks/__tests__/useCurrentRunRoute.test.ts index 129632ffe30..8be03f904d3 100644 --- a/app/src/App/ODDTopLevelRedirects/hooks/__tests__/useCurrentRunRoute.test.ts +++ b/app/src/App/ODDTopLevelRedirects/hooks/__tests__/useCurrentRunRoute.test.ts @@ -1,7 +1,7 @@ import { renderHook } from '@testing-library/react' import { describe, it, expect, vi } from 'vitest' import { useCurrentRunRoute } from '../useCurrentRunRoute' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import { RUN_STATUS_BLOCKED_BY_OPEN_DOOR, RUN_STATUS_FAILED, @@ -10,7 +10,7 @@ import { RUN_STATUS_SUCCEEDED, } from '@opentrons/api-client' -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') const MOCK_RUN_ID = 'MOCK_RUN_ID' diff --git a/app/src/App/ODDTopLevelRedirects/hooks/useCurrentRunRoute.ts b/app/src/App/ODDTopLevelRedirects/hooks/useCurrentRunRoute.ts index 47a9d5e670b..a2b407cb581 100644 --- a/app/src/App/ODDTopLevelRedirects/hooks/useCurrentRunRoute.ts +++ b/app/src/App/ODDTopLevelRedirects/hooks/useCurrentRunRoute.ts @@ -6,7 +6,7 @@ import { RUN_STATUS_SUCCEEDED, } from '@opentrons/api-client' -import { useNotifyRunQuery } from '../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import { CURRENT_RUN_POLL } from '../constants' // Returns the route to which React Router should navigate, if any. diff --git a/app/src/App/ODDTopLevelRedirects/index.tsx b/app/src/App/ODDTopLevelRedirects/index.tsx index 4ecfc50e618..2bda4c52f94 100644 --- a/app/src/App/ODDTopLevelRedirects/index.tsx +++ b/app/src/App/ODDTopLevelRedirects/index.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { Navigate, Route, Routes } from 'react-router-dom' -import { useCurrentRunId } from '../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { CURRENT_RUN_POLL } from './constants' import { useCurrentRunRoute } from './hooks' diff --git a/app/src/App/OnDeviceDisplayApp.tsx b/app/src/App/OnDeviceDisplayApp.tsx index 62f29af637d..812b05185a3 100644 --- a/app/src/App/OnDeviceDisplayApp.tsx +++ b/app/src/App/OnDeviceDisplayApp.tsx @@ -15,39 +15,42 @@ import { import { ApiHostProvider } from '@opentrons/react-api-client' import NiceModal from '@ebay/nice-modal-react' -import { SleepScreen } from '../atoms/SleepScreen' +import { SleepScreen } from '/app/atoms/SleepScreen' import { OnDeviceLocalizationProvider } from '../LocalizationProvider' -import { ToasterOven } from '../organisms/ToasterOven' -import { MaintenanceRunTakeover } from '../organisms/TakeoverModal' -import { FirmwareUpdateTakeover } from '../organisms/FirmwareUpdateModal/FirmwareUpdateTakeover' -import { IncompatibleModuleTakeover } from '../organisms/IncompatibleModule' -import { EstopTakeover } from '../organisms/EmergencyStop' -import { ConnectViaEthernet } from '../pages/ODD/ConnectViaEthernet' -import { ConnectViaUSB } from '../pages/ODD/ConnectViaUSB' -import { ConnectViaWifi } from '../pages/ODD/ConnectViaWifi' -import { EmergencyStop } from '../pages/ODD/EmergencyStop' -import { NameRobot } from '../pages/ODD/NameRobot' -import { NetworkSetupMenu } from '../pages/ODD/NetworkSetupMenu' -import { ProtocolSetup } from '../pages/ODD/ProtocolSetup' -import { RobotDashboard } from '../pages/ODD/RobotDashboard' -import { RobotSettingsDashboard } from '../pages/ODD/RobotSettingsDashboard' -import { ProtocolDashboard } from '../pages/ODD/ProtocolDashboard' -import { ProtocolDetails } from '../pages/ODD/ProtocolDetails' -import { QuickTransferFlow } from '../organisms/QuickTransferFlow' -import { QuickTransferDashboard } from '../pages/ODD/QuickTransferDashboard' -import { QuickTransferDetails } from '../pages/ODD/QuickTransferDetails' -import { RunningProtocol } from '../pages/ODD/RunningProtocol' -import { RunSummary } from '../pages/ODD/RunSummary' -import { UpdateRobot } from '../pages/ODD/UpdateRobot/UpdateRobot' -import { UpdateRobotDuringOnboarding } from '../pages/ODD/UpdateRobot/UpdateRobotDuringOnboarding' -import { InstrumentsDashboard } from '../pages/ODD/InstrumentsDashboard' -import { InstrumentDetail } from '../pages/ODD/InstrumentDetail' -import { Welcome } from '../pages/ODD/Welcome' -import { InitialLoadingScreen } from '../pages/ODD/InitialLoadingScreen' -import { DeckConfigurationEditor } from '../pages/ODD/DeckConfiguration' +import { ToasterOven } from '/app/organisms/ToasterOven' +import { MaintenanceRunTakeover } from '/app/organisms/TakeoverModal' +import { FirmwareUpdateTakeover } from '/app/organisms/FirmwareUpdateModal/FirmwareUpdateTakeover' +import { IncompatibleModuleTakeover } from '/app/organisms/IncompatibleModule' +import { EstopTakeover } from '/app/organisms/EmergencyStop' +import { ConnectViaEthernet } from '/app/pages/ODD/ConnectViaEthernet' +import { ConnectViaUSB } from '/app/pages/ODD/ConnectViaUSB' +import { ConnectViaWifi } from '/app/pages/ODD/ConnectViaWifi' +import { EmergencyStop } from '/app/pages/ODD/EmergencyStop' +import { NameRobot } from '/app/pages/ODD/NameRobot' +import { NetworkSetupMenu } from '/app/pages/ODD/NetworkSetupMenu' +import { ProtocolSetup } from '/app/pages/ODD/ProtocolSetup' +import { RobotDashboard } from '/app/pages/ODD/RobotDashboard' +import { RobotSettingsDashboard } from '/app/pages/ODD/RobotSettingsDashboard' +import { ProtocolDashboard } from '/app/pages/ODD/ProtocolDashboard' +import { ProtocolDetails } from '/app/pages/ODD/ProtocolDetails' +import { QuickTransferFlow } from '/app/organisms/QuickTransferFlow' +import { QuickTransferDashboard } from '/app/pages/ODD/QuickTransferDashboard' +import { QuickTransferDetails } from '/app/pages/ODD/QuickTransferDetails' +import { RunningProtocol } from '/app/pages/ODD/RunningProtocol' +import { RunSummary } from '/app/pages/ODD/RunSummary' +import { UpdateRobot } from '/app/pages/ODD/UpdateRobot/UpdateRobot' +import { UpdateRobotDuringOnboarding } from '/app/pages/ODD/UpdateRobot/UpdateRobotDuringOnboarding' +import { InstrumentsDashboard } from '/app/pages/ODD/InstrumentsDashboard' +import { InstrumentDetail } from '/app/pages/ODD/InstrumentDetail' +import { Welcome } from '/app/pages/ODD/Welcome' +import { InitialLoadingScreen } from '/app/pages/ODD/InitialLoadingScreen' +import { DeckConfigurationEditor } from '/app/pages/ODD/DeckConfiguration' import { PortalRoot as ModalPortalRoot } from './portal' -import { getOnDeviceDisplaySettings, updateConfigValue } from '../redux/config' -import { updateBrightness } from '../redux/shell' +import { + getOnDeviceDisplaySettings, + updateConfigValue, +} from '/app/redux/config' +import { updateBrightness } from '/app/redux/shell' import { SLEEP_NEVER_MS } from './constants' import { useProtocolReceiptToast, useSoftwareUpdatePoll } from './hooks' import { ODDTopLevelRedirects } from './ODDTopLevelRedirects' @@ -56,7 +59,7 @@ import { OnDeviceDisplayAppFallback } from './OnDeviceDisplayAppFallback' import { hackWindowNavigatorOnLine } from './hacks' -import type { Dispatch } from '../redux/types' +import type { Dispatch } from '/app/redux/types' // forces electron to think we're online which means axios won't elide // network calls to localhost. see ./hacks.ts for more. diff --git a/app/src/App/OnDeviceDisplayAppFallback.tsx b/app/src/App/OnDeviceDisplayAppFallback.tsx index c69e581f5c5..1e507463445 100644 --- a/app/src/App/OnDeviceDisplayAppFallback.tsx +++ b/app/src/App/OnDeviceDisplayAppFallback.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { useDispatch, useSelector } from 'react-redux' import { useTranslation } from 'react-i18next' -import { useTrackEvent, ANALYTICS_ODD_APP_ERROR } from '../redux/analytics' -import { getLocalRobot, getRobotSerialNumber } from '../redux/discovery' +import { useTrackEvent, ANALYTICS_ODD_APP_ERROR } from '/app/redux/analytics' +import { getLocalRobot, getRobotSerialNumber } from '/app/redux/discovery' import type { FallbackProps } from 'react-error-boundary' @@ -17,12 +17,12 @@ import { LegacyStyledText, } from '@opentrons/components' -import { MediumButton } from '../atoms/buttons' -import { OddModal } from '../molecules/OddModal' -import { appRestart, sendLog } from '../redux/shell' +import { MediumButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { appRestart, sendLog } from '/app/redux/shell' -import type { Dispatch } from '../redux/types' -import type { OddModalHeaderBaseProps } from '../molecules/OddModal/types' +import type { Dispatch } from '/app/redux/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' export function OnDeviceDisplayAppFallback({ error, diff --git a/app/src/App/__tests__/App.test.tsx b/app/src/App/__tests__/App.test.tsx index 485c2497949..cd7a08e1c2c 100644 --- a/app/src/App/__tests__/App.test.tsx +++ b/app/src/App/__tests__/App.test.tsx @@ -3,17 +3,17 @@ import { vi, describe, beforeEach, afterEach, expect, it } from 'vitest' import { when } from 'vitest-when' import { screen } from '@testing-library/react' -import { i18n } from '../../i18n' -import { getIsOnDevice, getConfig } from '../../redux/config' +import { i18n } from '/app/i18n' +import { getIsOnDevice, getConfig } from '/app/redux/config' import { DesktopApp } from '../DesktopApp' import { OnDeviceDisplayApp } from '../OnDeviceDisplayApp' import { App } from '../' -import type { State } from '../../redux/types' -import { renderWithProviders } from '../../__testing-utils__' +import type { State } from '/app/redux/types' +import { renderWithProviders } from '/app/__testing-utils__' -vi.mock('../../redux/config') +vi.mock('/app/redux/config') vi.mock('../DesktopApp') vi.mock('../OnDeviceDisplayApp') diff --git a/app/src/App/__tests__/DesktopApp.test.tsx b/app/src/App/__tests__/DesktopApp.test.tsx index 15a8ce5d136..001c1ca1cd9 100644 --- a/app/src/App/__tests__/DesktopApp.test.tsx +++ b/app/src/App/__tests__/DesktopApp.test.tsx @@ -4,35 +4,35 @@ import { screen } from '@testing-library/react' import { when } from 'vitest-when' import { vi, describe, beforeEach, afterEach, expect, it } from 'vitest' -import { renderWithProviders } from '../../__testing-utils__' -import { i18n } from '../../i18n' -import { Breadcrumbs } from '../../organisms/Breadcrumbs' -import { CalibrationDashboard } from '../../pages/Desktop/Devices/CalibrationDashboard' -import { DeviceDetails } from '../../pages/Desktop/Devices/DeviceDetails' -import { DevicesLanding } from '../../pages/Desktop/Devices/DevicesLanding' -import { ProtocolsLanding } from '../../pages/Desktop/Protocols/ProtocolsLanding' -import { ProtocolRunDetails } from '../../pages/Desktop/Devices/ProtocolRunDetails' -import { RobotSettings } from '../../pages/Desktop/Devices/RobotSettings' -import { GeneralSettings } from '../../pages/Desktop/AppSettings/GeneralSettings' -import { AlertsModal } from '../../organisms/Alerts/AlertsModal' -import { useFeatureFlag } from '../../redux/config' -import { useIsFlex } from '../../organisms/Devices/hooks' -import { ProtocolTimeline } from '../../pages/Desktop/Protocols/ProtocolDetails/ProtocolTimeline' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { Breadcrumbs } from '/app/organisms/Breadcrumbs' +import { CalibrationDashboard } from '/app/pages/Desktop/Devices/CalibrationDashboard' +import { DeviceDetails } from '/app/pages/Desktop/Devices/DeviceDetails' +import { DevicesLanding } from '/app/pages/Desktop/Devices/DevicesLanding' +import { ProtocolsLanding } from '/app/pages/Desktop/Protocols/ProtocolsLanding' +import { ProtocolRunDetails } from '/app/pages/Desktop/Devices/ProtocolRunDetails' +import { RobotSettings } from '/app/pages/Desktop/Devices/RobotSettings' +import { GeneralSettings } from '/app/pages/Desktop/AppSettings/GeneralSettings' +import { AlertsModal } from '/app/organisms/Alerts/AlertsModal' +import { useFeatureFlag } from '/app/redux/config' +import { useIsFlex } from '/app/organisms/Devices/hooks' +import { ProtocolTimeline } from '/app/pages/Desktop/Protocols/ProtocolDetails/ProtocolTimeline' import { useSoftwareUpdatePoll } from '../hooks' import { DesktopApp } from '../DesktopApp' -vi.mock('../../organisms/Breadcrumbs') -vi.mock('../../organisms/Devices/hooks') -vi.mock('../../pages/Desktop/AppSettings/GeneralSettings') -vi.mock('../../pages/Desktop/Devices/CalibrationDashboard') -vi.mock('../../pages/Desktop/Devices/DeviceDetails') -vi.mock('../../pages/Desktop/Devices/DevicesLanding') -vi.mock('../../pages/Desktop/Protocols/ProtocolsLanding') -vi.mock('../../pages/Desktop/Devices/ProtocolRunDetails') -vi.mock('../../pages/Desktop/Devices/RobotSettings') -vi.mock('../../organisms/Alerts/AlertsModal') -vi.mock('../../pages/Desktop/Protocols/ProtocolDetails/ProtocolTimeline') -vi.mock('../../redux/config') +vi.mock('/app/organisms/Breadcrumbs') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/pages/Desktop/AppSettings/GeneralSettings') +vi.mock('/app/pages/Desktop/Devices/CalibrationDashboard') +vi.mock('/app/pages/Desktop/Devices/DeviceDetails') +vi.mock('/app/pages/Desktop/Devices/DevicesLanding') +vi.mock('/app/pages/Desktop/Protocols/ProtocolsLanding') +vi.mock('/app/pages/Desktop/Devices/ProtocolRunDetails') +vi.mock('/app/pages/Desktop/Devices/RobotSettings') +vi.mock('/app/organisms/Alerts/AlertsModal') +vi.mock('/app/pages/Desktop/Protocols/ProtocolDetails/ProtocolTimeline') +vi.mock('/app/redux/config') vi.mock('../hooks') const render = (path = '/') => { diff --git a/app/src/App/__tests__/OnDeviceDisplayApp.test.tsx b/app/src/App/__tests__/OnDeviceDisplayApp.test.tsx index 20816780b61..5243db5310a 100644 --- a/app/src/App/__tests__/OnDeviceDisplayApp.test.tsx +++ b/app/src/App/__tests__/OnDeviceDisplayApp.test.tsx @@ -3,38 +3,38 @@ import { screen } from '@testing-library/react' import { vi, describe, beforeEach, afterEach, expect, it } from 'vitest' import { MemoryRouter } from 'react-router-dom' -import { renderWithProviders } from '../../__testing-utils__' -import { i18n } from '../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { OnDeviceLocalizationProvider } from '../../LocalizationProvider' -import { ConnectViaEthernet } from '../../pages/ODD/ConnectViaEthernet' -import { ConnectViaUSB } from '../../pages/ODD/ConnectViaUSB' -import { ConnectViaWifi } from '../../pages/ODD/ConnectViaWifi' -import { NetworkSetupMenu } from '../../pages/ODD/NetworkSetupMenu' -import { InstrumentsDashboard } from '../../pages/ODD/InstrumentsDashboard' -import { RobotDashboard } from '../../pages/ODD/RobotDashboard' -import { RobotSettingsDashboard } from '../../pages/ODD/RobotSettingsDashboard' -import { ProtocolDashboard } from '../../pages/ODD/ProtocolDashboard' -import { ProtocolSetup } from '../../pages/ODD/ProtocolSetup' -import { ProtocolDetails } from '../../pages/ODD/ProtocolDetails' +import { ConnectViaEthernet } from '/app/pages/ODD/ConnectViaEthernet' +import { ConnectViaUSB } from '/app/pages/ODD/ConnectViaUSB' +import { ConnectViaWifi } from '/app/pages/ODD/ConnectViaWifi' +import { NetworkSetupMenu } from '/app/pages/ODD/NetworkSetupMenu' +import { InstrumentsDashboard } from '/app/pages/ODD/InstrumentsDashboard' +import { RobotDashboard } from '/app/pages/ODD/RobotDashboard' +import { RobotSettingsDashboard } from '/app/pages/ODD/RobotSettingsDashboard' +import { ProtocolDashboard } from '/app/pages/ODD/ProtocolDashboard' +import { ProtocolSetup } from '/app/pages/ODD/ProtocolSetup' +import { ProtocolDetails } from '/app/pages/ODD/ProtocolDetails' import { OnDeviceDisplayApp } from '../OnDeviceDisplayApp' -import { RunningProtocol } from '../../pages/ODD/RunningProtocol' -import { RunSummary } from '../../pages/ODD/RunSummary' -import { Welcome } from '../../pages/ODD/Welcome' -import { NameRobot } from '../../pages/ODD/NameRobot' -import { EmergencyStop } from '../../pages/ODD/EmergencyStop' -import { DeckConfigurationEditor } from '../../pages/ODD/DeckConfiguration' -import { getOnDeviceDisplaySettings } from '../../redux/config' -import { getIsShellReady } from '../../redux/shell' -import { getLocalRobot } from '../../redux/discovery' -import { mockConnectedRobot } from '../../redux/discovery/__fixtures__' +import { RunningProtocol } from '/app/pages/ODD/RunningProtocol' +import { RunSummary } from '/app/pages/ODD/RunSummary' +import { Welcome } from '/app/pages/ODD/Welcome' +import { NameRobot } from '/app/pages/ODD/NameRobot' +import { EmergencyStop } from '/app/pages/ODD/EmergencyStop' +import { DeckConfigurationEditor } from '/app/pages/ODD/DeckConfiguration' +import { getOnDeviceDisplaySettings } from '/app/redux/config' +import { getIsShellReady } from '/app/redux/shell' +import { getLocalRobot } from '/app/redux/discovery' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' import { useProtocolReceiptToast } from '../hooks' -import { useNotifyCurrentMaintenanceRun } from '../../resources/maintenance_runs' +import { useNotifyCurrentMaintenanceRun } from '/app/resources/maintenance_runs' import { ODDTopLevelRedirects } from '../ODDTopLevelRedirects' import type { UseQueryResult } from 'react-query' import type { RobotSettingsResponse } from '@opentrons/api-client' import type { OnDeviceLocalizationProviderProps } from '../../LocalizationProvider' -import type { OnDeviceDisplaySettings } from '../../redux/config/schema-types' +import type { OnDeviceDisplaySettings } from '/app/redux/config/schema-types' vi.mock('@opentrons/react-api-client', async () => { const actual = await vi.importActual('@opentrons/react-api-client') @@ -47,26 +47,26 @@ vi.mock('@opentrons/react-api-client', async () => { } }) vi.mock('../../LocalizationProvider') -vi.mock('../../pages/ODD/Welcome') -vi.mock('../../pages/ODD/NetworkSetupMenu') -vi.mock('../../pages/ODD/ConnectViaEthernet') -vi.mock('../../pages/ODD/ConnectViaUSB') -vi.mock('../../pages/ODD/ConnectViaWifi') -vi.mock('../../pages/ODD/RobotDashboard') -vi.mock('../../pages/ODD/RobotSettingsDashboard') -vi.mock('../../pages/ODD/ProtocolDashboard') -vi.mock('../../pages/ODD/ProtocolSetup') -vi.mock('../../pages/ODD/ProtocolDetails') -vi.mock('../../pages/ODD/InstrumentsDashboard') -vi.mock('../../pages/ODD/RunningProtocol') -vi.mock('../../pages/ODD/RunSummary') -vi.mock('../../pages/ODD/NameRobot') -vi.mock('../../pages/ODD/EmergencyStop') -vi.mock('../../pages/ODD/DeckConfiguration') -vi.mock('../../redux/config') -vi.mock('../../redux/shell') -vi.mock('../../redux/discovery') -vi.mock('../../resources/maintenance_runs') +vi.mock('/app/pages/ODD/Welcome') +vi.mock('/app/pages/ODD/NetworkSetupMenu') +vi.mock('/app/pages/ODD/ConnectViaEthernet') +vi.mock('/app/pages/ODD/ConnectViaUSB') +vi.mock('/app/pages/ODD/ConnectViaWifi') +vi.mock('/app/pages/ODD/RobotDashboard') +vi.mock('/app/pages/ODD/RobotSettingsDashboard') +vi.mock('/app/pages/ODD/ProtocolDashboard') +vi.mock('/app/pages/ODD/ProtocolSetup') +vi.mock('/app/pages/ODD/ProtocolDetails') +vi.mock('/app/pages/ODD/InstrumentsDashboard') +vi.mock('/app/pages/ODD/RunningProtocol') +vi.mock('/app/pages/ODD/RunSummary') +vi.mock('/app/pages/ODD/NameRobot') +vi.mock('/app/pages/ODD/EmergencyStop') +vi.mock('/app/pages/ODD/DeckConfiguration') +vi.mock('/app/redux/config') +vi.mock('/app/redux/shell') +vi.mock('/app/redux/discovery') +vi.mock('/app/resources/maintenance_runs') vi.mock('../hooks') vi.mock('../ODDTopLevelRedirects') diff --git a/app/src/App/__tests__/OnDeviceDisplayAppFallback.test.tsx b/app/src/App/__tests__/OnDeviceDisplayAppFallback.test.tsx index 03d58ddcc46..d04a0f8df1c 100644 --- a/app/src/App/__tests__/OnDeviceDisplayAppFallback.test.tsx +++ b/app/src/App/__tests__/OnDeviceDisplayAppFallback.test.tsx @@ -1,21 +1,21 @@ import * as React from 'react' import { vi, describe, beforeEach, it, expect } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { getLocalRobot } from '../../redux/discovery' -import { mockConnectableRobot } from '../../redux/discovery/__fixtures__' -import { i18n } from '../../i18n' -import { appRestart } from '../../redux/shell' -import { useTrackEvent, ANALYTICS_ODD_APP_ERROR } from '../../redux/analytics' +import { getLocalRobot } from '/app/redux/discovery' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' +import { i18n } from '/app/i18n' +import { appRestart } from '/app/redux/shell' +import { useTrackEvent, ANALYTICS_ODD_APP_ERROR } from '/app/redux/analytics' import { OnDeviceDisplayAppFallback } from '../OnDeviceDisplayAppFallback' import type { FallbackProps } from 'react-error-boundary' import type { Mock } from 'vitest' -vi.mock('../../redux/shell') -vi.mock('../../redux/analytics') -vi.mock('../../redux/discovery', async importOriginal => { +vi.mock('/app/redux/shell') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/discovery', async importOriginal => { const actual = await importOriginal() return { ...actual, diff --git a/app/src/App/__tests__/hooks.test.tsx b/app/src/App/__tests__/hooks.test.tsx index 1311d8bc039..9ce1f5e9160 100644 --- a/app/src/App/__tests__/hooks.test.tsx +++ b/app/src/App/__tests__/hooks.test.tsx @@ -5,12 +5,12 @@ import { createStore } from 'redux' import { I18nextProvider } from 'react-i18next' import { Provider } from 'react-redux' -import { i18n } from '../../i18n' -import { checkShellUpdate } from '../../redux/shell' +import { i18n } from '/app/i18n' +import { checkShellUpdate } from '/app/redux/shell' import { useSoftwareUpdatePoll } from '../hooks' import type { Store } from 'redux' -import type { State } from '../../redux/types' +import type { State } from '/app/redux/types' describe('useSoftwareUpdatePoll', () => { let wrapper: React.FunctionComponent<{ children: React.ReactNode }> diff --git a/app/src/App/hooks.ts b/app/src/App/hooks.ts index 986d98698d3..dd28b35e964 100644 --- a/app/src/App/hooks.ts +++ b/app/src/App/hooks.ts @@ -12,11 +12,11 @@ import { } from '@opentrons/react-api-client' import { getProtocol } from '@opentrons/api-client' -import { checkShellUpdate } from '../redux/shell' -import { useToaster } from '../organisms/ToasterOven' +import { checkShellUpdate } from '/app/redux/shell' +import { useToaster } from '/app/organisms/ToasterOven' import type { SetStatusBarCreateCommand } from '@opentrons/shared-data' -import type { Dispatch } from '../redux/types' +import type { Dispatch } from '/app/redux/types' const UPDATE_RECHECK_INTERVAL_MS = 60000 const PROTOCOL_IDS_RECHECK_INTERVAL_MS = 3000 diff --git a/app/src/App/index.tsx b/app/src/App/index.tsx index 42a32892df8..2e94c63d6f7 100644 --- a/app/src/App/index.tsx +++ b/app/src/App/index.tsx @@ -3,8 +3,8 @@ import { useSelector } from 'react-redux' import { Flex, POSITION_FIXED, DIRECTION_ROW } from '@opentrons/components' -import { GlobalStyle } from '../atoms/GlobalStyle' -import { getConfig, getIsOnDevice } from '../redux/config' +import { GlobalStyle } from '/app/atoms/GlobalStyle' +import { getConfig, getIsOnDevice } from '/app/redux/config' import { DesktopApp } from './DesktopApp' import { OnDeviceDisplayApp } from './OnDeviceDisplayApp' import { TopPortalRoot } from './portal' diff --git a/app/src/atoms/Banner/__tests__/Banner.test.tsx b/app/src/atoms/Banner/__tests__/Banner.test.tsx index f543ec98ec0..07187f23db2 100644 --- a/app/src/atoms/Banner/__tests__/Banner.test.tsx +++ b/app/src/atoms/Banner/__tests__/Banner.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { describe, it, vi, expect, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { Banner } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/InlineNotification/__tests__/InlineNotification.test.tsx b/app/src/atoms/InlineNotification/__tests__/InlineNotification.test.tsx index 73b40a8a1c5..a1bdf9b33c2 100644 --- a/app/src/atoms/InlineNotification/__tests__/InlineNotification.test.tsx +++ b/app/src/atoms/InlineNotification/__tests__/InlineNotification.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { describe, it, vi, beforeEach, expect } from 'vitest' import { screen, fireEvent } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { InlineNotification } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/InstrumentContainer/__tests__/InstrumentContainer.test.tsx b/app/src/atoms/InstrumentContainer/__tests__/InstrumentContainer.test.tsx index 4b71e56326d..d7a6a7d41fd 100644 --- a/app/src/atoms/InstrumentContainer/__tests__/InstrumentContainer.test.tsx +++ b/app/src/atoms/InstrumentContainer/__tests__/InstrumentContainer.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { describe, it } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { InstrumentContainer } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/Link/__tests__/ExternalLink.test.tsx b/app/src/atoms/Link/__tests__/ExternalLink.test.tsx index 6d39662a104..81c9e8cc6c2 100644 --- a/app/src/atoms/Link/__tests__/ExternalLink.test.tsx +++ b/app/src/atoms/Link/__tests__/ExternalLink.test.tsx @@ -3,7 +3,7 @@ import { describe, it, expect, beforeEach } from 'vitest' import { screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { ExternalLink } from '../ExternalLink' const TEST_URL = 'https://opentrons.com' diff --git a/app/src/atoms/ProgressBar/__tests__/ProgressBar.test.tsx b/app/src/atoms/ProgressBar/__tests__/ProgressBar.test.tsx index 2b9f19f76cc..daaf7c70417 100644 --- a/app/src/atoms/ProgressBar/__tests__/ProgressBar.test.tsx +++ b/app/src/atoms/ProgressBar/__tests__/ProgressBar.test.tsx @@ -4,7 +4,7 @@ import '@testing-library/jest-dom/vitest' import { screen } from '@testing-library/react' import { css } from 'styled-components' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { ProgressBar } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/Skeleton/__tests__/Skeleton.test.tsx b/app/src/atoms/Skeleton/__tests__/Skeleton.test.tsx index 45f90200330..9e37a85622c 100644 --- a/app/src/atoms/Skeleton/__tests__/Skeleton.test.tsx +++ b/app/src/atoms/Skeleton/__tests__/Skeleton.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { describe, it, expect } from 'vitest' import '@testing-library/jest-dom/vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { Skeleton } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/SleepScreen/__tests__/SleepScreen.test.tsx b/app/src/atoms/SleepScreen/__tests__/SleepScreen.test.tsx index e38a866b35e..a1862f37db0 100644 --- a/app/src/atoms/SleepScreen/__tests__/SleepScreen.test.tsx +++ b/app/src/atoms/SleepScreen/__tests__/SleepScreen.test.tsx @@ -3,7 +3,7 @@ import { describe, it, expect } from 'vitest' import '@testing-library/jest-dom/vitest' import { screen } from '@testing-library/react' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { SleepScreen } from '..' diff --git a/app/src/atoms/Slideout/__tests__/Slideout.test.tsx b/app/src/atoms/Slideout/__tests__/Slideout.test.tsx index ce929b72296..bd30ce3f578 100644 --- a/app/src/atoms/Slideout/__tests__/Slideout.test.tsx +++ b/app/src/atoms/Slideout/__tests__/Slideout.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' import { screen, fireEvent } from '@testing-library/react' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { Slideout } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/SoftwareKeyboard/AlphanumericKeyboard/__tests__/CustomKeyboard.test.tsx b/app/src/atoms/SoftwareKeyboard/AlphanumericKeyboard/__tests__/CustomKeyboard.test.tsx index 336e0c86026..b4a9abaae89 100644 --- a/app/src/atoms/SoftwareKeyboard/AlphanumericKeyboard/__tests__/CustomKeyboard.test.tsx +++ b/app/src/atoms/SoftwareKeyboard/AlphanumericKeyboard/__tests__/CustomKeyboard.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { describe, it, expect, vi } from 'vitest' import '@testing-library/jest-dom/vitest' import { fireEvent, renderHook, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { AlphanumericKeyboard } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/SoftwareKeyboard/FullKeyboard/__tests__/FullKeyboard.test.tsx b/app/src/atoms/SoftwareKeyboard/FullKeyboard/__tests__/FullKeyboard.test.tsx index c84a33a2796..728ae462083 100644 --- a/app/src/atoms/SoftwareKeyboard/FullKeyboard/__tests__/FullKeyboard.test.tsx +++ b/app/src/atoms/SoftwareKeyboard/FullKeyboard/__tests__/FullKeyboard.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { describe, it, expect, vi } from 'vitest' import '@testing-library/jest-dom/vitest' import { fireEvent, renderHook, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { FullKeyboard } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/SoftwareKeyboard/IndividualKey/__tests__/IndividualKey.test.tsx b/app/src/atoms/SoftwareKeyboard/IndividualKey/__tests__/IndividualKey.test.tsx index f08c7e4566f..b29404ba226 100644 --- a/app/src/atoms/SoftwareKeyboard/IndividualKey/__tests__/IndividualKey.test.tsx +++ b/app/src/atoms/SoftwareKeyboard/IndividualKey/__tests__/IndividualKey.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { describe, it, vi, expect } from 'vitest' import { fireEvent, renderHook, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { IndividualKey } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/SoftwareKeyboard/NumericalKeyboard/__tests__/NumericalKeyboard.test.tsx b/app/src/atoms/SoftwareKeyboard/NumericalKeyboard/__tests__/NumericalKeyboard.test.tsx index 0b3143554fa..1bda1caaa71 100644 --- a/app/src/atoms/SoftwareKeyboard/NumericalKeyboard/__tests__/NumericalKeyboard.test.tsx +++ b/app/src/atoms/SoftwareKeyboard/NumericalKeyboard/__tests__/NumericalKeyboard.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { describe, it, expect, vi } from 'vitest' import '@testing-library/jest-dom/vitest' import { fireEvent, renderHook, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { NumericalKeyboard } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/StatusLabel/__tests__/StatusLabel.test.tsx b/app/src/atoms/StatusLabel/__tests__/StatusLabel.test.tsx index a75018cbbea..8c7f200d90d 100644 --- a/app/src/atoms/StatusLabel/__tests__/StatusLabel.test.tsx +++ b/app/src/atoms/StatusLabel/__tests__/StatusLabel.test.tsx @@ -4,7 +4,7 @@ import '@testing-library/jest-dom/vitest' import { screen } from '@testing-library/react' import { C_SKY_BLUE, COLORS } from '@opentrons/components' import { StatusLabel } from '..' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' const render = (props: React.ComponentProps) => { return renderWithProviders()[0] diff --git a/app/src/atoms/StepMeter/__tests__/StepMeter.test.tsx b/app/src/atoms/StepMeter/__tests__/StepMeter.test.tsx index 92780c102f1..6e8225f738e 100644 --- a/app/src/atoms/StepMeter/__tests__/StepMeter.test.tsx +++ b/app/src/atoms/StepMeter/__tests__/StepMeter.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { describe, it, expect, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' import { screen } from '@testing-library/react' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { StepMeter } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/buttons/__tests__/BackButton.test.tsx b/app/src/atoms/buttons/__tests__/BackButton.test.tsx index 7b1595d0b83..6dbe655194a 100644 --- a/app/src/atoms/buttons/__tests__/BackButton.test.tsx +++ b/app/src/atoms/buttons/__tests__/BackButton.test.tsx @@ -4,9 +4,9 @@ import { describe, it, expect, vi } from 'vitest' import '@testing-library/jest-dom/vitest' import { MemoryRouter, Route, Routes } from 'react-router-dom' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { BackButton } from '..' const render = (props?: React.HTMLProps) => { diff --git a/app/src/atoms/buttons/__tests__/FloatingActionButton.test.tsx b/app/src/atoms/buttons/__tests__/FloatingActionButton.test.tsx index 4d479fd93cf..61e147e2542 100644 --- a/app/src/atoms/buttons/__tests__/FloatingActionButton.test.tsx +++ b/app/src/atoms/buttons/__tests__/FloatingActionButton.test.tsx @@ -4,8 +4,8 @@ import '@testing-library/jest-dom/vitest' import { screen } from '@testing-library/react' import { BORDERS, COLORS, SPACING, TYPOGRAPHY } from '@opentrons/components' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { FloatingActionButton } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/buttons/__tests__/MediumButton.test.tsx b/app/src/atoms/buttons/__tests__/MediumButton.test.tsx index 1c85bf34eb1..182c0d80a9c 100644 --- a/app/src/atoms/buttons/__tests__/MediumButton.test.tsx +++ b/app/src/atoms/buttons/__tests__/MediumButton.test.tsx @@ -3,7 +3,7 @@ import '@testing-library/jest-dom/vitest' import { describe, it, expect, vi, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import { COLORS, BORDERS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { MediumButton } from '../MediumButton' diff --git a/app/src/atoms/buttons/__tests__/QuaternaryButton.test.tsx b/app/src/atoms/buttons/__tests__/QuaternaryButton.test.tsx index e9dd204ca2f..be8759b1a98 100644 --- a/app/src/atoms/buttons/__tests__/QuaternaryButton.test.tsx +++ b/app/src/atoms/buttons/__tests__/QuaternaryButton.test.tsx @@ -3,7 +3,7 @@ import '@testing-library/jest-dom/vitest' import { describe, it, expect, beforeEach, vi } from 'vitest' import { screen } from '@testing-library/react' import { COLORS, SPACING, TYPOGRAPHY, BORDERS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { QuaternaryButton } from '..' diff --git a/app/src/atoms/buttons/__tests__/SmallButton.test.tsx b/app/src/atoms/buttons/__tests__/SmallButton.test.tsx index 7875a12f68a..e39d6f1e850 100644 --- a/app/src/atoms/buttons/__tests__/SmallButton.test.tsx +++ b/app/src/atoms/buttons/__tests__/SmallButton.test.tsx @@ -5,7 +5,7 @@ import { fireEvent, screen } from '@testing-library/react' import { COLORS, BORDERS } from '@opentrons/components' import { SmallButton } from '../SmallButton' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' const render = (props: React.ComponentProps) => { return renderWithProviders()[0] diff --git a/app/src/atoms/buttons/__tests__/SubmitPrimaryButton.test.tsx b/app/src/atoms/buttons/__tests__/SubmitPrimaryButton.test.tsx index c4d33d2aef5..455e0026cb3 100644 --- a/app/src/atoms/buttons/__tests__/SubmitPrimaryButton.test.tsx +++ b/app/src/atoms/buttons/__tests__/SubmitPrimaryButton.test.tsx @@ -3,7 +3,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' import { fireEvent, screen } from '@testing-library/react' import { COLORS, SPACING, TYPOGRAPHY, BORDERS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { SubmitPrimaryButton } from '..' diff --git a/app/src/atoms/buttons/__tests__/TertiaryButton.test.tsx b/app/src/atoms/buttons/__tests__/TertiaryButton.test.tsx index 11790f63c47..7d653b37881 100644 --- a/app/src/atoms/buttons/__tests__/TertiaryButton.test.tsx +++ b/app/src/atoms/buttons/__tests__/TertiaryButton.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { describe, it, expect, beforeEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import '@testing-library/jest-dom/vitest' import { COLORS, SPACING, TYPOGRAPHY, BORDERS } from '@opentrons/components' diff --git a/app/src/atoms/buttons/__tests__/ToggleButton.test.tsx b/app/src/atoms/buttons/__tests__/ToggleButton.test.tsx index bc47fabe48c..23f75531d74 100644 --- a/app/src/atoms/buttons/__tests__/ToggleButton.test.tsx +++ b/app/src/atoms/buttons/__tests__/ToggleButton.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { describe, it, expect, vi, beforeEach } from 'vitest' import { screen, fireEvent } from '@testing-library/react' import { COLORS, SIZE_2 } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { ToggleButton } from '..' diff --git a/app/src/atoms/structure/__tests__/Divider.test.tsx b/app/src/atoms/structure/__tests__/Divider.test.tsx index ff4e80c655f..4ee70071ccd 100644 --- a/app/src/atoms/structure/__tests__/Divider.test.tsx +++ b/app/src/atoms/structure/__tests__/Divider.test.tsx @@ -3,7 +3,7 @@ import { describe, it, expect, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' import { screen } from '@testing-library/react' import { SPACING, COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { Divider } from '../index' const render = (props: React.ComponentProps) => { diff --git a/app/src/atoms/structure/__tests__/Line.test.tsx b/app/src/atoms/structure/__tests__/Line.test.tsx index f6fd5064ca6..66f995b768f 100644 --- a/app/src/atoms/structure/__tests__/Line.test.tsx +++ b/app/src/atoms/structure/__tests__/Line.test.tsx @@ -4,7 +4,7 @@ import '@testing-library/jest-dom/vitest' import { screen } from '@testing-library/react' import { SPACING, COLORS } from '@opentrons/components' import { Line } from '../index' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' const render = (props: React.ComponentProps) => { return renderWithProviders()[0] diff --git a/app/src/molecules/BackgroundOverlay/__tests__/BackgroundOverlay.test.tsx b/app/src/molecules/BackgroundOverlay/__tests__/BackgroundOverlay.test.tsx index 65d4743f5ad..73648cd15b8 100644 --- a/app/src/molecules/BackgroundOverlay/__tests__/BackgroundOverlay.test.tsx +++ b/app/src/molecules/BackgroundOverlay/__tests__/BackgroundOverlay.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { describe, it, expect, vi } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { BackgroundOverlay } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/molecules/CardButton/__tests__/CardButton.test.tsx b/app/src/molecules/CardButton/__tests__/CardButton.test.tsx index 04a841ccc23..ceff9582c21 100644 --- a/app/src/molecules/CardButton/__tests__/CardButton.test.tsx +++ b/app/src/molecules/CardButton/__tests__/CardButton.test.tsx @@ -4,8 +4,8 @@ import '@testing-library/jest-dom/vitest' import { describe, it, expect, vi, beforeEach } from 'vitest' import { MemoryRouter } from 'react-router-dom' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CardButton } from '..' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/molecules/CardButton/index.tsx b/app/src/molecules/CardButton/index.tsx index 1181985f772..2b8a6293198 100644 --- a/app/src/molecules/CardButton/index.tsx +++ b/app/src/molecules/CardButton/index.tsx @@ -14,7 +14,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { ODD_FOCUS_VISIBLE } from '../../atoms/buttons/constants' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' import type { IconName } from '@opentrons/components' diff --git a/app/src/molecules/Command/Command.tsx b/app/src/molecules/Command/Command.tsx index fb8452f2a92..cf7e5ce0d92 100644 --- a/app/src/molecules/Command/Command.tsx +++ b/app/src/molecules/Command/Command.tsx @@ -13,7 +13,7 @@ import type { RobotType, RunTimeCommand } from '@opentrons/shared-data' import { CommandText } from './CommandText' import { CommandIcon } from './CommandIcon' import type { CommandTextData } from './types' -import { Skeleton } from '../../atoms/Skeleton' +import { Skeleton } from '/app/atoms/Skeleton' import type { StyleProps } from '@opentrons/components' import { omit } from 'lodash' diff --git a/app/src/molecules/Command/__tests__/CommandText.test.tsx b/app/src/molecules/Command/__tests__/CommandText.test.tsx index 09856d77ba1..484c9ee0323 100644 --- a/app/src/molecules/Command/__tests__/CommandText.test.tsx +++ b/app/src/molecules/Command/__tests__/CommandText.test.tsx @@ -7,8 +7,8 @@ import { OT2_ROBOT_TYPE, GRIPPER_WASTE_CHUTE_ADDRESSABLE_AREA, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CommandText } from '../CommandText' import { mockCommandTextData } from '../__fixtures__' import { getCommandTextData } from '../utils/getCommandTextData' diff --git a/app/src/molecules/FileUpload/__tests__/FileUpload.test.tsx b/app/src/molecules/FileUpload/__tests__/FileUpload.test.tsx index 3e14d809631..4e18cdfb08a 100644 --- a/app/src/molecules/FileUpload/__tests__/FileUpload.test.tsx +++ b/app/src/molecules/FileUpload/__tests__/FileUpload.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { beforeEach, describe, expect, it, vi } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { FileUpload } from '..' import testFile from './test-file.png' diff --git a/app/src/molecules/GenericWizardTile/GenericWizardTile.stories.tsx b/app/src/molecules/GenericWizardTile/GenericWizardTile.stories.tsx index b5c61246cd1..b707286cb55 100644 --- a/app/src/molecules/GenericWizardTile/GenericWizardTile.stories.tsx +++ b/app/src/molecules/GenericWizardTile/GenericWizardTile.stories.tsx @@ -9,9 +9,9 @@ import { LegacyStyledText, ModalShell, } from '@opentrons/components' -import { Skeleton } from '../../atoms/Skeleton' +import { Skeleton } from '/app/atoms/Skeleton' import { WizardHeader } from '../WizardHeader' -import { configReducer } from '../../redux/config/reducer' +import { configReducer } from '/app/redux/config/reducer' import { GenericWizardTile } from './index' import type { Store, StoreEnhancer } from 'redux' diff --git a/app/src/molecules/GenericWizardTile/__tests__/GenericWizardTile.test.tsx b/app/src/molecules/GenericWizardTile/__tests__/GenericWizardTile.test.tsx index 63b6cd1cf92..8070a4d3cd7 100644 --- a/app/src/molecules/GenericWizardTile/__tests__/GenericWizardTile.test.tsx +++ b/app/src/molecules/GenericWizardTile/__tests__/GenericWizardTile.test.tsx @@ -2,12 +2,12 @@ import * as React from 'react' import '@testing-library/jest-dom/vitest' import { describe, it, expect, vi, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' -import { getIsOnDevice } from '../../../redux/config' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { getIsOnDevice } from '/app/redux/config' import { GenericWizardTile } from '..' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/molecules/GenericWizardTile/index.tsx b/app/src/molecules/GenericWizardTile/index.tsx index 2f7dd88939e..1d07d2bb9ea 100644 --- a/app/src/molecules/GenericWizardTile/index.tsx +++ b/app/src/molecules/GenericWizardTile/index.tsx @@ -22,9 +22,9 @@ import { useHoverTooltip, } from '@opentrons/components' -import { getIsOnDevice } from '../../redux/config' -import { NeedHelpLink } from '../../organisms/CalibrationPanels' -import { SmallButton, TextOnlyButton } from '../../atoms/buttons' +import { getIsOnDevice } from '/app/redux/config' +import { NeedHelpLink } from '/app/organisms/CalibrationPanels' +import { SmallButton, TextOnlyButton } from '/app/atoms/buttons' const ALIGN_BUTTONS = css` align-items: ${ALIGN_FLEX_END}; diff --git a/app/src/molecules/InProgressModal/__tests__/InProgressModal.test.tsx b/app/src/molecules/InProgressModal/__tests__/InProgressModal.test.tsx index b8644d2bb83..9d0f0874874 100644 --- a/app/src/molecules/InProgressModal/__tests__/InProgressModal.test.tsx +++ b/app/src/molecules/InProgressModal/__tests__/InProgressModal.test.tsx @@ -1,12 +1,12 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach, vi } from 'vitest' -import { i18n } from '../../../i18n' -import { getIsOnDevice } from '../../../redux/config' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { getIsOnDevice } from '/app/redux/config' +import { renderWithProviders } from '/app/__testing-utils__' import { InProgressModal } from '../InProgressModal' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/molecules/InfoMessage/__tests__/InfoMessage.test.tsx b/app/src/molecules/InfoMessage/__tests__/InfoMessage.test.tsx index 7d6a1d851a3..c4327de590b 100644 --- a/app/src/molecules/InfoMessage/__tests__/InfoMessage.test.tsx +++ b/app/src/molecules/InfoMessage/__tests__/InfoMessage.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { describe, it, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { screen } from '@testing-library/react' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { InfoMessage } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/molecules/InstrumentCard/MenuOverlay.tsx b/app/src/molecules/InstrumentCard/MenuOverlay.tsx index 203220a7301..674f5659164 100644 --- a/app/src/molecules/InstrumentCard/MenuOverlay.tsx +++ b/app/src/molecules/InstrumentCard/MenuOverlay.tsx @@ -10,7 +10,7 @@ import { POSITION_ABSOLUTE, } from '@opentrons/components' -import { Divider } from '../../atoms/structure' +import { Divider } from '/app/atoms/structure' import type { StyleProps } from '@opentrons/components' diff --git a/app/src/molecules/InstrumentCard/index.tsx b/app/src/molecules/InstrumentCard/index.tsx index e2a434850d2..4384db759e3 100644 --- a/app/src/molecules/InstrumentCard/index.tsx +++ b/app/src/molecules/InstrumentCard/index.tsx @@ -18,7 +18,7 @@ import { TYPOGRAPHY, useMenuHandleClickOutside, } from '@opentrons/components' -import flexGripper from '../../assets/images/flex_gripper.png' +import flexGripper from '/app/assets/images/flex_gripper.png' import { MenuOverlay } from './MenuOverlay' diff --git a/app/src/molecules/InterventionModal/DescriptionContent.tsx b/app/src/molecules/InterventionModal/DescriptionContent.tsx index aa1ca395814..8f166ad79c6 100644 --- a/app/src/molecules/InterventionModal/DescriptionContent.tsx +++ b/app/src/molecules/InterventionModal/DescriptionContent.tsx @@ -6,7 +6,7 @@ import { StyledText, RESPONSIVENESS, } from '@opentrons/components' -import { InlineNotification } from '../../atoms/InlineNotification' +import { InlineNotification } from '/app/atoms/InlineNotification' interface NotificationProps { notificationHeader?: string diff --git a/app/src/molecules/InterventionModal/InterventionContent/InterventionInfo.tsx b/app/src/molecules/InterventionModal/InterventionContent/InterventionInfo.tsx index 1031519602a..f24efb492be 100644 --- a/app/src/molecules/InterventionModal/InterventionContent/InterventionInfo.tsx +++ b/app/src/molecules/InterventionModal/InterventionContent/InterventionInfo.tsx @@ -13,7 +13,7 @@ import { ALIGN_CENTER, RESPONSIVENESS, } from '@opentrons/components' -import { Divider } from '../../../atoms/structure/Divider' +import { Divider } from '/app/atoms/structure/Divider' import type { DeckInfoLabelProps } from '@opentrons/components' diff --git a/app/src/molecules/InterventionModal/InterventionContent/index.tsx b/app/src/molecules/InterventionModal/InterventionContent/index.tsx index cc52255e4f9..63e1e33e2c6 100644 --- a/app/src/molecules/InterventionModal/InterventionContent/index.tsx +++ b/app/src/molecules/InterventionModal/InterventionContent/index.tsx @@ -6,7 +6,7 @@ import { SPACING, RESPONSIVENESS, } from '@opentrons/components' -import { InlineNotification } from '../../../atoms/InlineNotification' +import { InlineNotification } from '/app/atoms/InlineNotification' import { InterventionInfo } from './InterventionInfo' export type { InterventionInfoProps } from './InterventionInfo' diff --git a/app/src/molecules/InterventionModal/InterventionModal.stories.tsx b/app/src/molecules/InterventionModal/InterventionModal.stories.tsx index 60c4cd820f1..63f2827cc1e 100644 --- a/app/src/molecules/InterventionModal/InterventionModal.stories.tsx +++ b/app/src/molecules/InterventionModal/InterventionModal.stories.tsx @@ -3,7 +3,7 @@ import { Provider } from 'react-redux' import { createStore } from 'redux' import { LegacyStyledText } from '@opentrons/components' -import { configReducer } from '../../redux/config/reducer' +import { configReducer } from '/app/redux/config/reducer' import { InterventionModal as InterventionModalComponent } from './' import type { Store, StoreEnhancer } from 'redux' diff --git a/app/src/molecules/InterventionModal/ModalContentMixed.stories.tsx b/app/src/molecules/InterventionModal/ModalContentMixed.stories.tsx index cf21d519089..b2e9b48e370 100644 --- a/app/src/molecules/InterventionModal/ModalContentMixed.stories.tsx +++ b/app/src/molecules/InterventionModal/ModalContentMixed.stories.tsx @@ -1,4 +1,4 @@ -import successIcon from '../../assets/images/icon_success.png' +import successIcon from '/app/assets/images/icon_success.png' import type { Meta, StoryObj } from '@storybook/react' import { customViewports } from '../../../../.storybook/preview' diff --git a/app/src/molecules/InterventionModal/TwoColumn.stories.tsx b/app/src/molecules/InterventionModal/TwoColumn.stories.tsx index 84722fbf00b..a43bfb13068 100644 --- a/app/src/molecules/InterventionModal/TwoColumn.stories.tsx +++ b/app/src/molecules/InterventionModal/TwoColumn.stories.tsx @@ -1,6 +1,6 @@ import * as React from 'react' -import SuccessIcon from '../../assets/images/icon_success.png' +import SuccessIcon from '/app/assets/images/icon_success.png' import { LegacyStyledText, @@ -8,7 +8,7 @@ import { DIRECTION_COLUMN, Box, } from '@opentrons/components' -import { InlineNotification } from '../../atoms/InlineNotification' +import { InlineNotification } from '/app/atoms/InlineNotification' import { TwoColumn as TwoColumnComponent } from './' import { StandInContent } from './story-utils/StandIn' diff --git a/app/src/molecules/InterventionModal/__tests__/InterventionModal.test.tsx b/app/src/molecules/InterventionModal/__tests__/InterventionModal.test.tsx index 060a96eb401..58297e6ec80 100644 --- a/app/src/molecules/InterventionModal/__tests__/InterventionModal.test.tsx +++ b/app/src/molecules/InterventionModal/__tests__/InterventionModal.test.tsx @@ -6,16 +6,16 @@ import '@testing-library/jest-dom/vitest' import { screen, fireEvent } from '@testing-library/react' import { COLORS, BORDERS } from '@opentrons/components' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' -import { getIsOnDevice } from '../../../redux/config' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { getIsOnDevice } from '/app/redux/config' import { InterventionModal } from '../' import type { ModalType } from '../' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const MOCK_STATE: State = { config: { diff --git a/app/src/molecules/InterventionModal/index.tsx b/app/src/molecules/InterventionModal/index.tsx index f3f784d22f1..3d27946b2f7 100644 --- a/app/src/molecules/InterventionModal/index.tsx +++ b/app/src/molecules/InterventionModal/index.tsx @@ -21,7 +21,7 @@ import { SPACING, } from '@opentrons/components' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import type { IconName } from '@opentrons/components' import { ModalContentOneColSimpleButtons } from './ModalContentOneColSimpleButtons' diff --git a/app/src/molecules/JogControls/TouchControlButton.tsx b/app/src/molecules/JogControls/TouchControlButton.tsx index 859541b50de..88862e58158 100644 --- a/app/src/molecules/JogControls/TouchControlButton.tsx +++ b/app/src/molecules/JogControls/TouchControlButton.tsx @@ -1,7 +1,7 @@ import styled from 'styled-components' import { BORDERS, COLORS, CURSOR_DEFAULT, SPACING } from '@opentrons/components' -import { ODD_FOCUS_VISIBLE } from '../../atoms/buttons/constants' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' export const TouchControlButton = styled.button<{ selected: boolean }>` background-color: ${({ selected }) => diff --git a/app/src/molecules/MiniCard/MiniCard.stories.tsx b/app/src/molecules/MiniCard/MiniCard.stories.tsx index 0a84fd6683f..ba24854ab4d 100644 --- a/app/src/molecules/MiniCard/MiniCard.stories.tsx +++ b/app/src/molecules/MiniCard/MiniCard.stories.tsx @@ -9,9 +9,9 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import OT2_PNG from '../../assets/images/OT2-R_HERO.png' +import OT2_PNG from '/app/assets/images/OT2-R_HERO.png' import { MiniCard } from './' -import { Slideout } from '../../atoms/Slideout' +import { Slideout } from '/app/atoms/Slideout' import type { Story, Meta } from '@storybook/react' diff --git a/app/src/molecules/MiniCard/__tests__/MiniCard.test.tsx b/app/src/molecules/MiniCard/__tests__/MiniCard.test.tsx index 774bb76f20c..93436e0d37e 100644 --- a/app/src/molecules/MiniCard/__tests__/MiniCard.test.tsx +++ b/app/src/molecules/MiniCard/__tests__/MiniCard.test.tsx @@ -3,7 +3,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' import { fireEvent, screen } from '@testing-library/react' import { COLORS, SPACING, BORDERS, CURSOR_POINTER } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { MiniCard } from '../' const render = (props: React.ComponentProps) => { diff --git a/app/src/molecules/ModuleIcon/ModuleIcon.stories.tsx b/app/src/molecules/ModuleIcon/ModuleIcon.stories.tsx index 312b71a4936..06484370bac 100644 --- a/app/src/molecules/ModuleIcon/ModuleIcon.stories.tsx +++ b/app/src/molecules/ModuleIcon/ModuleIcon.stories.tsx @@ -11,7 +11,7 @@ import { import { ModuleIcon } from './index' import type { Story, Meta } from '@storybook/react' -import type { AttachedModule } from '../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' export default { title: 'App/Molecules/ModuleIcon', diff --git a/app/src/molecules/ModuleIcon/__tests__/ModuleIcon.test.tsx b/app/src/molecules/ModuleIcon/__tests__/ModuleIcon.test.tsx index 49e0ed4c118..081d08cd4c3 100644 --- a/app/src/molecules/ModuleIcon/__tests__/ModuleIcon.test.tsx +++ b/app/src/molecules/ModuleIcon/__tests__/ModuleIcon.test.tsx @@ -3,10 +3,10 @@ import { COLORS, SPACING } from '@opentrons/components' import { describe, it, expect, vi, beforeEach } from 'vitest' import { screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { ModuleIcon } from '../' -import type { AttachedModule } from '../../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' import type * as OpentronsComponents from '@opentrons/components' vi.mock('@opentrons/components', async importOriginal => { diff --git a/app/src/molecules/ModuleIcon/index.tsx b/app/src/molecules/ModuleIcon/index.tsx index 1e08bd8e981..ed1ae3bcaa4 100644 --- a/app/src/molecules/ModuleIcon/index.tsx +++ b/app/src/molecules/ModuleIcon/index.tsx @@ -11,7 +11,7 @@ import { useHoverTooltip, } from '@opentrons/components' -import type { AttachedModule } from '../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' const MODULE_ICON_STYLE = css` &:hover { diff --git a/app/src/molecules/NavTab/__tests__/NavTab.test.tsx b/app/src/molecules/NavTab/__tests__/NavTab.test.tsx index 0c5e608363d..6345c2fac7d 100644 --- a/app/src/molecules/NavTab/__tests__/NavTab.test.tsx +++ b/app/src/molecules/NavTab/__tests__/NavTab.test.tsx @@ -4,7 +4,7 @@ import '@testing-library/jest-dom/vitest' import { describe, it, expect, beforeEach } from 'vitest' import { MemoryRouter } from 'react-router-dom' import { SPACING, COLORS, TYPOGRAPHY, BORDERS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { NavTab } from '..' const render = (props: React.ComponentProps) => { diff --git a/app/src/molecules/ODDBackButton/__tests__/ODDBackButton.test.tsx b/app/src/molecules/ODDBackButton/__tests__/ODDBackButton.test.tsx index 6ff9a730ba7..5e186acf9cd 100644 --- a/app/src/molecules/ODDBackButton/__tests__/ODDBackButton.test.tsx +++ b/app/src/molecules/ODDBackButton/__tests__/ODDBackButton.test.tsx @@ -4,7 +4,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import { COLORS } from '@opentrons/components' import { ODDBackButton } from '..' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' const render = (props: React.ComponentProps) => { return renderWithProviders()[0] diff --git a/app/src/molecules/OddModal/SmallModalChildren.tsx b/app/src/molecules/OddModal/SmallModalChildren.tsx index 35c6d180f85..6ceb1cf50ca 100644 --- a/app/src/molecules/OddModal/SmallModalChildren.tsx +++ b/app/src/molecules/OddModal/SmallModalChildren.tsx @@ -8,7 +8,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' import { OddModal } from './index' interface SmallModalChildrenProps { diff --git a/app/src/molecules/OddModal/__tests__/OddModal.test.tsx b/app/src/molecules/OddModal/__tests__/OddModal.test.tsx index 3d18e8aea3b..4c289650fd8 100644 --- a/app/src/molecules/OddModal/__tests__/OddModal.test.tsx +++ b/app/src/molecules/OddModal/__tests__/OddModal.test.tsx @@ -3,7 +3,7 @@ import { fireEvent, screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { OddModalHeader } from '../OddModalHeader' import { OddModal } from '../OddModal' diff --git a/app/src/molecules/OddModal/__tests__/OddModalHeader.test.tsx b/app/src/molecules/OddModal/__tests__/OddModalHeader.test.tsx index 53d95f6acf1..3c3cb72f8b2 100644 --- a/app/src/molecules/OddModal/__tests__/OddModalHeader.test.tsx +++ b/app/src/molecules/OddModal/__tests__/OddModalHeader.test.tsx @@ -3,7 +3,7 @@ import '@testing-library/jest-dom/vitest' import { describe, it, expect, vi, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { OddModalHeader } from '../OddModalHeader' const render = (props: React.ComponentProps) => { diff --git a/app/src/molecules/OddModal/__tests__/SmallModalChildren.test.tsx b/app/src/molecules/OddModal/__tests__/SmallModalChildren.test.tsx index bb22935b47d..0025a806fe2 100644 --- a/app/src/molecules/OddModal/__tests__/SmallModalChildren.test.tsx +++ b/app/src/molecules/OddModal/__tests__/SmallModalChildren.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { describe, it, expect, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { SmallModalChildren } from '../SmallModalChildren' const props = { diff --git a/app/src/molecules/OffsetVector/__tests__/OffsetVector.test.tsx b/app/src/molecules/OffsetVector/__tests__/OffsetVector.test.tsx index 4981fcc8138..14dfd05db24 100644 --- a/app/src/molecules/OffsetVector/__tests__/OffsetVector.test.tsx +++ b/app/src/molecules/OffsetVector/__tests__/OffsetVector.test.tsx @@ -3,7 +3,7 @@ import { screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { describe, it, expect, beforeEach } from 'vitest' import { SPACING, TYPOGRAPHY } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { OffsetVector } from '../' diff --git a/app/src/molecules/PipetteSelect/index.tsx b/app/src/molecules/PipetteSelect/index.tsx index 75e3e3bb985..80170fd0bc8 100644 --- a/app/src/molecules/PipetteSelect/index.tsx +++ b/app/src/molecules/PipetteSelect/index.tsx @@ -10,11 +10,11 @@ import { EIGHT_CHANNEL, } from '@opentrons/shared-data' import { Box, Flex } from '@opentrons/components' -import { Select } from '../../atoms/SelectField/Select' +import { Select } from '/app/atoms/SelectField/Select' import type { PipetteNameSpecs } from '@opentrons/shared-data' import type { ActionMeta, SingleValue, MultiValue } from 'react-select' -import type { SelectOption } from '../../atoms/SelectField/Select' +import type { SelectOption } from '/app/atoms/SelectField/Select' export interface PipetteSelectProps { /** currently selected value, optional in case selecting triggers immediate action */ diff --git a/app/src/molecules/PythonLabwareOffsetSnippet/createSnippet.ts b/app/src/molecules/PythonLabwareOffsetSnippet/createSnippet.ts index 624e46ffaf6..4b6a1d4c236 100644 --- a/app/src/molecules/PythonLabwareOffsetSnippet/createSnippet.ts +++ b/app/src/molecules/PythonLabwareOffsetSnippet/createSnippet.ts @@ -1,7 +1,7 @@ import isEqual from 'lodash/isEqual' import { getLoadedLabwareDefinitionsByUri } from '@opentrons/shared-data' -import { getLabwareDefinitionUri } from '../../organisms/Devices/ProtocolRun/utils/getLabwareDefinitionUri' -import { getLabwareOffsetLocation } from '../../organisms/Devices/ProtocolRun/utils/getLabwareOffsetLocation' +import { getLabwareDefinitionUri } from '/app/organisms/Devices/ProtocolRun/utils/getLabwareDefinitionUri' +import { getLabwareOffsetLocation } from '/app/organisms/Devices/ProtocolRun/utils/getLabwareOffsetLocation' import type { LabwareOffset } from '@opentrons/api-client' import type { LoadedLabware, diff --git a/app/src/molecules/ReleaseNotes/index.tsx b/app/src/molecules/ReleaseNotes/index.tsx index eec5149b75e..5e59ecb5019 100644 --- a/app/src/molecules/ReleaseNotes/index.tsx +++ b/app/src/molecules/ReleaseNotes/index.tsx @@ -3,7 +3,7 @@ import Markdown from 'react-markdown' import { Box, COLORS, SPACING, LegacyStyledText } from '@opentrons/components' -import { useIsOEMMode } from '../../resources/robot-settings/hooks' +import { useIsOEMMode } from '/app/resources/robot-settings/hooks' import styles from './styles.module.css' diff --git a/app/src/molecules/SimpleWizardBody/SimpleWizardBody.stories.tsx b/app/src/molecules/SimpleWizardBody/SimpleWizardBody.stories.tsx index 240be51e27e..7b66034657b 100644 --- a/app/src/molecules/SimpleWizardBody/SimpleWizardBody.stories.tsx +++ b/app/src/molecules/SimpleWizardBody/SimpleWizardBody.stories.tsx @@ -3,7 +3,7 @@ import { Provider } from 'react-redux' import { createStore } from 'redux' import { COLORS, PrimaryButton, ModalShell } from '@opentrons/components' import { WizardHeader } from '../WizardHeader' -import { configReducer } from '../../redux/config/reducer' +import { configReducer } from '/app/redux/config/reducer' import { SimpleWizardBody } from './index' import type { Store, StoreEnhancer } from 'redux' diff --git a/app/src/molecules/SimpleWizardBody/SimpleWizardBodyContent.tsx b/app/src/molecules/SimpleWizardBody/SimpleWizardBodyContent.tsx index 5e79b1ff8bd..84e83966f07 100644 --- a/app/src/molecules/SimpleWizardBody/SimpleWizardBodyContent.tsx +++ b/app/src/molecules/SimpleWizardBody/SimpleWizardBodyContent.tsx @@ -17,10 +17,10 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' -import SuccessIcon from '../../assets/images/icon_success.png' -import { getIsOnDevice } from '../../redux/config' +import SuccessIcon from '/app/assets/images/icon_success.png' +import { getIsOnDevice } from '/app/redux/config' -import { Skeleton } from '../../atoms/Skeleton' +import { Skeleton } from '/app/atoms/Skeleton' import type { RobotType } from '@opentrons/shared-data' interface Props { diff --git a/app/src/molecules/SimpleWizardBody/__tests__/SimpleWizardBody.test.tsx b/app/src/molecules/SimpleWizardBody/__tests__/SimpleWizardBody.test.tsx index 5ffe283d5e9..3d2b0103578 100644 --- a/app/src/molecules/SimpleWizardBody/__tests__/SimpleWizardBody.test.tsx +++ b/app/src/molecules/SimpleWizardBody/__tests__/SimpleWizardBody.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' -import { Skeleton } from '../../../atoms/Skeleton' -import { getIsOnDevice } from '../../../redux/config' +import { renderWithProviders } from '/app/__testing-utils__' +import { Skeleton } from '/app/atoms/Skeleton' +import { getIsOnDevice } from '/app/redux/config' import { SimpleWizardBody } from '..' -vi.mock('../../../atoms/Skeleton') -vi.mock('../../../redux/config') +vi.mock('/app/atoms/Skeleton') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders()[0] diff --git a/app/src/molecules/ToggleGroup/__tests__/useToggleGroup.test.tsx b/app/src/molecules/ToggleGroup/__tests__/useToggleGroup.test.tsx index e7c71d35c6d..5312b7d33c9 100644 --- a/app/src/molecules/ToggleGroup/__tests__/useToggleGroup.test.tsx +++ b/app/src/molecules/ToggleGroup/__tests__/useToggleGroup.test.tsx @@ -4,13 +4,13 @@ import { createStore } from 'redux' import '@testing-library/jest-dom/vitest' import { describe, it, expect, vi, beforeEach } from 'vitest' import { renderHook, render, fireEvent, screen } from '@testing-library/react' -import { useTrackEvent } from '../../../redux/analytics' +import { useTrackEvent } from '/app/redux/analytics' import { useToggleGroup } from '../useToggleGroup' import type { Store } from 'redux' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../redux/analytics') +vi.mock('/app/redux/analytics') let mockTrackEvent: any diff --git a/app/src/molecules/ToggleGroup/useToggleGroup.tsx b/app/src/molecules/ToggleGroup/useToggleGroup.tsx index 7051871807e..ebe3efd14c8 100644 --- a/app/src/molecules/ToggleGroup/useToggleGroup.tsx +++ b/app/src/molecules/ToggleGroup/useToggleGroup.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import { ToggleGroup } from '@opentrons/components' -import { useTrackEvent } from '../../redux/analytics' +import { useTrackEvent } from '/app/redux/analytics' export const useToggleGroup = ( left: string, diff --git a/app/src/molecules/UpdateBanner/__tests__/UpdateBanner.test.tsx b/app/src/molecules/UpdateBanner/__tests__/UpdateBanner.test.tsx index 22663443a5e..eea0d077f4b 100644 --- a/app/src/molecules/UpdateBanner/__tests__/UpdateBanner.test.tsx +++ b/app/src/molecules/UpdateBanner/__tests__/UpdateBanner.test.tsx @@ -3,14 +3,14 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' import { when } from 'vitest-when' import { fireEvent, screen } from '@testing-library/react' -import { i18n } from '../../../i18n' -import { useIsFlex } from '../../../organisms/Devices/hooks' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { i18n } from '/app/i18n' +import { useIsFlex } from '/app/organisms/Devices/hooks' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { UpdateBanner } from '..' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -vi.mock('../../../organisms/Devices/hooks') -vi.mock('../../../resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/molecules/UpdateBanner/index.tsx b/app/src/molecules/UpdateBanner/index.tsx index abe657e2237..bdce9d53d1e 100644 --- a/app/src/molecules/UpdateBanner/index.tsx +++ b/app/src/molecules/UpdateBanner/index.tsx @@ -12,9 +12,9 @@ import { useHoverTooltip, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' -import { useIsFlex } from '../../organisms/Devices/hooks' -import { useIsEstopNotDisengaged } from '../../resources/devices/hooks/useIsEstopNotDisengaged' +import { Banner } from '/app/atoms/Banner' +import { useIsFlex } from '/app/organisms/Devices/hooks' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' interface UpdateBannerProps { robotName: string diff --git a/app/src/molecules/UploadInput/__tests__/UploadInput.test.tsx b/app/src/molecules/UploadInput/__tests__/UploadInput.test.tsx index ad51fdd8a08..92e69095ba2 100644 --- a/app/src/molecules/UploadInput/__tests__/UploadInput.test.tsx +++ b/app/src/molecules/UploadInput/__tests__/UploadInput.test.tsx @@ -10,9 +10,9 @@ import { SPACING, LegacyStyledText, } from '@opentrons/components' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { UploadInput } from '..' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' describe('UploadInput', () => { let onUpload: any diff --git a/app/src/molecules/WizardHeader/__tests__/WizardHeader.test.tsx b/app/src/molecules/WizardHeader/__tests__/WizardHeader.test.tsx index 38f431930cf..5cecec7d87d 100644 --- a/app/src/molecules/WizardHeader/__tests__/WizardHeader.test.tsx +++ b/app/src/molecules/WizardHeader/__tests__/WizardHeader.test.tsx @@ -2,14 +2,14 @@ import * 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 { i18n } from '../../../i18n' -import { getIsOnDevice } from '../../../redux/config' -import { StepMeter } from '../../../atoms/StepMeter' +import { i18n } from '/app/i18n' +import { getIsOnDevice } from '/app/redux/config' +import { StepMeter } from '/app/atoms/StepMeter' import { WizardHeader } from '..' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -vi.mock('../../../atoms/StepMeter') -vi.mock('../../../redux/config') +vi.mock('/app/atoms/StepMeter') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/molecules/WizardHeader/index.tsx b/app/src/molecules/WizardHeader/index.tsx index 04dc2baeae0..1f190e64915 100644 --- a/app/src/molecules/WizardHeader/index.tsx +++ b/app/src/molecules/WizardHeader/index.tsx @@ -15,7 +15,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { StepMeter } from '../../atoms/StepMeter' +import { StepMeter } from '/app/atoms/StepMeter' interface WizardHeaderProps { title: string diff --git a/app/src/molecules/WizardRequiredEquipmentList/equipmentImages.ts b/app/src/molecules/WizardRequiredEquipmentList/equipmentImages.ts index 25f1d4a4df6..ac4609bdc45 100644 --- a/app/src/molecules/WizardRequiredEquipmentList/equipmentImages.ts +++ b/app/src/molecules/WizardRequiredEquipmentList/equipmentImages.ts @@ -1,16 +1,16 @@ // images by equipment load name -import calibration_pin from '../../assets/images/gripper_cal_pin.png' -import calibration_probe from '../../assets/images/change-pip/calibration_probe.png' -import calibration_adapter_heatershaker from '../../assets/images/heatershaker_calibration_adapter.png' -import calibration_adapter_temperature from '../../assets/images/temperature_module_calibration_adapter.png' -import calibration_adapter_thermocycler from '../../assets/images/thermocycler_calibration_adapter.png' -import t10_torx_screwdriver from '../../assets/images/t10_torx_screwdriver.png' -import hex_screwdriver from '../../assets/images/change-pip/hex_screwdriver.png' -import flex_pipette from '../../assets/images/change-pip/single_mount_pipettes.png' -import pipette_96 from '../../assets/images/change-pip/ninety-six-channel.png' -import mounting_plate_96_channel from '../../assets/images/change-pip/mounting-plate-96-channel.png' -import flex_gripper from '../../assets/images/flex_gripper.png' +import calibration_pin from '/app/assets/images/gripper_cal_pin.png' +import calibration_probe from '/app/assets/images/change-pip/calibration_probe.png' +import calibration_adapter_heatershaker from '/app/assets/images/heatershaker_calibration_adapter.png' +import calibration_adapter_temperature from '/app/assets/images/temperature_module_calibration_adapter.png' +import calibration_adapter_thermocycler from '/app/assets/images/thermocycler_calibration_adapter.png' +import t10_torx_screwdriver from '/app/assets/images/t10_torx_screwdriver.png' +import hex_screwdriver from '/app/assets/images/change-pip/hex_screwdriver.png' +import flex_pipette from '/app/assets/images/change-pip/single_mount_pipettes.png' +import pipette_96 from '/app/assets/images/change-pip/ninety-six-channel.png' +import mounting_plate_96_channel from '/app/assets/images/change-pip/mounting-plate-96-channel.png' +import flex_gripper from '/app/assets/images/flex_gripper.png' export const equipmentImages = { calibration_pin, diff --git a/app/src/molecules/WizardRequiredEquipmentList/index.tsx b/app/src/molecules/WizardRequiredEquipmentList/index.tsx index 9701110cbdd..7f46754bf6f 100644 --- a/app/src/molecules/WizardRequiredEquipmentList/index.tsx +++ b/app/src/molecules/WizardRequiredEquipmentList/index.tsx @@ -18,9 +18,9 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { getIsOnDevice } from '../../redux/config' -import { Divider } from '../../atoms/structure' -import { labwareImages } from '../../organisms/CalibrationPanels/labwareImages' +import { getIsOnDevice } from '/app/redux/config' +import { Divider } from '/app/atoms/structure' +import { labwareImages } from '/app/organisms/CalibrationPanels/labwareImages' import { equipmentImages } from './equipmentImages' import type { StyleProps } from '@opentrons/components' diff --git a/app/src/organisms/AddCustomLabwareSlideout/__tests__/AddCustomLabwareSlideout.test.tsx b/app/src/organisms/AddCustomLabwareSlideout/__tests__/AddCustomLabwareSlideout.test.tsx index aea0cf5591f..9ae38c45961 100644 --- a/app/src/organisms/AddCustomLabwareSlideout/__tests__/AddCustomLabwareSlideout.test.tsx +++ b/app/src/organisms/AddCustomLabwareSlideout/__tests__/AddCustomLabwareSlideout.test.tsx @@ -2,17 +2,17 @@ import * as React from 'react' import { MemoryRouter } from 'react-router-dom' import { describe, it, expect, vi, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { useTrackEvent, ANALYTICS_ADD_CUSTOM_LABWARE, -} from '../../../redux/analytics' -import { renderWithProviders } from '../../../__testing-utils__' +} from '/app/redux/analytics' +import { renderWithProviders } from '/app/__testing-utils__' import { AddCustomLabwareSlideout } from '..' -vi.mock('../../../redux/custom-labware') -vi.mock('../../../pages/Desktop/Labware/helpers/getAllDefs') -vi.mock('../../../redux/analytics') +vi.mock('/app/redux/custom-labware') +vi.mock('/app/pages/Desktop/Labware/helpers/getAllDefs') +vi.mock('/app/redux/analytics') let mockTrackEvent: any diff --git a/app/src/organisms/AddCustomLabwareSlideout/index.tsx b/app/src/organisms/AddCustomLabwareSlideout/index.tsx index 2e663d6cd97..b6bebd77fdd 100644 --- a/app/src/organisms/AddCustomLabwareSlideout/index.tsx +++ b/app/src/organisms/AddCustomLabwareSlideout/index.tsx @@ -13,14 +13,14 @@ import { import { addCustomLabwareFile, addCustomLabware, -} from '../../redux/custom-labware' -import { Slideout } from '../../atoms/Slideout' +} from '/app/redux/custom-labware' +import { Slideout } from '/app/atoms/Slideout' import { useTrackEvent, ANALYTICS_ADD_CUSTOM_LABWARE, -} from '../../redux/analytics' -import { UploadInput } from '../../molecules/UploadInput' -import type { Dispatch } from '../../redux/types' +} from '/app/redux/analytics' +import { UploadInput } from '/app/molecules/UploadInput' +import type { Dispatch } from '/app/redux/types' export interface AddCustomLabwareSlideoutProps { isExpanded: boolean diff --git a/app/src/organisms/AdvancedSettings/AdditionalCustomLabwareSourceFolder.tsx b/app/src/organisms/AdvancedSettings/AdditionalCustomLabwareSourceFolder.tsx index b43f70e9826..5dc07daa93e 100644 --- a/app/src/organisms/AdvancedSettings/AdditionalCustomLabwareSourceFolder.tsx +++ b/app/src/organisms/AdvancedSettings/AdditionalCustomLabwareSourceFolder.tsx @@ -16,18 +16,18 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { TertiaryButton } from '../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' import { changeCustomLabwareDirectory, getCustomLabwareDirectory, openCustomLabwareDirectory, -} from '../../redux/custom-labware' +} from '/app/redux/custom-labware' import { useTrackEvent, ANALYTICS_CHANGE_CUSTOM_LABWARE_SOURCE_FOLDER, -} from '../../redux/analytics' +} from '/app/redux/analytics' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' export function AdditionalCustomLabwareSourceFolder(): JSX.Element { const { t } = useTranslation('app_settings') diff --git a/app/src/organisms/AdvancedSettings/ClearUnavailableRobots.tsx b/app/src/organisms/AdvancedSettings/ClearUnavailableRobots.tsx index c0c066f7715..0ed7a097e88 100644 --- a/app/src/organisms/AdvancedSettings/ClearUnavailableRobots.tsx +++ b/app/src/organisms/AdvancedSettings/ClearUnavailableRobots.tsx @@ -23,16 +23,16 @@ import { Modal, } from '@opentrons/components' -import { TertiaryButton } from '../../atoms/buttons' -import { useToaster } from '../../organisms/ToasterOven' +import { TertiaryButton } from '/app/atoms/buttons' +import { useToaster } from '/app/organisms/ToasterOven' import { getTopPortalEl } from '../../App/portal' import { clearDiscoveryCache, getReachableRobots, getUnreachableRobots, -} from '../../redux/discovery' +} from '/app/redux/discovery' -import type { Dispatch, State } from '../../redux/types' +import type { Dispatch, State } from '/app/redux/types' export function ClearUnavailableRobots(): JSX.Element { const { t } = useTranslation('app_settings') diff --git a/app/src/organisms/AdvancedSettings/EnableDevTools.tsx b/app/src/organisms/AdvancedSettings/EnableDevTools.tsx index 920f7b652c1..c117908913b 100644 --- a/app/src/organisms/AdvancedSettings/EnableDevTools.tsx +++ b/app/src/organisms/AdvancedSettings/EnableDevTools.tsx @@ -12,10 +12,10 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ToggleButton } from '../../atoms/buttons' -import { getDevtoolsEnabled, toggleDevtools } from '../../redux/config' +import { ToggleButton } from '/app/atoms/buttons' +import { getDevtoolsEnabled, toggleDevtools } from '/app/redux/config' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' export function EnableDevTools(): JSX.Element { const { t } = useTranslation('app_settings') diff --git a/app/src/organisms/AdvancedSettings/OT2AdvancedSettings.tsx b/app/src/organisms/AdvancedSettings/OT2AdvancedSettings.tsx index 80b05b36e9b..b0cb39caa1f 100644 --- a/app/src/organisms/AdvancedSettings/OT2AdvancedSettings.tsx +++ b/app/src/organisms/AdvancedSettings/OT2AdvancedSettings.tsx @@ -14,10 +14,10 @@ import { import { resetUseTrashSurfaceForTipCal, setUseTrashSurfaceForTipCal, -} from '../../redux/calibration' -import { getUseTrashSurfaceForTipCal } from '../../redux/config' +} from '/app/redux/calibration' +import { getUseTrashSurfaceForTipCal } from '/app/redux/config' -import type { Dispatch, State } from '../../redux/types' +import type { Dispatch, State } from '/app/redux/types' const ALWAYS_BLOCK: 'always-block' = 'always-block' const ALWAYS_TRASH: 'always-trash' = 'always-trash' diff --git a/app/src/organisms/AdvancedSettings/OverridePathToPython.tsx b/app/src/organisms/AdvancedSettings/OverridePathToPython.tsx index b3b3a1c2eaa..e8fdd2f9b92 100644 --- a/app/src/organisms/AdvancedSettings/OverridePathToPython.tsx +++ b/app/src/organisms/AdvancedSettings/OverridePathToPython.tsx @@ -16,18 +16,18 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { TertiaryButton } from '../../atoms/buttons' -import { getPathToPythonOverride, resetConfigValue } from '../../redux/config' +import { TertiaryButton } from '/app/atoms/buttons' +import { getPathToPythonOverride, resetConfigValue } from '/app/redux/config' import { openPythonInterpreterDirectory, changePythonPathOverrideConfig, -} from '../../redux/protocol-analysis' +} from '/app/redux/protocol-analysis' import { useTrackEvent, ANALYTICS_CHANGE_PATH_TO_PYTHON_DIRECTORY, -} from '../../redux/analytics' +} from '/app/redux/analytics' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' export function OverridePathToPython(): JSX.Element { const { t } = useTranslation(['app_settings', 'branded']) diff --git a/app/src/organisms/AdvancedSettings/PreventRobotCaching.tsx b/app/src/organisms/AdvancedSettings/PreventRobotCaching.tsx index 50361568904..b0429e50ae9 100644 --- a/app/src/organisms/AdvancedSettings/PreventRobotCaching.tsx +++ b/app/src/organisms/AdvancedSettings/PreventRobotCaching.tsx @@ -12,10 +12,10 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ToggleButton } from '../../atoms/buttons' -import { getConfig, toggleConfigValue } from '../../redux/config' +import { ToggleButton } from '/app/atoms/buttons' +import { getConfig, toggleConfigValue } from '/app/redux/config' -import type { Dispatch, State } from '../../redux/types' +import type { Dispatch, State } from '/app/redux/types' export function PreventRobotCaching(): JSX.Element { const { t } = useTranslation('app_settings') diff --git a/app/src/organisms/AdvancedSettings/ShowHeaterShakerAttachmentModal.tsx b/app/src/organisms/AdvancedSettings/ShowHeaterShakerAttachmentModal.tsx index 3598aa2d655..2883a1aba44 100644 --- a/app/src/organisms/AdvancedSettings/ShowHeaterShakerAttachmentModal.tsx +++ b/app/src/organisms/AdvancedSettings/ShowHeaterShakerAttachmentModal.tsx @@ -2,10 +2,7 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { useDispatch, useSelector } from 'react-redux' -import { - getIsHeaterShakerAttached, - updateConfigValue, -} from '../../redux/config' +import { getIsHeaterShakerAttached, updateConfigValue } from '/app/redux/config' import { ALIGN_CENTER, @@ -17,9 +14,9 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ToggleButton } from '../../atoms/buttons' +import { ToggleButton } from '/app/atoms/buttons' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' export function ShowHeaterShakerAttachmentModal(): JSX.Element { const { t } = useTranslation('app_settings') diff --git a/app/src/organisms/AdvancedSettings/ShowLabwareOffsetSnippets.tsx b/app/src/organisms/AdvancedSettings/ShowLabwareOffsetSnippets.tsx index b9f8e76df34..b0ec158a017 100644 --- a/app/src/organisms/AdvancedSettings/ShowLabwareOffsetSnippets.tsx +++ b/app/src/organisms/AdvancedSettings/ShowLabwareOffsetSnippets.tsx @@ -12,13 +12,13 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ToggleButton } from '../../atoms/buttons' +import { ToggleButton } from '/app/atoms/buttons' import { getIsLabwareOffsetCodeSnippetsOn, updateConfigValue, -} from '../../redux/config' +} from '/app/redux/config' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' export function ShowLabwareOffsetSnippets(): JSX.Element { const { t } = useTranslation(['app_settings', 'shared', 'branded']) diff --git a/app/src/organisms/AdvancedSettings/U2EInformation.tsx b/app/src/organisms/AdvancedSettings/U2EInformation.tsx index 32cd56f08b8..cfd1c59f5f0 100644 --- a/app/src/organisms/AdvancedSettings/U2EInformation.tsx +++ b/app/src/organisms/AdvancedSettings/U2EInformation.tsx @@ -15,14 +15,14 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import { getU2EAdapterDevice, getU2EWindowsDriverStatus, OUTDATED, -} from '../../redux/system-info' +} from '/app/redux/system-info' -import type { State } from '../../redux/types' +import type { State } from '/app/redux/types' const REALTEK_URL = 'https://www.realtek.com/en/' diff --git a/app/src/organisms/AdvancedSettings/UpdatedChannel.tsx b/app/src/organisms/AdvancedSettings/UpdatedChannel.tsx index 532a663428d..10cce14e67e 100644 --- a/app/src/organisms/AdvancedSettings/UpdatedChannel.tsx +++ b/app/src/organisms/AdvancedSettings/UpdatedChannel.tsx @@ -12,15 +12,15 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { SelectField } from '../../atoms/SelectField' +import { SelectField } from '/app/atoms/SelectField' import { getUpdateChannel, getUpdateChannelOptions, updateConfigValue, -} from '../../redux/config' +} from '/app/redux/config' -import type { SelectOption } from '../../atoms/SelectField/Select' -import type { Dispatch } from '../../redux/types' +import type { SelectOption } from '/app/atoms/SelectField/Select' +import type { Dispatch } from '/app/redux/types' export function UpdatedChannel(): JSX.Element { const { t } = useTranslation('app_settings') diff --git a/app/src/organisms/AdvancedSettings/__tests__/AdditionalCustomLabwareSourceFolder.test.tsx b/app/src/organisms/AdvancedSettings/__tests__/AdditionalCustomLabwareSourceFolder.test.tsx index 82583c017cf..59789b1c109 100644 --- a/app/src/organisms/AdvancedSettings/__tests__/AdditionalCustomLabwareSourceFolder.test.tsx +++ b/app/src/organisms/AdvancedSettings/__tests__/AdditionalCustomLabwareSourceFolder.test.tsx @@ -1,18 +1,18 @@ import * as React from 'react' import { describe, it, expect, vi, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { i18n } from '../../../i18n' -import { getCustomLabwareDirectory } from '../../../redux/custom-labware' +import { i18n } from '/app/i18n' +import { getCustomLabwareDirectory } from '/app/redux/custom-labware' import { useTrackEvent, ANALYTICS_CHANGE_CUSTOM_LABWARE_SOURCE_FOLDER, -} from '../../../redux/analytics' +} from '/app/redux/analytics' import { AdditionalCustomLabwareSourceFolder } from '../AdditionalCustomLabwareSourceFolder' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -vi.mock('../../../redux/custom-labware') -vi.mock('../../../redux/analytics') +vi.mock('/app/redux/custom-labware') +vi.mock('/app/redux/analytics') const render = () => { return renderWithProviders(, { diff --git a/app/src/organisms/AdvancedSettings/__tests__/ClearUnavailableRobots.test.tsx b/app/src/organisms/AdvancedSettings/__tests__/ClearUnavailableRobots.test.tsx index c90eab6f329..352f3516204 100644 --- a/app/src/organisms/AdvancedSettings/__tests__/ClearUnavailableRobots.test.tsx +++ b/app/src/organisms/AdvancedSettings/__tests__/ClearUnavailableRobots.test.tsx @@ -2,16 +2,13 @@ import * as React from 'react' import { screen, fireEvent } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import { useConditionalConfirm } from '@opentrons/components' -import { i18n } from '../../../i18n' -import { - getReachableRobots, - getUnreachableRobots, -} from '../../../redux/discovery' +import { i18n } from '/app/i18n' +import { getReachableRobots, getUnreachableRobots } from '/app/redux/discovery' import { mockReachableRobot, mockUnreachableRobot, -} from '../../../redux/discovery/__fixtures__' -import { renderWithProviders } from '../../../__testing-utils__' +} from '/app/redux/discovery/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' import { ClearUnavailableRobots } from '../ClearUnavailableRobots' import type * as OpentronsComponents from '@opentrons/components' @@ -30,7 +27,7 @@ vi.mock('@opentrons/components', async importOriginal => { } }) -vi.mock('../../../redux/discovery') +vi.mock('/app/redux/discovery') const render = () => { return renderWithProviders(, { diff --git a/app/src/organisms/AdvancedSettings/__tests__/EnableDevTools.test.tsx b/app/src/organisms/AdvancedSettings/__tests__/EnableDevTools.test.tsx index 81707fadcc7..5605b324688 100644 --- a/app/src/organisms/AdvancedSettings/__tests__/EnableDevTools.test.tsx +++ b/app/src/organisms/AdvancedSettings/__tests__/EnableDevTools.test.tsx @@ -2,12 +2,12 @@ import * as React from 'react' import { screen, fireEvent } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' -import { getDevtoolsEnabled, toggleDevtools } from '../../../redux/config' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { getDevtoolsEnabled, toggleDevtools } from '/app/redux/config' import { EnableDevTools } from '../EnableDevTools' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = () => { return renderWithProviders(, { diff --git a/app/src/organisms/AdvancedSettings/__tests__/OT2AdvancedSettings.test.tsx b/app/src/organisms/AdvancedSettings/__tests__/OT2AdvancedSettings.test.tsx index 70d8d67699b..6cfc5acd81f 100644 --- a/app/src/organisms/AdvancedSettings/__tests__/OT2AdvancedSettings.test.tsx +++ b/app/src/organisms/AdvancedSettings/__tests__/OT2AdvancedSettings.test.tsx @@ -2,18 +2,18 @@ import * as React from 'react' import { screen, fireEvent } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { resetUseTrashSurfaceForTipCal, setUseTrashSurfaceForTipCal, -} from '../../../redux/calibration' -import { getUseTrashSurfaceForTipCal } from '../../../redux/config' -import { renderWithProviders } from '../../../__testing-utils__' +} from '/app/redux/calibration' +import { getUseTrashSurfaceForTipCal } from '/app/redux/config' +import { renderWithProviders } from '/app/__testing-utils__' import { OT2AdvancedSettings } from '../OT2AdvancedSettings' -vi.mock('../../../redux/calibration') -vi.mock('../../../redux/config') +vi.mock('/app/redux/calibration') +vi.mock('/app/redux/config') const render = () => { return renderWithProviders(, { diff --git a/app/src/organisms/AdvancedSettings/__tests__/OverridePathToPython.test.tsx b/app/src/organisms/AdvancedSettings/__tests__/OverridePathToPython.test.tsx index 6a94076c68c..c7f001c73f0 100644 --- a/app/src/organisms/AdvancedSettings/__tests__/OverridePathToPython.test.tsx +++ b/app/src/organisms/AdvancedSettings/__tests__/OverridePathToPython.test.tsx @@ -2,20 +2,20 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' -import { getPathToPythonOverride } from '../../../redux/config' +import { i18n } from '/app/i18n' +import { getPathToPythonOverride } from '/app/redux/config' import { useTrackEvent, ANALYTICS_CHANGE_PATH_TO_PYTHON_DIRECTORY, -} from '../../../redux/analytics' -import { renderWithProviders } from '../../../__testing-utils__' -import { openPythonInterpreterDirectory } from '../../../redux/protocol-analysis' +} from '/app/redux/analytics' +import { renderWithProviders } from '/app/__testing-utils__' +import { openPythonInterpreterDirectory } from '/app/redux/protocol-analysis' import { OverridePathToPython } from '../OverridePathToPython' -vi.mock('../../../redux/config') -vi.mock('../../../redux/analytics') -vi.mock('../../../redux/protocol-analysis') +vi.mock('/app/redux/config') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/protocol-analysis') const render = () => { return ( diff --git a/app/src/organisms/AdvancedSettings/__tests__/PreventRobotCaching.test.tsx b/app/src/organisms/AdvancedSettings/__tests__/PreventRobotCaching.test.tsx index f088efd0f52..3fe5de32faf 100644 --- a/app/src/organisms/AdvancedSettings/__tests__/PreventRobotCaching.test.tsx +++ b/app/src/organisms/AdvancedSettings/__tests__/PreventRobotCaching.test.tsx @@ -3,15 +3,15 @@ import { when } from 'vitest-when' import { describe, it, expect, vi, beforeEach } from 'vitest' import { screen, fireEvent } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' -import { getConfig, toggleConfigValue } from '../../../redux/config' +import { getConfig, toggleConfigValue } from '/app/redux/config' import { PreventRobotCaching } from '../PreventRobotCaching' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const MOCK_STATE: State = { config: { diff --git a/app/src/organisms/AdvancedSettings/__tests__/ShowHeaterShakerAttachmentModal.test.tsx b/app/src/organisms/AdvancedSettings/__tests__/ShowHeaterShakerAttachmentModal.test.tsx index 3d64290093e..623ca64c493 100644 --- a/app/src/organisms/AdvancedSettings/__tests__/ShowHeaterShakerAttachmentModal.test.tsx +++ b/app/src/organisms/AdvancedSettings/__tests__/ShowHeaterShakerAttachmentModal.test.tsx @@ -1,15 +1,12 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' -import { - getIsHeaterShakerAttached, - updateConfigValue, -} from '../../../redux/config' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { getIsHeaterShakerAttached, updateConfigValue } from '/app/redux/config' +import { renderWithProviders } from '/app/__testing-utils__' import { ShowHeaterShakerAttachmentModal } from '../ShowHeaterShakerAttachmentModal' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = () => { return renderWithProviders(, { diff --git a/app/src/organisms/AdvancedSettings/__tests__/ShowLabwareOffsetSnippets.test.tsx b/app/src/organisms/AdvancedSettings/__tests__/ShowLabwareOffsetSnippets.test.tsx index 3353a497cc1..30eade7b245 100644 --- a/app/src/organisms/AdvancedSettings/__tests__/ShowLabwareOffsetSnippets.test.tsx +++ b/app/src/organisms/AdvancedSettings/__tests__/ShowLabwareOffsetSnippets.test.tsx @@ -1,15 +1,15 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { getIsLabwareOffsetCodeSnippetsOn, updateConfigValue, -} from '../../../redux/config' -import { renderWithProviders } from '../../../__testing-utils__' +} from '/app/redux/config' +import { renderWithProviders } from '/app/__testing-utils__' import { ShowLabwareOffsetSnippets } from '../ShowLabwareOffsetSnippets' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = () => { return ( diff --git a/app/src/organisms/AdvancedSettings/__tests__/U2EInformation.test.tsx b/app/src/organisms/AdvancedSettings/__tests__/U2EInformation.test.tsx index 01b5a80305d..2aa4a5a7858 100644 --- a/app/src/organisms/AdvancedSettings/__tests__/U2EInformation.test.tsx +++ b/app/src/organisms/AdvancedSettings/__tests__/U2EInformation.test.tsx @@ -1,20 +1,20 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { getU2EAdapterDevice, getU2EWindowsDriverStatus, NOT_APPLICABLE, OUTDATED, UP_TO_DATE, -} from '../../../redux/system-info' -import * as Fixtures from '../../../redux/system-info/__fixtures__' -import { renderWithProviders } from '../../../__testing-utils__' +} from '/app/redux/system-info' +import * as Fixtures from '/app/redux/system-info/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' import { U2EInformation } from '../U2EInformation' -vi.mock('../../../redux/system-info') +vi.mock('/app/redux/system-info') const render = () => { return renderWithProviders(, { diff --git a/app/src/organisms/AdvancedSettings/__tests__/UpdatedChannel.test.tsx b/app/src/organisms/AdvancedSettings/__tests__/UpdatedChannel.test.tsx index 666b1088283..84c3bf76438 100644 --- a/app/src/organisms/AdvancedSettings/__tests__/UpdatedChannel.test.tsx +++ b/app/src/organisms/AdvancedSettings/__tests__/UpdatedChannel.test.tsx @@ -1,16 +1,16 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { getUpdateChannelOptions, getUpdateChannel, // updateConfigValue, -} from '../../../redux/config' +} from '/app/redux/config' import { UpdatedChannel } from '../UpdatedChannel' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = () => { return renderWithProviders(, { i18nInstance: i18n }) diff --git a/app/src/organisms/Alerts/AlertsModal.tsx b/app/src/organisms/Alerts/AlertsModal.tsx index 956cc6d9293..2e9375f4ec8 100644 --- a/app/src/organisms/Alerts/AlertsModal.tsx +++ b/app/src/organisms/Alerts/AlertsModal.tsx @@ -4,16 +4,16 @@ import { useTranslation } from 'react-i18next' import head from 'lodash/head' import { SUCCESS_TOAST, WARNING_TOAST } from '@opentrons/components' -import * as AppAlerts from '../../redux/alerts' -import { getHasJustUpdated, toggleConfigValue } from '../../redux/config' -import { getAvailableShellUpdate } from '../../redux/shell' +import * as AppAlerts from '/app/redux/alerts' +import { getHasJustUpdated, toggleConfigValue } from '/app/redux/config' +import { getAvailableShellUpdate } from '/app/redux/shell' import { useToaster } from '../ToasterOven' import { UpdateAppModal } from '../UpdateAppModal' import { U2EDriverOutdatedAlert } from './U2EDriverOutdatedAlert' import { useRemoveActiveAppUpdateToast } from '.' -import type { State, Dispatch } from '../../redux/types' -import type { AlertId } from '../../redux/alerts/types' +import type { State, Dispatch } from '/app/redux/types' +import type { AlertId } from '/app/redux/alerts/types' import type { MutableRefObject } from 'react' interface AlertsModalProps { diff --git a/app/src/organisms/Alerts/U2EDriverOutdatedAlert.tsx b/app/src/organisms/Alerts/U2EDriverOutdatedAlert.tsx index f8880cfdbf3..5888fa19396 100644 --- a/app/src/organisms/Alerts/U2EDriverOutdatedAlert.tsx +++ b/app/src/organisms/Alerts/U2EDriverOutdatedAlert.tsx @@ -12,13 +12,13 @@ import { useTrackEvent, ANALYTICS_U2E_DRIVE_ALERT_DISMISSED, ANALYTICS_U2E_DRIVE_LINK_CLICKED, -} from '../../redux/analytics' +} from '/app/redux/analytics' import { U2E_DRIVER_UPDATE_URL, U2E_DRIVER_OUTDATED_MESSAGE, U2E_DRIVER_DESCRIPTION, U2E_DRIVER_OUTDATED_CTA, -} from '../../redux/system-info' +} from '/app/redux/system-info' import type { AlertProps } from './types' // TODO(mc, 2020-05-07): i18n diff --git a/app/src/organisms/AppSettings/ConnectRobotSlideout.tsx b/app/src/organisms/AppSettings/ConnectRobotSlideout.tsx index f919f535488..4e003d3f9cf 100644 --- a/app/src/organisms/AppSettings/ConnectRobotSlideout.tsx +++ b/app/src/organisms/AppSettings/ConnectRobotSlideout.tsx @@ -18,12 +18,12 @@ import { import { ManualIpHostnameForm } from './ManualIpHostnameForm' import { ManualIpHostnameList } from './ManualIpHostnameList' -import { Slideout } from '../../atoms/Slideout' -import { ExternalLink } from '../../atoms/Link/ExternalLink' -import { Divider } from '../../atoms/structure' -import { getScanning, startDiscovery } from '../../redux/discovery' +import { Slideout } from '/app/atoms/Slideout' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' +import { Divider } from '/app/atoms/structure' +import { getScanning, startDiscovery } from '/app/redux/discovery' -import type { Dispatch, State } from '../../redux/types' +import type { Dispatch, State } from '/app/redux/types' const SUPPORT_PAGE_LINK = 'https://support.opentrons.com/s/article/Manually-adding-a-robot-s-IP-address' diff --git a/app/src/organisms/AppSettings/FeatureFlags.tsx b/app/src/organisms/AppSettings/FeatureFlags.tsx index 0738d9f08d1..f53c5501056 100644 --- a/app/src/organisms/AppSettings/FeatureFlags.tsx +++ b/app/src/organisms/AppSettings/FeatureFlags.tsx @@ -10,12 +10,12 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Divider } from '../../atoms/structure' -import { ToggleButton } from '../../atoms/buttons' -import * as Config from '../../redux/config' +import { Divider } from '/app/atoms/structure' +import { ToggleButton } from '/app/atoms/buttons' +import * as Config from '/app/redux/config' -import type { DevInternalFlag } from '../../redux/config/types' -import type { Dispatch } from '../../redux/types' +import type { DevInternalFlag } from '/app/redux/config/types' +import type { Dispatch } from '/app/redux/types' export function FeatureFlags(): JSX.Element { const { t } = useTranslation('app_settings') diff --git a/app/src/organisms/AppSettings/ManualIpHostnameField.tsx b/app/src/organisms/AppSettings/ManualIpHostnameField.tsx index 6c2cb561e85..8d249518ae4 100644 --- a/app/src/organisms/AppSettings/ManualIpHostnameField.tsx +++ b/app/src/organisms/AppSettings/ManualIpHostnameField.tsx @@ -10,7 +10,7 @@ import { SPACING, } from '@opentrons/components' -import { TertiaryButton } from '../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' interface IpHostnameFieldProps { field: any diff --git a/app/src/organisms/AppSettings/ManualIpHostnameForm.tsx b/app/src/organisms/AppSettings/ManualIpHostnameForm.tsx index 7e99b2ab293..ab9119c7fcf 100644 --- a/app/src/organisms/AppSettings/ManualIpHostnameForm.tsx +++ b/app/src/organisms/AppSettings/ManualIpHostnameForm.tsx @@ -15,12 +15,12 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { TertiaryButton } from '../../atoms/buttons' -import { addManualIp } from '../../redux/config' -import { startDiscovery } from '../../redux/discovery' +import { TertiaryButton } from '/app/atoms/buttons' +import { addManualIp } from '/app/redux/config' +import { startDiscovery } from '/app/redux/discovery' import type { FieldError, Resolver } from 'react-hook-form' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' const FlexForm = styled.form` display: flex; diff --git a/app/src/organisms/AppSettings/ManualIpHostnameItem.tsx b/app/src/organisms/AppSettings/ManualIpHostnameItem.tsx index 1249bd58f51..70dc5797d64 100644 --- a/app/src/organisms/AppSettings/ManualIpHostnameItem.tsx +++ b/app/src/organisms/AppSettings/ManualIpHostnameItem.tsx @@ -14,7 +14,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { Divider } from '../../atoms/structure' +import { Divider } from '/app/atoms/structure' const IpItem = styled.div` flex: 1 1 auto; diff --git a/app/src/organisms/AppSettings/ManualIpHostnameList.tsx b/app/src/organisms/AppSettings/ManualIpHostnameList.tsx index 33f5cde1eab..f74675750ca 100644 --- a/app/src/organisms/AppSettings/ManualIpHostnameList.tsx +++ b/app/src/organisms/AppSettings/ManualIpHostnameList.tsx @@ -1,11 +1,11 @@ import * as React from 'react' import { useSelector, useDispatch } from 'react-redux' -import { getConfig, removeManualIp } from '../../redux/config' -import { getViewableRobots } from '../../redux/discovery' +import { getConfig, removeManualIp } from '/app/redux/config' +import { getViewableRobots } from '/app/redux/discovery' import { ManualIpHostnameItem } from './ManualIpHostnameItem' -import type { State, Dispatch } from '../../redux/types' +import type { State, Dispatch } from '/app/redux/types' interface IpHostnameListProps { mostRecentAddition: string | null diff --git a/app/src/organisms/AppSettings/PreviousVersionModal.tsx b/app/src/organisms/AppSettings/PreviousVersionModal.tsx index de0af38bcd3..81fece0fbdc 100644 --- a/app/src/organisms/AppSettings/PreviousVersionModal.tsx +++ b/app/src/organisms/AppSettings/PreviousVersionModal.tsx @@ -10,7 +10,7 @@ import { Modal, } from '@opentrons/components' -import { ExternalLink } from '../../atoms/Link/ExternalLink' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' export const UNINSTALL_APP_URL = 'https://support.opentrons.com/s/article/Uninstall-the-Opentrons-App' diff --git a/app/src/organisms/AppSettings/__tests__/ConnectRobotSlideout.test.tsx b/app/src/organisms/AppSettings/__tests__/ConnectRobotSlideout.test.tsx index 006eb52fd23..069a66dde38 100644 --- a/app/src/organisms/AppSettings/__tests__/ConnectRobotSlideout.test.tsx +++ b/app/src/organisms/AppSettings/__tests__/ConnectRobotSlideout.test.tsx @@ -2,14 +2,14 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' -import { getScanning, getViewableRobots } from '../../../redux/discovery' -import { getConfig } from '../../../redux/config' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { getScanning, getViewableRobots } from '/app/redux/discovery' +import { getConfig } from '/app/redux/config' +import { renderWithProviders } from '/app/__testing-utils__' import { ConnectRobotSlideout } from '../ConnectRobotSlideout' -vi.mock('../../../redux/discovery') -vi.mock('../../../redux/config') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/AppSettings/__tests__/PreviousVersionModal.test.tsx b/app/src/organisms/AppSettings/__tests__/PreviousVersionModal.test.tsx index 3202528f2ef..853bf6c2257 100644 --- a/app/src/organisms/AppSettings/__tests__/PreviousVersionModal.test.tsx +++ b/app/src/organisms/AppSettings/__tests__/PreviousVersionModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { PreviousVersionModal, UNINSTALL_APP_URL, diff --git a/app/src/organisms/ApplyHistoricOffsets/LabwareOffsetTable.tsx b/app/src/organisms/ApplyHistoricOffsets/LabwareOffsetTable.tsx index b14075a904a..7c5e6f53446 100644 --- a/app/src/organisms/ApplyHistoricOffsets/LabwareOffsetTable.tsx +++ b/app/src/organisms/ApplyHistoricOffsets/LabwareOffsetTable.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import styled from 'styled-components' import { useTranslation } from 'react-i18next' import { SPACING, TYPOGRAPHY, COLORS } from '@opentrons/components' -import { OffsetVector } from '../../molecules/OffsetVector' +import { OffsetVector } from '/app/molecules/OffsetVector' import { formatTimestamp } from '../Devices/utils' import { getDisplayLocation } from '../LabwarePositionCheck/utils/getDisplayLocation' import type { LabwareDefinition2 } from '@opentrons/shared-data' diff --git a/app/src/organisms/ApplyHistoricOffsets/__tests__/ApplyHistoricOffsets.test.tsx b/app/src/organisms/ApplyHistoricOffsets/__tests__/ApplyHistoricOffsets.test.tsx index f96a6f8df84..8a638843a68 100644 --- a/app/src/organisms/ApplyHistoricOffsets/__tests__/ApplyHistoricOffsets.test.tsx +++ b/app/src/organisms/ApplyHistoricOffsets/__tests__/ApplyHistoricOffsets.test.tsx @@ -4,18 +4,18 @@ import { describe, it, expect, vi } from 'vitest' import { opentrons96PcrAdapterV1, fixture96Plate } from '@opentrons/shared-data' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' -import { getIsLabwareOffsetCodeSnippetsOn } from '../../../redux/config' -import { getLabwareDefinitionsFromCommands } from '../../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { getIsLabwareOffsetCodeSnippetsOn } from '/app/redux/config' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import { ApplyHistoricOffsets } from '..' import type { LabwareDefinition2 } from '@opentrons/shared-data' import type { OffsetCandidate } from '../hooks/useOffsetCandidatesForAnalysis' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../../LabwarePositionCheck/utils/labware') -vi.mock('../../../molecules/Command/utils/getLabwareDefinitionsFromCommands') +vi.mock('/app/molecules/Command/utils/getLabwareDefinitionsFromCommands') const mockLabwareDef = fixture96Plate as LabwareDefinition2 const mockAdapterDef = opentrons96PcrAdapterV1 as LabwareDefinition2 diff --git a/app/src/organisms/ApplyHistoricOffsets/__tests__/LabwareOffsetTable.test.tsx b/app/src/organisms/ApplyHistoricOffsets/__tests__/LabwareOffsetTable.test.tsx index 89cd694ad30..742a5f7f50b 100644 --- a/app/src/organisms/ApplyHistoricOffsets/__tests__/LabwareOffsetTable.test.tsx +++ b/app/src/organisms/ApplyHistoricOffsets/__tests__/LabwareOffsetTable.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect } from 'vitest' import { fixture96Plate, fixtureTiprackAdapter } from '@opentrons/shared-data' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { LabwareOffsetTable } from '../LabwareOffsetTable' import type { LabwareDefinition2 } from '@opentrons/shared-data' import type { OffsetCandidate } from '../hooks/useOffsetCandidatesForAnalysis' diff --git a/app/src/organisms/ApplyHistoricOffsets/hooks/__tests__/useHistoricRunDetails.test.tsx b/app/src/organisms/ApplyHistoricOffsets/hooks/__tests__/useHistoricRunDetails.test.tsx index f7fb89db7e6..f43f72ce60b 100644 --- a/app/src/organisms/ApplyHistoricOffsets/hooks/__tests__/useHistoricRunDetails.test.tsx +++ b/app/src/organisms/ApplyHistoricOffsets/hooks/__tests__/useHistoricRunDetails.test.tsx @@ -3,14 +3,14 @@ import { describe, it, expect, vi } from 'vitest' import { when } from 'vitest-when' import { renderHook, waitFor } from '@testing-library/react' -import { useNotifyAllRunsQuery } from '../../../../resources/runs/useNotifyAllRunsQuery' +import { useNotifyAllRunsQuery } from '/app/resources/runs/useNotifyAllRunsQuery' import { useHistoricRunDetails } from '../useHistoricRunDetails' import { mockRunningRun } from '../../../RunTimeControl/__fixtures__' import { mockSuccessQueryResults } from '../../../../__fixtures__' import type { RunData } from '@opentrons/api-client' -vi.mock('../../../../resources/runs/useNotifyAllRunsQuery') +vi.mock('/app/resources/runs/useNotifyAllRunsQuery') const MOCK_RUN_LATER: RunData = { ...mockRunningRun, diff --git a/app/src/organisms/ApplyHistoricOffsets/hooks/__tests__/useOffsetCandidatesForAnalysis.test.tsx b/app/src/organisms/ApplyHistoricOffsets/hooks/__tests__/useOffsetCandidatesForAnalysis.test.tsx index 4ad6738c944..48cfcfb3f78 100644 --- a/app/src/organisms/ApplyHistoricOffsets/hooks/__tests__/useOffsetCandidatesForAnalysis.test.tsx +++ b/app/src/organisms/ApplyHistoricOffsets/hooks/__tests__/useOffsetCandidatesForAnalysis.test.tsx @@ -11,7 +11,7 @@ import { useAllHistoricOffsets } from '../useAllHistoricOffsets' import { getLabwareLocationCombos } from '../getLabwareLocationCombos' import { useOffsetCandidatesForAnalysis } from '../useOffsetCandidatesForAnalysis' -import { storedProtocolData as storedProtocolDataFixture } from '../../../../redux/protocol-storage/__fixtures__' +import { storedProtocolData as storedProtocolDataFixture } from '/app/redux/protocol-storage/__fixtures__' import type { LabwareDefinition2 } from '@opentrons/shared-data' import type { OffsetCandidate } from '../useOffsetCandidatesForAnalysis' @@ -19,8 +19,8 @@ import type { OffsetCandidate } from '../useOffsetCandidatesForAnalysis' vi.mock('../useAllHistoricOffsets') vi.mock('../getLabwareLocationCombos') vi.mock('@opentrons/shared-data') -vi.mock('../../../../resources/runs') -vi.mock('../../../../resources/useNotifyDataReady') +vi.mock('/app/resources/runs') +vi.mock('/app/resources/useNotifyDataReady') const mockLabwareDef = fixtureTiprack300ul as LabwareDefinition2 diff --git a/app/src/organisms/ApplyHistoricOffsets/hooks/useHistoricRunDetails.ts b/app/src/organisms/ApplyHistoricOffsets/hooks/useHistoricRunDetails.ts index c86e5b3df92..597f2129e42 100644 --- a/app/src/organisms/ApplyHistoricOffsets/hooks/useHistoricRunDetails.ts +++ b/app/src/organisms/ApplyHistoricOffsets/hooks/useHistoricRunDetails.ts @@ -1,4 +1,4 @@ -import { useNotifyAllRunsQuery } from '../../../resources/runs/useNotifyAllRunsQuery' +import { useNotifyAllRunsQuery } from '/app/resources/runs/useNotifyAllRunsQuery' import type { HostConfig, RunData } from '@opentrons/api-client' diff --git a/app/src/organisms/ApplyHistoricOffsets/index.tsx b/app/src/organisms/ApplyHistoricOffsets/index.tsx index 846ee9af827..3ef0af4256d 100644 --- a/app/src/organisms/ApplyHistoricOffsets/index.tsx +++ b/app/src/organisms/ApplyHistoricOffsets/index.tsx @@ -19,12 +19,12 @@ import { ModalShell, } from '@opentrons/components' import { getTopPortalEl } from '../../App/portal' -import { ExternalLink } from '../../atoms/Link/ExternalLink' -import { PythonLabwareOffsetSnippet } from '../../molecules/PythonLabwareOffsetSnippet' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' +import { PythonLabwareOffsetSnippet } from '/app/molecules/PythonLabwareOffsetSnippet' import { LabwareOffsetTabs } from '../LabwareOffsetTabs' -import { getLabwareDefinitionsFromCommands } from '../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import { LabwareOffsetTable } from './LabwareOffsetTable' -import { getIsLabwareOffsetCodeSnippetsOn } from '../../redux/config' +import { getIsLabwareOffsetCodeSnippetsOn } from '/app/redux/config' import type { LabwareOffset } from '@opentrons/api-client' import type { LoadedLabware, diff --git a/app/src/organisms/Breadcrumbs/__tests__/Breadcrumbs.test.tsx b/app/src/organisms/Breadcrumbs/__tests__/Breadcrumbs.test.tsx index bd06ebcd9df..1f79e4ed585 100644 --- a/app/src/organisms/Breadcrumbs/__tests__/Breadcrumbs.test.tsx +++ b/app/src/organisms/Breadcrumbs/__tests__/Breadcrumbs.test.tsx @@ -5,25 +5,25 @@ import { describe, it, expect, beforeEach, vi } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { useRobot, useRunCreatedAtTimestamp, -} from '../../../organisms/Devices/hooks' -import { getProtocolDisplayName } from '../../../organisms/ProtocolsLanding/utils' -import { getIsOnDevice } from '../../../redux/config' -import { renderWithProviders } from '../../../__testing-utils__' -import { mockConnectableRobot } from '../../../redux/discovery/__fixtures__' -import { getStoredProtocol } from '../../../redux/protocol-storage' -import { storedProtocolData as storedProtocolDataFixture } from '../../../redux/protocol-storage/__fixtures__' +} from '/app/organisms/Devices/hooks' +import { getProtocolDisplayName } from '/app/organisms/ProtocolsLanding/utils' +import { getIsOnDevice } from '/app/redux/config' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' +import { getStoredProtocol } from '/app/redux/protocol-storage' +import { storedProtocolData as storedProtocolDataFixture } from '/app/redux/protocol-storage/__fixtures__' import { Breadcrumbs } from '..' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../organisms/Devices/hooks') -vi.mock('../../../organisms/ProtocolsLanding/utils') -vi.mock('../../../redux/config') -vi.mock('../../../redux/protocol-storage') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/organisms/ProtocolsLanding/utils') +vi.mock('/app/redux/config') +vi.mock('/app/redux/protocol-storage') const ROBOT_NAME = 'otie' const RUN_ID = '95e67900-bc9f-4fbf-92c6-cc4d7226a51b' diff --git a/app/src/organisms/Breadcrumbs/index.tsx b/app/src/organisms/Breadcrumbs/index.tsx index e760cf8beb4..af84a02096e 100644 --- a/app/src/organisms/Breadcrumbs/index.tsx +++ b/app/src/organisms/Breadcrumbs/index.tsx @@ -21,15 +21,15 @@ import { ApiHostProvider } from '@opentrons/react-api-client' import { useRobot, useRunCreatedAtTimestamp, -} from '../../organisms/Devices/hooks' -import { getProtocolDisplayName } from '../../organisms/ProtocolsLanding/utils' -import { getIsOnDevice } from '../../redux/config' -import { OPENTRONS_USB } from '../../redux/discovery' -import { getStoredProtocol } from '../../redux/protocol-storage' -import { appShellRequestor } from '../../redux/shell/remote' +} from '/app/organisms/Devices/hooks' +import { getProtocolDisplayName } from '/app/organisms/ProtocolsLanding/utils' +import { getIsOnDevice } from '/app/redux/config' +import { OPENTRONS_USB } from '/app/redux/discovery' +import { getStoredProtocol } from '/app/redux/protocol-storage' +import { appShellRequestor } from '/app/redux/shell/remote' import type { DesktopRouteParams } from '../../App/types' -import type { State } from '../../redux/types' +import type { State } from '/app/redux/types' interface CrumbNameProps { crumbName: string diff --git a/app/src/organisms/CalibrateDeck/__tests__/CalibrateDeck.test.tsx b/app/src/organisms/CalibrateDeck/__tests__/CalibrateDeck.test.tsx index 797cd700c7f..fe899c601fd 100644 --- a/app/src/organisms/CalibrateDeck/__tests__/CalibrateDeck.test.tsx +++ b/app/src/organisms/CalibrateDeck/__tests__/CalibrateDeck.test.tsx @@ -2,20 +2,20 @@ import * as React from 'react' import { vi, describe, beforeEach, expect, it } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { getDeckDefinitions } from '@opentrons/shared-data' -import { i18n } from '../../../i18n' -import * as Sessions from '../../../redux/sessions' -import { mockDeckCalibrationSessionAttributes } from '../../../redux/sessions/__fixtures__' +import { i18n } from '/app/i18n' +import * as Sessions from '/app/redux/sessions' +import { mockDeckCalibrationSessionAttributes } from '/app/redux/sessions/__fixtures__' import { CalibrateDeck } from '../index' -import type { DeckCalibrationStep } from '../../../redux/sessions/types' -import type { DispatchRequestsType } from '../../../redux/robot-api' +import type { DeckCalibrationStep } from '/app/redux/sessions/types' +import type { DispatchRequestsType } from '/app/redux/robot-api' -vi.mock('../../../redux/sessions/selectors') -vi.mock('../../../redux/robot-api/selectors') -vi.mock('../../../redux/config') +vi.mock('/app/redux/sessions/selectors') +vi.mock('/app/redux/robot-api/selectors') +vi.mock('/app/redux/config') vi.mock('@opentrons/shared-data', async importOriginal => { const actual = await importOriginal() return { diff --git a/app/src/organisms/CalibrateDeck/index.tsx b/app/src/organisms/CalibrateDeck/index.tsx index 56dcb31dcf2..51fc36eb8d8 100644 --- a/app/src/organisms/CalibrateDeck/index.tsx +++ b/app/src/organisms/CalibrateDeck/index.tsx @@ -8,7 +8,7 @@ import { useHost } from '@opentrons/react-api-client' import { getPipetteModelSpecs } from '@opentrons/shared-data' import { useConditionalConfirm, ModalShell } from '@opentrons/components' -import * as Sessions from '../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { Introduction, DeckSetup, @@ -19,8 +19,8 @@ import { ConfirmExit, LoadingState, CompleteConfirmation, -} from '../../organisms/CalibrationPanels' -import { WizardHeader } from '../../molecules/WizardHeader' +} from '/app/organisms/CalibrationPanels' +import { WizardHeader } from '/app/molecules/WizardHeader' import { getTopPortalEl } from '../../App/portal' import type { Mount } from '@opentrons/components' @@ -28,8 +28,8 @@ import type { CalibrationLabware, CalibrationSessionStep, SessionCommandParams, -} from '../../redux/sessions/types' -import type { CalibrationPanelProps } from '../../organisms/CalibrationPanels/types' +} from '/app/redux/sessions/types' +import type { CalibrationPanelProps } from '/app/organisms/CalibrationPanels/types' import type { CalibrateDeckParentProps } from './types' const PANEL_BY_STEP: Partial< diff --git a/app/src/organisms/CalibrateDeck/types.ts b/app/src/organisms/CalibrateDeck/types.ts index 52467a1726d..7905c0b6e22 100644 --- a/app/src/organisms/CalibrateDeck/types.ts +++ b/app/src/organisms/CalibrateDeck/types.ts @@ -1,6 +1,6 @@ -import type { DispatchRequestsType } from '../../redux/robot-api' +import type { DispatchRequestsType } from '/app/redux/robot-api' import type { MutableRefObject } from 'react' -import type { DeckCalibrationSession } from '../../redux/sessions/types' +import type { DeckCalibrationSession } from '/app/redux/sessions/types' export interface CalibrateDeckParentProps { robotName: string session: DeckCalibrationSession | null diff --git a/app/src/organisms/CalibratePipetteOffset/__tests__/CalibratePipetteOffset.test.tsx b/app/src/organisms/CalibratePipetteOffset/__tests__/CalibratePipetteOffset.test.tsx index a4ea115fa73..a5eaae716ff 100644 --- a/app/src/organisms/CalibratePipetteOffset/__tests__/CalibratePipetteOffset.test.tsx +++ b/app/src/organisms/CalibratePipetteOffset/__tests__/CalibratePipetteOffset.test.tsx @@ -3,13 +3,13 @@ import { vi, it, describe, expect, beforeEach } from 'vitest' import { when } from 'vitest-when' import { fireEvent, screen } from '@testing-library/react' import { getDeckDefinitions } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import * as Sessions from '../../../redux/sessions' -import { mockPipetteOffsetCalibrationSessionAttributes } from '../../../redux/sessions/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import * as Sessions from '/app/redux/sessions' +import { mockPipetteOffsetCalibrationSessionAttributes } from '/app/redux/sessions/__fixtures__' import { CalibratePipetteOffset } from '../index' -import type { PipetteOffsetCalibrationStep } from '../../../redux/sessions/types' -import type { DispatchRequestsType } from '../../../redux/robot-api' +import type { PipetteOffsetCalibrationStep } from '/app/redux/sessions/types' +import type { DispatchRequestsType } from '/app/redux/robot-api' vi.mock('@opentrons/shared-data', async importOriginal => { const actual = await importOriginal() @@ -18,9 +18,9 @@ vi.mock('@opentrons/shared-data', async importOriginal => { getDeckDefinitions: vi.fn(), } }) -vi.mock('../../../redux/sessions/selectors') -vi.mock('../../../redux/robot-api/selectors') -vi.mock('../../../redux/config') +vi.mock('/app/redux/sessions/selectors') +vi.mock('/app/redux/robot-api/selectors') +vi.mock('/app/redux/config') interface CalibratePipetteOffsetSpec { heading: string diff --git a/app/src/organisms/CalibratePipetteOffset/index.tsx b/app/src/organisms/CalibratePipetteOffset/index.tsx index a945a856ef7..b2e67debd28 100644 --- a/app/src/organisms/CalibratePipetteOffset/index.tsx +++ b/app/src/organisms/CalibratePipetteOffset/index.tsx @@ -8,7 +8,7 @@ import { useHost } from '@opentrons/react-api-client' import { getPipetteModelSpecs } from '@opentrons/shared-data' import { useConditionalConfirm, ModalShell } from '@opentrons/components' -import * as Sessions from '../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { Introduction, DeckSetup, @@ -19,8 +19,8 @@ import { ConfirmExit, LoadingState, CompleteConfirmation, -} from '../../organisms/CalibrationPanels' -import { WizardHeader } from '../../molecules/WizardHeader' +} from '/app/organisms/CalibrationPanels' +import { WizardHeader } from '/app/molecules/WizardHeader' import { getTopPortalEl } from '../../App/portal' import type { Mount } from '@opentrons/components' @@ -28,9 +28,9 @@ import type { CalibrationLabware, CalibrationSessionStep, SessionCommandParams, -} from '../../redux/sessions/types' +} from '/app/redux/sessions/types' import type { CalibratePipetteOffsetParentProps } from './types' -import type { CalibrationPanelProps } from '../../organisms/CalibrationPanels/types' +import type { CalibrationPanelProps } from '/app/organisms/CalibrationPanels/types' const PANEL_BY_STEP: Partial< Record> diff --git a/app/src/organisms/CalibratePipetteOffset/types.ts b/app/src/organisms/CalibratePipetteOffset/types.ts index 39df36d6ca5..fcdb0ba4d08 100644 --- a/app/src/organisms/CalibratePipetteOffset/types.ts +++ b/app/src/organisms/CalibratePipetteOffset/types.ts @@ -2,10 +2,10 @@ import type { SessionCommandParams, PipetteOffsetCalibrationSession, CalibrationLabware, -} from '../../redux/sessions/types' +} from '/app/redux/sessions/types' -import type { PipetteOffsetCalibrationStep } from '../../redux/sessions/pipette-offset-calibration/types' -import type { DispatchRequestsType } from '../../redux/robot-api' +import type { PipetteOffsetCalibrationStep } from '/app/redux/sessions/pipette-offset-calibration/types' +import type { DispatchRequestsType } from '/app/redux/robot-api' export interface CalibratePipetteOffsetParentProps { robotName: string diff --git a/app/src/organisms/CalibratePipetteOffset/useCalibratePipetteOffset.tsx b/app/src/organisms/CalibratePipetteOffset/useCalibratePipetteOffset.tsx index 2f34ea51af0..2759c30021d 100644 --- a/app/src/organisms/CalibratePipetteOffset/useCalibratePipetteOffset.tsx +++ b/app/src/organisms/CalibratePipetteOffset/useCalibratePipetteOffset.tsx @@ -4,21 +4,21 @@ import { useSelector, useDispatch } from 'react-redux' import { SpinnerModalPage } from '@opentrons/components' -import * as RobotApi from '../../redux/robot-api' -import * as Sessions from '../../redux/sessions' -import { getPipetteOffsetCalibrationSession } from '../../redux/sessions/pipette-offset-calibration/selectors' +import * as RobotApi from '/app/redux/robot-api' +import * as Sessions from '/app/redux/sessions' +import { getPipetteOffsetCalibrationSession } from '/app/redux/sessions/pipette-offset-calibration/selectors' -import type { State } from '../../redux/types' +import type { State } from '/app/redux/types' import type { SessionCommandString, PipetteOffsetCalibrationSession, PipetteOffsetCalibrationSessionParams, -} from '../../redux/sessions/types' -import type { RequestState } from '../../redux/robot-api/types' +} from '/app/redux/sessions/types' +import type { RequestState } from '/app/redux/robot-api/types' import { getTopPortalEl } from '../../App/portal' import { CalibratePipetteOffset } from '.' -import { pipetteOffsetCalibrationStarted } from '../../redux/analytics' +import { pipetteOffsetCalibrationStarted } from '/app/redux/analytics' import { useTranslation } from 'react-i18next' // pipette calibration commands for which the full page spinner should not appear diff --git a/app/src/organisms/CalibrateTipLength/AskForCalibrationBlockModal.tsx b/app/src/organisms/CalibrateTipLength/AskForCalibrationBlockModal.tsx index 1269104cec4..0bca9a6aac3 100644 --- a/app/src/organisms/CalibrateTipLength/AskForCalibrationBlockModal.tsx +++ b/app/src/organisms/CalibrateTipLength/AskForCalibrationBlockModal.tsx @@ -19,12 +19,12 @@ import { import { useDispatch } from 'react-redux' import styles from './styles.module.css' -import { labwareImages } from '../../organisms/CalibrationPanels/labwareImages' -import { WizardHeader } from '../../molecules/WizardHeader' +import { labwareImages } from '/app/organisms/CalibrationPanels/labwareImages' +import { WizardHeader } from '/app/molecules/WizardHeader' import { getTopPortalEl } from '../../App/portal' -import { setUseTrashSurfaceForTipCal } from '../../redux/calibration' +import { setUseTrashSurfaceForTipCal } from '/app/redux/calibration' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' const BLOCK_REQUEST_EMAIL_BODY = '• Full name\n• Company or institution name\n• Shipping address\n• VAT ID (if outside the US)' diff --git a/app/src/organisms/CalibrateTipLength/__tests__/AskForCalibrationBlockModal.test.tsx b/app/src/organisms/CalibrateTipLength/__tests__/AskForCalibrationBlockModal.test.tsx index 7d1b87f1fcb..5c9e4fac976 100644 --- a/app/src/organisms/CalibrateTipLength/__tests__/AskForCalibrationBlockModal.test.tsx +++ b/app/src/organisms/CalibrateTipLength/__tests__/AskForCalibrationBlockModal.test.tsx @@ -1,10 +1,10 @@ import * as React from 'react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../i18n' -import { setUseTrashSurfaceForTipCal } from '../../../redux/calibration' +import { i18n } from '/app/i18n' +import { setUseTrashSurfaceForTipCal } from '/app/redux/calibration' import { AskForCalibrationBlockModal } from '../AskForCalibrationBlockModal' import { fireEvent, screen } from '@testing-library/react' diff --git a/app/src/organisms/CalibrateTipLength/__tests__/CalibrateTipLength.test.tsx b/app/src/organisms/CalibrateTipLength/__tests__/CalibrateTipLength.test.tsx index 40da64ff3bc..babf1c2e9d0 100644 --- a/app/src/organisms/CalibrateTipLength/__tests__/CalibrateTipLength.test.tsx +++ b/app/src/organisms/CalibrateTipLength/__tests__/CalibrateTipLength.test.tsx @@ -3,15 +3,15 @@ import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { getDeckDefinitions } from '@opentrons/shared-data' -import { i18n } from '../../../i18n' -import * as Sessions from '../../../redux/sessions' -import { mockTipLengthCalibrationSessionAttributes } from '../../../redux/sessions/__fixtures__' +import { i18n } from '/app/i18n' +import * as Sessions from '/app/redux/sessions' +import { mockTipLengthCalibrationSessionAttributes } from '/app/redux/sessions/__fixtures__' import { CalibrateTipLength } from '../index' -import type { TipLengthCalibrationStep } from '../../../redux/sessions/types' +import type { TipLengthCalibrationStep } from '/app/redux/sessions/types' vi.mock('@opentrons/shared-data', async importOriginal => { const actual = await importOriginal() @@ -20,9 +20,9 @@ vi.mock('@opentrons/shared-data', async importOriginal => { getDeckDefinitions: vi.fn(), } }) -vi.mock('../../../redux/sessions/selectors') -vi.mock('../../../redux/robot-api/selectors') -vi.mock('../../../redux/config') +vi.mock('/app/redux/sessions/selectors') +vi.mock('/app/redux/robot-api/selectors') +vi.mock('/app/redux/config') interface CalibrateTipLengthSpec { heading: string diff --git a/app/src/organisms/CalibrateTipLength/index.tsx b/app/src/organisms/CalibrateTipLength/index.tsx index 3fc318d91a1..405aabec969 100644 --- a/app/src/organisms/CalibrateTipLength/index.tsx +++ b/app/src/organisms/CalibrateTipLength/index.tsx @@ -9,7 +9,7 @@ import { useHost } from '@opentrons/react-api-client' import { getPipetteModelSpecs } from '@opentrons/shared-data' import { useConditionalConfirm, ModalShell } from '@opentrons/components' -import * as Sessions from '../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { Introduction, DeckSetup, @@ -20,20 +20,20 @@ import { ConfirmExit, LoadingState, CompleteConfirmation, -} from '../../organisms/CalibrationPanels' -import { WizardHeader } from '../../molecules/WizardHeader' +} from '/app/organisms/CalibrationPanels' +import { WizardHeader } from '/app/molecules/WizardHeader' import { getTopPortalEl } from '../../App/portal' -import slotOneRemoveBlockAsset from '../../assets/videos/tip-length-cal/Slot_1_Remove_CalBlock_(330x260)REV1.webm' -import slotThreeRemoveBlockAsset from '../../assets/videos/tip-length-cal/Slot_3_Remove_CalBlock_(330x260)REV1.webm' +import slotOneRemoveBlockAsset from '/app/assets/videos/tip-length-cal/Slot_1_Remove_CalBlock_(330x260)REV1.webm' +import slotThreeRemoveBlockAsset from '/app/assets/videos/tip-length-cal/Slot_3_Remove_CalBlock_(330x260)REV1.webm' import type { Mount } from '@opentrons/components' import type { SessionCommandParams, CalibrationLabware, CalibrationSessionStep, -} from '../../redux/sessions/types' -import type { CalibrationPanelProps } from '../../organisms/CalibrationPanels/types' +} from '/app/redux/sessions/types' +import type { CalibrationPanelProps } from '/app/organisms/CalibrationPanels/types' import type { CalibrateTipLengthParentProps } from './types' export { AskForCalibrationBlockModal } from './AskForCalibrationBlockModal' diff --git a/app/src/organisms/CalibrateTipLength/types.ts b/app/src/organisms/CalibrateTipLength/types.ts index 829793ed8be..983bfcb13d6 100644 --- a/app/src/organisms/CalibrateTipLength/types.ts +++ b/app/src/organisms/CalibrateTipLength/types.ts @@ -1,5 +1,5 @@ -import type { DispatchRequestsType } from '../../redux/robot-api' -import type { TipLengthCalibrationSession } from '../../redux/sessions/types' +import type { DispatchRequestsType } from '/app/redux/robot-api' +import type { TipLengthCalibrationSession } from '/app/redux/sessions/types' export interface CalibrateTipLengthParentProps { robotName: string diff --git a/app/src/organisms/CalibrationPanels/ChooseTipRack.tsx b/app/src/organisms/CalibrationPanels/ChooseTipRack.tsx index 354b5d1b099..7a09addeb70 100644 --- a/app/src/organisms/CalibrationPanels/ChooseTipRack.tsx +++ b/app/src/organisms/CalibrationPanels/ChooseTipRack.tsx @@ -18,25 +18,25 @@ import { } from '@opentrons/components' import { usePipettesQuery } from '@opentrons/react-api-client' import { getLabwareDefURI } from '@opentrons/shared-data' -import { getCustomTipRackDefinitions } from '../../redux/custom-labware' +import { getCustomTipRackDefinitions } from '/app/redux/custom-labware' import { getCalibrationForPipette, getTipLengthCalibrations, getTipLengthForPipetteAndTiprack, -} from '../../redux/calibration/' -import { Select } from '../../atoms/SelectField/Select' -import { Banner } from '../../atoms/Banner' -import { Divider } from '../../atoms/structure' +} from '/app/redux/calibration/' +import { Select } from '/app/atoms/SelectField/Select' +import { Banner } from '/app/atoms/Banner' +import { Divider } from '/app/atoms/structure' import { NeedHelpLink } from './NeedHelpLink' import { ChosenTipRackRender } from './ChosenTipRackRender' import type { MultiValue, SingleValue } from 'react-select' import type { LabwareDefinition2 } from '@opentrons/shared-data' import type { SelectOption, SelectOptionOrGroup } from '@opentrons/components' -import type { CalibrationLabware } from '../../redux/sessions/types' -import type { State } from '../../redux/types' -import type { Mount } from '../../redux/pipettes/types' -import type { TipLengthCalibration } from '../../redux/calibration/api-types' +import type { CalibrationLabware } from '/app/redux/sessions/types' +import type { State } from '/app/redux/types' +import type { Mount } from '/app/redux/pipettes/types' +import type { TipLengthCalibration } from '/app/redux/calibration/api-types' interface TipRackInfo { definition: LabwareDefinition2 diff --git a/app/src/organisms/CalibrationPanels/DeckSetup.tsx b/app/src/organisms/CalibrationPanels/DeckSetup.tsx index 4acab16ded8..230b0456161 100644 --- a/app/src/organisms/CalibrationPanels/DeckSetup.tsx +++ b/app/src/organisms/CalibrationPanels/DeckSetup.tsx @@ -18,7 +18,7 @@ import { getLabwareDisplayName, getPositionFromSlotId, } from '@opentrons/shared-data' -import * as Sessions from '../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { NeedHelpLink } from './NeedHelpLink' import { CalibrationLabwareRender } from './CalibrationLabwareRender' diff --git a/app/src/organisms/CalibrationPanels/Introduction/Body.tsx b/app/src/organisms/CalibrationPanels/Introduction/Body.tsx index 5ad643dd412..410e6d02423 100644 --- a/app/src/organisms/CalibrationPanels/Introduction/Body.tsx +++ b/app/src/organisms/CalibrationPanels/Introduction/Body.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { Trans, useTranslation } from 'react-i18next' import { LegacyStyledText } from '@opentrons/components' -import * as Sessions from '../../../redux/sessions' +import * as Sessions from '/app/redux/sessions' -import type { SessionType } from '../../../redux/sessions/types' +import type { SessionType } from '/app/redux/sessions/types' interface BodyProps { sessionType: SessionType diff --git a/app/src/organisms/CalibrationPanels/Introduction/InvalidationWarning.tsx b/app/src/organisms/CalibrationPanels/Introduction/InvalidationWarning.tsx index 95c345e45fd..fd047275c46 100644 --- a/app/src/organisms/CalibrationPanels/Introduction/InvalidationWarning.tsx +++ b/app/src/organisms/CalibrationPanels/Introduction/InvalidationWarning.tsx @@ -6,8 +6,8 @@ import { LegacyStyledText, } from '@opentrons/components' import { useTranslation } from 'react-i18next' -import { Banner } from '../../../atoms/Banner' -import * as Sessions from '../../../redux/sessions' +import { Banner } from '/app/atoms/Banner' +import * as Sessions from '/app/redux/sessions' interface InvalidationWarningProps { sessionType: diff --git a/app/src/organisms/CalibrationPanels/Introduction/__tests__/Body.test.tsx b/app/src/organisms/CalibrationPanels/Introduction/__tests__/Body.test.tsx index b201352a3db..5de8c58d35c 100644 --- a/app/src/organisms/CalibrationPanels/Introduction/__tests__/Body.test.tsx +++ b/app/src/organisms/CalibrationPanels/Introduction/__tests__/Body.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { it, describe } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import * as Sessions from '../../../../redux/sessions' +import { renderWithProviders } from '/app/__testing-utils__' +import * as Sessions from '/app/redux/sessions' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { Body } from '../Body' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/CalibrationPanels/Introduction/__tests__/Introduction.test.tsx b/app/src/organisms/CalibrationPanels/Introduction/__tests__/Introduction.test.tsx index 408d4602466..a5f0f6b59c0 100644 --- a/app/src/organisms/CalibrationPanels/Introduction/__tests__/Introduction.test.tsx +++ b/app/src/organisms/CalibrationPanels/Introduction/__tests__/Introduction.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { vi, it, expect, describe, beforeEach, afterEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { mockCalibrationCheckLabware } from '../../../../redux/sessions/__fixtures__' -import * as Sessions from '../../../../redux/sessions' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockCalibrationCheckLabware } from '/app/redux/sessions/__fixtures__' +import * as Sessions from '/app/redux/sessions' +import { i18n } from '/app/i18n' import { Introduction } from '../' import { ChooseTipRack } from '../../ChooseTipRack' diff --git a/app/src/organisms/CalibrationPanels/Introduction/__tests__/InvalidationWarning.test.tsx b/app/src/organisms/CalibrationPanels/Introduction/__tests__/InvalidationWarning.test.tsx index 6ca5eb3340f..da55d8a6b26 100644 --- a/app/src/organisms/CalibrationPanels/Introduction/__tests__/InvalidationWarning.test.tsx +++ b/app/src/organisms/CalibrationPanels/Introduction/__tests__/InvalidationWarning.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { it, describe } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { InvalidationWarning } from '../InvalidationWarning' const render = (sessionType: 'tipLengthCalibration' | 'deckCalibration') => { diff --git a/app/src/organisms/CalibrationPanels/Introduction/index.tsx b/app/src/organisms/CalibrationPanels/Introduction/index.tsx index c72ef897af8..1f5f85dbd16 100644 --- a/app/src/organisms/CalibrationPanels/Introduction/index.tsx +++ b/app/src/organisms/CalibrationPanels/Introduction/index.tsx @@ -12,12 +12,12 @@ import { LegacyStyledText, } from '@opentrons/components' -import * as Sessions from '../../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { NeedHelpLink } from '../NeedHelpLink' import { ChooseTipRack } from '../ChooseTipRack' import { TRASH_BIN_LOAD_NAME } from '../constants' -import { WizardRequiredEquipmentList } from '../../../molecules/WizardRequiredEquipmentList' +import { WizardRequiredEquipmentList } from '/app/molecules/WizardRequiredEquipmentList' import { Body } from './Body' import { InvalidationWarning } from './InvalidationWarning' diff --git a/app/src/organisms/CalibrationPanels/MeasureNozzle.tsx b/app/src/organisms/CalibrationPanels/MeasureNozzle.tsx index c0a16f60719..34afa5d7fd2 100644 --- a/app/src/organisms/CalibrationPanels/MeasureNozzle.tsx +++ b/app/src/organisms/CalibrationPanels/MeasureNozzle.tsx @@ -18,26 +18,26 @@ import { JogControls, SMALL_STEP_SIZE_MM, MEDIUM_STEP_SIZE_MM, -} from '../../molecules/JogControls' -import * as Sessions from '../../redux/sessions' -import type { Axis, Sign, StepSize } from '../../molecules/JogControls/types' +} from '/app/molecules/JogControls' +import * as Sessions from '/app/redux/sessions' +import type { Axis, Sign, StepSize } from '/app/molecules/JogControls/types' import type { CalibrationPanelProps } from './types' import { NeedHelpLink } from './NeedHelpLink' import { useConfirmCrashRecovery } from './useConfirmCrashRecovery' import { formatJogVector } from './utils' -import leftMultiBlockAssetTLC from '../../assets/videos/tip-length-cal/Left_Multi_CalBlock_NO_TIP_(330x260)REV1.webm' -import leftMultiTrashAsset from '../../assets/videos/tip-length-cal/Left_Multi_Trash_NO_TIP_(330x260)REV1.webm' -import leftSingleBlockAssetTLC from '../../assets/videos/tip-length-cal/Left_Single_CalBlock_NO_TIP_(330x260)REV1.webm' -import leftSingleTrashAsset from '../../assets/videos/tip-length-cal/Left_Single_Trash_NO_TIP_(330x260)REV1.webm' -import rightMultiBlockAssetTLC from '../../assets/videos/tip-length-cal/Right_Multi_CalBlock_NO_TIP_(330x260)REV1.webm' -import rightMultiTrashAsset from '../../assets/videos/tip-length-cal/Right_Multi_Trash_NO_TIP_(330x260)REV1.webm' -import rightSingleBlockAssetTLC from '../../assets/videos/tip-length-cal/Right_Single_CalBlock_NO_TIP_(330x260)REV1.webm' -import rightSingleTrashAsset from '../../assets/videos/tip-length-cal/Right_Single_Trash_NO_TIP_(330x260)REV1.webm' -import leftMultiBlockAssetHealth from '../../assets/videos/health-check/Left_Multi_CalBlock_NO_TIP_(330x260)REV2.webm' -import rightMultiBlockAssetHealth from '../../assets/videos/health-check/Right_Multi_CalBlock_NO_TIP_(330x260)REV2.webm' -import leftSingleBlockAssetHealth from '../../assets/videos/health-check/Left_Single_CalBlock_NO_TIP_(330x260)REV2.webm' -import rightSingleBlockAssetHealth from '../../assets/videos/health-check/Right_Single_CalBlock_NO_TIP_(330x260)REV2.webm' +import leftMultiBlockAssetTLC from '/app/assets/videos/tip-length-cal/Left_Multi_CalBlock_NO_TIP_(330x260)REV1.webm' +import leftMultiTrashAsset from '/app/assets/videos/tip-length-cal/Left_Multi_Trash_NO_TIP_(330x260)REV1.webm' +import leftSingleBlockAssetTLC from '/app/assets/videos/tip-length-cal/Left_Single_CalBlock_NO_TIP_(330x260)REV1.webm' +import leftSingleTrashAsset from '/app/assets/videos/tip-length-cal/Left_Single_Trash_NO_TIP_(330x260)REV1.webm' +import rightMultiBlockAssetTLC from '/app/assets/videos/tip-length-cal/Right_Multi_CalBlock_NO_TIP_(330x260)REV1.webm' +import rightMultiTrashAsset from '/app/assets/videos/tip-length-cal/Right_Multi_Trash_NO_TIP_(330x260)REV1.webm' +import rightSingleBlockAssetTLC from '/app/assets/videos/tip-length-cal/Right_Single_CalBlock_NO_TIP_(330x260)REV1.webm' +import rightSingleTrashAsset from '/app/assets/videos/tip-length-cal/Right_Single_Trash_NO_TIP_(330x260)REV1.webm' +import leftMultiBlockAssetHealth from '/app/assets/videos/health-check/Left_Multi_CalBlock_NO_TIP_(330x260)REV2.webm' +import rightMultiBlockAssetHealth from '/app/assets/videos/health-check/Right_Multi_CalBlock_NO_TIP_(330x260)REV2.webm' +import leftSingleBlockAssetHealth from '/app/assets/videos/health-check/Left_Single_CalBlock_NO_TIP_(330x260)REV2.webm' +import rightSingleBlockAssetHealth from '/app/assets/videos/health-check/Right_Single_CalBlock_NO_TIP_(330x260)REV2.webm' import type { Mount } from '@opentrons/components' const assetMapTrash = { diff --git a/app/src/organisms/CalibrationPanels/MeasureTip.tsx b/app/src/organisms/CalibrationPanels/MeasureTip.tsx index ded6069f523..63bb5723bad 100644 --- a/app/src/organisms/CalibrationPanels/MeasureTip.tsx +++ b/app/src/organisms/CalibrationPanels/MeasureTip.tsx @@ -13,31 +13,31 @@ import { LegacyStyledText, } from '@opentrons/components' -import * as Sessions from '../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { JogControls, MEDIUM_STEP_SIZE_MM, SMALL_STEP_SIZE_MM, -} from '../../molecules/JogControls' +} from '/app/molecules/JogControls' import { NeedHelpLink } from './NeedHelpLink' import { useConfirmCrashRecovery } from './useConfirmCrashRecovery' import { formatJogVector } from './utils' -import leftMultiBlockAssetTLC from '../../assets/videos/tip-length-cal/Left_Multi_CalBlock_WITH_TIP_(330x260)REV1.webm' -import leftMultiTrashAsset from '../../assets/videos/tip-length-cal/Left_Multi_Trash_WITH_TIP_(330x260)REV1.webm' -import leftSingleBlockAssetTLC from '../../assets/videos/tip-length-cal/Left_Single_CalBlock_WITH_TIP_(330x260)REV1.webm' -import leftSingleTrashAsset from '../../assets/videos/tip-length-cal/Left_Single_Trash_WITH_TIP_(330x260)REV1.webm' -import rightMultiBlockAssetTLC from '../../assets/videos/tip-length-cal/Right_Multi_CalBlock_WITH_TIP_(330x260)REV1.webm' -import rightMultiTrashAsset from '../../assets/videos/tip-length-cal/Right_Multi_Trash_WITH_TIP_(330x260)REV1.webm' -import rightSingleBlockAssetTLC from '../../assets/videos/tip-length-cal/Right_Single_CalBlock_WITH_TIP_(330x260)REV1.webm' -import rightSingleTrashAsset from '../../assets/videos/tip-length-cal/Right_Single_Trash_WITH_TIP_(330x260)REV1.webm' -import leftMultiBlockAssetHealth from '../../assets/videos/health-check/Left_Multi_CalBlock_WITH_TIP_(330x260)REV2.webm' -import rightMultiBlockAssetHealth from '../../assets/videos/health-check/Right_Multi_CalBlock_WITH_TIP_(330x260)REV2.webm' -import leftSingleBlockAssetHealth from '../../assets/videos/health-check/Left_Single_CalBlock_WITH_TIP_(330x260)REV2.webm' -import rightSingleBlockAssetHealth from '../../assets/videos/health-check/Right_Single_CalBlock_WITH_TIP_(330x260)REV2.webm' +import leftMultiBlockAssetTLC from '/app/assets/videos/tip-length-cal/Left_Multi_CalBlock_WITH_TIP_(330x260)REV1.webm' +import leftMultiTrashAsset from '/app/assets/videos/tip-length-cal/Left_Multi_Trash_WITH_TIP_(330x260)REV1.webm' +import leftSingleBlockAssetTLC from '/app/assets/videos/tip-length-cal/Left_Single_CalBlock_WITH_TIP_(330x260)REV1.webm' +import leftSingleTrashAsset from '/app/assets/videos/tip-length-cal/Left_Single_Trash_WITH_TIP_(330x260)REV1.webm' +import rightMultiBlockAssetTLC from '/app/assets/videos/tip-length-cal/Right_Multi_CalBlock_WITH_TIP_(330x260)REV1.webm' +import rightMultiTrashAsset from '/app/assets/videos/tip-length-cal/Right_Multi_Trash_WITH_TIP_(330x260)REV1.webm' +import rightSingleBlockAssetTLC from '/app/assets/videos/tip-length-cal/Right_Single_CalBlock_WITH_TIP_(330x260)REV1.webm' +import rightSingleTrashAsset from '/app/assets/videos/tip-length-cal/Right_Single_Trash_WITH_TIP_(330x260)REV1.webm' +import leftMultiBlockAssetHealth from '/app/assets/videos/health-check/Left_Multi_CalBlock_WITH_TIP_(330x260)REV2.webm' +import rightMultiBlockAssetHealth from '/app/assets/videos/health-check/Right_Multi_CalBlock_WITH_TIP_(330x260)REV2.webm' +import leftSingleBlockAssetHealth from '/app/assets/videos/health-check/Left_Single_CalBlock_WITH_TIP_(330x260)REV2.webm' +import rightSingleBlockAssetHealth from '/app/assets/videos/health-check/Right_Single_CalBlock_WITH_TIP_(330x260)REV2.webm' import type { Mount } from '@opentrons/components' -import type { Axis, Sign, StepSize } from '../../molecules/JogControls/types' +import type { Axis, Sign, StepSize } from '/app/molecules/JogControls/types' import type { CalibrationPanelProps } from './types' const assetMapTrash = { diff --git a/app/src/organisms/CalibrationPanels/SaveXYPoint.tsx b/app/src/organisms/CalibrationPanels/SaveXYPoint.tsx index 3717413bd91..207f0a609c9 100644 --- a/app/src/organisms/CalibrationPanels/SaveXYPoint.tsx +++ b/app/src/organisms/CalibrationPanels/SaveXYPoint.tsx @@ -14,37 +14,37 @@ import { } from '@opentrons/components' import { useLogger } from '../../logger' -import * as Sessions from '../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { JogControls, MEDIUM_STEP_SIZE_MM, SMALL_STEP_SIZE_MM, -} from '../../molecules/JogControls' +} from '/app/molecules/JogControls' import { formatJogVector } from './utils' import { useConfirmCrashRecovery } from './useConfirmCrashRecovery' import { NeedHelpLink } from './NeedHelpLink' -import slot1LeftMultiDemoAsset from '../../assets/videos/cal-movement/SLOT_1_LEFT_MULTI_X-Y.webm' -import slot1LeftSingleDemoAsset from '../../assets/videos/cal-movement/SLOT_1_LEFT_SINGLE_X-Y.webm' -import slot1RightMultiDemoAsset from '../../assets/videos/cal-movement/SLOT_1_RIGHT_MULTI_X-Y.webm' -import slot1RightSingleDemoAsset from '../../assets/videos/cal-movement/SLOT_1_RIGHT_SINGLE_X-Y.webm' -import slot3LeftMultiDemoAsset from '../../assets/videos/cal-movement/SLOT_3_LEFT_MULTI_X-Y.webm' -import slot3LeftSingleDemoAsset from '../../assets/videos/cal-movement/SLOT_3_LEFT_SINGLE_X-Y.webm' -import slot3RightMultiDemoAsset from '../../assets/videos/cal-movement/SLOT_3_RIGHT_MULTI_X-Y.webm' -import slot3RightSingleDemoAsset from '../../assets/videos/cal-movement/SLOT_3_RIGHT_SINGLE_X-Y.webm' -import slot7LeftMultiDemoAsset from '../../assets/videos/cal-movement/SLOT_7_LEFT_MULTI_X-Y.webm' -import slot7LeftSingleDemoAsset from '../../assets/videos/cal-movement/SLOT_7_LEFT_SINGLE_X-Y.webm' -import slot7RightMultiDemoAsset from '../../assets/videos/cal-movement/SLOT_7_RIGHT_MULTI_X-Y.webm' -import slot7RightSingleDemoAsset from '../../assets/videos/cal-movement/SLOT_7_RIGHT_SINGLE_X-Y.webm' +import slot1LeftMultiDemoAsset from '/app/assets/videos/cal-movement/SLOT_1_LEFT_MULTI_X-Y.webm' +import slot1LeftSingleDemoAsset from '/app/assets/videos/cal-movement/SLOT_1_LEFT_SINGLE_X-Y.webm' +import slot1RightMultiDemoAsset from '/app/assets/videos/cal-movement/SLOT_1_RIGHT_MULTI_X-Y.webm' +import slot1RightSingleDemoAsset from '/app/assets/videos/cal-movement/SLOT_1_RIGHT_SINGLE_X-Y.webm' +import slot3LeftMultiDemoAsset from '/app/assets/videos/cal-movement/SLOT_3_LEFT_MULTI_X-Y.webm' +import slot3LeftSingleDemoAsset from '/app/assets/videos/cal-movement/SLOT_3_LEFT_SINGLE_X-Y.webm' +import slot3RightMultiDemoAsset from '/app/assets/videos/cal-movement/SLOT_3_RIGHT_MULTI_X-Y.webm' +import slot3RightSingleDemoAsset from '/app/assets/videos/cal-movement/SLOT_3_RIGHT_SINGLE_X-Y.webm' +import slot7LeftMultiDemoAsset from '/app/assets/videos/cal-movement/SLOT_7_LEFT_MULTI_X-Y.webm' +import slot7LeftSingleDemoAsset from '/app/assets/videos/cal-movement/SLOT_7_LEFT_SINGLE_X-Y.webm' +import slot7RightMultiDemoAsset from '/app/assets/videos/cal-movement/SLOT_7_RIGHT_MULTI_X-Y.webm' +import slot7RightSingleDemoAsset from '/app/assets/videos/cal-movement/SLOT_7_RIGHT_SINGLE_X-Y.webm' -import type { Axis, Sign, StepSize } from '../../molecules/JogControls/types' +import type { Axis, Sign, StepSize } from '/app/molecules/JogControls/types' import type { CalibrationPanelProps } from './types' import type { SessionType, CalibrationSessionStep, SessionCommandString, CalibrationLabware, -} from '../../redux/sessions/types' +} from '/app/redux/sessions/types' import type { Mount } from '@opentrons/components' const assetMap: Record< diff --git a/app/src/organisms/CalibrationPanels/SaveZPoint.tsx b/app/src/organisms/CalibrationPanels/SaveZPoint.tsx index bc669b9f735..ddc2975030a 100644 --- a/app/src/organisms/CalibrationPanels/SaveZPoint.tsx +++ b/app/src/organisms/CalibrationPanels/SaveZPoint.tsx @@ -13,23 +13,23 @@ import { LegacyStyledText, } from '@opentrons/components' -import * as Sessions from '../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { JogControls, MEDIUM_STEP_SIZE_MM, SMALL_STEP_SIZE_MM, VERTICAL_PLANE, -} from '../../molecules/JogControls' +} from '/app/molecules/JogControls' import { formatJogVector } from './utils' import { useConfirmCrashRecovery } from './useConfirmCrashRecovery' import { NeedHelpLink } from './NeedHelpLink' -import slot5LeftMultiDemoAsset from '../../assets/videos/cal-movement/SLOT_5_LEFT_MULTI_Z.webm' -import slot5LeftSingleDemoAsset from '../../assets/videos/cal-movement/SLOT_5_LEFT_SINGLE_Z.webm' -import slot5RightMultiDemoAsset from '../../assets/videos/cal-movement/SLOT_5_RIGHT_MULTI_Z.webm' -import slot5RightSingleDemoAsset from '../../assets/videos/cal-movement/SLOT_5_RIGHT_SINGLE_Z.webm' +import slot5LeftMultiDemoAsset from '/app/assets/videos/cal-movement/SLOT_5_LEFT_MULTI_Z.webm' +import slot5LeftSingleDemoAsset from '/app/assets/videos/cal-movement/SLOT_5_LEFT_SINGLE_Z.webm' +import slot5RightMultiDemoAsset from '/app/assets/videos/cal-movement/SLOT_5_RIGHT_MULTI_Z.webm' +import slot5RightSingleDemoAsset from '/app/assets/videos/cal-movement/SLOT_5_RIGHT_SINGLE_Z.webm' -import type { Axis, Sign, StepSize } from '../../molecules/JogControls/types' +import type { Axis, Sign, StepSize } from '/app/molecules/JogControls/types' import type { CalibrationPanelProps } from './types' const assetMap = { diff --git a/app/src/organisms/CalibrationPanels/TipConfirmation.tsx b/app/src/organisms/CalibrationPanels/TipConfirmation.tsx index e8bf4f0f4fc..da25aef6ee5 100644 --- a/app/src/organisms/CalibrationPanels/TipConfirmation.tsx +++ b/app/src/organisms/CalibrationPanels/TipConfirmation.tsx @@ -11,14 +11,14 @@ import { } from '@opentrons/components' import { useTranslation } from 'react-i18next' -import * as Sessions from '../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { NeedHelpLink } from './NeedHelpLink' import type { CalibrationPanelProps } from './types' import type { SessionType, SessionCommandString, -} from '../../redux/sessions/types' +} from '/app/redux/sessions/types' const CAPITALIZE_FIRST_LETTER_STYLE = css` &:first-letter { diff --git a/app/src/organisms/CalibrationPanels/TipPickUp.tsx b/app/src/organisms/CalibrationPanels/TipPickUp.tsx index 6692c7cfc39..f8008a98ede 100644 --- a/app/src/organisms/CalibrationPanels/TipPickUp.tsx +++ b/app/src/organisms/CalibrationPanels/TipPickUp.tsx @@ -13,17 +13,17 @@ import { LegacyStyledText, } from '@opentrons/components' -import * as Sessions from '../../redux/sessions' -import type { Axis, Sign, StepSize } from '../../molecules/JogControls/types' -import { JogControls } from '../../molecules/JogControls' +import * as Sessions from '/app/redux/sessions' +import type { Axis, Sign, StepSize } from '/app/molecules/JogControls/types' +import { JogControls } from '/app/molecules/JogControls' import type { CalibrationPanelProps } from './types' import { formatJogVector } from './utils' import { NeedHelpLink } from './NeedHelpLink' import { useConfirmCrashRecovery } from './useConfirmCrashRecovery' -import multiDemoAsset from '../../assets/videos/tip-pick-up/A1_Multi_Channel_REV1.webm' -import singleDemoAsset from '../../assets/videos/tip-pick-up/A1_Single_Channel_REV1.webm' +import multiDemoAsset from '/app/assets/videos/tip-pick-up/A1_Multi_Channel_REV1.webm' +import singleDemoAsset from '/app/assets/videos/tip-pick-up/A1_Single_Channel_REV1.webm' const ASSET_MAP = { multi: multiDemoAsset, diff --git a/app/src/organisms/CalibrationPanels/__tests__/ChooseTipRack.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/ChooseTipRack.test.tsx index f867ca46298..fb41e694dbd 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/ChooseTipRack.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/ChooseTipRack.test.tsx @@ -5,27 +5,27 @@ import { vi, it, describe, expect, beforeEach } from 'vitest' import { usePipettesQuery } from '@opentrons/react-api-client' import { LEFT } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockAttachedPipette } from '../../../redux/pipettes/__fixtures__' -import { mockDeckCalTipRack } from '../../../redux/sessions/__fixtures__' -import { mockTipRackDefinition } from '../../../redux/custom-labware/__fixtures__' -import { Select } from '../../../atoms/SelectField/Select' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockAttachedPipette } from '/app/redux/pipettes/__fixtures__' +import { mockDeckCalTipRack } from '/app/redux/sessions/__fixtures__' +import { mockTipRackDefinition } from '/app/redux/custom-labware/__fixtures__' +import { Select } from '/app/atoms/SelectField/Select' import { getCalibrationForPipette, getTipLengthForPipetteAndTiprack, getTipLengthCalibrations, -} from '../../../redux/calibration' -import { getCustomTipRackDefinitions } from '../../../redux/custom-labware' +} from '/app/redux/calibration' +import { getCustomTipRackDefinitions } from '/app/redux/custom-labware' import { ChooseTipRack } from '../ChooseTipRack' -import type { AttachedPipettesByMount } from '../../../redux/pipettes/types' +import type { AttachedPipettesByMount } from '/app/redux/pipettes/types' vi.mock('@opentrons/react-api-client') -vi.mock('../../../redux/pipettes/selectors') -vi.mock('../../../redux/calibration') -vi.mock('../../../redux/custom-labware/selectors') -vi.mock('../../../atoms/SelectField/Select') +vi.mock('/app/redux/pipettes/selectors') +vi.mock('/app/redux/calibration') +vi.mock('/app/redux/custom-labware/selectors') +vi.mock('/app/atoms/SelectField/Select') const mockAttachedPipettes: AttachedPipettesByMount = { left: mockAttachedPipette, diff --git a/app/src/organisms/CalibrationPanels/__tests__/ChosenTipRackRender.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/ChosenTipRackRender.test.tsx index ff57669651d..11662e1bd1e 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/ChosenTipRackRender.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/ChosenTipRackRender.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { it, describe, beforeEach } from 'vitest' import { screen } from '@testing-library/react' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { ChosenTipRackRender } from '../ChosenTipRackRender' -import type { SelectOption } from '../../../atoms/SelectField/Select' +import type { SelectOption } from '/app/atoms/SelectField/Select' const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/CalibrationPanels/__tests__/CompleteConfirmation.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/CompleteConfirmation.test.tsx index 29b757b8d88..d5ff26ba96c 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/CompleteConfirmation.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/CompleteConfirmation.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CompleteConfirmation } from '../CompleteConfirmation' diff --git a/app/src/organisms/CalibrationPanels/__tests__/ConfirmCrashRecovery.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/ConfirmCrashRecovery.test.tsx index 8f56a66a7c5..51f70785f82 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/ConfirmCrashRecovery.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/ConfirmCrashRecovery.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ConfirmCrashRecovery } from '../ConfirmCrashRecovery' describe('ConfirmCrashRecovery', () => { diff --git a/app/src/organisms/CalibrationPanels/__tests__/ConfirmExit.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/ConfirmExit.test.tsx index b28c224329a..eaec356c62c 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/ConfirmExit.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/ConfirmExit.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ConfirmExit } from '../ConfirmExit' diff --git a/app/src/organisms/CalibrationPanels/__tests__/DeckSetup.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/DeckSetup.test.tsx index 0533e492232..920e6463cb9 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/DeckSetup.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/DeckSetup.test.tsx @@ -1,19 +1,19 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockDeckCalTipRack, mockRobotCalibrationCheckSessionDetails, mockTipLengthCalBlock, -} from '../../../redux/sessions/__fixtures__' -import * as Sessions from '../../../redux/sessions' +} from '/app/redux/sessions/__fixtures__' +import * as Sessions from '/app/redux/sessions' import { DeckSetup } from '../DeckSetup' import type { getDeckDefinitions } from '@opentrons/shared-data' -vi.mock('../../../assets/labware/getLabware') +vi.mock('/app/assets/labware/getLabware') vi.mock('@opentrons/shared-data', async importOriginal => { const actual = await importOriginal() return { diff --git a/app/src/organisms/CalibrationPanels/__tests__/MeasureNozzle.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/MeasureNozzle.test.tsx index 9bd2e580969..a7a8d68773f 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/MeasureNozzle.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/MeasureNozzle.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockTipLengthCalBlock, mockTipLengthTipRack, -} from '../../../redux/sessions/__fixtures__' -import * as Sessions from '../../../redux/sessions' +} from '/app/redux/sessions/__fixtures__' +import * as Sessions from '/app/redux/sessions' import { MeasureNozzle } from '../MeasureNozzle' describe('MeasureNozzle', () => { diff --git a/app/src/organisms/CalibrationPanels/__tests__/MeasureTip.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/MeasureTip.test.tsx index 60787ebdefd..f2436f9af0f 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/MeasureTip.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/MeasureTip.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockTipLengthCalBlock, mockTipLengthTipRack, -} from '../../../redux/sessions/__fixtures__' -import * as Sessions from '../../../redux/sessions' +} from '/app/redux/sessions/__fixtures__' +import * as Sessions from '/app/redux/sessions' import { MeasureTip } from '../MeasureTip' diff --git a/app/src/organisms/CalibrationPanels/__tests__/SaveXYPoint.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/SaveXYPoint.test.tsx index 917c22b4c9e..feabd927785 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/SaveXYPoint.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/SaveXYPoint.test.tsx @@ -2,11 +2,11 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' -import { mockDeckCalTipRack } from '../../../redux/sessions/__fixtures__' -import * as Sessions from '../../../redux/sessions' +import { mockDeckCalTipRack } from '/app/redux/sessions/__fixtures__' +import * as Sessions from '/app/redux/sessions' import { SaveXYPoint } from '../SaveXYPoint' describe('SaveXYPoint', () => { diff --git a/app/src/organisms/CalibrationPanels/__tests__/SaveZPoint.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/SaveZPoint.test.tsx index 2dceb85d562..480686c489b 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/SaveZPoint.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/SaveZPoint.test.tsx @@ -2,14 +2,14 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockDeckCalTipRack, mockTipLengthCalBlock, -} from '../../../redux/sessions/__fixtures__' -import * as Sessions from '../../../redux/sessions' +} from '/app/redux/sessions/__fixtures__' +import * as Sessions from '/app/redux/sessions' import { SaveZPoint } from '../SaveZPoint' describe('SaveZPoint', () => { diff --git a/app/src/organisms/CalibrationPanels/__tests__/TipConfirmation.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/TipConfirmation.test.tsx index d6d1fa5e438..a0b26400005 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/TipConfirmation.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/TipConfirmation.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockDeckCalTipRack } from '../../../redux/sessions/__fixtures__' -import * as Sessions from '../../../redux/sessions' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockDeckCalTipRack } from '/app/redux/sessions/__fixtures__' +import * as Sessions from '/app/redux/sessions' import { TipConfirmation } from '../TipConfirmation' describe('TipConfirmation', () => { diff --git a/app/src/organisms/CalibrationPanels/__tests__/TipPickUp.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/TipPickUp.test.tsx index 30406213d98..7aa63cc6a2f 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/TipPickUp.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/TipPickUp.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockDeckCalTipRack } from '../../../redux/sessions/__fixtures__' -import * as Sessions from '../../../redux/sessions' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockDeckCalTipRack } from '/app/redux/sessions/__fixtures__' +import * as Sessions from '/app/redux/sessions' import { TipPickUp } from '../TipPickUp' describe('TipPickUp', () => { diff --git a/app/src/organisms/CalibrationPanels/__tests__/useConfirmCrashRecovery.test.tsx b/app/src/organisms/CalibrationPanels/__tests__/useConfirmCrashRecovery.test.tsx index 6f91202bd04..54ca33eb5b3 100644 --- a/app/src/organisms/CalibrationPanels/__tests__/useConfirmCrashRecovery.test.tsx +++ b/app/src/organisms/CalibrationPanels/__tests__/useConfirmCrashRecovery.test.tsx @@ -5,15 +5,15 @@ import { vi, it, describe, expect } from 'vitest' import { LEFT } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useConfirmCrashRecovery } from '../useConfirmCrashRecovery' -import { mockCalibrationCheckLabware } from '../../../redux/sessions/__fixtures__' +import { mockCalibrationCheckLabware } from '/app/redux/sessions/__fixtures__' import { DECK_STEP_JOGGING_TO_DECK, SESSION_TYPE_DECK_CALIBRATION, sharedCalCommands, -} from '../../../redux/sessions' +} from '/app/redux/sessions' describe('useConfirmCrashRecovery', () => { const mockSendCommands = vi.fn() diff --git a/app/src/organisms/CalibrationPanels/labwareImages.ts b/app/src/organisms/CalibrationPanels/labwareImages.ts index a5cf3612440..95cf103f1d1 100644 --- a/app/src/organisms/CalibrationPanels/labwareImages.ts +++ b/app/src/organisms/CalibrationPanels/labwareImages.ts @@ -2,17 +2,17 @@ // TODO: BC 2020-04-01): this mapping should live in shared-data, // it is now following the existing pattern in labware-library -import opentrons_96_tiprack_1000ul_side_view from '../../assets/images/labware/opentrons_96_tiprack_1000ul_side_view.jpg' -import opentrons_96_tiprack_10ul_side_view from '../../assets/images/labware/opentrons_96_tiprack_10ul_side_view.jpg' -import opentrons_96_tiprack_300ul_side_view from '../../assets/images/labware/opentrons_96_tiprack_300ul_side_view.jpg' -import geb_96_tiprack_1000ul from '../../assets/images/labware/geb_96_tiprack_1000ul_side_view.jpg' -import geb_96_tiprack_10ul from '../../assets/images/labware/geb_96_tiprack_10ul_side_view.jpg' -import tipone_96_tiprack_200ul from '../../assets/images/labware/tipone_96_tiprack_200ul_side_view.jpg' -import eppendorf_96_tiprack_1000ul_eptips from '../../assets/images/labware/eppendorf_1000ul_tip_eptips_side_view.jpg' -import eppendorf_96_tiprack_10ul_eptips from '../../assets/images/labware/eppendorf_10ul_tips_eptips_side_view.jpg' -import opentrons_calibrationblock from '../../assets/images/labware/opentrons_calibration_block.png' -import generic_custom_tiprack from '../../assets/images/labware/generic_tiprack_side_view.png' -import removable_black_plastic_trash_bin from '../../assets/images/labware/removable_black_plastic_trash_bin.png' +import opentrons_96_tiprack_1000ul_side_view from '/app/assets/images/labware/opentrons_96_tiprack_1000ul_side_view.jpg' +import opentrons_96_tiprack_10ul_side_view from '/app/assets/images/labware/opentrons_96_tiprack_10ul_side_view.jpg' +import opentrons_96_tiprack_300ul_side_view from '/app/assets/images/labware/opentrons_96_tiprack_300ul_side_view.jpg' +import geb_96_tiprack_1000ul from '/app/assets/images/labware/geb_96_tiprack_1000ul_side_view.jpg' +import geb_96_tiprack_10ul from '/app/assets/images/labware/geb_96_tiprack_10ul_side_view.jpg' +import tipone_96_tiprack_200ul from '/app/assets/images/labware/tipone_96_tiprack_200ul_side_view.jpg' +import eppendorf_96_tiprack_1000ul_eptips from '/app/assets/images/labware/eppendorf_1000ul_tip_eptips_side_view.jpg' +import eppendorf_96_tiprack_10ul_eptips from '/app/assets/images/labware/eppendorf_10ul_tips_eptips_side_view.jpg' +import opentrons_calibrationblock from '/app/assets/images/labware/opentrons_calibration_block.png' +import generic_custom_tiprack from '/app/assets/images/labware/generic_tiprack_side_view.png' +import removable_black_plastic_trash_bin from '/app/assets/images/labware/removable_black_plastic_trash_bin.png' export const labwareImages = { opentrons_96_tiprack_1000ul: opentrons_96_tiprack_1000ul_side_view, diff --git a/app/src/organisms/CalibrationPanels/types.ts b/app/src/organisms/CalibrationPanels/types.ts index cc8700aa8be..5f6ce119dfb 100644 --- a/app/src/organisms/CalibrationPanels/types.ts +++ b/app/src/organisms/CalibrationPanels/types.ts @@ -6,10 +6,10 @@ import type { CalibrationLabware, CalibrationCheckInstrument, CalibrationCheckComparisonByPipette, -} from '../../redux/sessions/types' +} from '/app/redux/sessions/types' import type { LabwareDefinition2 } from '@opentrons/shared-data' -import type { Mount } from '../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' // TODO (lc 10-20-2020) Given there are lots of optional // keys here now we should split these panel props out diff --git a/app/src/organisms/CalibrationPanels/useConfirmCrashRecovery.tsx b/app/src/organisms/CalibrationPanels/useConfirmCrashRecovery.tsx index 8cbcf74c8bc..5f6058281c5 100644 --- a/app/src/organisms/CalibrationPanels/useConfirmCrashRecovery.tsx +++ b/app/src/organisms/CalibrationPanels/useConfirmCrashRecovery.tsx @@ -10,7 +10,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import * as Sessions from '../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { ConfirmCrashRecovery } from './ConfirmCrashRecovery' import type { CalibrationPanelProps } from './types' diff --git a/app/src/organisms/CalibrationPanels/utils.ts b/app/src/organisms/CalibrationPanels/utils.ts index ba44eda6055..2bf8d69b62b 100644 --- a/app/src/organisms/CalibrationPanels/utils.ts +++ b/app/src/organisms/CalibrationPanels/utils.ts @@ -1,6 +1,6 @@ import { format } from 'date-fns' -import type { Axis } from '../../molecules/JogControls/types' -import type { VectorTuple } from '../../redux/sessions/types' +import type { Axis } from '/app/molecules/JogControls/types' +import type { VectorTuple } from '/app/redux/sessions/types' const ORDERED_AXES: [Axis, Axis, Axis] = ['x', 'y', 'z'] diff --git a/app/src/organisms/CalibrationStatusCard/__tests__/CalibrationStatusCard.test.tsx b/app/src/organisms/CalibrationStatusCard/__tests__/CalibrationStatusCard.test.tsx index b41e8b79599..a1060e5200d 100644 --- a/app/src/organisms/CalibrationStatusCard/__tests__/CalibrationStatusCard.test.tsx +++ b/app/src/organisms/CalibrationStatusCard/__tests__/CalibrationStatusCard.test.tsx @@ -3,8 +3,8 @@ import { MemoryRouter } from 'react-router-dom' import { vi, it, describe, expect, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CalibrationStatusCard } from '..' import { useCalibrationTaskList } from '../../Devices/hooks' import { diff --git a/app/src/organisms/CalibrationStatusCard/index.tsx b/app/src/organisms/CalibrationStatusCard/index.tsx index aa0ad28d8c5..057a9403585 100644 --- a/app/src/organisms/CalibrationStatusCard/index.tsx +++ b/app/src/organisms/CalibrationStatusCard/index.tsx @@ -17,8 +17,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { TertiaryButton } from '../../atoms/buttons' -import { StatusLabel } from '../../atoms/StatusLabel' +import { TertiaryButton } from '/app/atoms/buttons' +import { StatusLabel } from '/app/atoms/StatusLabel' import { useCalibrationTaskList } from '../Devices/hooks' diff --git a/app/src/organisms/CalibrationTaskList/__tests__/CalibrationTaskList.test.tsx b/app/src/organisms/CalibrationTaskList/__tests__/CalibrationTaskList.test.tsx index 8c35b7e5c04..fe175420b4a 100644 --- a/app/src/organisms/CalibrationTaskList/__tests__/CalibrationTaskList.test.tsx +++ b/app/src/organisms/CalibrationTaskList/__tests__/CalibrationTaskList.test.tsx @@ -3,8 +3,8 @@ import { MemoryRouter } from 'react-router-dom' import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CalibrationTaskList } from '..' import { mockDeckCalLauncher, @@ -23,10 +23,10 @@ import { useRunHasStarted, useAttachedPipettes, } from '../../Devices/hooks' -import { mockLeftProtoPipette } from '../../../redux/pipettes/__fixtures__' +import { mockLeftProtoPipette } from '/app/redux/pipettes/__fixtures__' vi.mock('../../Devices/hooks') -vi.mock('../../../resources/runs') +vi.mock('/app/resources/runs') const render = (robotName: string = 'otie') => { return renderWithProviders( diff --git a/app/src/organisms/CalibrationTaskList/index.tsx b/app/src/organisms/CalibrationTaskList/index.tsx index 92db27bd75a..72ae2d91898 100644 --- a/app/src/organisms/CalibrationTaskList/index.tsx +++ b/app/src/organisms/CalibrationTaskList/index.tsx @@ -17,7 +17,7 @@ import { Modal, } from '@opentrons/components' -import { StatusLabel } from '../../atoms/StatusLabel' +import { StatusLabel } from '/app/atoms/StatusLabel' import { TaskList } from '../TaskList' import { @@ -25,11 +25,11 @@ import { useCalibrationTaskList, useRunHasStarted, } from '../Devices/hooks' -import { useCurrentRunId } from '../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' -import type { DashboardCalOffsetInvoker } from '../../pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibratePipOffset' -import type { DashboardCalTipLengthInvoker } from '../../pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength' -import type { DashboardCalDeckInvoker } from '../../pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateDeck' +import type { DashboardCalOffsetInvoker } from '/app/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibratePipOffset' +import type { DashboardCalTipLengthInvoker } from '/app/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength' +import type { DashboardCalDeckInvoker } from '/app/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateDeck' interface CalibrationTaskListProps { robotName: string diff --git a/app/src/organisms/ChangePipette/ConfirmPipette.tsx b/app/src/organisms/ChangePipette/ConfirmPipette.tsx index 6e53a5507f3..c9c603905a1 100644 --- a/app/src/organisms/ChangePipette/ConfirmPipette.tsx +++ b/app/src/organisms/ChangePipette/ConfirmPipette.tsx @@ -10,7 +10,7 @@ import { SecondaryButton, } from '@opentrons/components' import { CheckPipettesButton } from './CheckPipettesButton' -import { SimpleWizardBody } from '../../molecules/SimpleWizardBody' +import { SimpleWizardBody } from '/app/molecules/SimpleWizardBody' import { LevelPipette } from './LevelPipette' import type { @@ -18,8 +18,8 @@ import type { PipetteModelSpecs, PipetteDisplayCategory, } from '@opentrons/shared-data' -import type { PipetteOffsetCalibration } from '../../redux/calibration/types' -import type { Mount } from '../../redux/pipettes/types' +import type { PipetteOffsetCalibration } from '/app/redux/calibration/types' +import type { Mount } from '/app/redux/pipettes/types' export interface ConfirmPipetteProps { robotName: string diff --git a/app/src/organisms/ChangePipette/ExitModal.tsx b/app/src/organisms/ChangePipette/ExitModal.tsx index d2848c01bf5..15ab8132dc6 100644 --- a/app/src/organisms/ChangePipette/ExitModal.tsx +++ b/app/src/organisms/ChangePipette/ExitModal.tsx @@ -7,7 +7,7 @@ import { AlertPrimaryButton, TEXT_TRANSFORM_CAPITALIZE, } from '@opentrons/components' -import { SimpleWizardBody } from '../../molecules/SimpleWizardBody' +import { SimpleWizardBody } from '/app/molecules/SimpleWizardBody' import type { Direction } from './types' diff --git a/app/src/organisms/ChangePipette/InstructionStep.tsx b/app/src/organisms/ChangePipette/InstructionStep.tsx index d70c6f9e69f..a12ae6827e3 100644 --- a/app/src/organisms/ChangePipette/InstructionStep.tsx +++ b/app/src/organisms/ChangePipette/InstructionStep.tsx @@ -30,13 +30,13 @@ export function InstructionStep(props: Props): JSX.Element { const display = displayCategory === 'GEN2' ? new URL( - `../../assets/images/change-pip/${direction}-${String( + `/app/assets/images/change-pip/${direction}-${String( mount )}-${channelsKey}-GEN2-${diagram}@3x.png`, import.meta.url ).href : new URL( - `../../assets/images/change-pip/${direction}-${String( + `/app/assets/images/change-pip/${direction}-${String( mount )}-${channelsKey}-${diagram}@3x.png`, import.meta.url diff --git a/app/src/organisms/ChangePipette/Instructions.tsx b/app/src/organisms/ChangePipette/Instructions.tsx index e526d202996..4582dafafe5 100644 --- a/app/src/organisms/ChangePipette/Instructions.tsx +++ b/app/src/organisms/ChangePipette/Instructions.tsx @@ -23,7 +23,7 @@ import type { PipetteModelSpecs, PipetteDisplayCategory, } from '@opentrons/shared-data' -import type { Mount } from '../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' import type { Direction } from './types' interface Props { diff --git a/app/src/organisms/ChangePipette/LevelPipette.tsx b/app/src/organisms/ChangePipette/LevelPipette.tsx index 79faad0f9d9..d3f69909f5d 100644 --- a/app/src/organisms/ChangePipette/LevelPipette.tsx +++ b/app/src/organisms/ChangePipette/LevelPipette.tsx @@ -14,7 +14,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import type { Mount } from '../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' interface LevelPipetteProps { mount: Mount @@ -42,7 +42,7 @@ export function LevelingVideo(props: { diff --git a/app/src/organisms/ChangePipette/__tests__/ChangePipette.test.tsx b/app/src/organisms/ChangePipette/__tests__/ChangePipette.test.tsx index 40b2174194b..f627265493c 100644 --- a/app/src/organisms/ChangePipette/__tests__/ChangePipette.test.tsx +++ b/app/src/organisms/ChangePipette/__tests__/ChangePipette.test.tsx @@ -4,17 +4,17 @@ import { fireEvent, screen } from '@testing-library/react' import { getPipetteNameSpecs } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { getHasCalibrationBlock } from '../../../redux/config' -import { getMovementStatus } from '../../../redux/robot-controls' -import { getCalibrationForPipette } from '../../../redux/calibration' -import { InProgressModal } from '../../../molecules/InProgressModal/InProgressModal' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getHasCalibrationBlock } from '/app/redux/config' +import { getMovementStatus } from '/app/redux/robot-controls' +import { getCalibrationForPipette } from '/app/redux/calibration' +import { InProgressModal } from '/app/molecules/InProgressModal/InProgressModal' import { getRequestById, SUCCESS, useDispatchApiRequests, -} from '../../../redux/robot-api' +} from '/app/redux/robot-api' import { useAttachedPipettes } from '../../Devices/hooks' import { PipetteSelection } from '../PipetteSelection' import { ExitModal } from '../ExitModal' @@ -23,8 +23,8 @@ import { ChangePipette } from '..' import type { NavigateFunction } from 'react-router-dom' import type { PipetteNameSpecs } from '@opentrons/shared-data' -import type { AttachedPipette } from '../../../redux/pipettes/types' -import type { DispatchApiRequestType } from '../../../redux/robot-api' +import type { AttachedPipette } from '/app/redux/pipettes/types' +import type { DispatchApiRequestType } from '/app/redux/robot-api' const mockNavigate = vi.fn() @@ -43,16 +43,16 @@ vi.mock('@opentrons/shared-data', async importOriginal => { getPipetteNameSpecs: vi.fn(), } }) -vi.mock('../../../redux/config') -vi.mock('../../../redux/robot-controls') -vi.mock('../../../redux/calibration') -vi.mock('../../../redux/robot-api') +vi.mock('/app/redux/config') +vi.mock('/app/redux/robot-controls') +vi.mock('/app/redux/calibration') +vi.mock('/app/redux/robot-api') vi.mock('../PipetteSelection') vi.mock('../ExitModal') -vi.mock('../../../molecules/InProgressModal/InProgressModal') +vi.mock('/app/molecules/InProgressModal/InProgressModal') vi.mock('../ConfirmPipette') vi.mock('../../Devices/hooks') -vi.mock('../../../assets/images') +vi.mock('/app/assets/images') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ChangePipette/__tests__/CheckPipettesButton.test.tsx b/app/src/organisms/ChangePipette/__tests__/CheckPipettesButton.test.tsx index bb1b9a1d842..41c8afcb08c 100644 --- a/app/src/organisms/ChangePipette/__tests__/CheckPipettesButton.test.tsx +++ b/app/src/organisms/ChangePipette/__tests__/CheckPipettesButton.test.tsx @@ -4,8 +4,8 @@ import { vi, it, describe, expect, beforeEach } from 'vitest' import { usePipettesQuery } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CheckPipettesButton } from '../CheckPipettesButton' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/ChangePipette/__tests__/ClearDeckModal.test.tsx b/app/src/organisms/ChangePipette/__tests__/ClearDeckModal.test.tsx index 62ef001158a..faae99c439c 100644 --- a/app/src/organisms/ChangePipette/__tests__/ClearDeckModal.test.tsx +++ b/app/src/organisms/ChangePipette/__tests__/ClearDeckModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ClearDeckModal } from '../ClearDeckModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ChangePipette/__tests__/ConfirmPipette.test.tsx b/app/src/organisms/ChangePipette/__tests__/ConfirmPipette.test.tsx index 363dc5fe29d..b2ddff2791f 100644 --- a/app/src/organisms/ChangePipette/__tests__/ConfirmPipette.test.tsx +++ b/app/src/organisms/ChangePipette/__tests__/ConfirmPipette.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { LEFT } from '@opentrons/shared-data' -import { mockPipetteInfo } from '../../../redux/pipettes/__fixtures__' +import { mockPipetteInfo } from '/app/redux/pipettes/__fixtures__' import { CheckPipettesButton } from '../CheckPipettesButton' import { ConfirmPipette } from '../ConfirmPipette' @@ -13,7 +13,7 @@ import type { PipetteModelSpecs, PipetteNameSpecs, } from '@opentrons/shared-data' -import type { PipetteOffsetCalibration } from '../../../redux/calibration/types' +import type { PipetteOffsetCalibration } from '/app/redux/calibration/types' import type { LevelingVideo } from '../LevelPipette' vi.mock('../CheckPipettesButton') diff --git a/app/src/organisms/ChangePipette/__tests__/ExitModal.test.tsx b/app/src/organisms/ChangePipette/__tests__/ExitModal.test.tsx index ad061d0f865..f7438b1874c 100644 --- a/app/src/organisms/ChangePipette/__tests__/ExitModal.test.tsx +++ b/app/src/organisms/ChangePipette/__tests__/ExitModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ExitModal } from '../ExitModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ChangePipette/__tests__/InstructionStep.test.tsx b/app/src/organisms/ChangePipette/__tests__/InstructionStep.test.tsx index 9cb5cac3b63..33e390ad1f4 100644 --- a/app/src/organisms/ChangePipette/__tests__/InstructionStep.test.tsx +++ b/app/src/organisms/ChangePipette/__tests__/InstructionStep.test.tsx @@ -4,8 +4,8 @@ import { screen } from '@testing-library/react' import { GEN1, GEN2, LEFT, RIGHT } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { InstructionStep } from '../InstructionStep' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ChangePipette/__tests__/Instructions.test.tsx b/app/src/organisms/ChangePipette/__tests__/Instructions.test.tsx index 2c95300838e..c169f5f0960 100644 --- a/app/src/organisms/ChangePipette/__tests__/Instructions.test.tsx +++ b/app/src/organisms/ChangePipette/__tests__/Instructions.test.tsx @@ -4,14 +4,11 @@ import { fireEvent, screen } from '@testing-library/react' import type { PipetteModelSpecs } from '@opentrons/shared-data' -import { - nestedTextMatcher, - renderWithProviders, -} from '../../../__testing-utils__' +import { nestedTextMatcher, renderWithProviders } from '/app/__testing-utils__' import { LEFT } from '@opentrons/shared-data' import { fixtureP10Multi } from '@opentrons/shared-data/pipette/fixtures/name' -import { i18n } from '../../../i18n' -import { mockPipetteInfo } from '../../../redux/pipettes/__fixtures__' +import { i18n } from '/app/i18n' +import { mockPipetteInfo } from '/app/redux/pipettes/__fixtures__' import { Instructions } from '../Instructions' import { CheckPipettesButton } from '../CheckPipettesButton' diff --git a/app/src/organisms/ChangePipette/__tests__/LevelPipette.test.tsx b/app/src/organisms/ChangePipette/__tests__/LevelPipette.test.tsx index 7419978c3cc..40edcf61260 100644 --- a/app/src/organisms/ChangePipette/__tests__/LevelPipette.test.tsx +++ b/app/src/organisms/ChangePipette/__tests__/LevelPipette.test.tsx @@ -3,11 +3,8 @@ import { vi, it, describe, expect, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import { LEFT } from '@opentrons/shared-data' -import { - nestedTextMatcher, - renderWithProviders, -} from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { nestedTextMatcher, renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { LevelPipette } from '../LevelPipette' import type { PipetteNameSpecs } from '@opentrons/shared-data' diff --git a/app/src/organisms/ChangePipette/__tests__/PipetteSelection.test.tsx b/app/src/organisms/ChangePipette/__tests__/PipetteSelection.test.tsx index 40c9da2ad3e..1048e265fae 100644 --- a/app/src/organisms/ChangePipette/__tests__/PipetteSelection.test.tsx +++ b/app/src/organisms/ChangePipette/__tests__/PipetteSelection.test.tsx @@ -2,12 +2,12 @@ import * as React from 'react' import { vi, it, describe, beforeEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { PipetteSelect } from '../../../molecules/PipetteSelect' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { PipetteSelect } from '/app/molecules/PipetteSelect' import { PipetteSelection } from '../PipetteSelection' -vi.mock('../../../molecules/PipetteSelect') +vi.mock('/app/molecules/PipetteSelect') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ChangePipette/index.tsx b/app/src/organisms/ChangePipette/index.tsx index a3de4f6a8dd..cd91b04529e 100644 --- a/app/src/organisms/ChangePipette/index.tsx +++ b/app/src/organisms/ChangePipette/index.tsx @@ -15,8 +15,8 @@ import { useDispatchApiRequests, getRequestById, SUCCESS, -} from '../../redux/robot-api' -import { getCalibrationForPipette } from '../../redux/calibration' +} from '/app/redux/robot-api' +import { getCalibrationForPipette } from '/app/redux/calibration' import { home, move, @@ -27,10 +27,10 @@ import { PIPETTE, CHANGE_PIPETTE, HOME, -} from '../../redux/robot-controls' +} from '/app/redux/robot-controls' -import { WizardHeader } from '../../molecules/WizardHeader' -import { InProgressModal } from '../../molecules/InProgressModal/InProgressModal' +import { WizardHeader } from '/app/molecules/WizardHeader' +import { InProgressModal } from '/app/molecules/InProgressModal/InProgressModal' import { useAttachedPipettes } from '../Devices/hooks' import { ExitModal } from './ExitModal' import { Instructions } from './Instructions' @@ -48,8 +48,8 @@ import { } from './constants' import type { PipetteNameSpecs } from '@opentrons/shared-data' -import type { State, Dispatch } from '../../redux/types' -import type { Mount } from '../../redux/pipettes/types' +import type { State, Dispatch } from '/app/redux/types' +import type { Mount } from '/app/redux/pipettes/types' import type { WizardStep } from './types' interface Props { diff --git a/app/src/organisms/CheckCalibration/ResultsSummary/CalibrationHealthCheckResults.tsx b/app/src/organisms/CheckCalibration/ResultsSummary/CalibrationHealthCheckResults.tsx index f15a33b20ae..f105a212ecc 100644 --- a/app/src/organisms/CheckCalibration/ResultsSummary/CalibrationHealthCheckResults.tsx +++ b/app/src/organisms/CheckCalibration/ResultsSummary/CalibrationHealthCheckResults.tsx @@ -10,7 +10,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { StatusLabel } from '../../../atoms/StatusLabel' +import { StatusLabel } from '/app/atoms/StatusLabel' interface CalibrationHealthCheckResultsProps { isCalibrationRecommended: boolean diff --git a/app/src/organisms/CheckCalibration/ResultsSummary/RenderMountInformation.tsx b/app/src/organisms/CheckCalibration/ResultsSummary/RenderMountInformation.tsx index c7725db0c85..f93c62acdf6 100644 --- a/app/src/organisms/CheckCalibration/ResultsSummary/RenderMountInformation.tsx +++ b/app/src/organisms/CheckCalibration/ResultsSummary/RenderMountInformation.tsx @@ -10,8 +10,8 @@ import { } from '@opentrons/components' import { getPipetteModelSpecs } from '@opentrons/shared-data' -import type { Mount } from '../../../redux/pipettes/types' -import type { CalibrationCheckInstrument } from '../../../redux/sessions/types' +import type { Mount } from '/app/redux/pipettes/types' +import type { CalibrationCheckInstrument } from '/app/redux/sessions/types' interface MountInformationProps { mount: Mount diff --git a/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/CalibrationHealthCheckResults.test.tsx b/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/CalibrationHealthCheckResults.test.tsx index d170c31cb73..08e930a1391 100644 --- a/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/CalibrationHealthCheckResults.test.tsx +++ b/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/CalibrationHealthCheckResults.test.tsx @@ -4,8 +4,8 @@ import { screen } from '@testing-library/react' import { COLORS, TYPOGRAPHY } from '@opentrons/components' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CalibrationHealthCheckResults } from '../CalibrationHealthCheckResults' const render = ( diff --git a/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/CalibrationResult.test.tsx b/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/CalibrationResult.test.tsx index fd6938fdbcd..9004462430a 100644 --- a/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/CalibrationResult.test.tsx +++ b/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/CalibrationResult.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { vi, it, describe, beforeEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RenderResult } from '../RenderResult' import { CalibrationResult } from '../CalibrationResult' diff --git a/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/RenderMountInformation.test.tsx b/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/RenderMountInformation.test.tsx index c678cdf4c78..1915e0ae711 100644 --- a/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/RenderMountInformation.test.tsx +++ b/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/RenderMountInformation.test.tsx @@ -4,10 +4,10 @@ import { screen } from '@testing-library/react' import { getPipetteModelSpecs } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { LEFT, RIGHT } from '../../../../redux/pipettes' -import * as Fixtures from '../../../../redux/sessions/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { LEFT, RIGHT } from '/app/redux/pipettes' +import * as Fixtures from '/app/redux/sessions/__fixtures__' import { RenderMountInformation } from '../RenderMountInformation' vi.mock('@opentrons/shared-data', async importOriginal => { diff --git a/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/RenderResult.test.tsx b/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/RenderResult.test.tsx index a2b191e07a2..1fb708f81ba 100644 --- a/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/RenderResult.test.tsx +++ b/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/RenderResult.test.tsx @@ -4,8 +4,8 @@ import { screen } from '@testing-library/react' import { COLORS, SIZE_1 } from '@opentrons/components' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RenderResult } from '../RenderResult' diff --git a/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/ResultsSummary.test.tsx b/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/ResultsSummary.test.tsx index f9bef5d7feb..3f3ad46b7f1 100644 --- a/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/ResultsSummary.test.tsx +++ b/app/src/organisms/CheckCalibration/ResultsSummary/__tests__/ResultsSummary.test.tsx @@ -3,17 +3,17 @@ import { vi, it, describe, expect, beforeEach } from 'vitest' import { saveAs } from 'file-saver' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import * as Fixtures from '../../../../redux/sessions/__fixtures__' -import * as Sessions from '../../../../redux/sessions' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import * as Fixtures from '/app/redux/sessions/__fixtures__' +import * as Sessions from '/app/redux/sessions' import { CalibrationHealthCheckResults } from '../CalibrationHealthCheckResults' import { RenderMountInformation } from '../RenderMountInformation' import { CalibrationResult } from '../CalibrationResult' import { ResultsSummary } from '../' -import type { CalibrationPanelProps } from '../../../../organisms/CalibrationPanels/types' +import type { CalibrationPanelProps } from '/app/organisms/CalibrationPanels/types' // file-saver has circular dep, need to mock with factory to prevent error vi.mock('file-saver', async importOriginal => { @@ -23,8 +23,8 @@ vi.mock('file-saver', async importOriginal => { saveAs: vi.fn(), } }) -vi.mock('../../../../redux/sessions') -vi.mock('../../../../redux/pipettes') +vi.mock('/app/redux/sessions') +vi.mock('/app/redux/pipettes') vi.mock('../CalibrationHealthCheckResults') vi.mock('../RenderMountInformation') vi.mock('../CalibrationResult') diff --git a/app/src/organisms/CheckCalibration/ResultsSummary/index.tsx b/app/src/organisms/CheckCalibration/ResultsSummary/index.tsx index 54ba1e6110b..06aec08bec3 100644 --- a/app/src/organisms/CheckCalibration/ResultsSummary/index.tsx +++ b/app/src/organisms/CheckCalibration/ResultsSummary/index.tsx @@ -16,18 +16,18 @@ import { } from '@opentrons/components' import find from 'lodash/find' -import { LEFT, RIGHT } from '../../../redux/pipettes' -import { CHECK_STATUS_OUTSIDE_THRESHOLD } from '../../../redux/sessions' +import { LEFT, RIGHT } from '/app/redux/pipettes' +import { CHECK_STATUS_OUTSIDE_THRESHOLD } from '/app/redux/sessions' import { CalibrationHealthCheckResults } from './CalibrationHealthCheckResults' import { RenderMountInformation } from './RenderMountInformation' import { CalibrationResult } from './CalibrationResult' -import type { Mount } from '../../../redux/pipettes/types' -import type { CalibrationPanelProps } from '../../../organisms/CalibrationPanels/types' +import type { Mount } from '/app/redux/pipettes/types' +import type { CalibrationPanelProps } from '/app/organisms/CalibrationPanels/types' import type { CalibrationCheckInstrument, CalibrationCheckComparisonsPerCalibration, -} from '../../../redux/sessions/types' +} from '/app/redux/sessions/types' export function ResultsSummary( props: CalibrationPanelProps diff --git a/app/src/organisms/CheckCalibration/ReturnTip.tsx b/app/src/organisms/CheckCalibration/ReturnTip.tsx index 5af67553a93..02a9963be89 100644 --- a/app/src/organisms/CheckCalibration/ReturnTip.tsx +++ b/app/src/organisms/CheckCalibration/ReturnTip.tsx @@ -10,9 +10,9 @@ import { } from '@opentrons/components' import uniq from 'lodash/uniq' -import * as Sessions from '../../redux/sessions' -import type { CalibrationPanelProps } from '../../organisms/CalibrationPanels/types' -import type { SessionCommandString } from '../../redux/sessions/types' +import * as Sessions from '/app/redux/sessions' +import type { CalibrationPanelProps } from '/app/organisms/CalibrationPanels/types' +import type { SessionCommandString } from '/app/redux/sessions/types' import { useTranslation } from 'react-i18next' import { NeedHelpLink } from '../CalibrationPanels' diff --git a/app/src/organisms/CheckCalibration/__tests__/CheckCalibration.test.tsx b/app/src/organisms/CheckCalibration/__tests__/CheckCalibration.test.tsx index 59cdf4ece01..47ee094592f 100644 --- a/app/src/organisms/CheckCalibration/__tests__/CheckCalibration.test.tsx +++ b/app/src/organisms/CheckCalibration/__tests__/CheckCalibration.test.tsx @@ -5,16 +5,16 @@ import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { getDeckDefinitions } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import * as Sessions from '../../../redux/sessions' -import { mockCalibrationCheckSessionAttributes } from '../../../redux/sessions/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import * as Sessions from '/app/redux/sessions' +import { mockCalibrationCheckSessionAttributes } from '/app/redux/sessions/__fixtures__' import { CheckCalibration } from '../index' -import type { RobotCalibrationCheckStep } from '../../../redux/sessions/types' +import type { RobotCalibrationCheckStep } from '/app/redux/sessions/types' -vi.mock('../../../redux/calibration/selectors') -vi.mock('../../../redux/config') +vi.mock('/app/redux/calibration/selectors') +vi.mock('/app/redux/config') vi.mock('@opentrons/shared-data', async importOriginal => { const actual = await importOriginal() return { diff --git a/app/src/organisms/CheckCalibration/index.tsx b/app/src/organisms/CheckCalibration/index.tsx index 595afa1b8cf..4711d3208e1 100644 --- a/app/src/organisms/CheckCalibration/index.tsx +++ b/app/src/organisms/CheckCalibration/index.tsx @@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next' import { getPipetteModelSpecs } from '@opentrons/shared-data' import { useConditionalConfirm, ModalShell } from '@opentrons/components' -import * as Sessions from '../../redux/sessions' +import * as Sessions from '/app/redux/sessions' import { Introduction, DeckSetup, @@ -17,8 +17,8 @@ import { MeasureTip, LoadingState, ConfirmExit, -} from '../../organisms/CalibrationPanels' -import { WizardHeader } from '../../molecules/WizardHeader' +} from '/app/organisms/CalibrationPanels' +import { WizardHeader } from '/app/molecules/WizardHeader' import { getTopPortalEl } from '../../App/portal' import { ReturnTip } from './ReturnTip' import { ResultsSummary } from './ResultsSummary' @@ -29,11 +29,11 @@ import type { RobotCalibrationCheckPipetteRank, RobotCalibrationCheckStep, SessionCommandParams, -} from '../../redux/sessions/types' +} from '/app/redux/sessions/types' -import type { CalibrationPanelProps } from '../../organisms/CalibrationPanels/types' +import type { CalibrationPanelProps } from '/app/organisms/CalibrationPanels/types' import type { CalibrationCheckParentProps } from './types' -import { CHECK_PIPETTE_RANK_FIRST } from '../../redux/sessions' +import { CHECK_PIPETTE_RANK_FIRST } from '/app/redux/sessions' const ROBOT_CALIBRATION_CHECK_SUBTITLE = 'Calibration health check' diff --git a/app/src/organisms/CheckCalibration/types.ts b/app/src/organisms/CheckCalibration/types.ts index 03a70b2127c..c409064c702 100644 --- a/app/src/organisms/CheckCalibration/types.ts +++ b/app/src/organisms/CheckCalibration/types.ts @@ -1,5 +1,5 @@ -import type { CalibrationCheckSession } from '../../redux/sessions/types' -import type { DispatchRequestsType } from '../../redux/robot-api' +import type { CalibrationCheckSession } from '/app/redux/sessions/types' +import type { DispatchRequestsType } from '/app/redux/robot-api' export interface CalibrationCheckParentProps { robotName: string diff --git a/app/src/organisms/ChildNavigation/ChildNavigation.stories.tsx b/app/src/organisms/ChildNavigation/ChildNavigation.stories.tsx index ce1e4af098e..c904b538041 100644 --- a/app/src/organisms/ChildNavigation/ChildNavigation.stories.tsx +++ b/app/src/organisms/ChildNavigation/ChildNavigation.stories.tsx @@ -2,7 +2,7 @@ import { VIEWPORT } from '@opentrons/components' import { ChildNavigation as ChildNavigationComponent } from '.' import type { Meta, StoryObj } from '@storybook/react' -import type { SmallButton } from '../../atoms/buttons' +import type { SmallButton } from '/app/atoms/buttons' const meta: Meta = { title: 'ODD/Organisms/ChildNavigation', diff --git a/app/src/organisms/ChildNavigation/__tests__/ChildNavigation.test.tsx b/app/src/organisms/ChildNavigation/__tests__/ChildNavigation.test.tsx index b3ea0914d8f..6bf5654398b 100644 --- a/app/src/organisms/ChildNavigation/__tests__/ChildNavigation.test.tsx +++ b/app/src/organisms/ChildNavigation/__tests__/ChildNavigation.test.tsx @@ -2,9 +2,9 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { ChildNavigation } from '..' -import type { SmallButton } from '../../../atoms/buttons' +import type { SmallButton } from '/app/atoms/buttons' const render = (props: React.ComponentProps) => renderWithProviders() diff --git a/app/src/organisms/ChildNavigation/index.tsx b/app/src/organisms/ChildNavigation/index.tsx index da215a69e1a..9c2b0596ab1 100644 --- a/app/src/organisms/ChildNavigation/index.tsx +++ b/app/src/organisms/ChildNavigation/index.tsx @@ -16,17 +16,17 @@ import { TYPOGRAPHY, CURSOR_DEFAULT, } from '@opentrons/components' -import { ODD_FOCUS_VISIBLE } from '../../atoms/buttons/constants' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' -import { SmallButton } from '../../atoms/buttons' -import { InlineNotification } from '../../atoms/InlineNotification' +import { SmallButton } from '/app/atoms/buttons' +import { InlineNotification } from '/app/atoms/InlineNotification' import type { IconName, StyleProps } from '@opentrons/components' -import type { InlineNotificationProps } from '../../atoms/InlineNotification' +import type { InlineNotificationProps } from '/app/atoms/InlineNotification' import type { IconPlacement, SmallButtonTypes, -} from '../../atoms/buttons/SmallButton' +} from '/app/atoms/buttons/SmallButton' interface ChildNavigationProps extends StyleProps { header: string diff --git a/app/src/organisms/ChooseProtocolSlideout/__tests__/ChooseProtocolSlideout.test.tsx b/app/src/organisms/ChooseProtocolSlideout/__tests__/ChooseProtocolSlideout.test.tsx index 28063f63f11..89ae868022a 100644 --- a/app/src/organisms/ChooseProtocolSlideout/__tests__/ChooseProtocolSlideout.test.tsx +++ b/app/src/organisms/ChooseProtocolSlideout/__tests__/ChooseProtocolSlideout.test.tsx @@ -7,25 +7,25 @@ import { OT2_ROBOT_TYPE, simpleAnalysisFileFixture, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { getStoredProtocols } from '../../../redux/protocol-storage' -import { mockConnectableRobot } from '../../../redux/discovery/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getStoredProtocols } from '/app/redux/protocol-storage' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import { storedProtocolData as storedProtocolDataFixture, storedProtocolDataWithoutRunTimeParameters, -} from '../../../redux/protocol-storage/__fixtures__' -import { useTrackCreateProtocolRunEvent } from '../../../organisms/Devices/hooks' +} from '/app/redux/protocol-storage/__fixtures__' +import { useTrackCreateProtocolRunEvent } from '/app/organisms/Devices/hooks' import { useCreateRunFromProtocol } from '../../ChooseRobotToRunProtocolSlideout/useCreateRunFromProtocol' import { ChooseProtocolSlideout } from '../' -import { useNotifyDataReady } from '../../../resources/useNotifyDataReady' +import { useNotifyDataReady } from '/app/resources/useNotifyDataReady' import type { ProtocolAnalysisOutput } from '@opentrons/shared-data' vi.mock('../../ChooseRobotToRunProtocolSlideout/useCreateRunFromProtocol') -vi.mock('../../../redux/protocol-storage') -vi.mock('../../../organisms/Devices/hooks') -vi.mock('../../../redux/config') -vi.mock('../../../resources/useNotifyDataReady') +vi.mock('/app/redux/protocol-storage') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/redux/config') +vi.mock('/app/resources/useNotifyDataReady') const render = (props: React.ComponentProps) => { return renderWithProviders( diff --git a/app/src/organisms/ChooseProtocolSlideout/index.tsx b/app/src/organisms/ChooseProtocolSlideout/index.tsx index 119121fb90c..ec7fff8d6c3 100644 --- a/app/src/organisms/ChooseProtocolSlideout/index.tsx +++ b/app/src/organisms/ChooseProtocolSlideout/index.tsx @@ -43,13 +43,13 @@ import { import { sortRuntimeParameters } from '@opentrons/shared-data' import { useLogger } from '../../logger' -import { OPENTRONS_USB } from '../../redux/discovery' -import { getStoredProtocols } from '../../redux/protocol-storage' -import { appShellRequestor } from '../../redux/shell/remote' -import { MultiSlideout } from '../../atoms/Slideout/MultiSlideout' -import { ToggleButton } from '../../atoms/buttons' -import { MiniCard } from '../../molecules/MiniCard' -import { UploadInput } from '../../molecules/UploadInput' +import { OPENTRONS_USB } from '/app/redux/discovery' +import { getStoredProtocols } from '/app/redux/protocol-storage' +import { appShellRequestor } from '/app/redux/shell/remote' +import { MultiSlideout } from '/app/atoms/Slideout/MultiSlideout' +import { ToggleButton } from '/app/atoms/buttons' +import { MiniCard } from '/app/molecules/MiniCard' +import { UploadInput } from '/app/molecules/UploadInput' import { useTrackCreateProtocolRunEvent } from '../Devices/hooks' import { useCreateRunFromProtocol } from '../ChooseRobotToRunProtocolSlideout/useCreateRunFromProtocol' import { ApplyHistoricOffsets } from '../ApplyHistoricOffsets' @@ -63,9 +63,9 @@ import { getAnalysisStatus } from '../ProtocolsLanding/utils' import type { DropdownOption } from '@opentrons/components' import type { RunTimeParameter } from '@opentrons/shared-data' -import type { Robot } from '../../redux/discovery/types' -import type { StoredProtocolData } from '../../redux/protocol-storage' -import type { State } from '../../redux/types' +import type { Robot } from '/app/redux/discovery/types' +import type { StoredProtocolData } from '/app/redux/protocol-storage' +import type { State } from '/app/redux/types' export const CARD_OUTLINE_BORDER_STYLE = css` border-style: ${BORDERS.styleSolid}; diff --git a/app/src/organisms/ChooseRobotSlideout/AvailableRobotOption.tsx b/app/src/organisms/ChooseRobotSlideout/AvailableRobotOption.tsx index 7953a0cd353..f06464c2f2a 100644 --- a/app/src/organisms/ChooseRobotSlideout/AvailableRobotOption.tsx +++ b/app/src/organisms/ChooseRobotSlideout/AvailableRobotOption.tsx @@ -16,18 +16,18 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { MiniCard } from '../../molecules/MiniCard' -import { getRobotModelByName, OPENTRONS_USB } from '../../redux/discovery' -import { getNetworkInterfaces, fetchStatus } from '../../redux/networking' -import { appShellRequestor } from '../../redux/shell/remote' -import OT2_PNG from '../../assets/images/OT2-R_HERO.png' -import FLEX_PNG from '../../assets/images/FLEX.png' -import { useCurrentRunId, useNotifyRunQuery } from '../../resources/runs' +import { MiniCard } from '/app/molecules/MiniCard' +import { getRobotModelByName, OPENTRONS_USB } from '/app/redux/discovery' +import { getNetworkInterfaces, fetchStatus } from '/app/redux/networking' +import { appShellRequestor } from '/app/redux/shell/remote' +import OT2_PNG from '/app/assets/images/OT2-R_HERO.png' +import FLEX_PNG from '/app/assets/images/FLEX.png' +import { useCurrentRunId, useNotifyRunQuery } from '/app/resources/runs' import type { IconName } from '@opentrons/components' import type { Runs } from '@opentrons/api-client' -import type { Robot } from '../../redux/discovery/types' -import type { Dispatch, State } from '../../redux/types' +import type { Robot } from '/app/redux/discovery/types' +import type { Dispatch, State } from '/app/redux/types' import type { RobotBusyStatusAction } from '.' interface AvailableRobotOptionProps { diff --git a/app/src/organisms/ChooseRobotSlideout/__tests__/ChooseRobotSlideout.test.tsx b/app/src/organisms/ChooseRobotSlideout/__tests__/ChooseRobotSlideout.test.tsx index 41dff450fb0..b9c3eab323c 100644 --- a/app/src/organisms/ChooseRobotSlideout/__tests__/ChooseRobotSlideout.test.tsx +++ b/app/src/organisms/ChooseRobotSlideout/__tests__/ChooseRobotSlideout.test.tsx @@ -5,29 +5,29 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { OT2_ROBOT_TYPE } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { getConnectableRobots, getReachableRobots, getScanning, getUnreachableRobots, startDiscovery, -} from '../../../redux/discovery' +} from '/app/redux/discovery' import { mockConnectableRobot, mockReachableRobot, mockUnreachableRobot, -} from '../../../redux/discovery/__fixtures__' -import { getNetworkInterfaces } from '../../../redux/networking' +} from '/app/redux/discovery/__fixtures__' +import { getNetworkInterfaces } from '/app/redux/networking' import { ChooseRobotSlideout } from '..' -import { useNotifyDataReady } from '../../../resources/useNotifyDataReady' +import { useNotifyDataReady } from '/app/resources/useNotifyDataReady' import type { RunTimeParameter } from '@opentrons/shared-data' -vi.mock('../../../redux/discovery') -vi.mock('../../../redux/robot-update') -vi.mock('../../../redux/networking') -vi.mock('../../../resources/useNotifyDataReady') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-update') +vi.mock('/app/redux/networking') +vi.mock('/app/resources/useNotifyDataReady') const render = (props: React.ComponentProps) => { return renderWithProviders( diff --git a/app/src/organisms/ChooseRobotSlideout/__tests__/FileCard.test.tsx b/app/src/organisms/ChooseRobotSlideout/__tests__/FileCard.test.tsx index a0774001b4d..eefe4f96241 100644 --- a/app/src/organisms/ChooseRobotSlideout/__tests__/FileCard.test.tsx +++ b/app/src/organisms/ChooseRobotSlideout/__tests__/FileCard.test.tsx @@ -3,17 +3,17 @@ import { vi, it, describe, expect } from 'vitest' import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { FileCard } from '../FileCard' import type { CsvFileParameter } from '@opentrons/shared-data' -vi.mock('../../../redux/discovery') -vi.mock('../../../redux/robot-update') -vi.mock('../../../redux/networking') -vi.mock('../../../resources/useNotifyDataReady') -vi.mock('../../../redux/config') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-update') +vi.mock('/app/redux/networking') +vi.mock('/app/resources/useNotifyDataReady') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders( diff --git a/app/src/organisms/ChooseRobotSlideout/index.tsx b/app/src/organisms/ChooseRobotSlideout/index.tsx index 629634840fb..109d1832163 100644 --- a/app/src/organisms/ChooseRobotSlideout/index.tsx +++ b/app/src/organisms/ChooseRobotSlideout/index.tsx @@ -46,21 +46,21 @@ import { startDiscovery, RE_ROBOT_MODEL_OT2, RE_ROBOT_MODEL_OT3, -} from '../../redux/discovery' -import { Banner } from '../../atoms/Banner' -import { Slideout } from '../../atoms/Slideout' -import { MultiSlideout } from '../../atoms/Slideout/MultiSlideout' -import { ToggleButton } from '../../atoms/buttons' +} from '/app/redux/discovery' +import { Banner } from '/app/atoms/Banner' +import { Slideout } from '/app/atoms/Slideout' +import { MultiSlideout } from '/app/atoms/Slideout/MultiSlideout' +import { ToggleButton } from '/app/atoms/buttons' import { AvailableRobotOption } from './AvailableRobotOption' -import { UploadInput } from '../../molecules/UploadInput' +import { UploadInput } from '/app/molecules/UploadInput' import { FileCard } from './FileCard' import type { RobotType, RunTimeParameter } from '@opentrons/shared-data' import type { DropdownOption } from '@opentrons/components' -import type { SlideoutProps } from '../../atoms/Slideout' -import type { UseCreateRun } from '../../organisms/ChooseRobotToRunProtocolSlideout/useCreateRunFromProtocol' -import type { State, Dispatch } from '../../redux/types' -import type { Robot } from '../../redux/discovery/types' +import type { SlideoutProps } from '/app/atoms/Slideout' +import type { UseCreateRun } from '/app/organisms/ChooseRobotToRunProtocolSlideout/useCreateRunFromProtocol' +import type { State, Dispatch } from '/app/redux/types' +import type { Robot } from '/app/redux/discovery/types' export const CARD_OUTLINE_BORDER_STYLE = css` border-style: ${BORDERS.styleSolid}; diff --git a/app/src/organisms/ChooseRobotToRunProtocolSlideout/__tests__/ChooseRobotToRunProtocolSlideout.test.tsx b/app/src/organisms/ChooseRobotToRunProtocolSlideout/__tests__/ChooseRobotToRunProtocolSlideout.test.tsx index f201f47f539..d70a8bb1640 100644 --- a/app/src/organisms/ChooseRobotToRunProtocolSlideout/__tests__/ChooseRobotToRunProtocolSlideout.test.tsx +++ b/app/src/organisms/ChooseRobotToRunProtocolSlideout/__tests__/ChooseRobotToRunProtocolSlideout.test.tsx @@ -4,48 +4,48 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen, waitFor } from '@testing-library/react' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { useTrackCreateProtocolRunEvent } from '../../../organisms/Devices/hooks' -import { useCloseCurrentRun } from '../../../organisms/ProtocolUpload/hooks' -import { useCurrentRunStatus } from '../../../organisms/RunTimeControl/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useTrackCreateProtocolRunEvent } from '/app/organisms/Devices/hooks' +import { useCloseCurrentRun } from '/app/organisms/ProtocolUpload/hooks' +import { useCurrentRunStatus } from '/app/organisms/RunTimeControl/hooks' import { getConnectableRobots, getReachableRobots, getScanning, getUnreachableRobots, startDiscovery, -} from '../../../redux/discovery' -import { useIsRobotOnWrongVersionOfSoftware } from '../../../redux/robot-update' +} from '/app/redux/discovery' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' import { mockConnectableRobot, mockReachableRobot, mockUnreachableRobot, -} from '../../../redux/discovery/__fixtures__' -import { getNetworkInterfaces } from '../../../redux/networking' +} from '/app/redux/discovery/__fixtures__' +import { getNetworkInterfaces } from '/app/redux/networking' import { storedProtocolData as storedProtocolDataFixture, storedProtocolDataWithCsvRunTimeParameter, -} from '../../../redux/protocol-storage/__fixtures__' +} from '/app/redux/protocol-storage/__fixtures__' import { useCreateRunFromProtocol } from '../useCreateRunFromProtocol' import { useOffsetCandidatesForAnalysis } from '../../ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' import { ChooseRobotToRunProtocolSlideout } from '../' -import { useNotifyDataReady } from '../../../resources/useNotifyDataReady' -import { useCurrentRunId } from '../../../resources/runs' +import { useNotifyDataReady } from '/app/resources/useNotifyDataReady' +import { useCurrentRunId } from '/app/resources/runs' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../organisms/Devices/hooks') -vi.mock('../../../organisms/ProtocolUpload/hooks') -vi.mock('../../../organisms/RunTimeControl/hooks') -vi.mock('../../../redux/config') -vi.mock('../../../redux/discovery') -vi.mock('../../../redux/robot-update') -vi.mock('../../../redux/networking') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/organisms/ProtocolUpload/hooks') +vi.mock('/app/organisms/RunTimeControl/hooks') +vi.mock('/app/redux/config') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-update') +vi.mock('/app/redux/networking') vi.mock('../useCreateRunFromProtocol') vi.mock('../../ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis') -vi.mock('../../../resources/useNotifyDataReady') -vi.mock('../../../resources/runs') +vi.mock('/app/resources/useNotifyDataReady') +vi.mock('/app/resources/runs') const render = ( props: React.ComponentProps diff --git a/app/src/organisms/ChooseRobotToRunProtocolSlideout/index.tsx b/app/src/organisms/ChooseRobotToRunProtocolSlideout/index.tsx index a715291e351..f1c234ce19f 100644 --- a/app/src/organisms/ChooseRobotToRunProtocolSlideout/index.tsx +++ b/app/src/organisms/ChooseRobotToRunProtocolSlideout/index.tsx @@ -21,9 +21,9 @@ import { ApiHostProvider, } from '@opentrons/react-api-client' -import { useIsRobotOnWrongVersionOfSoftware } from '../../redux/robot-update' -import { OPENTRONS_USB } from '../../redux/discovery' -import { appShellRequestor } from '../../redux/shell/remote' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' +import { OPENTRONS_USB } from '/app/redux/discovery' +import { appShellRequestor } from '/app/redux/shell/remote' import { useTrackCreateProtocolRunEvent } from '../Devices/hooks' import { getRunTimeParameterFilesForRun, @@ -35,8 +35,8 @@ import { ChooseRobotSlideout } from '../ChooseRobotSlideout' import { useCreateRunFromProtocol } from './useCreateRunFromProtocol' import type { StyleProps } from '@opentrons/components' import type { RunTimeParameter } from '@opentrons/shared-data' -import type { Robot } from '../../redux/discovery/types' -import type { StoredProtocolData } from '../../redux/protocol-storage' +import type { Robot } from '/app/redux/discovery/types' +import type { StoredProtocolData } from '/app/redux/protocol-storage' const _getFileBaseName = (filePath: string): string => { return filePath.split('/').reverse()[0] diff --git a/app/src/organisms/ChooseRobotToRunProtocolSlideout/useCreateRunFromProtocol.ts b/app/src/organisms/ChooseRobotToRunProtocolSlideout/useCreateRunFromProtocol.ts index 1dcddfe12ce..58d1bdf08df 100644 --- a/app/src/organisms/ChooseRobotToRunProtocolSlideout/useCreateRunFromProtocol.ts +++ b/app/src/organisms/ChooseRobotToRunProtocolSlideout/useCreateRunFromProtocol.ts @@ -7,7 +7,7 @@ import { import { useSelector } from 'react-redux' import { useTranslation } from 'react-i18next' -import { getValidCustomLabwareFiles } from '../../redux/custom-labware/selectors' +import { getValidCustomLabwareFiles } from '/app/redux/custom-labware/selectors' import type { UseMutateFunction } from 'react-query' import type { @@ -17,7 +17,7 @@ import type { } from '@opentrons/api-client' import type { UseCreateRunMutationOptions } from '@opentrons/react-api-client/src/runs/useCreateRunMutation' import type { CreateProtocolVariables } from '@opentrons/react-api-client/src/protocols/useCreateProtocolMutation' -import type { State } from '../../redux/types' +import type { State } from '/app/redux/types' export interface UseCreateRun { createRunFromProtocolSource: UseMutateFunction< diff --git a/app/src/organisms/ConfigurePipette/ConfigFormResetButton.tsx b/app/src/organisms/ConfigurePipette/ConfigFormResetButton.tsx index ff6b6510ecc..8d640e89bda 100644 --- a/app/src/organisms/ConfigurePipette/ConfigFormResetButton.tsx +++ b/app/src/organisms/ConfigurePipette/ConfigFormResetButton.tsx @@ -8,7 +8,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Divider } from '../../atoms/structure' +import { Divider } from '/app/atoms/structure' export interface ButtonProps { onClick?: () => unknown diff --git a/app/src/organisms/ConfigurePipette/__tests__/ConfigFormResetButton.test.tsx b/app/src/organisms/ConfigurePipette/__tests__/ConfigFormResetButton.test.tsx index 896962d14a0..bcec76bc2ea 100644 --- a/app/src/organisms/ConfigurePipette/__tests__/ConfigFormResetButton.test.tsx +++ b/app/src/organisms/ConfigurePipette/__tests__/ConfigFormResetButton.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, expect, describe, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ConfigFormResetButton } from '../ConfigFormResetButton' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ConfigurePipette/__tests__/ConfigFormSubmitButton.test.tsx b/app/src/organisms/ConfigurePipette/__tests__/ConfigFormSubmitButton.test.tsx index ddc9feadf47..3a10eb988f0 100644 --- a/app/src/organisms/ConfigurePipette/__tests__/ConfigFormSubmitButton.test.tsx +++ b/app/src/organisms/ConfigurePipette/__tests__/ConfigFormSubmitButton.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { it, expect, describe, beforeEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ConfigFormSubmitButton } from '../ConfigFormSubmitButton' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ConfigurePipette/__tests__/ConfigurePipette.test.tsx b/app/src/organisms/ConfigurePipette/__tests__/ConfigurePipette.test.tsx index 117a6586f76..e3e37a76ff0 100644 --- a/app/src/organisms/ConfigurePipette/__tests__/ConfigurePipette.test.tsx +++ b/app/src/organisms/ConfigurePipette/__tests__/ConfigurePipette.test.tsx @@ -2,19 +2,19 @@ import * as React from 'react' import { when } from 'vitest-when' import { vi, it, expect, describe, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import * as RobotApi from '../../../redux/robot-api' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import * as RobotApi from '/app/redux/robot-api' import { ConfigurePipette } from '../../ConfigurePipette' -import { mockPipetteSettingsFieldsMap } from '../../../redux/pipettes/__fixtures__' -import { getConfig } from '../../../redux/config' +import { mockPipetteSettingsFieldsMap } from '/app/redux/pipettes/__fixtures__' +import { getConfig } from '/app/redux/config' -import type { DispatchApiRequestType } from '../../../redux/robot-api' -import type { State } from '../../../redux/types' +import type { DispatchApiRequestType } from '/app/redux/robot-api' +import type { State } from '/app/redux/types' import { screen } from '@testing-library/react' -vi.mock('../../../redux/robot-api') -vi.mock('../../../redux/config') +vi.mock('/app/redux/robot-api') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/DeviceDetailsDeckConfiguration/AddFixtureModal.tsx b/app/src/organisms/DeviceDetailsDeckConfiguration/AddFixtureModal.tsx index aff67233560..16062be3034 100644 --- a/app/src/organisms/DeviceDetailsDeckConfiguration/AddFixtureModal.tsx +++ b/app/src/organisms/DeviceDetailsDeckConfiguration/AddFixtureModal.tsx @@ -49,10 +49,10 @@ import { WASTE_CHUTE_FIXTURES, } from '@opentrons/shared-data' -import { ODD_FOCUS_VISIBLE } from '../../atoms/buttons/constants' -import { TertiaryButton } from '../../atoms/buttons' -import { OddModal } from '../../molecules/OddModal' -import { useNotifyDeckConfigurationQuery } from '../../resources/deck_configuration/' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' +import { TertiaryButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration/' import type { CutoutConfig, @@ -60,7 +60,7 @@ import type { CutoutFixtureId, } from '@opentrons/shared-data' import type { ModalProps } from '@opentrons/components' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface AddFixtureModalProps { cutoutId: CutoutId diff --git a/app/src/organisms/DeviceDetailsDeckConfiguration/DeckConfigurationDiscardChangesModal.tsx b/app/src/organisms/DeviceDetailsDeckConfiguration/DeckConfigurationDiscardChangesModal.tsx index 31b1db88fba..9e803032b2d 100644 --- a/app/src/organisms/DeviceDetailsDeckConfiguration/DeckConfigurationDiscardChangesModal.tsx +++ b/app/src/organisms/DeviceDetailsDeckConfiguration/DeckConfigurationDiscardChangesModal.tsx @@ -10,10 +10,10 @@ import { LegacyStyledText, } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' -import { OddModal } from '../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface DeckConfigurationDiscardChangesModalProps { setShowConfirmationModal: (showConfirmationModal: boolean) => void diff --git a/app/src/organisms/DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal.tsx b/app/src/organisms/DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal.tsx index 944a74aa394..8f7f72c3433 100644 --- a/app/src/organisms/DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal.tsx +++ b/app/src/organisms/DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal.tsx @@ -11,13 +11,13 @@ import { Modal, LegacyStyledText, } from '@opentrons/components' -import { ExternalLink } from '../../atoms/Link/ExternalLink' -import { OddModal } from '../../molecules/OddModal' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' +import { OddModal } from '/app/molecules/OddModal' import type { ModalProps } from '@opentrons/components' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' -import imgSrc from '../../assets/images/on-device-display/deck_fixture_setup_qrcode.png' +import imgSrc from '/app/assets/images/on-device-display/deck_fixture_setup_qrcode.png' const SETUP_INSTRUCTION_URL = 'https://support.opentrons.com/s/article/Deck-configuration-on-Opentrons-Flex' diff --git a/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/AddFixtureModal.test.tsx b/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/AddFixtureModal.test.tsx index 17ae8511513..3834d80f839 100644 --- a/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/AddFixtureModal.test.tsx +++ b/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/AddFixtureModal.test.tsx @@ -11,17 +11,17 @@ import { WASTE_CHUTE_FIXTURES, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { AddFixtureModal } from '../AddFixtureModal' -import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { UseQueryResult } from 'react-query' import type { DeckConfiguration } from '@opentrons/shared-data' import type { Modules } from '@opentrons/api-client' vi.mock('@opentrons/react-api-client') -vi.mock('../../../resources/deck_configuration') +vi.mock('/app/resources/deck_configuration') const mockCloseModal = vi.fn() const mockUpdateDeckConfiguration = vi.fn() diff --git a/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeckConfigurationDiscardChangesModal.test.tsx b/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeckConfigurationDiscardChangesModal.test.tsx index 8b2d6c409d4..538ee899f46 100644 --- a/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeckConfigurationDiscardChangesModal.test.tsx +++ b/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeckConfigurationDiscardChangesModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, vi, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { DeckConfigurationDiscardChangesModal } from '../DeckConfigurationDiscardChangesModal' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeckFixtureSetupInstructionsModal.test.tsx b/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeckFixtureSetupInstructionsModal.test.tsx index e9a6ce85c2a..611f34b2600 100644 --- a/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeckFixtureSetupInstructionsModal.test.tsx +++ b/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeckFixtureSetupInstructionsModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, vi, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { DeckFixtureSetupInstructionsModal } from '../DeckFixtureSetupInstructionsModal' const mockFunc = vi.fn() diff --git a/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeviceDetailsDeckConfiguration.test.tsx b/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeviceDetailsDeckConfiguration.test.tsx index baa497c843d..731639882e8 100644 --- a/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeviceDetailsDeckConfiguration.test.tsx +++ b/app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/DeviceDetailsDeckConfiguration.test.tsx @@ -10,17 +10,17 @@ import { useUpdateDeckConfigurationMutation, } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useIsRobotViewable, useRunStatuses } from '../../Devices/hooks' import { DeckFixtureSetupInstructionsModal } from '../DeckFixtureSetupInstructionsModal' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { DeviceDetailsDeckConfiguration } from '../' -import { useNotifyCurrentMaintenanceRun } from '../../../resources/maintenance_runs' +import { useNotifyCurrentMaintenanceRun } from '/app/resources/maintenance_runs' import { useDeckConfigurationEditingTools, useNotifyDeckConfigurationQuery, -} from '../../../resources/deck_configuration' +} from '/app/resources/deck_configuration' import type { UseQueryResult } from 'react-query' import type { MaintenanceRun } from '@opentrons/api-client' @@ -37,9 +37,9 @@ vi.mock('@opentrons/components', async importOriginal => { vi.mock('@opentrons/react-api-client') vi.mock('../DeckFixtureSetupInstructionsModal') vi.mock('../../Devices/hooks') -vi.mock('../../../resources/maintenance_runs') -vi.mock('../../../resources/devices/hooks/useIsEstopNotDisengaged') -vi.mock('../../../resources/deck_configuration') +vi.mock('/app/resources/maintenance_runs') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/resources/deck_configuration') const mockDeckConfig = [ { diff --git a/app/src/organisms/DeviceDetailsDeckConfiguration/index.tsx b/app/src/organisms/DeviceDetailsDeckConfiguration/index.tsx index d42f91ed558..2e717a4638a 100644 --- a/app/src/organisms/DeviceDetailsDeckConfiguration/index.tsx +++ b/app/src/organisms/DeviceDetailsDeckConfiguration/index.tsx @@ -28,15 +28,15 @@ import { FLEX_ROBOT_TYPE, } from '@opentrons/shared-data' -import { useNotifyCurrentMaintenanceRun } from '../../resources/maintenance_runs' -import { Banner } from '../../atoms/Banner' +import { useNotifyCurrentMaintenanceRun } from '/app/resources/maintenance_runs' +import { Banner } from '/app/atoms/Banner' import { DeckFixtureSetupInstructionsModal } from './DeckFixtureSetupInstructionsModal' import { useIsRobotViewable, useRunStatuses } from '../Devices/hooks' -import { useIsEstopNotDisengaged } from '../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { useDeckConfigurationEditingTools, useNotifyDeckConfigurationQuery, -} from '../../resources/deck_configuration' +} from '/app/resources/deck_configuration' import type { CutoutId } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/CalibrationStatusBanner.tsx b/app/src/organisms/Devices/CalibrationStatusBanner.tsx index 27374e10d5d..0a16d516658 100644 --- a/app/src/organisms/Devices/CalibrationStatusBanner.tsx +++ b/app/src/organisms/Devices/CalibrationStatusBanner.tsx @@ -14,7 +14,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import { useCalibrationTaskList } from './hooks' interface CalibrationStatusBannerProps { diff --git a/app/src/organisms/Devices/DevicesEmptyState.tsx b/app/src/organisms/Devices/DevicesEmptyState.tsx index ded89155cd6..95ec5f8af2c 100644 --- a/app/src/organisms/Devices/DevicesEmptyState.tsx +++ b/app/src/organisms/Devices/DevicesEmptyState.tsx @@ -20,7 +20,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { startDiscovery } from '../../redux/discovery' +import { startDiscovery } from '/app/redux/discovery' export const TROUBLESHOOTING_CONNECTION_PROBLEMS_URL = 'https://support.opentrons.com/s/article/Troubleshooting-connection-problems' diff --git a/app/src/organisms/Devices/EstopBanner.tsx b/app/src/organisms/Devices/EstopBanner.tsx index accb9f58838..f006be1ed47 100644 --- a/app/src/organisms/Devices/EstopBanner.tsx +++ b/app/src/organisms/Devices/EstopBanner.tsx @@ -9,7 +9,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import { NOT_PRESENT, PHYSICALLY_ENGAGED, diff --git a/app/src/organisms/Devices/HistoricalProtocolRunDrawer.tsx b/app/src/organisms/Devices/HistoricalProtocolRunDrawer.tsx index 6108bdd5ee5..26316a4b990 100644 --- a/app/src/organisms/Devices/HistoricalProtocolRunDrawer.tsx +++ b/app/src/organisms/Devices/HistoricalProtocolRunDrawer.tsx @@ -27,10 +27,10 @@ import { } from '@opentrons/shared-data' import { useCsvFileQuery } from '@opentrons/react-api-client' import { DownloadCsvFileLink } from './DownloadCsvFileLink' -import { Banner } from '../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import { useMostRecentCompletedAnalysis } from '../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useDeckCalibrationData } from './hooks' -import { OffsetVector } from '../../molecules/OffsetVector' +import { OffsetVector } from '/app/molecules/OffsetVector' import type { RunData } from '@opentrons/api-client' interface HistoricalProtocolRunDrawerProps { diff --git a/app/src/organisms/Devices/HistoricalProtocolRunOverflowMenu.tsx b/app/src/organisms/Devices/HistoricalProtocolRunOverflowMenu.tsx index 0d61a271ee7..8df2dcdb1fd 100644 --- a/app/src/organisms/Devices/HistoricalProtocolRunOverflowMenu.tsx +++ b/app/src/organisms/Devices/HistoricalProtocolRunOverflowMenu.tsx @@ -25,16 +25,16 @@ import { } from '@opentrons/components' import { useDeleteRunMutation } from '@opentrons/react-api-client' -import { Divider } from '../../atoms/structure' -import { useRunControls } from '../../organisms/RunTimeControl/hooks' +import { Divider } from '/app/atoms/structure' +import { useRunControls } from '/app/organisms/RunTimeControl/hooks' import { useTrackEvent, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, ANALYTICS_PROTOCOL_RUN_ACTION, -} from '../../redux/analytics' -import { useIsRobotOnWrongVersionOfSoftware } from '../../redux/robot-update' +} from '/app/redux/analytics' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' import { useDownloadRunLog, useTrackProtocolRunEvent, useRobot } from './hooks' -import { useIsEstopNotDisengaged } from '../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import type { Run } from '@opentrons/api-client' diff --git a/app/src/organisms/Devices/InstrumentsAndModules.tsx b/app/src/organisms/Devices/InstrumentsAndModules.tsx index fd81eeb0267..9b25901e6ff 100644 --- a/app/src/organisms/Devices/InstrumentsAndModules.tsx +++ b/app/src/organisms/Devices/InstrumentsAndModules.tsx @@ -20,16 +20,16 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import { PipetteRecalibrationWarning } from './PipetteCard/PipetteRecalibrationWarning' -import { useCurrentRunId } from '../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { ModuleCard } from '../ModuleCard' import { useIsFlex, useIsRobotViewable, useRunStatuses } from './hooks' import { getShowPipetteCalibrationWarning } from './utils' import { PipetteCard } from './PipetteCard' import { FlexPipetteCard } from './PipetteCard/FlexPipetteCard' import { GripperCard } from '../GripperCard' -import { useIsEstopNotDisengaged } from '../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { useModuleApiRequests } from '../ModuleCard/utils' import type { diff --git a/app/src/organisms/Devices/ModuleInfo.tsx b/app/src/organisms/Devices/ModuleInfo.tsx index b7e678310f4..30cd3f86f7a 100644 --- a/app/src/organisms/Devices/ModuleInfo.tsx +++ b/app/src/organisms/Devices/ModuleInfo.tsx @@ -21,7 +21,7 @@ import { import { useRunHasStarted } from './hooks' import type { ModuleModel } from '@opentrons/shared-data' -import type { PhysicalPort } from '../../redux/modules/api-types' +import type { PhysicalPort } from '/app/redux/modules/api-types' export interface ModuleInfoProps { moduleModel: ModuleModel diff --git a/app/src/organisms/Devices/PipetteCard/AboutPipetteSlideout.tsx b/app/src/organisms/Devices/PipetteCard/AboutPipetteSlideout.tsx index e6a54d9152e..304d7be4b23 100644 --- a/app/src/organisms/Devices/PipetteCard/AboutPipetteSlideout.tsx +++ b/app/src/organisms/Devices/PipetteCard/AboutPipetteSlideout.tsx @@ -9,9 +9,9 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Slideout } from '../../../atoms/Slideout' +import { Slideout } from '/app/atoms/Slideout' -import type { AttachedPipette } from '../../../redux/pipettes/types' +import type { AttachedPipette } from '/app/redux/pipettes/types' import type { PipetteModelSpecs } from '@opentrons/shared-data' interface AboutPipetteSlideoutProps { diff --git a/app/src/organisms/Devices/PipetteCard/FlexPipetteCard.tsx b/app/src/organisms/Devices/PipetteCard/FlexPipetteCard.tsx index 97354a7bb70..a1042e92881 100644 --- a/app/src/organisms/Devices/PipetteCard/FlexPipetteCard.tsx +++ b/app/src/organisms/Devices/PipetteCard/FlexPipetteCard.tsx @@ -17,8 +17,8 @@ import { useCurrentSubsystemUpdateQuery, useHost, } from '@opentrons/react-api-client' -import { Banner } from '../../../atoms/Banner' -import { InstrumentCard } from '../../../molecules/InstrumentCard' +import { Banner } from '/app/atoms/Banner' +import { InstrumentCard } from '/app/molecules/InstrumentCard' import { ChoosePipette } from '../../PipetteWizardFlows/ChoosePipette' import { FLOWS } from '../../PipetteWizardFlows/constants' import { handlePipetteWizardFlows } from '../../PipetteWizardFlows' diff --git a/app/src/organisms/Devices/PipetteCard/PipetteOverflowMenu.tsx b/app/src/organisms/Devices/PipetteCard/PipetteOverflowMenu.tsx index 95a66eb23e4..da8656dae94 100644 --- a/app/src/organisms/Devices/PipetteCard/PipetteOverflowMenu.tsx +++ b/app/src/organisms/Devices/PipetteCard/PipetteOverflowMenu.tsx @@ -13,11 +13,11 @@ import { SPACING, } from '@opentrons/components' -import { Divider } from '../../../atoms/structure' +import { Divider } from '/app/atoms/structure' import type { PipetteModelSpecs } from '@opentrons/shared-data' import type { PipetteSettingsFieldsMap } from '@opentrons/api-client' -import type { Mount } from '../../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' interface PipetteOverflowMenuProps { pipetteSpecs: PipetteModelSpecs | null diff --git a/app/src/organisms/Devices/PipetteCard/PipetteRecalibrationWarning.tsx b/app/src/organisms/Devices/PipetteCard/PipetteRecalibrationWarning.tsx index f6b8dcf3d68..452d97766d3 100644 --- a/app/src/organisms/Devices/PipetteCard/PipetteRecalibrationWarning.tsx +++ b/app/src/organisms/Devices/PipetteCard/PipetteRecalibrationWarning.tsx @@ -8,7 +8,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Banner } from '../../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' export const PipetteRecalibrationWarning = (): JSX.Element | null => { const { t } = useTranslation('device_details') diff --git a/app/src/organisms/Devices/PipetteCard/PipetteSettingsSlideout.tsx b/app/src/organisms/Devices/PipetteCard/PipetteSettingsSlideout.tsx index e8681b99812..9b6cdff72a7 100644 --- a/app/src/organisms/Devices/PipetteCard/PipetteSettingsSlideout.tsx +++ b/app/src/organisms/Devices/PipetteCard/PipetteSettingsSlideout.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { Flex } from '@opentrons/components' import { useUpdatePipetteSettingsMutation } from '@opentrons/react-api-client' -import { Slideout } from '../../../atoms/Slideout' +import { Slideout } from '/app/atoms/Slideout' import { ConfigFormSubmitButton } from '../../ConfigurePipette/ConfigFormSubmitButton' import { ConfigurePipette } from '../../ConfigurePipette' import type { PipetteModelSpecs } from '@opentrons/shared-data' import type { PipetteSettingsFieldsMap } from '@opentrons/api-client' -import type { AttachedPipette } from '../../../redux/pipettes/types' +import type { AttachedPipette } from '/app/redux/pipettes/types' interface PipetteSettingsSlideoutProps { robotName: string diff --git a/app/src/organisms/Devices/PipetteCard/__tests__/AboutPipetteSlideout.test.tsx b/app/src/organisms/Devices/PipetteCard/__tests__/AboutPipetteSlideout.test.tsx index 6417775d2e6..84d9fef2a9f 100644 --- a/app/src/organisms/Devices/PipetteCard/__tests__/AboutPipetteSlideout.test.tsx +++ b/app/src/organisms/Devices/PipetteCard/__tests__/AboutPipetteSlideout.test.tsx @@ -1,11 +1,11 @@ import * as React from 'react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { fireEvent, screen } from '@testing-library/react' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { AboutPipetteSlideout } from '../AboutPipetteSlideout' -import { mockLeftSpecs } from '../../../../redux/pipettes/__fixtures__' +import { mockLeftSpecs } from '/app/redux/pipettes/__fixtures__' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/Devices/PipetteCard/__tests__/FlexPipetteCard.test.tsx b/app/src/organisms/Devices/PipetteCard/__tests__/FlexPipetteCard.test.tsx index f9dda24287d..b10a0d2f446 100644 --- a/app/src/organisms/Devices/PipetteCard/__tests__/FlexPipetteCard.test.tsx +++ b/app/src/organisms/Devices/PipetteCard/__tests__/FlexPipetteCard.test.tsx @@ -1,10 +1,10 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, afterEach, expect } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useCurrentSubsystemUpdateQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' -import { mockLeftSpecs } from '../../../../redux/pipettes/__fixtures__' +import { i18n } from '/app/i18n' +import { mockLeftSpecs } from '/app/redux/pipettes/__fixtures__' import { handlePipetteWizardFlows } from '../../../PipetteWizardFlows' import { AboutPipetteSlideout } from '../AboutPipetteSlideout' import { FlexPipetteCard } from '../FlexPipetteCard' diff --git a/app/src/organisms/Devices/PipetteCard/__tests__/PipetteCard.test.tsx b/app/src/organisms/Devices/PipetteCard/__tests__/PipetteCard.test.tsx index ea8269c5de0..91380e8d7aa 100644 --- a/app/src/organisms/Devices/PipetteCard/__tests__/PipetteCard.test.tsx +++ b/app/src/organisms/Devices/PipetteCard/__tests__/PipetteCard.test.tsx @@ -3,28 +3,25 @@ import { when } from 'vitest-when' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { LEFT, RIGHT } from '@opentrons/shared-data' import { usePipetteSettingsQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' -import { getHasCalibrationBlock } from '../../../../redux/config' -import { useDispatchApiRequest } from '../../../../redux/robot-api' +import { i18n } from '/app/i18n' +import { getHasCalibrationBlock } from '/app/redux/config' +import { useDispatchApiRequest } from '/app/redux/robot-api' import { PipetteOverflowMenu } from '../PipetteOverflowMenu' import { PipetteCard } from '..' import { useDropTipWizardFlows } from '../../../DropTipWizardFlows' -import { - mockLeftSpecs, - mockRightSpecs, -} from '../../../../redux/pipettes/__fixtures__' +import { mockLeftSpecs, mockRightSpecs } from '/app/redux/pipettes/__fixtures__' -import type { DispatchApiRequestType } from '../../../../redux/robot-api' +import type { DispatchApiRequestType } from '/app/redux/robot-api' vi.mock('../PipetteOverflowMenu') -vi.mock('../../../../redux/config') -vi.mock('../../../../redux/robot-api') +vi.mock('/app/redux/config') +vi.mock('/app/redux/robot-api') vi.mock('@opentrons/react-api-client') -vi.mock('../../../../redux/pipettes') +vi.mock('/app/redux/pipettes') vi.mock('../../../DropTipWizardFlows') const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/Devices/PipetteCard/__tests__/PipetteOverflowMenu.test.tsx b/app/src/organisms/Devices/PipetteCard/__tests__/PipetteOverflowMenu.test.tsx index c6f7fef1d5b..36eddad5674 100644 --- a/app/src/organisms/Devices/PipetteCard/__tests__/PipetteOverflowMenu.test.tsx +++ b/app/src/organisms/Devices/PipetteCard/__tests__/PipetteOverflowMenu.test.tsx @@ -2,19 +2,19 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { PipetteOverflowMenu } from '../PipetteOverflowMenu' import { mockLeftProtoPipette, mockPipetteSettingsFieldsMap, -} from '../../../../redux/pipettes/__fixtures__' +} from '/app/redux/pipettes/__fixtures__' import { isFlexPipette } from '@opentrons/shared-data' -import type { Mount } from '../../../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' import type * as SharedData from '@opentrons/shared-data' -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('@opentrons/shared-data', async importOriginal => { const actualSharedData = await importOriginal() return { diff --git a/app/src/organisms/Devices/PipetteCard/__tests__/PipetteSettingsSlideout.test.tsx b/app/src/organisms/Devices/PipetteCard/__tests__/PipetteSettingsSlideout.test.tsx index 9394cbe3193..a1b0cdaa7ec 100644 --- a/app/src/organisms/Devices/PipetteCard/__tests__/PipetteSettingsSlideout.test.tsx +++ b/app/src/organisms/Devices/PipetteCard/__tests__/PipetteSettingsSlideout.test.tsx @@ -3,18 +3,18 @@ import { when } from 'vitest-when' import { fireEvent, waitFor, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useHost, useUpdatePipetteSettingsMutation, } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { PipetteSettingsSlideout } from '../PipetteSettingsSlideout' import { mockLeftSpecs, mockPipetteSettingsFieldsMap, -} from '../../../../redux/pipettes/__fixtures__' +} from '/app/redux/pipettes/__fixtures__' import type { Mock } from 'vitest' diff --git a/app/src/organisms/Devices/PipetteCard/index.tsx b/app/src/organisms/Devices/PipetteCard/index.tsx index a75f4e505f1..3e031da68e7 100644 --- a/app/src/organisms/Devices/PipetteCard/index.tsx +++ b/app/src/organisms/Devices/PipetteCard/index.tsx @@ -21,7 +21,7 @@ import { import { OT2_ROBOT_TYPE } from '@opentrons/shared-data' import { usePipetteSettingsQuery } from '@opentrons/react-api-client' -import { LEFT } from '../../../redux/pipettes' +import { LEFT } from '/app/redux/pipettes' import { ChangePipette } from '../../ChangePipette' import { PipetteOverflowMenu } from './PipetteOverflowMenu' import { PipetteSettingsSlideout } from './PipetteSettingsSlideout' @@ -32,7 +32,7 @@ import { } from '../../DropTipWizardFlows' import type { PipetteModelSpecs } from '@opentrons/shared-data' -import type { AttachedPipette, Mount } from '../../../redux/pipettes/types' +import type { AttachedPipette, Mount } from '/app/redux/pipettes/types' interface PipetteCardProps { pipetteModelSpecs: PipetteModelSpecs | null diff --git a/app/src/organisms/Devices/ProtocolRun/BackToTopButton.tsx b/app/src/organisms/Devices/ProtocolRun/BackToTopButton.tsx index 402c566f32a..822856b0705 100644 --- a/app/src/organisms/Devices/ProtocolRun/BackToTopButton.tsx +++ b/app/src/organisms/Devices/ProtocolRun/BackToTopButton.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { Link } from 'react-router-dom' import { useRobot } from '../hooks' -import { getRobotSerialNumber } from '../../../redux/discovery' +import { getRobotSerialNumber } from '/app/redux/discovery' import { SecondaryButton } from '@opentrons/components' import { useTrackEvent, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, -} from '../../../redux/analytics' +} from '/app/redux/analytics' interface BackToTopButtonProps { protocolRunHeaderRef: React.RefObject | null diff --git a/app/src/organisms/Devices/ProtocolRun/LabwareInfoOverlay.tsx b/app/src/organisms/Devices/ProtocolRun/LabwareInfoOverlay.tsx index df7f886ebd2..1dc1b9526cb 100644 --- a/app/src/organisms/Devices/ProtocolRun/LabwareInfoOverlay.tsx +++ b/app/src/organisms/Devices/ProtocolRun/LabwareInfoOverlay.tsx @@ -18,7 +18,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { OffsetVector } from '../../../molecules/OffsetVector' +import { OffsetVector } from '/app/molecules/OffsetVector' import type { LabwareDefinition2 } from '@opentrons/shared-data' import { useLabwareOffsetForLabware } from './useLabwareOffsetForLabware' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/ProtocolAnalysisErrorBanner.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/ProtocolAnalysisErrorBanner.tsx index 9749ba2cef8..183e51fb1eb 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/ProtocolAnalysisErrorBanner.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/ProtocolAnalysisErrorBanner.tsx @@ -16,7 +16,7 @@ import { } from '@opentrons/components' import { getTopPortalEl } from '../../../../../App/portal' -import { Banner } from '../../../../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import type { AnalysisError } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/TerminalRunBannerContainer.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/TerminalRunBannerContainer.tsx index 0adc49a68d8..6f015df520a 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/TerminalRunBannerContainer.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/TerminalRunBannerContainer.tsx @@ -12,9 +12,9 @@ import { } from '@opentrons/components' import { RUN_STATUS_STOPPED, RUN_STATUS_SUCCEEDED } from '@opentrons/api-client' -import { Banner } from '../../../../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import { useCloseCurrentRun } from '../../../../ProtocolUpload/hooks' -import { useIsRunCurrent } from '../../../../../resources/runs' +import { useIsRunCurrent } from '/app/resources/runs' import { useMostRecentRunId } from '../../../../ProtocolUpload/hooks/useMostRecentRunId' import type { RunHeaderBannerContainerProps } from '.' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/__tests__/ProtocolAnalysisErrorBanner.test.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/__tests__/ProtocolAnalysisErrorBanner.test.tsx index cacf30ff864..169dee8958a 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/__tests__/ProtocolAnalysisErrorBanner.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/__tests__/ProtocolAnalysisErrorBanner.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../../../../__testing-utils__' -import { i18n } from '../../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ProtocolAnalysisErrorBanner } from '../ProtocolAnalysisErrorBanner' const render = ( diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/index.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/index.tsx index 80a78f288fc..d2e41230640 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/index.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderBannerContainer/index.tsx @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next' import { Box, SPACING } from '@opentrons/components' import { ProtocolAnalysisErrorBanner } from './ProtocolAnalysisErrorBanner' -import { Banner } from '../../../../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import { TerminalRunBannerContainer, useTerminalRunBannerContainer, diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/hooks/useActionButtonProperties.ts b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/hooks/useActionButtonProperties.ts index 540b1237333..7830393f47b 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/hooks/useActionButtonProperties.ts +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/hooks/useActionButtonProperties.ts @@ -12,7 +12,7 @@ import { ANALYTICS_PROTOCOL_PROCEED_TO_RUN, ANALYTICS_PROTOCOL_RUN_ACTION, useTrackEvent, -} from '../../../../../../../redux/analytics' +} from '/app/redux/analytics' import { useTrackProtocolRunEvent } from '../../../../../hooks' import { useIsHeaterShakerInProtocol } from '../../../../../../ModuleCard/hooks' import { isAnyHeaterShakerShaking } from '../../../RunHeaderModalContainer/modals' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/hooks/useIsFixtureMismatch.ts b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/hooks/useIsFixtureMismatch.ts index 92929566c77..a9292a6dcdf 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/hooks/useIsFixtureMismatch.ts +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/hooks/useIsFixtureMismatch.ts @@ -3,7 +3,7 @@ import { useRobotType } from '../../../../../hooks' import { getIsFixtureMismatch, useDeckConfigurationCompatibility, -} from '../../../../../../../resources/deck_configuration' +} from '/app/resources/deck_configuration' export function useIsFixtureMismatch( runId: string, diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/index.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/index.tsx index 93132646f92..a8ffba6a3b8 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/index.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderContent/ActionButton/index.tsx @@ -22,10 +22,10 @@ import { useRunCalibrationStatus, useUnmatchedModulesForProtocol, } from '../../../../hooks' -import { useCurrentRunId } from '../../../../../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { useActionBtnDisabledUtils, useActionButtonProperties } from './hooks' import { getFallbackRobotSerialNumber, isRunAgainStatus } from '../../utils' -import { useIsRobotOnWrongVersionOfSoftware } from '../../../../../../redux/robot-update' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' import type { RunHeaderContentProps } from '..' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/hooks/useHeaterShakerConfirmationModal.ts b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/hooks/useHeaterShakerConfirmationModal.ts index cf19abcc6f6..8939e734087 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/hooks/useHeaterShakerConfirmationModal.ts +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/hooks/useHeaterShakerConfirmationModal.ts @@ -2,7 +2,7 @@ import { useSelector } from 'react-redux' import { useConditionalConfirm } from '@opentrons/components' -import { getIsHeaterShakerAttached } from '../../../../../../redux/config' +import { getIsHeaterShakerAttached } from '/app/redux/config' import type { UseConditionalConfirmResult } from '@opentrons/components' import type { ConfirmAttachmentModalProps } from '../../../../../ModuleCard/ConfirmAttachmentModal' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/hooks/useRunHeaderDropTip.ts b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/hooks/useRunHeaderDropTip.ts index 659d0ba8595..592e305adec 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/hooks/useRunHeaderDropTip.ts +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/hooks/useRunHeaderDropTip.ts @@ -10,7 +10,7 @@ import { } from '../../../../../DropTipWizardFlows' import { useProtocolDropTipModal } from '../modals' import { useCloseCurrentRun } from '../../../../../ProtocolUpload/hooks' -import { useIsRunCurrent } from '../../../../../../resources/runs' +import { useIsRunCurrent } from '/app/resources/runs' import { isTerminalRunStatus } from '../../utils' import type { RobotType } from '@opentrons/shared-data' @@ -20,7 +20,7 @@ import type { PipetteWithTip, } from '../../../../../DropTipWizardFlows' import type { UseProtocolDropTipModalResult } from '../modals' -import type { PipetteDetails } from '../../../../../../resources/maintenance_runs' +import type { PipetteDetails } from '/app/resources/maintenance_runs' export type RunHeaderDropTipWizProps = | { showDTWiz: true; dtWizProps: DropTipWizardFlowsProps } diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/ConfirmCancelModal.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/ConfirmCancelModal.tsx index 0aa3781277c..b4cc41a4cd5 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/ConfirmCancelModal.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/ConfirmCancelModal.tsx @@ -24,7 +24,7 @@ import { useStopRunMutation } from '@opentrons/react-api-client' import { getTopPortalEl } from '../../../../../../App/portal' import { useTrackProtocolRunEvent, useIsFlex } from '../../../../hooks' -import { ANALYTICS_PROTOCOL_RUN_ACTION } from '../../../../../../redux/analytics' +import { ANALYTICS_PROTOCOL_RUN_ACTION } from '/app/redux/analytics' import type { RunStatus } from '@opentrons/api-client' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/HeaterShakerIsRunningModal.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/HeaterShakerIsRunningModal.tsx index 3181deab18e..ff69b0f9102 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/HeaterShakerIsRunningModal.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/HeaterShakerIsRunningModal.tsx @@ -25,7 +25,7 @@ import { useIsHeaterShakerInProtocol } from '../../../../../../ModuleCard/hooks' import type { HeaterShakerDeactivateShakerCreateCommand } from '@opentrons/shared-data' import type { AttachedModule } from '@opentrons/api-client' -import type { HeaterShakerModule } from '../../../../../../../redux/modules/types' +import type { HeaterShakerModule } from '/app/redux/modules/types' export type UseHeaterShakerIsRunningModalResult = | { showModal: true; module: HeaterShakerModule; toggleModal: () => void } diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/HeaterShakerModuleCard.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/HeaterShakerModuleCard.tsx index 897a52fc445..8e2305926c6 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/HeaterShakerModuleCard.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/HeaterShakerModuleCard.tsx @@ -15,10 +15,10 @@ import { } from '@opentrons/components' import { getModuleDisplayName } from '@opentrons/shared-data' -import heaterShakerModule from '../../../../../../../assets/images/heater_shaker_module_transparent.png' +import heaterShakerModule from '/app/assets/images/heater_shaker_module_transparent.png' import { HeaterShakerModuleData } from '../../../../../../ModuleCard/HeaterShakerModuleData' -import type { HeaterShakerModule } from '../../../../../../../redux/modules/types' +import type { HeaterShakerModule } from '/app/redux/modules/types' interface HeaterShakerModuleCardProps { module: HeaterShakerModule diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/HeaterShakerIsRunningModal.test.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/HeaterShakerIsRunningModal.test.tsx index 9395d55b898..bcda9d52c3a 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/HeaterShakerIsRunningModal.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/HeaterShakerIsRunningModal.test.tsx @@ -4,9 +4,9 @@ import { describe, it, vi, beforeEach, expect } from 'vitest' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' -import { i18n } from '../../../../../../../../i18n' -import { renderWithProviders } from '../../../../../../../../__testing-utils__' -import { mockHeaterShaker } from '../../../../../../../../redux/modules/__fixtures__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockHeaterShaker } from '/app/redux/modules/__fixtures__' import { HeaterShakerIsRunningModal } from '../HeaterShakerIsRunningModal' import { HeaterShakerModuleCard } from '../HeaterShakerModuleCard' import { useAttachedModules } from '../../../../../../hooks' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/HeaterShakerModuleCard.test.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/HeaterShakerModuleCard.test.tsx index 5484f2e5ec4..b3ca63fb0c8 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/HeaterShakerModuleCard.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/HeaterShakerModuleCard.test.tsx @@ -2,9 +2,9 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../../../../../../__testing-utils__' -import { mockHeaterShaker } from '../../../../../../../../redux/modules/__fixtures__' -import { i18n } from '../../../../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockHeaterShaker } from '/app/redux/modules/__fixtures__' +import { i18n } from '/app/i18n' import { HeaterShakerModuleCard } from '../HeaterShakerModuleCard' import { HeaterShakerModuleData } from '../../../../../../../ModuleCard/HeaterShakerModuleData' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/hooks.test.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/hooks.test.tsx index ae95b1f773b..c6eb01dc382 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/hooks.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/__tests__/hooks.test.tsx @@ -11,7 +11,7 @@ import { useMostRecentCompletedAnalysis } from '../../../../../../../LabwarePosi import { useHeaterShakerModuleIdsFromRun } from '../hooks' import type { Store } from 'redux' -import type { State } from '../../../../../../../../redux/types' +import type { State } from '/app/redux/types' vi.mock( '../../../../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/utils.ts b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/utils.ts index 5936cf635c0..63afeb2331c 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/utils.ts +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/HeaterShakerIsRunningModal/utils.ts @@ -1,4 +1,4 @@ -import type { HeaterShakerModule } from '../../../../../../../redux/modules/types' +import type { HeaterShakerModule } from '/app/redux/modules/types' import type { AttachedModule } from '@opentrons/api-client' export function getActiveHeaterShaker( diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/ProtocolDropTipModal.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/ProtocolDropTipModal.tsx index adb65926d72..b4bad8d9c8d 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/ProtocolDropTipModal.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/ProtocolDropTipModal.tsx @@ -15,7 +15,7 @@ import { ModalShell, } from '@opentrons/components' -import { TextOnlyButton } from '../../../../../../atoms/buttons' +import { TextOnlyButton } from '/app/atoms/buttons' import { useHomePipettes } from '../../../../../DropTipWizardFlows' import type { PipetteData } from '@opentrons/api-client' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ConfirmCancelModal.test.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ConfirmCancelModal.test.tsx index e62c0a409c2..abce7211481 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ConfirmCancelModal.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ConfirmCancelModal.test.tsx @@ -10,10 +10,10 @@ import { } from '@opentrons/api-client' import { useStopRunMutation } from '@opentrons/react-api-client' -import { i18n } from '../../../../../../../i18n' -import { renderWithProviders } from '../../../../../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { useIsFlex, useTrackProtocolRunEvent } from '../../../../../hooks' -import { useTrackEvent } from '../../../../../../../redux/analytics' +import { useTrackEvent } from '/app/redux/analytics' import { ConfirmCancelModal } from '../ConfirmCancelModal' import type * as ApiClient from '@opentrons/react-api-client' @@ -26,7 +26,7 @@ vi.mock('@opentrons/react-api-client', async importOriginal => { } }) vi.mock('../../../../../hooks') -vi.mock('../../../../../../../redux/analytics') +vi.mock('/app/redux/analytics') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ProtocolAnalysisErrorModal.test.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ProtocolAnalysisErrorModal.test.tsx index 57c9e75dbd3..06d462abd1a 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ProtocolAnalysisErrorModal.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ProtocolAnalysisErrorModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, expect, vi } from 'vitest' -import { renderWithProviders } from '../../../../../../../__testing-utils__' -import { i18n } from '../../../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ProtocolAnalysisErrorModal } from '../ProtocolAnalysisErrorModal' const render = ( diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ProtocolDropTipModal.test.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ProtocolDropTipModal.test.tsx index 0104497089d..613b888a27b 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ProtocolDropTipModal.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/ProtocolDropTipModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { describe, it, vi, expect, beforeEach } from 'vitest' import { renderHook, act, screen, fireEvent } from '@testing-library/react' -import { renderWithProviders } from '../../../../../../../__testing-utils__' -import { i18n } from '../../../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useHomePipettes } from '../../../../../../DropTipWizardFlows' import { useProtocolDropTipModal, diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/RunFailedModal.test.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/RunFailedModal.test.tsx index e3b1bb1b972..8664ce55b85 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/RunFailedModal.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__tests__/RunFailedModal.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { describe, it, beforeEach, vi, expect, afterEach } from 'vitest' -import { renderWithProviders } from '../../../../../../../__testing-utils__' -import { i18n } from '../../../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useDownloadRunLog } from '../../../../../hooks' import { RunFailedModal } from '../RunFailedModal' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/useRunHeaderModalContainer.ts b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/useRunHeaderModalContainer.ts index bb8087ef13b..2704eb81445 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/useRunHeaderModalContainer.ts +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/useRunHeaderModalContainer.ts @@ -21,7 +21,7 @@ import { getFallbackRobotSerialNumber } from '../utils' import { ANALYTICS_PROTOCOL_PROCEED_TO_RUN, useTrackEvent, -} from '../../../../../redux/analytics' +} from '/app/redux/analytics' import type { AttachedModule, RunStatus, Run } from '@opentrons/api-client' import type { UseErrorRecoveryResult } from '../../../../ErrorRecoveryFlows' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/__tests__/ProtocolRunHeader.test.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/__tests__/ProtocolRunHeader.test.tsx index bd0bfe7e180..de7691bb394 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/__tests__/ProtocolRunHeader.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/__tests__/ProtocolRunHeader.test.tsx @@ -6,12 +6,12 @@ import { useNavigate } from 'react-router-dom' import { RUN_STATUS_RUNNING } from '@opentrons/api-client' import { useModulesQuery } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ProtocolRunHeader } from '..' import { useRunStatus } from '../../../../RunTimeControl/hooks' import { useIsRobotViewable, useProtocolDetailsForRun } from '../../../hooks' -import { useNotifyRunQuery } from '../../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import { RunHeaderModalContainer } from '../RunHeaderModalContainer' import { RunHeaderBannerContainer } from '../RunHeaderBannerContainer' import { RunHeaderContent } from '../RunHeaderContent' @@ -27,7 +27,7 @@ vi.mock('react-router-dom') vi.mock('@opentrons/react-api-client') vi.mock('../../../../RunTimeControl/hooks') vi.mock('../../../hooks') -vi.mock('../../../../../resources/runs') +vi.mock('/app/resources/runs') vi.mock('../RunHeaderModalContainer') vi.mock('../RunHeaderBannerContainer') vi.mock('../RunHeaderContent') diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/hooks/useIsDoorOpen.ts b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/hooks/useIsDoorOpen.ts index c16f37e3d21..81f3d50effa 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/hooks/useIsDoorOpen.ts +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/hooks/useIsDoorOpen.ts @@ -2,11 +2,11 @@ import { useSelector } from 'react-redux' import { useDoorQuery } from '@opentrons/react-api-client' -import { getRobotSettings } from '../../../../../redux/robot-settings' +import { getRobotSettings } from '/app/redux/robot-settings' import { useIsFlex } from '../../../hooks' import { EQUIPMENT_POLL_MS } from '../constants' -import type { State } from '../../../../../redux/types' +import type { State } from '/app/redux/types' export function useIsDoorOpen(robotName: string): boolean { const robotSettings = useSelector((state: State) => diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/hooks/useRunAnalytics.ts b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/hooks/useRunAnalytics.ts index 3cca75c6eb9..2ced80e1c6d 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/hooks/useRunAnalytics.ts +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/hooks/useRunAnalytics.ts @@ -1,8 +1,8 @@ import * as React from 'react' import { useRobotAnalyticsData, useTrackProtocolRunEvent } from '../../../hooks' import { useRunStatus } from '../../../../RunTimeControl/hooks' -import { useIsRunCurrent } from '../../../../../resources/runs' -import { ANALYTICS_PROTOCOL_RUN_ACTION } from '../../../../../redux/analytics' +import { useIsRunCurrent } from '/app/resources/runs' +import { ANALYTICS_PROTOCOL_RUN_ACTION } from '/app/redux/analytics' import { useRecoveryAnalytics } from '../../../../ErrorRecoveryFlows/hooks' import { isTerminalRunStatus } from '../utils' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/index.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/index.tsx index 3b9711e3e60..94dd3a898c7 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/index.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/index.tsx @@ -15,7 +15,7 @@ import { RUN_STATUS_IDLE, RUN_STATUS_RUNNING } from '@opentrons/api-client' import { useRunStatus } from '../../../RunTimeControl/hooks' import { useIsRobotViewable, useProtocolDetailsForRun } from '../../hooks' import { RunProgressMeter } from '../../../RunProgressMeter' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import { RunHeaderProtocolName } from './RunHeaderProtocolName' import { RunHeaderModalContainer, diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/utils.ts b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/utils.ts index a2746494374..1f4ce9ec665 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/utils.ts +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunHeader/utils.ts @@ -13,10 +13,10 @@ import { RUN_STATUS_STOP_REQUESTED, } from '@opentrons/api-client' -import { getRobotSerialNumber } from '../../../../redux/discovery' +import { getRobotSerialNumber } from '/app/redux/discovery' import type { RunStatus } from '@opentrons/api-client' -import type { DiscoveredRobot } from '../../../../redux/discovery/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' const START_RUN_STATUSES: RunStatus[] = [ RUN_STATUS_IDLE, diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunRunTimeParameters.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunRunTimeParameters.tsx index 80373199cca..27454629276 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunRunTimeParameters.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunRunTimeParameters.tsx @@ -30,11 +30,11 @@ import { useHoverTooltip, } from '@opentrons/components' -import { Banner } from '../../../atoms/Banner' -import { Divider } from '../../../atoms/structure' +import { Banner } from '/app/atoms/Banner' +import { Divider } from '/app/atoms/structure' import { useMostRecentCompletedAnalysis } from '../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useRunStatus } from '../../RunTimeControl/hooks' -import { useNotifyRunQuery } from '../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { RunTimeParameter } from '@opentrons/shared-data' import type { RunStatus } from '@opentrons/api-client' diff --git a/app/src/organisms/Devices/ProtocolRun/ProtocolRunSetup.tsx b/app/src/organisms/Devices/ProtocolRun/ProtocolRunSetup.tsx index 31003dd6c56..3f298fa215e 100644 --- a/app/src/organisms/Devices/ProtocolRun/ProtocolRunSetup.tsx +++ b/app/src/organisms/Devices/ProtocolRun/ProtocolRunSetup.tsx @@ -21,14 +21,14 @@ import { parseAllRequiredModuleModels, } from '@opentrons/shared-data' -import { Line } from '../../../atoms/structure' -import { InfoMessage } from '../../../molecules/InfoMessage' -import { INCOMPATIBLE, INEXACT_MATCH } from '../../../redux/pipettes' +import { Line } from '/app/atoms/structure' +import { InfoMessage } from '/app/molecules/InfoMessage' +import { INCOMPATIBLE, INEXACT_MATCH } from '/app/redux/pipettes' import { getIsFixtureMismatch, getRequiredDeckConfig, -} from '../../../resources/deck_configuration/utils' -import { useDeckConfigurationCompatibility } from '../../../resources/deck_configuration/hooks' +} from '/app/resources/deck_configuration/utils' +import { useDeckConfigurationCompatibility } from '/app/resources/deck_configuration/hooks' import { useIsFlex, useModuleCalibrationStatus, diff --git a/app/src/organisms/Devices/ProtocolRun/RunTimer.tsx b/app/src/organisms/Devices/ProtocolRun/RunTimer.tsx index c5abc0c831f..609ae40dda5 100644 --- a/app/src/organisms/Devices/ProtocolRun/RunTimer.tsx +++ b/app/src/organisms/Devices/ProtocolRun/RunTimer.tsx @@ -7,7 +7,7 @@ import { LegacyStyledText, } from '@opentrons/components' -import { formatInterval } from '../../../organisms/RunTimeControl/utils' +import { formatInterval } from '/app/organisms/RunTimeControl/utils' import { EMPTY_TIMESTAMP } from '../constants' import type { CSSProp } from 'styled-components' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupDeckCalibration.tsx b/app/src/organisms/Devices/ProtocolRun/SetupDeckCalibration.tsx index f8c880133d6..9b0dd34479f 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupDeckCalibration.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupDeckCalibration.tsx @@ -14,7 +14,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { TertiaryButton } from '../../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' import { useDeckCalibrationData } from '../hooks' import { SetupCalibrationItem } from './SetupCalibrationItem' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupFlexPipetteCalibrationItem.tsx b/app/src/organisms/Devices/ProtocolRun/SetupFlexPipetteCalibrationItem.tsx index c7849e4f489..e7e7b1b2234 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupFlexPipetteCalibrationItem.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupFlexPipetteCalibrationItem.tsx @@ -14,7 +14,7 @@ import { SINGLE_MOUNT_PIPETTES, } from '@opentrons/shared-data' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { TertiaryButton } from '../../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' import { useMostRecentCompletedAnalysis } from '../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useStoredProtocolAnalysis } from '../hooks' import { PipetteWizardFlows } from '../../PipetteWizardFlows' @@ -22,7 +22,7 @@ import { FLOWS } from '../../PipetteWizardFlows/constants' import { SetupCalibrationItem } from './SetupCalibrationItem' import type { PipetteData } from '@opentrons/api-client' import type { LoadPipetteRunTimeCommand } from '@opentrons/shared-data' -import type { Mount } from '../../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' interface SetupInstrumentCalibrationItemProps { mount: Mount diff --git a/app/src/organisms/Devices/ProtocolRun/SetupGripperCalibrationItem.tsx b/app/src/organisms/Devices/ProtocolRun/SetupGripperCalibrationItem.tsx index 863e62ac2d9..3f75520fcff 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupGripperCalibrationItem.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupGripperCalibrationItem.tsx @@ -9,7 +9,7 @@ import { WRAP, } from '@opentrons/components' import { getGripperDisplayName } from '@opentrons/shared-data' -import { TertiaryButton } from '../../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' import { SetupCalibrationItem } from './SetupCalibrationItem' import { GripperWizardFlows } from '../../GripperWizardFlows' import { GRIPPER_FLOW_TYPES } from '../../GripperWizardFlows/constants' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupInstrumentCalibration.tsx b/app/src/organisms/Devices/ProtocolRun/SetupInstrumentCalibration.tsx index 6d6ee43ca92..2175fd260a4 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupInstrumentCalibration.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupInstrumentCalibration.tsx @@ -9,7 +9,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import * as PipetteConstants from '../../../redux/pipettes/constants' +import * as PipetteConstants from '/app/redux/pipettes/constants' import { getShowPipetteCalibrationWarning } from '../utils' import { PipetteRecalibrationWarning } from '../PipetteCard/PipetteRecalibrationWarning' import { @@ -22,10 +22,10 @@ import { SetupFlexPipetteCalibrationItem } from './SetupFlexPipetteCalibrationIt import { SetupGripperCalibrationItem } from './SetupGripperCalibrationItem' import { useMostRecentCompletedAnalysis } from '../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { isGripperInCommands } from '../../../resources/protocols/utils' +import { isGripperInCommands } from '/app/resources/protocols/utils' import type { GripperData } from '@opentrons/api-client' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' const EQUIPMENT_POLL_MS = 5000 diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/CurrentOffsetsModal.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/CurrentOffsetsModal.tsx index 0e81df5ed5d..6af52e06a3c 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/CurrentOffsetsModal.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/CurrentOffsetsModal.tsx @@ -20,10 +20,10 @@ import { JUSTIFY_SPACE_BETWEEN, } from '@opentrons/components' -import { getIsLabwareOffsetCodeSnippetsOn } from '../../../../redux/config' +import { getIsLabwareOffsetCodeSnippetsOn } from '/app/redux/config' import { LabwareOffsetTabs } from '../../../LabwareOffsetTabs' -import { OffsetVector } from '../../../../molecules/OffsetVector' -import { PythonLabwareOffsetSnippet } from '../../../../molecules/PythonLabwareOffsetSnippet' +import { OffsetVector } from '/app/molecules/OffsetVector' +import { PythonLabwareOffsetSnippet } from '/app/molecules/PythonLabwareOffsetSnippet' import { getLatestCurrentOffsets } from '../SetupLabwarePositionCheck/utils' import type { LabwareOffset } from '@opentrons/api-client' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/LabwareListItem.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/LabwareListItem.tsx index a42596b58e6..427dedac876 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/LabwareListItem.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/LabwareListItem.tsx @@ -36,8 +36,8 @@ import { THERMOCYCLER_MODULE_V2, } from '@opentrons/shared-data' -import { ToggleButton } from '../../../../atoms/buttons' -import { Divider } from '../../../../atoms/structure' +import { ToggleButton } from '/app/atoms/buttons' +import { Divider } from '/app/atoms/structure' import { SecureLabwareModal } from './SecureLabwareModal' import type { @@ -50,7 +50,7 @@ import type { LoadLabwareRunTimeCommand, } from '@opentrons/shared-data' import type { ModuleRenderInfoForProtocol } from '../../hooks' -import type { LabwareSetupItem } from '../../../../transformations/commands' +import type { LabwareSetupItem } from '/app/transformations/commands' import type { ModuleTypesThatRequireExtraAttention } from '../utils/getModuleTypesThatRequireExtraAttention' import type { NestedLabwareInfo } from './getNestedLabwareInfo' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/LabwareStackModal.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/LabwareStackModal.tsx index 1dcc7bb1a48..a50be194f45 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/LabwareStackModal.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/LabwareStackModal.tsx @@ -16,11 +16,11 @@ import { StyledText, Modal, } from '@opentrons/components' -import { OddModal } from '../../../../molecules/OddModal' -import { getIsOnDevice } from '../../../../redux/config' +import { OddModal } from '/app/molecules/OddModal' +import { getIsOnDevice } from '/app/redux/config' import { getLocationInfoNames } from '../utils/getLocationInfoNames' import { getSlotLabwareDefinition } from '../utils/getSlotLabwareDefinition' -import { Divider } from '../../../../atoms/structure' +import { Divider } from '/app/atoms/structure' import { getModuleImage } from '../SetupModuleAndDeck/utils' import { FLEX_ROBOT_TYPE, @@ -30,7 +30,7 @@ import { TC_MODULE_LOCATION_OT3, THERMOCYCLER_MODULE_TYPE, } from '@opentrons/shared-data' -import tiprackAdapter from '../../../../assets/images/labware/opentrons_flex_96_tiprack_adapter.png' +import tiprackAdapter from '/app/assets/images/labware/opentrons_flex_96_tiprack_adapter.png' import type { RobotType, RunTimeCommand } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/OffDeckLabwareList.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/OffDeckLabwareList.tsx index 848f0d3247c..9216a1274da 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/OffDeckLabwareList.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/OffDeckLabwareList.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next' import { SPACING, TYPOGRAPHY, LegacyStyledText } from '@opentrons/components' import { LabwareListItem } from './LabwareListItem' import type { RunTimeCommand } from '@opentrons/shared-data' -import type { LabwareSetupItem } from '../../../../transformations/commands' +import type { LabwareSetupItem } from '/app/transformations/commands' interface OffDeckLabwareListProps { labwareItems: LabwareSetupItem[] diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/SecureLabwareModal.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/SecureLabwareModal.tsx index 6f313f9fb1c..d9d4ec14388 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/SecureLabwareModal.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/SecureLabwareModal.tsx @@ -15,8 +15,8 @@ import { Modal, } from '@opentrons/components' import { getTopPortalEl } from '../../../../App/portal' -import secureMagModBracketImage from '../../../../assets/images/secure_mag_mod_bracket.png' -import secureTCLatchImage from '../../../../assets/images/secure_tc_latch.png' +import secureMagModBracketImage from '/app/assets/images/secure_mag_mod_bracket.png' +import secureTCLatchImage from '/app/assets/images/secure_tc_latch.png' import { getModuleName } from '../utils/getModuleName' import type { ModuleTypesThatRequireExtraAttention } from '../utils/getModuleTypesThatRequireExtraAttention' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/SetupLabwareList.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/SetupLabwareList.tsx index 229dd98281c..61f836dffd5 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/SetupLabwareList.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/SetupLabwareList.tsx @@ -7,14 +7,14 @@ import { StyledText, COLORS, } from '@opentrons/components' -import { getLabwareSetupItemGroups } from '../../../../transformations/commands' +import { getLabwareSetupItemGroups } from '/app/transformations/commands' import { LabwareListItem } from './LabwareListItem' import { getNestedLabwareInfo } from './getNestedLabwareInfo' import type { RunTimeCommand } from '@opentrons/shared-data' import type { ModuleRenderInfoForProtocol } from '../../hooks' import type { ModuleTypesThatRequireExtraAttention } from '../utils/getModuleTypesThatRequireExtraAttention' -import type { LabwareSetupItem } from '../../../../transformations/commands' +import type { LabwareSetupItem } from '/app/transformations/commands' interface SetupLabwareListProps { attachedModuleInfo: { [moduleId: string]: ModuleRenderInfoForProtocol } diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/SetupLabwareMap.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/SetupLabwareMap.tsx index cd611397850..8f4c25d5979 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/SetupLabwareMap.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/SetupLabwareMap.tsx @@ -16,7 +16,7 @@ import { THERMOCYCLER_MODULE_V1, } from '@opentrons/shared-data' -import { getLabwareSetupItemGroups } from '../../../../transformations/commands' +import { getLabwareSetupItemGroups } from '/app/transformations/commands' import { LabwareInfoOverlay } from '../LabwareInfoOverlay' import { getLabwareRenderInfo } from '../utils/getLabwareRenderInfo' import { getProtocolModulesInfo } from '../utils/getProtocolModulesInfo' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/LabwareListItem.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/LabwareListItem.test.tsx index 0a83231dee5..172257ecc8e 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/LabwareListItem.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/LabwareListItem.test.tsx @@ -6,14 +6,14 @@ import { MemoryRouter } from 'react-router-dom' import { opentrons96PcrAdapterV1 } from '@opentrons/shared-data' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockHeaterShaker, mockMagneticModule, mockTemperatureModule, mockThermocycler, -} from '../../../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' import { mockLabwareDef } from '../../../../LabwarePositionCheck/__fixtures__/mockLabwareDef' import { SecureLabwareModal } from '../SecureLabwareModal' import { LabwareListItem } from '../LabwareListItem' @@ -24,7 +24,7 @@ import type { LabwareDefinition2, LoadModuleRunTimeCommand, } from '@opentrons/shared-data' -import type { AttachedModule } from '../../../../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' import type { ModuleRenderInfoForProtocol } from '../../../hooks' vi.mock('../SecureLabwareModal') diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/OffDeckLabwareList.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/OffDeckLabwareList.test.tsx index 59487246732..163d7e8871b 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/OffDeckLabwareList.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/OffDeckLabwareList.test.tsx @@ -3,8 +3,8 @@ import { MemoryRouter } from 'react-router-dom' import { screen } from '@testing-library/react' import { describe, it, beforeEach, vi, expect } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockLabwareDef } from '../../../../LabwarePositionCheck/__fixtures__/mockLabwareDef' import { LabwareListItem } from '../LabwareListItem' import { OffDeckLabwareList } from '../OffDeckLabwareList' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SecureLabwareModal.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SecureLabwareModal.test.tsx index 0a24039444d..d346c397d87 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SecureLabwareModal.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SecureLabwareModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, vi, expect } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SecureLabwareModal } from '../SecureLabwareModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabware.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabware.test.tsx index e92169bcb1d..e292b39031f 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabware.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabware.test.tsx @@ -4,12 +4,12 @@ import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, vi, afterEach, expect } from 'vitest' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useLPCSuccessToast } from '../../../hooks/useLPCSuccessToast' import { LabwarePositionCheck } from '../../../../LabwarePositionCheck' import { getModuleTypesThatRequireExtraAttention } from '../../utils/getModuleTypesThatRequireExtraAttention' -import { getIsLabwareOffsetCodeSnippetsOn } from '../../../../../redux/config' +import { getIsLabwareOffsetCodeSnippetsOn } from '/app/redux/config' import { useLPCDisabledReason, useRunCalibrationStatus, @@ -19,17 +19,17 @@ import { import { SetupLabwareList } from '../SetupLabwareList' import { SetupLabwareMap } from '../SetupLabwareMap' import { SetupLabware } from '..' -import { useNotifyRunQuery } from '../../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' vi.mock('../SetupLabwareList') vi.mock('../SetupLabwareMap') vi.mock('../../../../LabwarePositionCheck') vi.mock('../../utils/getModuleTypesThatRequireExtraAttention') vi.mock('../../../../RunTimeControl/hooks') -vi.mock('../../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../../../hooks') vi.mock('../../../hooks/useLPCSuccessToast') -vi.mock('../../../../../resources/runs') +vi.mock('/app/resources/runs') const ROBOT_NAME = 'otie' const RUN_ID = '1' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabwareList.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabwareList.test.tsx index 4228c517134..f1993f5b1ed 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabwareList.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabwareList.test.tsx @@ -5,8 +5,8 @@ import { screen } from '@testing-library/react' import { multiple_tipacks_with_tc } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SetupLabwareList } from '../SetupLabwareList' import { LabwareListItem } from '../LabwareListItem' import type { CompletedProtocolAnalysis } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabwareMap.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabwareMap.test.tsx index bc68e89bcb1..288a73b2a6e 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabwareMap.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/SetupLabwareMap.test.tsx @@ -11,8 +11,8 @@ import { fixtureTiprack300ul, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { getAttachedProtocolModuleMatches } from '../../../../ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/utils' import { LabwareInfoOverlay } from '../../LabwareInfoOverlay' import { getLabwareRenderInfo } from '../../utils/getLabwareRenderInfo' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/getNestedLabwareInfo.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/getNestedLabwareInfo.test.tsx index 737a5baf1db..e5c54c51f54 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/getNestedLabwareInfo.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/__tests__/getNestedLabwareInfo.test.tsx @@ -1,8 +1,8 @@ import { describe, it, expect } from 'vitest' -import { mockDefinition } from '../../../../../redux/custom-labware/__fixtures__' +import { mockDefinition } from '/app/redux/custom-labware/__fixtures__' import { getNestedLabwareInfo } from '../getNestedLabwareInfo' import type { RunTimeCommand } from '@opentrons/shared-data' -import type { LabwareSetupItem } from '../../../../../transformations/commands' +import type { LabwareSetupItem } from '/app/transformations/commands' const MOCK_LABWARE_ID = 'mockLabwareId' const MOCK_OTHER_LABWARE_ID = 'mockOtherLabwareId' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/getNestedLabwareInfo.ts b/app/src/organisms/Devices/ProtocolRun/SetupLabware/getNestedLabwareInfo.ts index c24e2b0aa3f..fc403f2d0b2 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/getNestedLabwareInfo.ts +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/getNestedLabwareInfo.ts @@ -4,7 +4,7 @@ import type { LoadModuleRunTimeCommand, RunTimeCommand, } from '@opentrons/shared-data' -import type { LabwareSetupItem } from '../../../../transformations/commands' +import type { LabwareSetupItem } from '/app/transformations/commands' export interface NestedLabwareInfo { nestedLabwareDisplayName: string diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabware/index.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabware/index.tsx index 526b944f425..b14038275b4 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabware/index.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabware/index.tsx @@ -8,7 +8,7 @@ import { PrimaryButton, DIRECTION_COLUMN, } from '@opentrons/components' -import { useToggleGroup } from '../../../../molecules/ToggleGroup/useToggleGroup' +import { useToggleGroup } from '/app/molecules/ToggleGroup/useToggleGroup' import { getModuleTypesThatRequireExtraAttention } from '../utils/getModuleTypesThatRequireExtraAttention' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/CurrentOffsetsTable.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/CurrentOffsetsTable.tsx index f965488e607..6ea34c38386 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/CurrentOffsetsTable.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/CurrentOffsetsTable.tsx @@ -19,12 +19,12 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { getIsLabwareOffsetCodeSnippetsOn } from '../../../../redux/config' +import { getIsLabwareOffsetCodeSnippetsOn } from '/app/redux/config' import { LabwareOffsetTabs } from '../../../LabwareOffsetTabs' -import { OffsetVector } from '../../../../molecules/OffsetVector' -import { PythonLabwareOffsetSnippet } from '../../../../molecules/PythonLabwareOffsetSnippet' +import { OffsetVector } from '/app/molecules/OffsetVector' +import { PythonLabwareOffsetSnippet } from '/app/molecules/PythonLabwareOffsetSnippet' import { getDisplayLocation } from '../../../LabwarePositionCheck/utils/getDisplayLocation' -import { getLabwareDefinitionsFromCommands } from '../../../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import type { LabwareOffset } from '@opentrons/api-client' import type { RunTimeCommand, diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/CurrentOffsetsTable.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/CurrentOffsetsTable.test.tsx index 7eac060cca5..69e0b7ed44f 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/CurrentOffsetsTable.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/CurrentOffsetsTable.test.tsx @@ -7,9 +7,9 @@ import { multiple_tipacks_with_tc, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getIsLabwareOffsetCodeSnippetsOn } from '../../../../../redux/config' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getIsLabwareOffsetCodeSnippetsOn } from '/app/redux/config' import { LabwarePositionCheck } from '../../../../LabwarePositionCheck' import { useLPCDisabledReason } from '../../../hooks' import { getLatestCurrentOffsets } from '../utils' @@ -20,7 +20,7 @@ import type { LabwareOffset } from '@opentrons/api-client' vi.mock('../../../hooks') vi.mock('../../../../LabwarePositionCheck') -vi.mock('../../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../utils') vi.mock('@opentrons/shared-data', async importOriginal => { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/HowLPCWorksModal.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/HowLPCWorksModal.test.tsx index 187ff1d61de..cb9224e132f 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/HowLPCWorksModal.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/HowLPCWorksModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { HowLPCWorksModal } from '../HowLPCWorksModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/SetupLabwarePositionCheck.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/SetupLabwarePositionCheck.test.tsx index 0c0150937ad..39f1f095a16 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/SetupLabwarePositionCheck.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/__tests__/SetupLabwarePositionCheck.test.tsx @@ -10,12 +10,12 @@ import { } from '@opentrons/react-api-client' import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useLPCSuccessToast } from '../../../hooks/useLPCSuccessToast' import { getModuleTypesThatRequireExtraAttention } from '../../utils/getModuleTypesThatRequireExtraAttention' import { useLaunchLPC } from '../../../../LabwarePositionCheck/useLaunchLPC' -import { getIsLabwareOffsetCodeSnippetsOn } from '../../../../../redux/config' +import { getIsLabwareOffsetCodeSnippetsOn } from '/app/redux/config' import { useLPCDisabledReason, useRunCalibrationStatus, @@ -24,18 +24,18 @@ import { useRobotType, } from '../../../hooks' import { SetupLabwarePositionCheck } from '..' -import { useNotifyRunQuery } from '../../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { Mock } from 'vitest' vi.mock('../../../../LabwarePositionCheck/useLaunchLPC') vi.mock('../../utils/getModuleTypesThatRequireExtraAttention') vi.mock('../../../../RunTimeControl/hooks') -vi.mock('../../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../../../hooks') vi.mock('../../../hooks/useLPCSuccessToast') vi.mock('@opentrons/react-api-client') -vi.mock('../../../../../resources/runs') +vi.mock('/app/resources/runs') const DISABLED_REASON = 'MOCK_DISABLED_REASON' const ROBOT_NAME = 'otie' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/index.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/index.tsx index 7189eeb4cc0..bb5a92b60f8 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/index.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/index.tsx @@ -29,7 +29,7 @@ import { import { CurrentOffsetsTable } from './CurrentOffsetsTable' import { useLaunchLPC } from '../../../LabwarePositionCheck/useLaunchLPC' import { getLatestCurrentOffsets } from './utils' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { LabwareOffset } from '@opentrons/api-client' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/LiquidDetailCard.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/LiquidDetailCard.tsx index 4bd3aad0b38..7178a8b6404 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/LiquidDetailCard.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/LiquidDetailCard.tsx @@ -19,12 +19,12 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { MICRO_LITERS } from '@opentrons/shared-data' -import { Divider } from '../../../../atoms/structure' +import { Divider } from '/app/atoms/structure' import { useTrackEvent, ANALYTICS_HIGHLIGHT_LIQUID_IN_DETAIL_MODAL, -} from '../../../../redux/analytics' -import { getIsOnDevice } from '../../../../redux/config' +} from '/app/redux/analytics' +import { getIsOnDevice } from '/app/redux/config' import { getWellRangeForLiquidLabwarePair } from './utils' export const CARD_OUTLINE_BORDER_STYLE = css` diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/LiquidsLabwareDetailsModal.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/LiquidsLabwareDetailsModal.tsx index 19da97932c9..733d767e8cd 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/LiquidsLabwareDetailsModal.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/LiquidsLabwareDetailsModal.tsx @@ -20,8 +20,8 @@ import { parseLiquidsInLoadOrder, } from '@opentrons/shared-data' -import { OddModal } from '../../../../molecules/OddModal' -import { getIsOnDevice } from '../../../../redux/config' +import { OddModal } from '/app/molecules/OddModal' +import { getIsOnDevice } from '/app/redux/config' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { getLocationInfoNames } from '../utils/getLocationInfoNames' import { getSlotLabwareDefinition } from '../utils/getSlotLabwareDefinition' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/SetupLiquidsList.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/SetupLiquidsList.tsx index 7b90074f849..2d25bcf5b01 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/SetupLiquidsList.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/SetupLiquidsList.tsx @@ -31,7 +31,7 @@ import { useTrackEvent, ANALYTICS_EXPAND_LIQUID_SETUP_ROW, ANALYTICS_OPEN_LIQUID_LABWARE_DETAIL_MODAL, -} from '../../../../redux/analytics' +} from '/app/redux/analytics' import { useIsFlex } from '../../hooks' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { getLocationInfoNames } from '../utils/getLocationInfoNames' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/LiquidDetailCard.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/LiquidDetailCard.test.tsx index 48d22bb3776..8ed860659a5 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/LiquidDetailCard.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/LiquidDetailCard.test.tsx @@ -4,21 +4,18 @@ import { describe, it, beforeEach, vi, expect } from 'vitest' import { SPACING, COLORS } from '@opentrons/components' -import { - nestedTextMatcher, - renderWithProviders, -} from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { nestedTextMatcher, renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useTrackEvent, ANALYTICS_HIGHLIGHT_LIQUID_IN_DETAIL_MODAL, -} from '../../../../../redux/analytics' -import { getIsOnDevice } from '../../../../../redux/config' +} from '/app/redux/analytics' +import { getIsOnDevice } from '/app/redux/config' import { LiquidDetailCard } from '../LiquidDetailCard' import type { Mock } from 'vitest' -vi.mock('../../../../../redux/analytics') -vi.mock('../../../../../redux/config') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/LiquidsLabwareDetailsModal.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/LiquidsLabwareDetailsModal.test.tsx index d25b0e67627..6ff268720a4 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/LiquidsLabwareDetailsModal.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/LiquidsLabwareDetailsModal.test.tsx @@ -5,14 +5,11 @@ import { screen } from '@testing-library/react' import { LabwareRender } from '@opentrons/components' import { parseLiquidsInLoadOrder } from '@opentrons/shared-data' -import { - nestedTextMatcher, - renderWithProviders, -} from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getIsOnDevice } from '../../../../../redux/config' +import { nestedTextMatcher, renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getIsOnDevice } from '/app/redux/config' import { useMostRecentCompletedAnalysis } from '../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' -import { mockDefinition } from '../../../../../redux/custom-labware/__fixtures__' +import { mockDefinition } from '/app/redux/custom-labware/__fixtures__' import { getLocationInfoNames } from '../../utils/getLocationInfoNames' import { getSlotLabwareDefinition } from '../../utils/getSlotLabwareDefinition' import { @@ -39,7 +36,7 @@ vi.mock('@opentrons/shared-data', async importOriginal => { parseLiquidsInLoadOrder: vi.fn(), } }) -vi.mock('../../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis') vi.mock('../../../../Devices/hooks') vi.mock('../../utils/getLocationInfoNames') diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquids.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquids.test.tsx index 4407f9f28a7..ce2848ab841 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquids.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquids.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { describe, it, beforeEach, vi } from 'vitest' import { screen, fireEvent } from '@testing-library/react' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SetupLiquids } from '../index' import { SetupLiquidsList } from '../SetupLiquidsList' import { SetupLiquidsMap } from '../SetupLiquidsMap' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquidsList.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquidsList.test.tsx index c8fccfe415f..c8942139cd2 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquidsList.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquidsList.test.tsx @@ -8,22 +8,19 @@ import { parseLiquidsInLoadOrder, } from '@opentrons/shared-data' -import { - nestedTextMatcher, - renderWithProviders, -} from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { nestedTextMatcher, renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useTrackEvent, ANALYTICS_EXPAND_LIQUID_SETUP_ROW, ANALYTICS_OPEN_LIQUID_LABWARE_DETAIL_MODAL, -} from '../../../../../redux/analytics' +} from '/app/redux/analytics' import { useIsFlex } from '../../../hooks' import { getLocationInfoNames } from '../../utils/getLocationInfoNames' import { SetupLiquidsList } from '../SetupLiquidsList' import { getTotalVolumePerLiquidId, getVolumePerWell } from '../utils' import { LiquidsLabwareDetailsModal } from '../LiquidsLabwareDetailsModal' -import { useNotifyRunQuery } from '../../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { Mock } from 'vitest' import type * as SharedData from '@opentrons/shared-data' @@ -67,8 +64,8 @@ vi.mock('@opentrons/shared-data', async importOriginal => { parseLiquidsInLoadOrder: vi.fn(), } }) -vi.mock('../../../../../redux/analytics') -vi.mock('../../../../../resources/runs') +vi.mock('/app/redux/analytics') +vi.mock('/app/resources/runs') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquidsMap.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquidsMap.test.tsx index b1260de8c83..4276aa5dd6f 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquidsMap.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/__tests__/SetupLiquidsMap.test.tsx @@ -19,8 +19,8 @@ import { simpleAnalysisFileFixture, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useAttachedModules } from '../../../hooks' import { LabwareInfoOverlay } from '../../LabwareInfoOverlay' import { getLabwareRenderInfo } from '../../utils/getLabwareRenderInfo' @@ -28,7 +28,7 @@ import { getStandardDeckViewLayerBlockList } from '../../utils/getStandardDeckVi import { getAttachedProtocolModuleMatches } from '../../../../ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/utils' import { getProtocolModulesInfo } from '../../utils/getProtocolModulesInfo' import { mockProtocolModuleInfo } from '../../../../ODD/ProtocolSetup/ProtocolSetupLabware/__fixtures__' -import { mockFetchModulesSuccessActionPayloadModules } from '../../../../../redux/modules/__fixtures__' +import { mockFetchModulesSuccessActionPayloadModules } from '/app/redux/modules/__fixtures__' import { SetupLiquidsMap } from '../SetupLiquidsMap' @@ -54,7 +54,7 @@ vi.mock('../utils') vi.mock('../../utils/getLabwareRenderInfo') vi.mock('../../../../ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/utils') vi.mock('../../utils/getProtocolModulesInfo') -vi.mock('../../../../../resources/deck_configuration/utils') +vi.mock('/app/resources/deck_configuration/utils') vi.mock('@opentrons/shared-data', async importOriginal => { const actual = await importOriginal() return { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/index.tsx b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/index.tsx index 6fc4446a0db..3dcbbbe7e13 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupLiquids/index.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupLiquids/index.tsx @@ -8,8 +8,8 @@ import { ALIGN_CENTER, PrimaryButton, } from '@opentrons/components' -import { useToggleGroup } from '../../../../molecules/ToggleGroup/useToggleGroup' -import { ANALYTICS_LIQUID_SETUP_VIEW_TOGGLE } from '../../../../redux/analytics' +import { useToggleGroup } from '/app/molecules/ToggleGroup/useToggleGroup' +import { ANALYTICS_LIQUID_SETUP_VIEW_TOGGLE } from '/app/redux/analytics' import { SetupLiquidsList } from './SetupLiquidsList' import { SetupLiquidsMap } from './SetupLiquidsMap' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/ChooseModuleToConfigureModal.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/ChooseModuleToConfigureModal.tsx index 3b2f70716bc..09fd987b414 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/ChooseModuleToConfigureModal.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/ChooseModuleToConfigureModal.tsx @@ -25,10 +25,10 @@ import { getModuleDisplayName, } from '@opentrons/shared-data' import { getTopPortalEl } from '../../../../App/portal' -import { OddModal } from '../../../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' import { FixtureOption } from '../../../DeviceDetailsDeckConfiguration/AddFixtureModal' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration' -import { SmallButton } from '../../../../atoms/buttons' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' +import { SmallButton } from '/app/atoms/buttons' import { useCloseCurrentRun } from '../../../ProtocolUpload/hooks' import type { ModuleModel, DeckDefinition } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/LocationConflictModal.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/LocationConflictModal.tsx index 901c01c13bc..660b29c6a5a 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/LocationConflictModal.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/LocationConflictModal.tsx @@ -33,9 +33,9 @@ import { } from '@opentrons/shared-data' import { getTopPortalEl } from '../../../../App/portal' -import { OddModal } from '../../../../molecules/OddModal' -import { SmallButton } from '../../../../atoms/buttons/SmallButton' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration' +import { OddModal } from '/app/molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons/SmallButton' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { CutoutConfig, diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/NotConfiguredModal.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/NotConfiguredModal.tsx index ad229c25b9e..ca5151763fc 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/NotConfiguredModal.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/NotConfiguredModal.tsx @@ -18,9 +18,9 @@ import { getCutoutDisplayName, getFixtureDisplayName, } from '@opentrons/shared-data' -import { TertiaryButton } from '../../../../atoms/buttons/TertiaryButton' +import { TertiaryButton } from '/app/atoms/buttons/TertiaryButton' import { getTopPortalEl } from '../../../../App/portal' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { CutoutFixtureId, CutoutId } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/OT2MultipleModulesHelp.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/OT2MultipleModulesHelp.tsx index 531dc15526b..4661052add2 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/OT2MultipleModulesHelp.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/OT2MultipleModulesHelp.tsx @@ -16,8 +16,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { getTopPortalEl } from '../../../../App/portal' -import { Banner } from '../../../../atoms/Banner' -import multipleModuleHelp from '../../../../assets/images/Moam_modal_image.png' +import { Banner } from '/app/atoms/Banner' +import multipleModuleHelp from '/app/assets/images/Moam_modal_image.png' const HOW_TO_MULTIPLE_MODULES_HREF = 'https://support.opentrons.com/s/article/Using-modules-of-the-same-type-on-the-OT-2' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupFixtureList.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupFixtureList.tsx index 82ec086b983..192340c4342 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupFixtureList.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupFixtureList.tsx @@ -24,15 +24,15 @@ import { getDeckDefFromRobotType, getFixtureDisplayName, } from '@opentrons/shared-data' -import { StatusLabel } from '../../../../atoms/StatusLabel' -import { TertiaryButton } from '../../../../atoms/buttons/TertiaryButton' +import { StatusLabel } from '/app/atoms/StatusLabel' +import { TertiaryButton } from '/app/atoms/buttons/TertiaryButton' import { LocationConflictModal } from './LocationConflictModal' import { NotConfiguredModal } from './NotConfiguredModal' import { getFixtureImage } from './utils' import { DeckFixtureSetupInstructionsModal } from '../../../DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal' import type { DeckDefinition } from '@opentrons/shared-data' -import type { CutoutConfigAndCompatibility } from '../../../../resources/deck_configuration/hooks' +import type { CutoutConfigAndCompatibility } from '/app/resources/deck_configuration/hooks' interface SetupFixtureListProps { deckConfigCompatibility: CutoutConfigAndCompatibility[] diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupModulesList.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupModulesList.tsx index f515fd3df5f..d73e2f0b98b 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupModulesList.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupModulesList.tsx @@ -34,9 +34,9 @@ import { TC_MODULE_LOCATION_OT3, } from '@opentrons/shared-data' -import { TertiaryButton } from '../../../../atoms/buttons' -import { StatusLabel } from '../../../../atoms/StatusLabel' -import { useChainLiveCommands } from '../../../../resources/runs' +import { TertiaryButton } from '/app/atoms/buttons' +import { StatusLabel } from '/app/atoms/StatusLabel' +import { useChainLiveCommands } from '/app/resources/runs' import { ModuleSetupModal } from '../../../ModuleCard/ModuleSetupModal' import { ModuleWizardFlows } from '../../../ModuleWizardFlows' import { getModulePrepCommands } from '../../getModulePrepCommands' @@ -58,7 +58,7 @@ import type { DeckDefinition, ModuleModel, } from '@opentrons/shared-data' -import type { AttachedModule } from '../../../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' import type { ModuleRenderInfoForProtocol, ProtocolCalibrationStatus, diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupModulesMap.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupModulesMap.tsx index 272f19c2b3c..5ca6d567eb1 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupModulesMap.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/SetupModulesMap.tsx @@ -19,7 +19,7 @@ import { ModuleInfo } from '../../ModuleInfo' import { useAttachedModules, useStoredProtocolAnalysis } from '../../hooks' import { getProtocolModulesInfo } from '../utils/getProtocolModulesInfo' import { getStandardDeckViewLayerBlockList } from '../utils/getStandardDeckViewLayerBlockList' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' const ATTACHED_MODULE_POLL_MS = 5000 const DECK_CONFIG_POLL_MS = 5000 diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/UnMatchedModuleWarning.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/UnMatchedModuleWarning.tsx index fadb5c92758..f2151f2626c 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/UnMatchedModuleWarning.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/UnMatchedModuleWarning.tsx @@ -7,7 +7,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Banner } from '../../../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' export const UnMatchedModuleWarning = (): JSX.Element | null => { const { t } = useTranslation('protocol_setup') diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/LocationConflictModal.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/LocationConflictModal.test.tsx index 9713f35508a..1ea14fbbc4a 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/LocationConflictModal.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/LocationConflictModal.test.tsx @@ -3,7 +3,7 @@ import { MemoryRouter } from 'react-router-dom' import { screen, fireEvent } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { describe, it, beforeEach, vi, afterEach, expect } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { SINGLE_RIGHT_SLOT_FIXTURE, STAGING_AREA_RIGHT_SLOT_FIXTURE, @@ -15,17 +15,17 @@ import { useUpdateDeckConfigurationMutation, } from '@opentrons/react-api-client' -import { i18n } from '../../../../../i18n' -import { mockHeaterShaker } from '../../../../../redux/modules/__fixtures__' +import { i18n } from '/app/i18n' +import { mockHeaterShaker } from '/app/redux/modules/__fixtures__' import { useCloseCurrentRun } from '../../../../ProtocolUpload/hooks' import { LocationConflictModal } from '../LocationConflictModal' -import { useNotifyDeckConfigurationQuery } from '../../../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { UseQueryResult } from 'react-query' import type { DeckConfiguration } from '@opentrons/shared-data' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../../resources/deck_configuration') +vi.mock('/app/resources/deck_configuration') vi.mock('../../../../ProtocolUpload/hooks') const mockFixture = { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/NotConfiguredModal.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/NotConfiguredModal.test.tsx index bf5f7d14812..ff95c11cee6 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/NotConfiguredModal.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/NotConfiguredModal.test.tsx @@ -1,19 +1,19 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, vi, expect } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { TRASH_BIN_ADAPTER_FIXTURE } from '@opentrons/shared-data' import { useUpdateDeckConfigurationMutation } from '@opentrons/react-api-client' -import { i18n } from '../../../../../i18n' +import { i18n } from '/app/i18n' import { NotConfiguredModal } from '../NotConfiguredModal' -import { useNotifyDeckConfigurationQuery } from '../../../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { UseQueryResult } from 'react-query' import type { DeckConfiguration } from '@opentrons/shared-data' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../../resources/deck_configuration') +vi.mock('/app/resources/deck_configuration') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/OT2MultipleModulesHelp.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/OT2MultipleModulesHelp.test.tsx index 984dc1e57e5..3689c8ce2b4 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/OT2MultipleModulesHelp.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/OT2MultipleModulesHelp.test.tsx @@ -2,12 +2,12 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { describe, it, beforeEach, vi, expect } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getIsOnDevice } from '../../../../../redux/config' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getIsOnDevice } from '/app/redux/config' import { OT2MultipleModulesHelp } from '../OT2MultipleModulesHelp' -vi.mock('../../../../../redux/config') +vi.mock('/app/redux/config') const render = () => renderWithProviders(, { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupFixtureList.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupFixtureList.test.tsx index 3724d3fc41c..7e8f3c1fe56 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupFixtureList.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupFixtureList.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, vi } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { MAGNETIC_BLOCK_D3_ADDRESSABLE_AREA, MAGNETIC_BLOCK_V1_FIXTURE, @@ -10,15 +10,15 @@ import { STAGING_AREA_SLOT_WITH_WASTE_CHUTE_RIGHT_ADAPTER_NO_COVER_FIXTURE, TRASH_BIN_ADAPTER_FIXTURE, } from '@opentrons/shared-data' -import { i18n } from '../../../../../i18n' +import { i18n } from '/app/i18n' import { SetupFixtureList } from '../SetupFixtureList' import { NotConfiguredModal } from '../NotConfiguredModal' import { LocationConflictModal } from '../LocationConflictModal' import { DeckFixtureSetupInstructionsModal } from '../../../../DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal' -import type { CutoutConfigAndCompatibility } from '../../../../../resources/deck_configuration/hooks' +import type { CutoutConfigAndCompatibility } from '/app/resources/deck_configuration/hooks' -vi.mock('../../../../../resources/deck_configuration/hooks') +vi.mock('/app/resources/deck_configuration/hooks') vi.mock('../LocationConflictModal') vi.mock('../NotConfiguredModal') vi.mock( diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesAndDeck.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesAndDeck.test.tsx index 818b46e0c6b..bd60638356c 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesAndDeck.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesAndDeck.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { when } from 'vitest-when' import { describe, it, beforeEach, expect, vi } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { mockTemperatureModule } from '../../../../../redux/modules/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockTemperatureModule } from '/app/redux/modules/__fixtures__' import { getIsFixtureMismatch, getRequiredDeckConfig, -} from '../../../../../resources/deck_configuration/utils' +} from '/app/resources/deck_configuration/utils' import { useIsFlex, useRunHasStarted, @@ -24,8 +24,8 @@ vi.mock('../../../hooks') vi.mock('../SetupModulesList') vi.mock('../SetupModulesMap') vi.mock('../SetupFixtureList') -vi.mock('../../../../../redux/config') -vi.mock('../../../../../resources/deck_configuration/utils') +vi.mock('/app/redux/config') +vi.mock('/app/resources/deck_configuration/utils') const MOCK_ROBOT_NAME = 'otie' const MOCK_RUN_ID = '1' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesList.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesList.test.tsx index ca35acee669..02d2e61d1a8 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesList.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesList.test.tsx @@ -2,18 +2,18 @@ import * as React from 'react' import { when } from 'vitest-when' import { fireEvent, screen, waitFor } from '@testing-library/react' import { describe, it, beforeEach, expect, vi } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { FLEX_ROBOT_TYPE, OT2_ROBOT_TYPE } from '@opentrons/shared-data' -import { i18n } from '../../../../../i18n' +import { i18n } from '/app/i18n' import { mockMagneticModule as mockMagneticModuleFixture, mockHeaterShaker, -} from '../../../../../redux/modules/__fixtures__/index' +} from '/app/redux/modules/__fixtures__/index' import { mockMagneticModuleGen2, mockThermocycler, -} from '../../../../../redux/modules/__fixtures__' -import { useChainLiveCommands } from '../../../../../resources/runs' +} from '/app/redux/modules/__fixtures__' +import { useChainLiveCommands } from '/app/resources/runs' import { ModuleSetupModal } from '../../../../ModuleCard/ModuleSetupModal' import { ModuleWizardFlows } from '../../../../ModuleWizardFlows' import { @@ -29,7 +29,7 @@ import { SetupModulesList } from '../SetupModulesList' import { LocationConflictModal } from '../LocationConflictModal' import type { ModuleModel, ModuleType } from '@opentrons/shared-data' -import type { DiscoveredRobot } from '../../../../../redux/discovery/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' vi.mock('@opentrons/react-api-client') vi.mock('../../../hooks') @@ -38,8 +38,8 @@ vi.mock('../UnMatchedModuleWarning') vi.mock('../../../../ModuleCard/ModuleSetupModal') vi.mock('../../../../ModuleWizardFlows') vi.mock('../OT2MultipleModulesHelp') -vi.mock('../../../../../resources/runs') -vi.mock('../../../../../redux/config') +vi.mock('/app/resources/runs') +vi.mock('/app/redux/config') const ROBOT_NAME = 'otie' const RUN_ID = '1' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesMap.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesMap.test.tsx index b6c4984e6c2..8fac42d8ed1 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesMap.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/SetupModulesMap.test.tsx @@ -8,12 +8,12 @@ import { screen } from '@testing-library/react' import { OT2_ROBOT_TYPE } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockThermocycler as mockThermocyclerFixture, mockMagneticModule as mockMagneticModuleFixture, -} from '../../../../../redux/modules/__fixtures__/index' +} from '/app/redux/modules/__fixtures__/index' import { useMostRecentCompletedAnalysis } from '../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { getAttachedProtocolModuleMatches } from '../../../../ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/utils' import { ModuleInfo } from '../../../ModuleInfo' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/UnMatchedModuleWarning.test.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/UnMatchedModuleWarning.test.tsx index 2a16a69fb2f..ada660cd2c8 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/UnMatchedModuleWarning.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/__tests__/UnMatchedModuleWarning.test.tsx @@ -3,8 +3,8 @@ import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { UnMatchedModuleWarning } from '../UnMatchedModuleWarning' const render = () => { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/index.tsx b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/index.tsx index 5c9bcba8dff..71f7b997360 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/index.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/index.tsx @@ -15,12 +15,12 @@ import { useHoverTooltip, } from '@opentrons/components' -import { useToggleGroup } from '../../../../molecules/ToggleGroup/useToggleGroup' -import { useDeckConfigurationCompatibility } from '../../../../resources/deck_configuration/hooks' +import { useToggleGroup } from '/app/molecules/ToggleGroup/useToggleGroup' +import { useDeckConfigurationCompatibility } from '/app/resources/deck_configuration/hooks' import { getIsFixtureMismatch, getRequiredDeckConfig, -} from '../../../../resources/deck_configuration/utils' +} from '/app/resources/deck_configuration/utils' import { useRunHasStarted, useUnmatchedModulesForProtocol, diff --git a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/utils.ts b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/utils.ts index f5bd5187ad1..e3c4329ca44 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/utils.ts +++ b/app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/utils.ts @@ -11,21 +11,21 @@ import { WASTE_CHUTE_STAGING_AREA_FIXTURES, } from '@opentrons/shared-data' -import magneticModule from '../../../../assets/images/magnetic_module_gen_2_transparent.png' -import temperatureModule from '../../../../assets/images/temp_deck_gen_2_transparent.png' -import thermoModuleGen1 from '../../../../assets/images/thermocycler_closed.png' -import heaterShakerModule from '../../../../assets/images/heater_shaker_module_transparent.png' -import magneticModuleHighRes from '../../../../assets/images/modules/magneticModuleV2@3x.png' -import temperatureModuleHighRes from '../../../../assets/images/modules/temperatureModuleV2@3x.png' -import thermoModuleGen1HighRes from '../../../../assets/images/modules/thermocyclerModuleV1@3x.png' -import heaterShakerModuleHighRes from '../../../../assets/images/modules/heaterShakerModuleV1@3x.png' -import thermoModuleGen2 from '../../../../assets/images/thermocycler_gen_2_closed.png' -import magneticBlockGen1 from '../../../../assets/images/magnetic_block_gen_1.png' -import stagingAreaMagneticBlockGen1 from '../../../../assets/images/staging_area_magnetic_block_gen_1.png' -import trashBin from '../../../../assets/images/flex_trash_bin.png' -import stagingArea from '../../../../assets/images/staging_area_slot.png' -import wasteChute from '../../../../assets/images/waste_chute.png' -import wasteChuteStagingArea from '../../../../assets/images/waste_chute_with_staging_area.png' +import magneticModule from '/app/assets/images/magnetic_module_gen_2_transparent.png' +import temperatureModule from '/app/assets/images/temp_deck_gen_2_transparent.png' +import thermoModuleGen1 from '/app/assets/images/thermocycler_closed.png' +import heaterShakerModule from '/app/assets/images/heater_shaker_module_transparent.png' +import magneticModuleHighRes from '/app/assets/images/modules/magneticModuleV2@3x.png' +import temperatureModuleHighRes from '/app/assets/images/modules/temperatureModuleV2@3x.png' +import thermoModuleGen1HighRes from '/app/assets/images/modules/thermocyclerModuleV1@3x.png' +import heaterShakerModuleHighRes from '/app/assets/images/modules/heaterShakerModuleV1@3x.png' +import thermoModuleGen2 from '/app/assets/images/thermocycler_gen_2_closed.png' +import magneticBlockGen1 from '/app/assets/images/magnetic_block_gen_1.png' +import stagingAreaMagneticBlockGen1 from '/app/assets/images/staging_area_magnetic_block_gen_1.png' +import trashBin from '/app/assets/images/flex_trash_bin.png' +import stagingArea from '/app/assets/images/staging_area_slot.png' +import wasteChute from '/app/assets/images/waste_chute.png' +import wasteChuteStagingArea from '/app/assets/images/waste_chute_with_staging_area.png' import type { CutoutFixtureId, ModuleModel } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupPipetteCalibrationItem.tsx b/app/src/organisms/Devices/ProtocolRun/SetupPipetteCalibrationItem.tsx index 8200519224e..1e5f271fe57 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupPipetteCalibrationItem.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupPipetteCalibrationItem.tsx @@ -18,13 +18,13 @@ import { JUSTIFY_FLEX_END, WRAP, } from '@opentrons/components' -import { TertiaryButton } from '../../../atoms/buttons' -import { Banner } from '../../../atoms/Banner' -import * as PipetteConstants from '../../../redux/pipettes/constants' +import { TertiaryButton } from '/app/atoms/buttons' +import { Banner } from '/app/atoms/Banner' +import * as PipetteConstants from '/app/redux/pipettes/constants' import { useDeckCalibrationData } from '../hooks' import { SetupCalibrationItem } from './SetupCalibrationItem' -import type { Mount } from '../../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' import type { PipetteInfo } from '../hooks' const inexactPipetteSupportArticle = diff --git a/app/src/organisms/Devices/ProtocolRun/SetupRobotCalibration.tsx b/app/src/organisms/Devices/ProtocolRun/SetupRobotCalibration.tsx index ce97f0255c5..ff0807b3cec 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupRobotCalibration.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupRobotCalibration.tsx @@ -15,7 +15,7 @@ import { useTrackEvent, ANALYTICS_PROCEED_TO_MODULE_SETUP_STEP, ANALYTICS_PROCEED_TO_LABWARE_SETUP_STEP, -} from '../../../redux/analytics' +} from '/app/redux/analytics' import { useIsFlex, useRunHasStarted } from '../hooks' import { SetupDeckCalibration } from './SetupDeckCalibration' import { SetupInstrumentCalibration } from './SetupInstrumentCalibration' @@ -23,7 +23,7 @@ import { SetupTipLengthCalibration } from './SetupTipLengthCalibration' import { useRunStatus } from '../../RunTimeControl/hooks' import { RUN_STATUS_STOPPED } from '@opentrons/api-client' -import type { ProtocolCalibrationStatus } from '../../../redux/calibration/types' +import type { ProtocolCalibrationStatus } from '/app/redux/calibration/types' import type { StepKey } from './ProtocolRunSetup' interface SetupRobotCalibrationProps { diff --git a/app/src/organisms/Devices/ProtocolRun/SetupTipLengthCalibration.tsx b/app/src/organisms/Devices/ProtocolRun/SetupTipLengthCalibration.tsx index faeeb9eda9e..c8d45d15ad3 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupTipLengthCalibration.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupTipLengthCalibration.tsx @@ -10,7 +10,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import * as PipetteConstants from '../../../redux/pipettes/constants' +import * as PipetteConstants from '/app/redux/pipettes/constants' import { useRunPipetteInfoByMount } from '../hooks' import { SetupCalibrationItem } from './SetupCalibrationItem' import { SetupTipLengthCalibrationButton } from './SetupTipLengthCalibrationButton' diff --git a/app/src/organisms/Devices/ProtocolRun/SetupTipLengthCalibrationButton.tsx b/app/src/organisms/Devices/ProtocolRun/SetupTipLengthCalibrationButton.tsx index dd9d56ef135..2060c0eca87 100644 --- a/app/src/organisms/Devices/ProtocolRun/SetupTipLengthCalibrationButton.tsx +++ b/app/src/organisms/Devices/ProtocolRun/SetupTipLengthCalibrationButton.tsx @@ -20,13 +20,13 @@ import { } from '@opentrons/react-api-client' import { getLabwareDefURI } from '@opentrons/shared-data' -import { TertiaryButton } from '../../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' import { useAttachedPipettes, useDeckCalibrationData, useRunHasStarted, } from '../hooks' -import { useDashboardCalibrateTipLength } from '../../../pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength' +import { useDashboardCalibrateTipLength } from '/app/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength' import type { Mount } from '@opentrons/components' import type { LabwareDefinition2 } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/BackToTopButton.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/BackToTopButton.test.tsx index 65c5f106f1a..3afe7f62c3f 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/BackToTopButton.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/BackToTopButton.test.tsx @@ -4,19 +4,19 @@ import { when } from 'vitest-when' import { MemoryRouter } from 'react-router-dom' import { describe, it, beforeEach, vi, afterEach, expect } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { mockConnectableRobot } from '../../../../redux/discovery/__fixtures__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' +import { i18n } from '/app/i18n' import { useTrackEvent, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, -} from '../../../../redux/analytics' +} from '/app/redux/analytics' import { BackToTopButton } from '../BackToTopButton' import { useRobot } from '../../hooks' import type { Mock } from 'vitest' -vi.mock('../../../../redux/analytics') +vi.mock('/app/redux/analytics') vi.mock('../../hooks') const ROBOT_NAME = 'otie' diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/EmptySetupStep.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/EmptySetupStep.test.tsx index 3c84e76468c..eee0f6fb90b 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/EmptySetupStep.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/EmptySetupStep.test.tsx @@ -2,8 +2,8 @@ import React from 'react' import { describe, it, beforeEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { EmptySetupStep } from '../EmptySetupStep' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/LabwareInfoOverlay.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/LabwareInfoOverlay.test.tsx index 84a5edaca1b..38732efae10 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/LabwareInfoOverlay.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/LabwareInfoOverlay.test.tsx @@ -6,11 +6,8 @@ import { getLabwareDisplayName, fixtureTiprack300ul, } from '@opentrons/shared-data' -import { - nestedTextMatcher, - renderWithProviders, -} from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { nestedTextMatcher, renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useCurrentRun } from '../../../ProtocolUpload/hooks' import { getLabwareLocation } from '../utils/getLabwareLocation' import { LabwareInfoOverlay } from '../LabwareInfoOverlay' diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunModuleControls.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunModuleControls.test.tsx index 5de2516791b..d7de570a2cc 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunModuleControls.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunModuleControls.test.tsx @@ -3,8 +3,8 @@ import { when } from 'vitest-when' import { describe, it, beforeEach, vi, afterEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useInstrumentsQuery } from '@opentrons/react-api-client' import { ProtocolRunModuleControls } from '../ProtocolRunModuleControls' import { ModuleCard } from '../../../ModuleCard' @@ -14,7 +14,7 @@ import { mockTemperatureModuleGen2, mockThermocycler, mockHeaterShaker, -} from '../../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' import type { ModuleModel, ModuleType } from '@opentrons/shared-data' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunRuntimeParameters.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunRuntimeParameters.test.tsx index 1ea639a0b2e..a48e89079e0 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunRuntimeParameters.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunRuntimeParameters.test.tsx @@ -3,11 +3,11 @@ import { describe, it, vi, beforeEach, afterEach, expect } from 'vitest' import { screen } from '@testing-library/react' import { when } from 'vitest-when' import { InfoScreen } from '@opentrons/components' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useRunStatus } from '../../../RunTimeControl/hooks' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import { mockSucceededRun, mockIdleUnstartedRun, @@ -30,8 +30,8 @@ vi.mock('@opentrons/components', async importOriginal => { }) vi.mock('../../../LabwarePositionCheck/useMostRecentCompletedAnalysis') vi.mock('../../../RunTimeControl/hooks') -vi.mock('../../../../resources/runs') -vi.mock('../../../../redux/config') +vi.mock('/app/resources/runs') +vi.mock('/app/redux/config') const RUN_ID = 'mockId' diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunSetup.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunSetup.test.tsx index d6c885a6a84..ea01431ef9e 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunSetup.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/ProtocolRunSetup.test.tsx @@ -12,15 +12,15 @@ import { test_modules_protocol as withModulesProtocol, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { mockConnectedRobot } from '../../../../redux/discovery/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' import { getIsFixtureMismatch, getRequiredDeckConfig, -} from '../../../../resources/deck_configuration/utils' +} from '/app/resources/deck_configuration/utils' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' -import { useDeckConfigurationCompatibility } from '../../../../resources/deck_configuration/hooks' +import { useDeckConfigurationCompatibility } from '/app/resources/deck_configuration/hooks' import { useIsFlex, useModuleCalibrationStatus, @@ -39,7 +39,7 @@ import { SetupModuleAndDeck } from '../SetupModuleAndDeck' import { EmptySetupStep } from '../EmptySetupStep' import { ProtocolRunSetup } from '../ProtocolRunSetup' import type { MissingSteps } from '../ProtocolRunSetup' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type * as SharedData from '@opentrons/shared-data' @@ -50,10 +50,10 @@ vi.mock('../SetupModuleAndDeck') vi.mock('../SetupLiquids') vi.mock('../EmptySetupStep') vi.mock('../../../LabwarePositionCheck/useMostRecentCompletedAnalysis') -vi.mock('../../../../redux/config') -vi.mock('../../../../resources/deck_configuration/utils') -vi.mock('../../../../resources/deck_configuration/hooks') -vi.mock('../../../../resources/runs/useNotifyRunQuery') +vi.mock('/app/redux/config') +vi.mock('/app/resources/deck_configuration/utils') +vi.mock('/app/resources/deck_configuration/hooks') +vi.mock('/app/resources/runs/useNotifyRunQuery') vi.mock('@opentrons/shared-data', async importOriginal => { const actualSharedData = await importOriginal() return { diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupCalibrationItem.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupCalibrationItem.test.tsx index 0cd4c009bb5..3ffb0438173 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupCalibrationItem.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupCalibrationItem.test.tsx @@ -3,8 +3,8 @@ import { screen } from '@testing-library/react' import { when } from 'vitest-when' import { describe, it, beforeEach, vi, afterEach } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useRunHasStarted } from '../../hooks' import { formatTimestamp } from '../../utils' import { SetupCalibrationItem } from '../SetupCalibrationItem' diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupDeckCalibration.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupDeckCalibration.test.tsx index b1462eb9cbd..7b8f54191a1 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupDeckCalibration.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupDeckCalibration.test.tsx @@ -4,9 +4,9 @@ import { MemoryRouter } from 'react-router-dom' import { describe, it, beforeEach, afterEach, vi, expect } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { mockDeckCalData } from '../../../../redux/calibration/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockDeckCalData } from '/app/redux/calibration/__fixtures__' import { useDeckCalibrationData } from '../../hooks' import { SetupDeckCalibration } from '../SetupDeckCalibration' diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupFlexPipetteCalibrationItem.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupFlexPipetteCalibrationItem.test.tsx index 13442cb63c5..29d46d08fae 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupFlexPipetteCalibrationItem.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupFlexPipetteCalibrationItem.test.tsx @@ -5,8 +5,8 @@ import { describe, it, beforeEach, vi, afterEach } from 'vitest' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { PipetteWizardFlows } from '../../../PipetteWizardFlows' import { SetupFlexPipetteCalibrationItem } from '../SetupFlexPipetteCalibrationItem' diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupPipetteCalibration.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupPipetteCalibration.test.tsx index 12ee29a86cd..4f3085d873f 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupPipetteCalibration.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupPipetteCalibration.test.tsx @@ -3,19 +3,19 @@ import { when } from 'vitest-when' import { describe, it, beforeEach, vi, afterEach, expect } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { mockTipRackDefinition } from '../../../../redux/custom-labware/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockTipRackDefinition } from '/app/redux/custom-labware/__fixtures__' import { useRunPipetteInfoByMount } from '../../hooks' import { SetupPipetteCalibrationItem } from '../SetupPipetteCalibrationItem' import { SetupInstrumentCalibration } from '../SetupInstrumentCalibration' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { PipetteInfo } from '../../hooks' vi.mock('../../hooks') vi.mock('../SetupPipetteCalibrationItem') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') const ROBOT_NAME = 'otie' const RUN_ID = '1' diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupPipetteCalibrationItem.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupPipetteCalibrationItem.test.tsx index 225dfaddcb4..8514340b068 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupPipetteCalibrationItem.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupPipetteCalibrationItem.test.tsx @@ -3,10 +3,10 @@ import { when } from 'vitest-when' import { describe, it, beforeEach, vi, afterEach, expect } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { mockDeckCalData } from '../../../../redux/calibration/__fixtures__' -import { mockPipetteInfo } from '../../../../redux/pipettes/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockDeckCalData } from '/app/redux/calibration/__fixtures__' +import { mockPipetteInfo } from '/app/redux/pipettes/__fixtures__' import { useDeckCalibrationData } from '../../hooks' import { SetupPipetteCalibrationItem } from '../SetupPipetteCalibrationItem' import { MemoryRouter } from 'react-router-dom' diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupRobotCalibration.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupRobotCalibration.test.tsx index abf516fbc86..a10fac56c81 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupRobotCalibration.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupRobotCalibration.test.tsx @@ -3,13 +3,13 @@ import { when } from 'vitest-when' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, vi, afterEach, expect } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useTrackEvent, ANALYTICS_PROCEED_TO_MODULE_SETUP_STEP, -} from '../../../../redux/analytics' -import { mockDeckCalData } from '../../../../redux/calibration/__fixtures__' +} from '/app/redux/analytics' +import { mockDeckCalData } from '/app/redux/calibration/__fixtures__' import { useDeckCalibrationData, useIsFlex, @@ -20,7 +20,7 @@ import { SetupInstrumentCalibration } from '../SetupInstrumentCalibration' import { SetupTipLengthCalibration } from '../SetupTipLengthCalibration' import { SetupRobotCalibration } from '../SetupRobotCalibration' -vi.mock('../../../../redux/analytics') +vi.mock('/app/redux/analytics') vi.mock('../../hooks') vi.mock('../SetupDeckCalibration') vi.mock('../SetupInstrumentCalibration') diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupStep.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupStep.test.tsx index 74b5ee7fb8e..51be9501e09 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupStep.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupStep.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, vi, afterEach, expect } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SetupStep } from '../SetupStep' import type { Mock } from 'vitest' diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupTipLengthCalibration.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupTipLengthCalibration.test.tsx index f0e796dbf67..daaf804c60a 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupTipLengthCalibration.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupTipLengthCalibration.test.tsx @@ -3,16 +3,16 @@ import { when } from 'vitest-when' import { describe, it, beforeEach, vi, afterEach, expect } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { mockTipRackDefinition } from '../../../../redux/custom-labware/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockTipRackDefinition } from '/app/redux/custom-labware/__fixtures__' import { useRunPipetteInfoByMount } from '../../hooks' import { SetupTipLengthCalibrationButton } from '../SetupTipLengthCalibrationButton' import { SetupTipLengthCalibration } from '../SetupTipLengthCalibration' import type { PipetteInfo } from '../../hooks' -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../../hooks') vi.mock('../SetupTipLengthCalibrationButton') diff --git a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupTipLengthCalibrationButton.test.tsx b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupTipLengthCalibrationButton.test.tsx index 1ef12c372f8..bafe7c5d662 100644 --- a/app/src/organisms/Devices/ProtocolRun/__tests__/SetupTipLengthCalibrationButton.test.tsx +++ b/app/src/organisms/Devices/ProtocolRun/__tests__/SetupTipLengthCalibrationButton.test.tsx @@ -5,23 +5,23 @@ import { describe, it, beforeEach, vi, afterEach, expect } from 'vitest' import { fixtureTiprack300ul } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { mockDeckCalData } from '../../../../redux/calibration/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockDeckCalData } from '/app/redux/calibration/__fixtures__' import { mockTipLengthCalLauncher } from '../../hooks/__fixtures__/taskListFixtures' import { useDeckCalibrationData, useRunHasStarted } from '../../hooks' -import { useDashboardCalibrateTipLength } from '../../../../pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength' +import { useDashboardCalibrateTipLength } from '/app/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength' import { SetupTipLengthCalibrationButton } from '../SetupTipLengthCalibrationButton' import type { LabwareDefinition2 } from '@opentrons/shared-data' vi.mock('@opentrons/components/src/hooks') -vi.mock('../../../../organisms/RunTimeControl/hooks') +vi.mock('/app/organisms/RunTimeControl/hooks') vi.mock( - '../../../../pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength' + '/app/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength' ) -vi.mock('../../../../redux/config') -vi.mock('../../../../redux/sessions/selectors') +vi.mock('/app/redux/config') +vi.mock('/app/redux/sessions/selectors') vi.mock('../../hooks') const ROBOT_NAME = 'otie' diff --git a/app/src/organisms/Devices/ProtocolRun/useLabwareOffsetForLabware.ts b/app/src/organisms/Devices/ProtocolRun/useLabwareOffsetForLabware.ts index f352ee2e40d..826dc739421 100644 --- a/app/src/organisms/Devices/ProtocolRun/useLabwareOffsetForLabware.ts +++ b/app/src/organisms/Devices/ProtocolRun/useLabwareOffsetForLabware.ts @@ -3,7 +3,7 @@ import { getLoadedLabwareDefinitionsByUri } from '@opentrons/shared-data' import { getCurrentOffsetForLabwareInLocation } from './utils/getCurrentOffsetForLabwareInLocation' import { getLabwareDefinitionUri } from './utils/getLabwareDefinitionUri' import { getLabwareOffsetLocation } from './utils/getLabwareOffsetLocation' -import { useNotifyRunQuery } from '../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { LabwareOffset } from '@opentrons/api-client' import { useMostRecentCompletedAnalysis } from '../../LabwarePositionCheck/useMostRecentCompletedAnalysis' diff --git a/app/src/organisms/Devices/ProtocolRun/utils/__tests__/getSlotLabwareDefinition.test.ts b/app/src/organisms/Devices/ProtocolRun/utils/__tests__/getSlotLabwareDefinition.test.ts index 5ee37cced9c..13a22019314 100644 --- a/app/src/organisms/Devices/ProtocolRun/utils/__tests__/getSlotLabwareDefinition.test.ts +++ b/app/src/organisms/Devices/ProtocolRun/utils/__tests__/getSlotLabwareDefinition.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from 'vitest' -import { mockDefinition } from '../../../../../redux/custom-labware/__fixtures__' +import { mockDefinition } from '/app/redux/custom-labware/__fixtures__' import { getSlotLabwareDefinition } from '../getSlotLabwareDefinition' import type { RunTimeCommand } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/ReachableBanner.tsx b/app/src/organisms/Devices/ReachableBanner.tsx index fe600e868f6..d729203c5d9 100644 --- a/app/src/organisms/Devices/ReachableBanner.tsx +++ b/app/src/organisms/Devices/ReachableBanner.tsx @@ -1,10 +1,10 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { SPACING } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' -import { REACHABLE } from '../../redux/discovery' +import { Banner } from '/app/atoms/Banner' +import { REACHABLE } from '/app/redux/discovery' -import type { DiscoveredRobot } from '../../redux/discovery/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' interface ReachableBannerProps { robot: DiscoveredRobot diff --git a/app/src/organisms/Devices/RecentProtocolRuns.tsx b/app/src/organisms/Devices/RecentProtocolRuns.tsx index 787987c4d70..9afce240cf5 100644 --- a/app/src/organisms/Devices/RecentProtocolRuns.tsx +++ b/app/src/organisms/Devices/RecentProtocolRuns.tsx @@ -18,7 +18,7 @@ import { import { HistoricalProtocolRun } from './HistoricalProtocolRun' import { useIsRobotViewable, useRunStatuses } from './hooks' -import { useNotifyAllRunsQuery, useCurrentRunId } from '../../resources/runs' +import { useNotifyAllRunsQuery, useCurrentRunId } from '/app/resources/runs' interface RecentProtocolRunsProps { robotName: string diff --git a/app/src/organisms/Devices/RobotCard.tsx b/app/src/organisms/Devices/RobotCard.tsx index 246cfea101f..622de37b62c 100644 --- a/app/src/organisms/Devices/RobotCard.tsx +++ b/app/src/organisms/Devices/RobotCard.tsx @@ -31,11 +31,11 @@ import { useModulesQuery, } from '@opentrons/react-api-client' -import OT2_PNG from '../../assets/images/OT2-R_HERO.png' -import FLEX_PNG from '../../assets/images/FLEX.png' -import { InstrumentContainer } from '../../atoms/InstrumentContainer' -import { CONNECTABLE, getRobotModelByName } from '../../redux/discovery' -import { ModuleIcon } from '../../molecules/ModuleIcon' +import OT2_PNG from '/app/assets/images/OT2-R_HERO.png' +import FLEX_PNG from '/app/assets/images/FLEX.png' +import { InstrumentContainer } from '/app/atoms/InstrumentContainer' +import { CONNECTABLE, getRobotModelByName } from '/app/redux/discovery' +import { ModuleIcon } from '/app/molecules/ModuleIcon' import { UpdateRobotBanner } from '../UpdateRobotBanner' import { useIsFlex } from './hooks' import { ReachableBanner } from './ReachableBanner' @@ -48,8 +48,8 @@ import { import type { GripperData } from '@opentrons/api-client' import type { GripperModel } from '@opentrons/shared-data' -import type { DiscoveredRobot } from '../../redux/discovery/types' -import type { State } from '../../redux/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' +import type { State } from '/app/redux/types' interface RobotCardProps { robot: DiscoveredRobot diff --git a/app/src/organisms/Devices/RobotOverflowMenu.tsx b/app/src/organisms/Devices/RobotOverflowMenu.tsx index 6522897e77f..0152fe3a11a 100644 --- a/app/src/organisms/Devices/RobotOverflowMenu.tsx +++ b/app/src/organisms/Devices/RobotOverflowMenu.tsx @@ -22,18 +22,18 @@ import { useMenuHandleClickOutside, } from '@opentrons/components' -import { CONNECTABLE, removeRobot } from '../../redux/discovery' -import { useIsRobotOnWrongVersionOfSoftware } from '../../redux/robot-update' -import { Divider } from '../../atoms/structure' +import { CONNECTABLE, removeRobot } from '/app/redux/discovery' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' +import { Divider } from '/app/atoms/structure' import { getTopPortalEl } from '../../App/portal' import { ChooseProtocolSlideout } from '../ChooseProtocolSlideout' -import { useCurrentRunId } from '../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { ConnectionTroubleshootingModal } from './ConnectionTroubleshootingModal' import { useIsRobotBusy } from './hooks' import type { StyleProps } from '@opentrons/components' -import type { DiscoveredRobot } from '../../redux/discovery/types' -import type { Dispatch } from '../../redux/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' +import type { Dispatch } from '/app/redux/types' interface RobotOverflowMenuProps extends StyleProps { robot: DiscoveredRobot diff --git a/app/src/organisms/Devices/RobotOverview.tsx b/app/src/organisms/Devices/RobotOverview.tsx index 7437d342c19..f8261b848d5 100644 --- a/app/src/organisms/Devices/RobotOverview.tsx +++ b/app/src/organisms/Devices/RobotOverview.tsx @@ -20,16 +20,16 @@ import { } from '@opentrons/components' import { useAuthorization } from '@opentrons/react-api-client' -import OT2_PNG from '../../assets/images/OT2-R_HERO.png' -import FLEX_PNG from '../../assets/images/FLEX.png' -import { ToggleButton } from '../../atoms/buttons' -import { getConfig } from '../../redux/config' +import OT2_PNG from '/app/assets/images/OT2-R_HERO.png' +import FLEX_PNG from '/app/assets/images/FLEX.png' +import { ToggleButton } from '/app/atoms/buttons' +import { getConfig } from '/app/redux/config' import { CONNECTABLE, getRobotAddressesByName, getRobotModelByName, OPENTRONS_USB, -} from '../../redux/discovery' +} from '/app/redux/discovery' import { UpdateRobotBanner } from '../UpdateRobotBanner' import { RobotStatusHeader } from './RobotStatusHeader' import { ReachableBanner } from './ReachableBanner' @@ -46,7 +46,7 @@ import { useErrorRecoveryBanner, } from '../ErrorRecoveryBanner' -import type { State } from '../../redux/types' +import type { State } from '/app/redux/types' interface RobotOverviewProps { robotName: string diff --git a/app/src/organisms/Devices/RobotOverviewOverflowMenu.tsx b/app/src/organisms/Devices/RobotOverviewOverflowMenu.tsx index 58a15d4e239..66b0f58a23a 100644 --- a/app/src/organisms/Devices/RobotOverviewOverflowMenu.tsx +++ b/app/src/organisms/Devices/RobotOverviewOverflowMenu.tsx @@ -22,21 +22,21 @@ import { } from '@opentrons/components' import { getTopPortalEl } from '../../App/portal' -import { Divider } from '../../atoms/structure' -import { ChooseProtocolSlideout } from '../../organisms/ChooseProtocolSlideout' -import { DisconnectModal } from '../../organisms/Devices/RobotSettings/ConnectNetwork/DisconnectModal' -import { handleUpdateBuildroot } from '../../organisms/Devices/RobotSettings/UpdateBuildroot' -import { useIsRobotOnWrongVersionOfSoftware } from '../../redux/robot-update' -import { UNREACHABLE, CONNECTABLE, REACHABLE } from '../../redux/discovery' -import { checkShellUpdate } from '../../redux/shell' -import { restartRobot } from '../../redux/robot-admin' -import { home, ROBOT } from '../../redux/robot-controls' +import { Divider } from '/app/atoms/structure' +import { ChooseProtocolSlideout } from '/app/organisms/ChooseProtocolSlideout' +import { DisconnectModal } from '/app/organisms/Devices/RobotSettings/ConnectNetwork/DisconnectModal' +import { handleUpdateBuildroot } from '/app/organisms/Devices/RobotSettings/UpdateBuildroot' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' +import { UNREACHABLE, CONNECTABLE, REACHABLE } from '/app/redux/discovery' +import { checkShellUpdate } from '/app/redux/shell' +import { restartRobot } from '/app/redux/robot-admin' +import { home, ROBOT } from '/app/redux/robot-controls' import { useIsRobotBusy } from './hooks' -import { useCanDisconnect } from '../../resources/networking/hooks' -import { useIsEstopNotDisengaged } from '../../resources/devices/hooks/useIsEstopNotDisengaged' -import { useCurrentRunId } from '../../resources/runs' -import type { DiscoveredRobot } from '../../redux/discovery/types' -import type { Dispatch } from '../../redux/types' +import { useCanDisconnect } from '/app/resources/networking/hooks' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' +import { useCurrentRunId } from '/app/resources/runs' +import type { DiscoveredRobot } from '/app/redux/discovery/types' +import type { Dispatch } from '/app/redux/types' interface RobotOverviewOverflowMenuProps { robot: DiscoveredRobot diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/DeviceResetModal.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/DeviceResetModal.tsx index 29e79772be1..82bdf63c346 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/DeviceResetModal.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/DeviceResetModal.tsx @@ -22,15 +22,12 @@ import { getRequestById, SUCCESS, PENDING, -} from '../../../../../redux/robot-api' -import { - getResetConfigOptions, - resetConfig, -} from '../../../../../redux/robot-admin' +} from '/app/redux/robot-api' +import { getResetConfigOptions, resetConfig } from '/app/redux/robot-admin' import { useIsFlex } from '../../../hooks' -import type { State } from '../../../../../redux/types' -import type { ResetConfigRequest } from '../../../../../redux/robot-admin/types' +import type { State } from '/app/redux/types' +import type { ResetConfigRequest } from '/app/redux/robot-admin/types' interface DeviceResetModalProps { closeModal: () => void diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/DeviceResetSlideout.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/DeviceResetSlideout.tsx index f29516c0158..52c2d14f9f5 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/DeviceResetSlideout.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/DeviceResetSlideout.tsx @@ -21,17 +21,17 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { Slideout } from '../../../../../atoms/Slideout' -import { Divider } from '../../../../../atoms/structure' -import { UNREACHABLE } from '../../../../../redux/discovery' +import { Slideout } from '/app/atoms/Slideout' +import { Divider } from '/app/atoms/structure' +import { UNREACHABLE } from '/app/redux/discovery' import { getResetConfigOptions, fetchResetConfigOptions, -} from '../../../../../redux/robot-admin' +} from '/app/redux/robot-admin' import { useTrackEvent, ANALYTICS_CALIBRATION_DATA_DOWNLOADED, -} from '../../../../../redux/analytics' +} from '/app/redux/analytics' import { useDeckCalibrationData, useIsFlex, @@ -39,10 +39,10 @@ import { useTipLengthCalibrations, useRobot, } from '../../../hooks' -import { useNotifyAllRunsQuery } from '../../../../../resources/runs' +import { useNotifyAllRunsQuery } from '/app/resources/runs' -import type { State, Dispatch } from '../../../../../redux/types' -import type { ResetConfigRequest } from '../../../../../redux/robot-admin/types' +import type { State, Dispatch } from '/app/redux/types' +import type { ResetConfigRequest } from '/app/redux/robot-admin/types' interface DeviceResetSlideoutProps { isExpanded: boolean diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/FactoryModeSlideout.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/FactoryModeSlideout.tsx index 80b2d3e35ed..1472204ce8f 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/FactoryModeSlideout.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/FactoryModeSlideout.tsx @@ -22,15 +22,15 @@ import { useUpdateRobotSettingMutation, } from '@opentrons/react-api-client' -import { ToggleButton } from '../../../../../atoms/buttons' -import { MultiSlideout } from '../../../../../atoms/Slideout/MultiSlideout' -import { FileUpload } from '../../../../../molecules/FileUpload' -import { UploadInput } from '../../../../../molecules/UploadInput' -import { restartRobot } from '../../../../../redux/robot-admin' +import { ToggleButton } from '/app/atoms/buttons' +import { MultiSlideout } from '/app/atoms/Slideout/MultiSlideout' +import { FileUpload } from '/app/molecules/FileUpload' +import { UploadInput } from '/app/molecules/UploadInput' +import { restartRobot } from '/app/redux/robot-admin' import type { FieldError, Resolver } from 'react-hook-form' import type { RobotSettingsField } from '@opentrons/api-client' -import type { Dispatch } from '../../../../../redux/types' +import type { Dispatch } from '/app/redux/types' interface FactoryModeSlideoutProps { isExpanded: boolean diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/RenameRobotSlideout.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/RenameRobotSlideout.tsx index 07fc4fa30f5..a0172fbed9e 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/RenameRobotSlideout.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/RenameRobotSlideout.tsx @@ -18,18 +18,15 @@ import { getConnectableRobots, getReachableRobots, getUnreachableRobots, -} from '../../../../../redux/discovery' -import { - useTrackEvent, - ANALYTICS_RENAME_ROBOT, -} from '../../../../../redux/analytics' -import { Slideout } from '../../../../../atoms/Slideout' -import { Banner } from '../../../../../atoms/Banner' +} from '/app/redux/discovery' +import { useTrackEvent, ANALYTICS_RENAME_ROBOT } from '/app/redux/analytics' +import { Slideout } from '/app/atoms/Slideout' +import { Banner } from '/app/atoms/Banner' import { useIsFlex } from '../../../hooks' import type { Resolver, FieldError } from 'react-hook-form' import type { UpdatedRobotName } from '@opentrons/api-client' -import type { State, Dispatch } from '../../../../../redux/types' +import type { State, Dispatch } from '/app/redux/types' interface RenameRobotSlideoutProps { isExpanded: boolean onCloseClick: () => void diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/DeviceResetModal.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/DeviceResetModal.test.tsx index b741f3ef5c8..c9fb021faff 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/DeviceResetModal.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/DeviceResetModal.test.tsx @@ -3,17 +3,17 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../../__testing-utils__' -import { i18n } from '../../../../../../i18n' -import { resetConfig } from '../../../../../../redux/robot-admin' -import { useDispatchApiRequest } from '../../../../../../redux/robot-api' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { resetConfig } from '/app/redux/robot-admin' +import { useDispatchApiRequest } from '/app/redux/robot-api' import { DeviceResetModal } from '../DeviceResetModal' -import type { DispatchApiRequestType } from '../../../../../../redux/robot-api' +import type { DispatchApiRequestType } from '/app/redux/robot-api' vi.mock('../../../../hooks') -vi.mock('../../../../../../redux/robot-admin') -vi.mock('../../../../../../redux/robot-api') +vi.mock('/app/redux/robot-admin') +vi.mock('/app/redux/robot-api') const mockResetOptions = {} const mockCloseModal = vi.fn() diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/DeviceResetSlideout.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/DeviceResetSlideout.test.tsx index 15f35b485eb..057b1bbc499 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/DeviceResetSlideout.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/DeviceResetSlideout.test.tsx @@ -3,15 +3,15 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../../__testing-utils__' -import { i18n } from '../../../../../../i18n' -import { getResetConfigOptions } from '../../../../../../redux/robot-admin' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getResetConfigOptions } from '/app/redux/robot-admin' import { useIsFlex } from '../../../../hooks' import { DeviceResetSlideout } from '../DeviceResetSlideout' -vi.mock('../../../../../../redux/config') -vi.mock('../../../../../../redux/discovery') -vi.mock('../../../../../../redux/robot-admin/selectors') +vi.mock('/app/redux/config') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-admin/selectors') vi.mock('../../../../hooks') const mockOnCloseClick = vi.fn() diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/RenameRobotSlideout.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/RenameRobotSlideout.test.tsx index 2fbb730e095..51b07a3e6d7 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/RenameRobotSlideout.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/__tests__/RenameRobotSlideout.test.tsx @@ -3,29 +3,26 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen, waitFor } from '@testing-library/react' import { describe, it, vi, expect, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../../__testing-utils__' -import { i18n } from '../../../../../../i18n' -import { - useTrackEvent, - ANALYTICS_RENAME_ROBOT, -} from '../../../../../../redux/analytics' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useTrackEvent, ANALYTICS_RENAME_ROBOT } from '/app/redux/analytics' import { getConnectableRobots, getReachableRobots, getUnreachableRobots, -} from '../../../../../../redux/discovery' +} from '/app/redux/discovery' import { mockConnectableRobot, mockReachableRobot, -} from '../../../../../../redux/discovery/__fixtures__' +} from '/app/redux/discovery/__fixtures__' import { RenameRobotSlideout } from '../RenameRobotSlideout' import { useIsFlex } from '../../../../hooks' -vi.mock('../../../../../../redux/discovery/selectors') -vi.mock('../../../../../../redux/analytics') +vi.mock('/app/redux/discovery/selectors') +vi.mock('/app/redux/analytics') vi.mock('../../../../hooks') -vi.mock('../../../../../../redux/discovery', async importOriginal => { +vi.mock('/app/redux/discovery', async importOriginal => { const actual = await importOriginal() return { ...actual, diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/DeviceReset.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/DeviceReset.tsx index d76aa144097..5a6aed28894 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/DeviceReset.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/DeviceReset.tsx @@ -12,7 +12,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { TertiaryButton } from '../../../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' interface DeviceResetProps { updateIsExpanded: ( diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/DisplayRobotName.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/DisplayRobotName.tsx index 8bf48848e2e..e71a87124b1 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/DisplayRobotName.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/DisplayRobotName.tsx @@ -13,7 +13,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { TertiaryButton } from '../../../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' interface DisplayRobotNameProps { robotName: string updateIsExpanded: ( diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/EnableStatusLight.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/EnableStatusLight.tsx index 1e7d76388c6..0c0475d5d3a 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/EnableStatusLight.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/EnableStatusLight.tsx @@ -11,7 +11,7 @@ import { TYPOGRAPHY, LegacyStyledText, } from '@opentrons/components' -import { ToggleButton } from '../../../../atoms/buttons' +import { ToggleButton } from '/app/atoms/buttons' import { useLEDLights } from '../../hooks' interface EnableStatusLightProps { diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/FactoryMode.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/FactoryMode.tsx index 5b92ad6f22d..89a7b9b0597 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/FactoryMode.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/FactoryMode.tsx @@ -12,7 +12,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { TertiaryButton } from '../../../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' interface FactoryModeProps { isRobotBusy: boolean diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/GantryHoming.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/GantryHoming.tsx index 2711d7b1673..a47fcb8d537 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/GantryHoming.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/GantryHoming.tsx @@ -12,11 +12,11 @@ import { LegacyStyledText, } from '@opentrons/components' -import { ToggleButton } from '../../../../atoms/buttons' -import { updateSetting } from '../../../../redux/robot-settings' +import { ToggleButton } from '/app/atoms/buttons' +import { updateSetting } from '/app/redux/robot-settings' -import type { Dispatch } from '../../../../redux/types' -import type { RobotSettingsField } from '../../../../redux/robot-settings/types' +import type { Dispatch } from '/app/redux/types' +import type { RobotSettingsField } from '/app/redux/robot-settings/types' interface GantryHomingProps { settings: RobotSettingsField | undefined diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/LegacySettings.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/LegacySettings.tsx index 6249845a895..8b2a9fb61b2 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/LegacySettings.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/LegacySettings.tsx @@ -12,11 +12,11 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ToggleButton } from '../../../../atoms/buttons' -import { updateSetting } from '../../../../redux/robot-settings' +import { ToggleButton } from '/app/atoms/buttons' +import { updateSetting } from '/app/redux/robot-settings' -import type { Dispatch } from '../../../../redux/types' -import type { RobotSettingsField } from '../../../../redux/robot-settings/types' +import type { Dispatch } from '/app/redux/types' +import type { RobotSettingsField } from '/app/redux/robot-settings/types' interface LegacySettingsProps { settings: RobotSettingsField | undefined diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/OpenJupyterControl.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/OpenJupyterControl.tsx index 56695ebdb55..5653e750ab4 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/OpenJupyterControl.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/OpenJupyterControl.tsx @@ -9,12 +9,9 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { - useTrackEvent, - ANALYTICS_JUPYTER_OPEN, -} from '../../../../redux/analytics' -import { TertiaryButton } from '../../../../atoms/buttons' -import { ExternalLink } from '../../../../atoms/Link/ExternalLink' +import { useTrackEvent, ANALYTICS_JUPYTER_OPEN } from '/app/redux/analytics' +import { TertiaryButton } from '/app/atoms/buttons' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' const EVENT_JUPYTER_OPEN = { name: ANALYTICS_JUPYTER_OPEN, properties: {} } diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/RobotInformation.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/RobotInformation.tsx index 55f53c84413..20aee5e9162 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/RobotInformation.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/RobotInformation.tsx @@ -9,12 +9,12 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { useRobot } from '../../../../organisms/Devices/hooks' +import { useRobot } from '/app/organisms/Devices/hooks' import { getRobotSerialNumber, getRobotFirmwareVersion, getRobotProtocolApiVersion, -} from '../../../../redux/discovery' +} from '/app/redux/discovery' interface RobotInformationProps { robotName: string diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/RobotServerVersion.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/RobotServerVersion.tsx index 53ab38da90b..1a9e12a24c4 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/RobotServerVersion.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/RobotServerVersion.tsx @@ -13,14 +13,14 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { TertiaryButton } from '../../../../atoms/buttons' -import { getRobotApiVersion } from '../../../../redux/discovery' -import { getRobotUpdateDisplayInfo } from '../../../../redux/robot-update' +import { TertiaryButton } from '/app/atoms/buttons' +import { getRobotApiVersion } from '/app/redux/discovery' +import { getRobotUpdateDisplayInfo } from '/app/redux/robot-update' import { UpdateRobotBanner } from '../../../UpdateRobotBanner' import { useIsFlex, useRobot } from '../../hooks' import { handleUpdateBuildroot } from '../UpdateBuildroot' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' interface RobotServerVersionProps { robotName: string diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/ShortTrashBin.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/ShortTrashBin.tsx index 4fda1e54a7a..da928b01721 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/ShortTrashBin.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/ShortTrashBin.tsx @@ -12,11 +12,11 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ToggleButton } from '../../../../atoms/buttons' -import { updateSetting } from '../../../../redux/robot-settings' +import { ToggleButton } from '/app/atoms/buttons' +import { updateSetting } from '/app/redux/robot-settings' -import type { Dispatch } from '../../../../redux/types' -import type { RobotSettingsField } from '../../../../redux/robot-settings/types' +import type { Dispatch } from '/app/redux/types' +import type { RobotSettingsField } from '/app/redux/robot-settings/types' interface ShortTrashBinProps { settings: RobotSettingsField | undefined diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/Troubleshooting.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/Troubleshooting.tsx index f51d4292f71..c02358f42cb 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/Troubleshooting.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/Troubleshooting.tsx @@ -20,9 +20,9 @@ import { } from '@opentrons/components' import { useHost } from '@opentrons/react-api-client' -import { TertiaryButton } from '../../../../atoms/buttons' -import { useToaster } from '../../../../organisms/ToasterOven' -import { CONNECTABLE } from '../../../../redux/discovery' +import { TertiaryButton } from '/app/atoms/buttons' +import { useToaster } from '/app/organisms/ToasterOven' +import { CONNECTABLE } from '/app/redux/discovery' import { useRobot } from '../../hooks' import type { IconProps } from '@opentrons/components' diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/UpdateRobotSoftware.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/UpdateRobotSoftware.tsx index 5308068cc5a..bb480e9a140 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/UpdateRobotSoftware.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/UpdateRobotSoftware.tsx @@ -18,13 +18,13 @@ import { StyledText, } from '@opentrons/components' -import { ExternalLink } from '../../../../atoms/Link/ExternalLink' -import { TertiaryButton } from '../../../../atoms/buttons' -import { getRobotUpdateDisplayInfo } from '../../../../redux/robot-update' -import { useDispatchStartRobotUpdate } from '../../../../redux/robot-update/hooks' -import { Banner } from '../../../../atoms/Banner' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' +import { TertiaryButton } from '/app/atoms/buttons' +import { getRobotUpdateDisplayInfo } from '/app/redux/robot-update' +import { useDispatchStartRobotUpdate } from '/app/redux/robot-update/hooks' +import { Banner } from '/app/atoms/Banner' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' const OT_APP_UPDATE_PAGE_LINK = 'https://opentrons.com/ot-app/' const HIDDEN_CSS = css` diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/UsageSettings.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/UsageSettings.tsx index 77d70a66382..491a5d8becd 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/UsageSettings.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/UsageSettings.tsx @@ -12,11 +12,11 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ToggleButton } from '../../../../atoms/buttons' -import { updateSetting } from '../../../../redux/robot-settings' +import { ToggleButton } from '/app/atoms/buttons' +import { updateSetting } from '/app/redux/robot-settings' -import type { Dispatch } from '../../../../redux/types' -import type { RobotSettingsField } from '../../../../redux/robot-settings/types' +import type { Dispatch } from '/app/redux/types' +import type { RobotSettingsField } from '/app/redux/robot-settings/types' interface UsageSettingsProps { settings: RobotSettingsField | undefined diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/UseOlderAspirateBehavior.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/UseOlderAspirateBehavior.tsx index b1ad886388f..3f8bc946976 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/UseOlderAspirateBehavior.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/UseOlderAspirateBehavior.tsx @@ -12,11 +12,11 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ToggleButton } from '../../../../atoms/buttons' -import { updateSetting } from '../../../../redux/robot-settings' +import { ToggleButton } from '/app/atoms/buttons' +import { updateSetting } from '/app/redux/robot-settings' -import type { Dispatch } from '../../../../redux/types' -import type { RobotSettingsField } from '../../../../redux/robot-settings/types' +import type { Dispatch } from '/app/redux/types' +import type { RobotSettingsField } from '/app/redux/robot-settings/types' interface UseOlderAspirateBehaviorProps { settings: RobotSettingsField | undefined diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/DeviceReset.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/DeviceReset.test.tsx index d08784d28a0..0f3440f6610 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/DeviceReset.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/DeviceReset.test.tsx @@ -3,9 +3,9 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' +import { i18n } from '/app/i18n' import { DeviceReset } from '../DeviceReset' diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/DisplayRobotName.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/DisplayRobotName.test.tsx index a2cabc55f5b..8b817df27ba 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/DisplayRobotName.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/DisplayRobotName.test.tsx @@ -3,9 +3,9 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' +import { i18n } from '/app/i18n' import { DisplayRobotName } from '../DisplayRobotName' diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/EnableStatusLight.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/EnableStatusLight.test.tsx index 9efcca029bc..38560808cff 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/EnableStatusLight.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/EnableStatusLight.test.tsx @@ -2,9 +2,9 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' +import { i18n } from '/app/i18n' import { useLEDLights } from '../../../hooks' import { EnableStatusLight } from '../EnableStatusLight' diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/GantryHoming.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/GantryHoming.test.tsx index 05d074e833b..49402e00c97 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/GantryHoming.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/GantryHoming.test.tsx @@ -3,14 +3,14 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getRobotSettings } from '../../../../../redux/robot-settings' +import { i18n } from '/app/i18n' +import { getRobotSettings } from '/app/redux/robot-settings' import { GantryHoming } from '../GantryHoming' -vi.mock('../../../../../redux/robot-settings/selectors') +vi.mock('/app/redux/robot-settings/selectors') vi.mock('../../../hooks') const mockSettings = { diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/LegacySettings.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/LegacySettings.test.tsx index 302cffba675..7da47c95e67 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/LegacySettings.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/LegacySettings.test.tsx @@ -3,14 +3,14 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getRobotSettings } from '../../../../../redux/robot-settings' +import { i18n } from '/app/i18n' +import { getRobotSettings } from '/app/redux/robot-settings' import { LegacySettings } from '../LegacySettings' -vi.mock('../../../../../redux/robot-settings/selectors') +vi.mock('/app/redux/robot-settings/selectors') const mockSettings = { id: 'deckCalibrationDots', diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/OpenJupyterControl.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/OpenJupyterControl.test.tsx index ce776c45e4b..fe323a5667b 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/OpenJupyterControl.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/OpenJupyterControl.test.tsx @@ -3,15 +3,12 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { - useTrackEvent, - ANALYTICS_JUPYTER_OPEN, -} from '../../../../../redux/analytics' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useTrackEvent, ANALYTICS_JUPYTER_OPEN } from '/app/redux/analytics' import { OpenJupyterControl } from '../OpenJupyterControl' -vi.mock('../../../../../redux/analytics') +vi.mock('/app/redux/analytics') const mockIpAddress = '1.1.1.1' const mockLink = `http://${mockIpAddress}:48888` diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/RobotInformation.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/RobotInformation.test.tsx index 0b2c2bbc7cd..851b686bd0c 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/RobotInformation.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/RobotInformation.test.tsx @@ -3,19 +3,19 @@ import { MemoryRouter } from 'react-router-dom' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { getRobotSerialNumber, getRobotFirmwareVersion, getRobotProtocolApiVersion, -} from '../../../../../redux/discovery' +} from '/app/redux/discovery' import { useRobot } from '../../../hooks' -import { mockConnectableRobot } from '../../../../../redux/discovery/__fixtures__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import { RobotInformation } from '../RobotInformation' vi.mock('../../../hooks') -vi.mock('../../../../../redux/discovery/selectors') +vi.mock('/app/redux/discovery/selectors') const MOCK_ROBOT_SERIAL_NUMBER = '0.0.0' const MOCK_FIRMWARE_VERSION = '4.5.6' diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/RobotServerVersion.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/RobotServerVersion.test.tsx index d192d7f3310..0409a65925a 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/RobotServerVersion.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/RobotServerVersion.test.tsx @@ -3,18 +3,18 @@ import { fireEvent, screen } from '@testing-library/react' import { MemoryRouter } from 'react-router-dom' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getRobotApiVersion } from '../../../../../redux/discovery' -import { getRobotUpdateDisplayInfo } from '../../../../../redux/robot-update' -import { mockConnectableRobot } from '../../../../../redux/discovery/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getRobotApiVersion } from '/app/redux/discovery' +import { getRobotUpdateDisplayInfo } from '/app/redux/robot-update' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import { useRobot } from '../../../hooks' import { handleUpdateBuildroot } from '../../UpdateBuildroot' import { RobotServerVersion } from '../RobotServerVersion' vi.mock('../../../hooks') -vi.mock('../../../../../redux/robot-update/selectors') -vi.mock('../../../../../redux/discovery/selectors') +vi.mock('/app/redux/robot-update/selectors') +vi.mock('/app/redux/discovery/selectors') vi.mock('../../UpdateBuildroot') const MOCK_ROBOT_VERSION = '7.7.7' diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/ShortTrashBin.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/ShortTrashBin.test.tsx index 8088e3acd29..8d1ee357b9f 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/ShortTrashBin.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/ShortTrashBin.test.tsx @@ -3,14 +3,14 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getRobotSettings } from '../../../../../redux/robot-settings' +import { i18n } from '/app/i18n' +import { getRobotSettings } from '/app/redux/robot-settings' import { ShortTrashBin } from '../ShortTrashBin' -vi.mock('../../../../../redux/robot-settings/selectors') +vi.mock('/app/redux/robot-settings/selectors') const mockSettings = { id: 'shortFixedTrash', diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/Troubleshooting.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/Troubleshooting.test.tsx index 0025538279a..f1f3741d373 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/Troubleshooting.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/Troubleshooting.test.tsx @@ -4,15 +4,15 @@ import { act, waitFor, screen } from '@testing-library/react' import { when } from 'vitest-when' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useHost } from '@opentrons/react-api-client' -import { i18n } from '../../../../../i18n' -import { useToaster } from '../../../../../organisms/ToasterOven' +import { i18n } from '/app/i18n' +import { useToaster } from '/app/organisms/ToasterOven' import { mockConnectableRobot, mockUnreachableRobot, -} from '../../../../../redux/discovery/__fixtures__' +} from '/app/redux/discovery/__fixtures__' import { useRobot } from '../../../hooks' import { Troubleshooting } from '../Troubleshooting' @@ -20,8 +20,8 @@ import type { HostConfig } from '@opentrons/api-client' import type { ToasterContextType } from '../../../../ToasterOven/ToasterContext' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../../organisms/ToasterOven') -vi.mock('../../../../../redux/discovery/selectors') +vi.mock('/app/organisms/ToasterOven') +vi.mock('/app/redux/discovery/selectors') vi.mock('../../../hooks') const ROBOT_NAME = 'otie' diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UpdateRobotSoftware.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UpdateRobotSoftware.test.tsx index 1564a65d80d..ab56af2567e 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UpdateRobotSoftware.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UpdateRobotSoftware.test.tsx @@ -4,15 +4,15 @@ import { MemoryRouter } from 'react-router-dom' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getRobotUpdateDisplayInfo } from '../../../../../redux/robot-update' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getRobotUpdateDisplayInfo } from '/app/redux/robot-update' import { UpdateRobotSoftware } from '../UpdateRobotSoftware' -vi.mock('../../../../../redux/robot-settings/selectors') -vi.mock('../../../../../redux/discovery') -vi.mock('../../../../../redux/robot-update/selectors') +vi.mock('/app/redux/robot-settings/selectors') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-update/selectors') vi.mock('../../../hooks') const mockOnUpdateStart = vi.fn() diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UsageSettings.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UsageSettings.test.tsx index ba3c025746d..1543209d00d 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UsageSettings.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UsageSettings.test.tsx @@ -3,14 +3,14 @@ import { MemoryRouter } from 'react-router-dom' import { screen, fireEvent } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getRobotSettings } from '../../../../../redux/robot-settings' +import { i18n } from '/app/i18n' +import { getRobotSettings } from '/app/redux/robot-settings' import { UsageSettings } from '../UsageSettings' -vi.mock('../../../../../redux/robot-settings/selectors') +vi.mock('/app/redux/robot-settings/selectors') const mockSettings = { id: 'enableDoorSafetySwitch', diff --git a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UseOlderAspirateBehavior.test.tsx b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UseOlderAspirateBehavior.test.tsx index 95d71fcaaae..aeee92b4cd5 100644 --- a/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UseOlderAspirateBehavior.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/AdvancedTab/__tests__/UseOlderAspirateBehavior.test.tsx @@ -3,14 +3,14 @@ import { MemoryRouter } from 'react-router-dom' import { screen, fireEvent } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getRobotSettings } from '../../../../../redux/robot-settings' +import { i18n } from '/app/i18n' +import { getRobotSettings } from '/app/redux/robot-settings' import { UseOlderAspirateBehavior } from '../UseOlderAspirateBehavior' -vi.mock('../../../../../redux/robot-settings/selectors') +vi.mock('/app/redux/robot-settings/selectors') const mockSettings = { id: 'useOldAspirationFunctions', diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/FormModal.tsx b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/FormModal.tsx index ee94463bb4c..3e62f53acaf 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/FormModal.tsx +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/FormModal.tsx @@ -7,7 +7,7 @@ import { BUTTON_TYPE_SUBMIT, Flex, } from '@opentrons/components' -import { ScrollableAlertModal } from '../../../../../molecules/modals' +import { ScrollableAlertModal } from '/app/molecules/modals' import { TextField } from './TextField' import { KeyFileField } from './KeyFileField' import { SecurityField } from './SecurityField' diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/UploadKeyInput.tsx b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/UploadKeyInput.tsx index 05c532f0876..6d450c336f2 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/UploadKeyInput.tsx +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/UploadKeyInput.tsx @@ -3,13 +3,10 @@ import styled from 'styled-components' import { useSelector } from 'react-redux' import last from 'lodash/last' -import { useDispatchApiRequest } from '../../../../../redux/robot-api' -import { - postWifiKeys, - getWifiKeyByRequestId, -} from '../../../../../redux/networking' +import { useDispatchApiRequest } from '/app/redux/robot-api' +import { postWifiKeys, getWifiKeyByRequestId } from '/app/redux/networking' -import type { State } from '../../../../../redux/types' +import type { State } from '/app/redux/types' export interface UploadKeyInputProps { robotName: string diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/__tests__/form-fields.test.ts b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/__tests__/form-fields.test.ts index cc346be3ad9..80336fb0139 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/__tests__/form-fields.test.ts +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/__tests__/form-fields.test.ts @@ -1,4 +1,4 @@ -import * as Fixtures from '../../../../../../redux/networking/__fixtures__' +import * as Fixtures from '/app/redux/networking/__fixtures__' import { describe, it, expect } from 'vitest' import { @@ -8,7 +8,7 @@ import { SECURITY_WPA_EAP, SECURITY_WPA_PSK, SECURITY_NONE, -} from '../../../../../../redux/networking' +} from '/app/redux/networking' import { FIELD_TYPE_TEXT, diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/DisconnectModal.tsx b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/DisconnectModal.tsx index 57118478b27..2b2b297e8cc 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/DisconnectModal.tsx +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/DisconnectModal.tsx @@ -19,14 +19,14 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { useRobot } from '../../../../organisms/Devices/hooks' -import { CONNECTABLE } from '../../../../redux/discovery' +import { useRobot } from '/app/organisms/Devices/hooks' +import { CONNECTABLE } from '/app/redux/discovery' import { clearWifiStatus, getNetworkInterfaces, postWifiDisconnect, -} from '../../../../redux/networking' -import { useWifiList } from '../../../../resources/networking/hooks' +} from '/app/redux/networking' +import { useWifiList } from '/app/resources/networking/hooks' import { dismissRequest, getRequestById, @@ -34,9 +34,9 @@ import { PENDING, FAILURE, SUCCESS, -} from '../../../../redux/robot-api' +} from '/app/redux/robot-api' -import type { Dispatch, State } from '../../../../redux/types' +import type { Dispatch, State } from '/app/redux/types' export interface DisconnectModalProps { onCancel: () => unknown diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ResultModal.tsx b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ResultModal.tsx index 1a043507912..c929e4bf14b 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ResultModal.tsx +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ResultModal.tsx @@ -3,12 +3,12 @@ import * as React from 'react' import { AlertModal, SpinnerModal } from '@opentrons/components' import * as Copy from './i18n' -import { ErrorModal } from '../../../../molecules/modals' +import { ErrorModal } from '/app/molecules/modals' import { DISCONNECT } from './constants' -import { PENDING, FAILURE } from '../../../../redux/robot-api' +import { PENDING, FAILURE } from '/app/redux/robot-api' import type { NetworkChangeType } from './types' -import type { RequestStatus } from '../../../../redux/robot-api/types' +import type { RequestStatus } from '/app/redux/robot-api/types' export interface ResultModalProps { type: NetworkChangeType diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/SelectSsid/NetworkOptionLabel.tsx b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/SelectSsid/NetworkOptionLabel.tsx index 42b65948e58..61a78da004e 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/SelectSsid/NetworkOptionLabel.tsx +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/SelectSsid/NetworkOptionLabel.tsx @@ -1,11 +1,11 @@ import * as React from 'react' import styled from 'styled-components' import { Icon, FONT_BODY_1_DARK, SPACING } from '@opentrons/components' -import { SECURITY_NONE } from '../../../../../redux/networking' +import { SECURITY_NONE } from '/app/redux/networking' import type { StyledComponent } from 'styled-components' import type { IconName } from '@opentrons/components' -import type { WifiNetwork } from '../../../../../redux/networking/types' +import type { WifiNetwork } from '/app/redux/networking/types' const SIGNAL_LEVEL_LOW: number = 25 const SIGNAL_LEVEL_MED: number = 50 diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/SelectSsid/index.tsx b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/SelectSsid/index.tsx index 227bf8b4586..6e9aecd7ee8 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/SelectSsid/index.tsx +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/SelectSsid/index.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import { CONTEXT_MENU } from '@opentrons/components' -import { SelectField } from '../../../../../atoms/SelectField' +import { SelectField } from '/app/atoms/SelectField' import * as Copy from '../i18n' import { NetworkOptionLabel, NetworkActionLabel } from './NetworkOptionLabel' diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/__tests__/DisconnectModal.test.tsx b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/__tests__/DisconnectModal.test.tsx index 79823d81ef3..961e5bfedee 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/__tests__/DisconnectModal.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/__tests__/DisconnectModal.test.tsx @@ -2,23 +2,23 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { when } from 'vitest-when' -import { i18n } from '../../../../../i18n' -import { useRobot } from '../../../../../organisms/Devices/hooks' -import { useWifiList } from '../../../../../resources/networking/hooks' +import { i18n } from '/app/i18n' +import { useRobot } from '/app/organisms/Devices/hooks' +import { useWifiList } from '/app/resources/networking/hooks' import { mockConnectableRobot, mockReachableRobot, -} from '../../../../../redux/discovery/__fixtures__' +} from '/app/redux/discovery/__fixtures__' import { clearWifiStatus, getNetworkInterfaces, INTERFACE_WIFI, postWifiDisconnect, -} from '../../../../../redux/networking' -import { mockWifiNetwork } from '../../../../../redux/networking/__fixtures__' +} from '/app/redux/networking' +import { mockWifiNetwork } from '/app/redux/networking/__fixtures__' import { dismissRequest, getRequestById, @@ -26,17 +26,17 @@ import { PENDING, FAILURE, SUCCESS, -} from '../../../../../redux/robot-api' +} from '/app/redux/robot-api' import { DisconnectModal } from '../DisconnectModal' -import type { DispatchApiRequestType } from '../../../../../redux/robot-api' -import type { RequestState } from '../../../../../redux/robot-api/types' -import type { State } from '../../../../../redux/types' +import type { DispatchApiRequestType } from '/app/redux/robot-api' +import type { RequestState } from '/app/redux/robot-api/types' +import type { State } from '/app/redux/types' -vi.mock('../../../../../resources/networking/hooks') -vi.mock('../../../../../organisms/Devices/hooks') -vi.mock('../../../../../redux/networking') -vi.mock('../../../../../redux/robot-api') +vi.mock('/app/resources/networking/hooks') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/redux/networking') +vi.mock('/app/redux/robot-api') const ROBOT_NAME = 'otie' const LAST_ID = 'a request id' diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/constants.ts b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/constants.ts index f41c785edbc..3348c427c67 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/constants.ts +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/constants.ts @@ -9,7 +9,7 @@ export { CONFIGURE_FIELD_PSK, CONFIGURE_FIELD_SECURITY_TYPE, CONFIGURE_PSK_MIN_LENGTH, -} from '../../../../redux/networking' +} from '/app/redux/networking' export const CONNECT: 'connect' = 'connect' export const DISCONNECT: 'disconnect' = 'disconnect' diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/i18n.ts b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/i18n.ts index 2ee8344277c..cfee1e77d89 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/i18n.ts +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/i18n.ts @@ -3,7 +3,7 @@ import { SECURITY_WPA_PSK, SECURITY_WPA_EAP, SECURITY_NONE, -} from '../../../../redux/networking' +} from '/app/redux/networking' import type { WifiNetwork } from './types' diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/types.ts b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/types.ts index a864b81c8eb..050d26c08c3 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/types.ts +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/types.ts @@ -3,7 +3,7 @@ import type { WifiNetwork, EapOption, WifiKey, -} from '../../../../redux/networking/types' +} from '/app/redux/networking/types' import type { CONNECT, @@ -22,7 +22,7 @@ export type { WifiConfigureRequest, WifiKey, EapOption, -} from '../../../../redux/networking/types' +} from '/app/redux/networking/types' export type NetworkChangeType = | typeof CONNECT diff --git a/app/src/organisms/Devices/RobotSettings/RobotSettingsAdvanced.tsx b/app/src/organisms/Devices/RobotSettings/RobotSettingsAdvanced.tsx index 601967eb602..ae9c9309afa 100644 --- a/app/src/organisms/Devices/RobotSettings/RobotSettingsAdvanced.tsx +++ b/app/src/organisms/Devices/RobotSettings/RobotSettingsAdvanced.tsx @@ -12,8 +12,8 @@ import { LegacyStyledText, } from '@opentrons/components' -import { Divider } from '../../../atoms/structure' -import { ToggleButton } from '../../../atoms/buttons' +import { Divider } from '/app/atoms/structure' +import { ToggleButton } from '/app/atoms/buttons' import { useIsFlex, useIsRobotBusy, useRobot } from '../hooks' import { DeviceReset, @@ -35,22 +35,22 @@ import { updateSetting, getRobotSettings, fetchSettings, -} from '../../../redux/robot-settings' +} from '/app/redux/robot-settings' import { RenameRobotSlideout } from './AdvancedTab/AdvancedTabSlideouts/RenameRobotSlideout' import { DeviceResetSlideout } from './AdvancedTab/AdvancedTabSlideouts/DeviceResetSlideout' import { DeviceResetModal } from './AdvancedTab/AdvancedTabSlideouts/DeviceResetModal' import { FactoryModeSlideout } from './AdvancedTab/AdvancedTabSlideouts/FactoryModeSlideout' import { handleUpdateBuildroot } from './UpdateBuildroot' -import { getRobotSerialNumber, UNREACHABLE } from '../../../redux/discovery' +import { getRobotSerialNumber, UNREACHABLE } from '/app/redux/discovery' import { getTopPortalEl } from '../../../App/portal' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' -import type { State, Dispatch } from '../../../redux/types' +import type { State, Dispatch } from '/app/redux/types' import type { RobotSettings, RobotSettingsField, -} from '../../../redux/robot-settings/types' -import type { ResetConfigRequest } from '../../../redux/robot-admin/types' +} from '/app/redux/robot-settings/types' +import type { ResetConfigRequest } from '/app/redux/robot-admin/types' interface RobotSettingsAdvancedProps { robotName: string diff --git a/app/src/organisms/Devices/RobotSettings/RobotSettingsFeatureFlags.tsx b/app/src/organisms/Devices/RobotSettings/RobotSettingsFeatureFlags.tsx index 90954fc1315..363589867fc 100644 --- a/app/src/organisms/Devices/RobotSettings/RobotSettingsFeatureFlags.tsx +++ b/app/src/organisms/Devices/RobotSettings/RobotSettingsFeatureFlags.tsx @@ -11,17 +11,17 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ToggleButton } from '../../../atoms/buttons' +import { ToggleButton } from '/app/atoms/buttons' import { updateSetting, getRobotSettings, fetchSettings, -} from '../../../redux/robot-settings' -import type { State, Dispatch } from '../../../redux/types' +} from '/app/redux/robot-settings' +import type { State, Dispatch } from '/app/redux/types' import type { RobotSettings, RobotSettingsField, -} from '../../../redux/robot-settings/types' +} from '/app/redux/robot-settings/types' interface RobotSettingsFeatureFlagsProps { robotName: string diff --git a/app/src/organisms/Devices/RobotSettings/RobotSettingsNetworking.tsx b/app/src/organisms/Devices/RobotSettings/RobotSettingsNetworking.tsx index 1173432cbb5..cc86c9771da 100644 --- a/app/src/organisms/Devices/RobotSettings/RobotSettingsNetworking.tsx +++ b/app/src/organisms/Devices/RobotSettings/RobotSettingsNetworking.tsx @@ -18,26 +18,23 @@ import { useInterval, } from '@opentrons/components' -import { - useCanDisconnect, - useWifiList, -} from '../../../resources/networking/hooks' -import { ExternalLink } from '../../../atoms/Link/ExternalLink' -import { Divider } from '../../../atoms/structure' +import { useCanDisconnect, useWifiList } from '/app/resources/networking/hooks' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' +import { Divider } from '/app/atoms/structure' import { getRobotAddressesByName, HEALTH_STATUS_OK, OPENTRONS_USB, -} from '../../../redux/discovery' -import { fetchStatus, getNetworkInterfaces } from '../../../redux/networking' +} from '/app/redux/discovery' +import { fetchStatus, getNetworkInterfaces } from '/app/redux/networking' import { useIsFlex, useIsRobotBusy } from '../hooks' import { DisconnectModal } from './ConnectNetwork/DisconnectModal' import { SelectNetwork } from './SelectNetwork' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' -import type { State, Dispatch } from '../../../redux/types' +import type { State, Dispatch } from '/app/redux/types' import { getModalPortalEl } from '../../../App/portal' interface NetworkingProps { robotName: string diff --git a/app/src/organisms/Devices/RobotSettings/SelectNetwork.tsx b/app/src/organisms/Devices/RobotSettings/SelectNetwork.tsx index abb73011441..31994df4f74 100644 --- a/app/src/organisms/Devices/RobotSettings/SelectNetwork.tsx +++ b/app/src/organisms/Devices/RobotSettings/SelectNetwork.tsx @@ -3,17 +3,17 @@ import { createPortal } from 'react-dom' import { useDispatch, useSelector } from 'react-redux' import last from 'lodash/last' -import { useWifiList } from '../../../resources/networking/hooks' -import * as RobotApi from '../../../redux/robot-api' -import * as Networking from '../../../redux/networking' +import { useWifiList } from '/app/resources/networking/hooks' +import * as RobotApi from '/app/redux/robot-api' +import * as Networking from '/app/redux/networking' import { getModalPortalEl } from '../../../App/portal' import { SelectSsid } from './ConnectNetwork/SelectSsid' import { ConnectModal } from './ConnectNetwork/ConnectModal' import { ResultModal } from './ConnectNetwork/ResultModal' import { CONNECT, JOIN_OTHER } from './ConnectNetwork/constants' -import type { State, Dispatch } from '../../../redux/types' -import type { WifiNetwork } from '../../../redux/networking/types' +import type { State, Dispatch } from '/app/redux/types' +import type { WifiNetwork } from '/app/redux/networking/types' import type { WifiConfigureRequest, NetworkChangeState, diff --git a/app/src/organisms/Devices/RobotSettings/SettingToggle.tsx b/app/src/organisms/Devices/RobotSettings/SettingToggle.tsx index e63025142a8..dc3bd18a48a 100644 --- a/app/src/organisms/Devices/RobotSettings/SettingToggle.tsx +++ b/app/src/organisms/Devices/RobotSettings/SettingToggle.tsx @@ -11,10 +11,10 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ToggleButton } from '../../../atoms/buttons' -import { updateSetting } from '../../../redux/robot-settings' -import type { Dispatch } from '../../../redux/types' -import type { RobotSettingsField } from '../../../redux/robot-settings/types' +import { ToggleButton } from '/app/atoms/buttons' +import { updateSetting } from '/app/redux/robot-settings' +import type { Dispatch } from '/app/redux/types' +import type { RobotSettingsField } from '/app/redux/robot-settings/types' interface SettingToggleProps extends RobotSettingsField { robotName: string diff --git a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/MigrationWarningModal.tsx b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/MigrationWarningModal.tsx index fb15cc9afc3..38d684555f3 100644 --- a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/MigrationWarningModal.tsx +++ b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/MigrationWarningModal.tsx @@ -3,10 +3,10 @@ import { css } from 'styled-components' import { useTranslation } from 'react-i18next' import { AlertModal } from '@opentrons/components' -import { UPGRADE } from '../../../../redux/robot-update' +import { UPGRADE } from '/app/redux/robot-update' import type { ButtonProps } from '@opentrons/components' -import type { RobotUpdateType } from '../../../../redux/robot-update/types' +import type { RobotUpdateType } from '/app/redux/robot-update/types' export interface MigrationWarningModalProps { notNowButton: ButtonProps diff --git a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/RobotUpdateProgressModal.tsx b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/RobotUpdateProgressModal.tsx index 5bcb3adae0e..955ead2de49 100644 --- a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/RobotUpdateProgressModal.tsx +++ b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/RobotUpdateProgressModal.tsx @@ -18,25 +18,25 @@ import { } from '@opentrons/components' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' -import { ProgressBar } from '../../../../atoms/ProgressBar' +import { ProgressBar } from '/app/atoms/ProgressBar' import { FOOTER_BUTTON_STYLE } from './UpdateRobotModal' import { startRobotUpdate, clearRobotUpdateSession, getRobotUpdateDownloadError, -} from '../../../../redux/robot-update' +} from '/app/redux/robot-update' import { useRobotUpdateInfo } from './useRobotUpdateInfo' -import successIcon from '../../../../assets/images/icon_success.png' +import successIcon from '/app/assets/images/icon_success.png' import { useRobotInitializationStatus, INIT_STATUS, -} from '../../../../resources/health/hooks' +} from '/app/resources/health/hooks' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' import type { SetStatusBarCreateCommand } from '@opentrons/shared-data/protocol' -import type { RobotUpdateSession } from '../../../../redux/robot-update/types' +import type { RobotUpdateSession } from '/app/redux/robot-update/types' import type { UpdateStep } from './useRobotUpdateInfo' -import type { RobotInitializationStatus } from '../../../../resources/health/hooks' +import type { RobotInitializationStatus } from '/app/resources/health/hooks' const UPDATE_PROGRESS_BAR_STYLE = css` margin-top: ${SPACING.spacing24}; diff --git a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/UpdateRobotModal.tsx b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/UpdateRobotModal.tsx index 299bd14be75..0f01f83e33d 100644 --- a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/UpdateRobotModal.tsx +++ b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/UpdateRobotModal.tsx @@ -26,15 +26,15 @@ import { REINSTALL, DOWNGRADE, getRobotUpdateVersion, -} from '../../../../redux/robot-update' -import { ExternalLink } from '../../../../atoms/Link/ExternalLink' -import { ReleaseNotes } from '../../../../molecules/ReleaseNotes' +} from '/app/redux/robot-update' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' +import { ReleaseNotes } from '/app/molecules/ReleaseNotes' import { useIsRobotBusy } from '../../hooks' -import { Banner } from '../../../../atoms/Banner' -import { useDispatchStartRobotUpdate } from '../../../../redux/robot-update/hooks' +import { Banner } from '/app/atoms/Banner' +import { useDispatchStartRobotUpdate } from '/app/redux/robot-update/hooks' -import type { State, Dispatch } from '../../../../redux/types' -import type { RobotSystemType } from '../../../../redux/robot-update/types' +import type { State, Dispatch } from '/app/redux/types' +import type { RobotSystemType } from '/app/redux/robot-update/types' export const RELEASE_NOTES_URL_BASE = 'https://github.com/Opentrons/opentrons/releases/tag/v' diff --git a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/ViewUpdateModal.tsx b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/ViewUpdateModal.tsx index 7a692537a78..2a243063d28 100644 --- a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/ViewUpdateModal.tsx +++ b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/ViewUpdateModal.tsx @@ -8,15 +8,15 @@ import { getRobotUpdateDownloadError, getRobotSystemType, getRobotUpdateAvailable, -} from '../../../../redux/robot-update' -import { getAvailableShellUpdate } from '../../../../redux/shell' +} from '/app/redux/robot-update' +import { getAvailableShellUpdate } from '/app/redux/shell' import { getTopPortalEl } from '../../../../App/portal' -import { UpdateAppModal } from '../../../../organisms/UpdateAppModal' +import { UpdateAppModal } from '/app/organisms/UpdateAppModal' import { MigrationWarningModal } from './MigrationWarningModal' import { UpdateRobotModal } from './UpdateRobotModal' -import type { State } from '../../../../redux/types' -import type { ReachableRobot, Robot } from '../../../../redux/discovery/types' +import type { State } from '/app/redux/types' +import type { ReachableRobot, Robot } from '/app/redux/discovery/types' export interface ViewUpdateModalProps { robotName: string diff --git a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/RobotUpdateProgressModal.test.tsx b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/RobotUpdateProgressModal.test.tsx index 9123723358f..6d86f67d831 100644 --- a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/RobotUpdateProgressModal.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/RobotUpdateProgressModal.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' -import { i18n } from '../../../../../i18n' +import { i18n } from '/app/i18n' import { act, fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' import { RobotUpdateProgressModal, @@ -14,21 +14,21 @@ import { useRobotUpdateInfo } from '../useRobotUpdateInfo' import { getRobotSessionIsManualFile, getRobotUpdateDownloadError, -} from '../../../../../redux/robot-update' -import { useDispatchStartRobotUpdate } from '../../../../../redux/robot-update/hooks' +} from '/app/redux/robot-update' +import { useDispatchStartRobotUpdate } from '/app/redux/robot-update/hooks' import { useRobotInitializationStatus, INIT_STATUS, -} from '../../../../../resources/health/hooks' +} from '/app/resources/health/hooks' import type { SetStatusBarCreateCommand } from '@opentrons/shared-data' -import type { RobotUpdateSession } from '../../../../../redux/robot-update/types' +import type { RobotUpdateSession } from '/app/redux/robot-update/types' vi.mock('@opentrons/react-api-client') vi.mock('../useRobotUpdateInfo') -vi.mock('../../../../../redux/robot-update') -vi.mock('../../../../../redux/robot-update/hooks') -vi.mock('../../../../../resources/health/hooks') +vi.mock('/app/redux/robot-update') +vi.mock('/app/redux/robot-update/hooks') +vi.mock('/app/resources/health/hooks') const render = ( props: React.ComponentProps diff --git a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/UpdateRobotModal.test.tsx b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/UpdateRobotModal.test.tsx index 82df7b0ea19..48419b629da 100644 --- a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/UpdateRobotModal.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/UpdateRobotModal.test.tsx @@ -3,22 +3,22 @@ import { createStore } from 'redux' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' +import { i18n } from '/app/i18n' import { getRobotUpdateDisplayInfo, getRobotUpdateVersion, -} from '../../../../../redux/robot-update' -import { getDiscoverableRobotByName } from '../../../../../redux/discovery' +} from '/app/redux/robot-update' +import { getDiscoverableRobotByName } from '/app/redux/discovery' import { UpdateRobotModal, RELEASE_NOTES_URL_BASE } from '../UpdateRobotModal' import { useIsRobotBusy } from '../../../hooks' import type { Store } from 'redux' -import type { State } from '../../../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../../../redux/robot-update') -vi.mock('../../../../../redux/discovery') +vi.mock('/app/redux/robot-update') +vi.mock('/app/redux/discovery') vi.mock('../../../hooks') const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/useRobotUpdateInfo.test.tsx b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/useRobotUpdateInfo.test.tsx index 2a05b883301..418199bdc90 100644 --- a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/useRobotUpdateInfo.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/__tests__/useRobotUpdateInfo.test.tsx @@ -5,19 +5,19 @@ import { I18nextProvider } from 'react-i18next' import { Provider } from 'react-redux' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../../i18n' +import { i18n } from '/app/i18n' import { useRobotUpdateInfo } from '../useRobotUpdateInfo' -import { getRobotUpdateDownloadProgress } from '../../../../../redux/robot-update' +import { getRobotUpdateDownloadProgress } from '/app/redux/robot-update' import type { Store } from 'redux' -import type { State } from '../../../../../redux/types' +import type { State } from '/app/redux/types' import type { RobotUpdateSession, UpdateSessionStep, UpdateSessionStage, -} from '../../../../../redux/robot-update/types' +} from '/app/redux/robot-update/types' -vi.mock('../../../../../redux/robot-update') +vi.mock('/app/redux/robot-update') describe('useRobotUpdateInfo', () => { let store: Store diff --git a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/index.tsx b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/index.tsx index 1cbbaacc0c8..6df07dd09f0 100644 --- a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/index.tsx +++ b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/index.tsx @@ -8,14 +8,14 @@ import { setRobotUpdateSeen, robotUpdateIgnored, getRobotUpdateSession, -} from '../../../../redux/robot-update' +} from '/app/redux/robot-update' import { ViewUpdateModal } from './ViewUpdateModal' import { RobotUpdateProgressModal } from './RobotUpdateProgressModal' -import { UNREACHABLE, OPENTRONS_USB } from '../../../../redux/discovery' -import { appShellRequestor } from '../../../../redux/shell/remote' +import { UNREACHABLE, OPENTRONS_USB } from '/app/redux/discovery' +import { appShellRequestor } from '/app/redux/shell/remote' -import type { Dispatch } from '../../../../redux/types' -import type { DiscoveredRobot } from '../../../../redux/discovery/types' +import type { Dispatch } from '/app/redux/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' interface UpdateBuildrootProps { robot: DiscoveredRobot | null diff --git a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/useRobotUpdateInfo.ts b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/useRobotUpdateInfo.ts index 75c35746c9d..1d39a17e157 100644 --- a/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/useRobotUpdateInfo.ts +++ b/app/src/organisms/Devices/RobotSettings/UpdateBuildroot/useRobotUpdateInfo.ts @@ -1,10 +1,10 @@ import * as React from 'react' import { useSelector } from 'react-redux' -import { getRobotUpdateDownloadProgress } from '../../../../redux/robot-update' +import { getRobotUpdateDownloadProgress } from '/app/redux/robot-update' -import type { RobotUpdateSession } from '../../../../redux/robot-update/types' -import type { State } from '../../../../redux/types' +import type { RobotUpdateSession } from '/app/redux/robot-update/types' +import type { State } from '/app/redux/types' export function useRobotUpdateInfo( robotName: string, diff --git a/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsAdvanced.test.tsx b/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsAdvanced.test.tsx index 825c9c32cde..881b541b542 100644 --- a/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsAdvanced.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsAdvanced.test.tsx @@ -5,9 +5,9 @@ import { when } from 'vitest-when' import { describe, it, vi, beforeEach, expect, afterEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { getShellUpdateState } from '../../../../redux/shell' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getShellUpdateState } from '/app/redux/shell' import { useIsFlex, useIsRobotBusy } from '../../hooks' import { DeviceReset, @@ -26,12 +26,12 @@ import { } from '../AdvancedTab' import { RobotSettingsAdvanced } from '../RobotSettingsAdvanced' -import type { ShellUpdateState } from '../../../../redux/shell/types' -import type * as ShellUpdate from '../../../../redux/shell/update' +import type { ShellUpdateState } from '/app/redux/shell/types' +import type * as ShellUpdate from '/app/redux/shell/update' -vi.mock('../../../../redux/robot-settings/selectors') -vi.mock('../../../../redux/discovery/selectors') -vi.mock('../../../../redux/shell/update', async importOriginal => { +vi.mock('/app/redux/robot-settings/selectors') +vi.mock('/app/redux/discovery/selectors') +vi.mock('/app/redux/shell/update', async importOriginal => { const actual = await importOriginal() return { ...actual, diff --git a/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsFeatureFlags.test.tsx b/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsFeatureFlags.test.tsx index 1c1e6d8a2ea..f5c1ddc94ca 100644 --- a/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsFeatureFlags.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsFeatureFlags.test.tsx @@ -3,13 +3,13 @@ import { screen } from '@testing-library/react' import { when } from 'vitest-when' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { RobotSettingsFeatureFlags } from '../RobotSettingsFeatureFlags' -import { getRobotSettings } from '../../../../redux/robot-settings' +import { getRobotSettings } from '/app/redux/robot-settings' -vi.mock('../../../../redux/robot-settings') +vi.mock('/app/redux/robot-settings') const MOCK_FF_FIELD = { id: 'ff_1', diff --git a/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsNetworking.test.tsx b/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsNetworking.test.tsx index 66ee4c6f373..82038e041a8 100644 --- a/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsNetworking.test.tsx +++ b/app/src/organisms/Devices/RobotSettings/__tests__/RobotSettingsNetworking.test.tsx @@ -4,36 +4,33 @@ import { when } from 'vitest-when' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { getRobotAddressesByName, HEALTH_STATUS_OK, HEALTH_STATUS_NOT_OK, OPENTRONS_USB, -} from '../../../../redux/discovery' -import * as Networking from '../../../../redux/networking' -import { - useCanDisconnect, - useWifiList, -} from '../../../../resources/networking/hooks' -import * as Fixtures from '../../../../redux/networking/__fixtures__' +} from '/app/redux/discovery' +import * as Networking from '/app/redux/networking' +import { useCanDisconnect, useWifiList } from '/app/resources/networking/hooks' +import * as Fixtures from '/app/redux/networking/__fixtures__' import { useIsFlex, useIsRobotBusy } from '../../hooks' import { DisconnectModal } from '../ConnectNetwork/DisconnectModal' -import { useIsEstopNotDisengaged } from '../../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { RobotSettingsNetworking } from '../RobotSettingsNetworking' -import type { DiscoveryClientRobotAddress } from '../../../../redux/discovery/types' -import type { State } from '../../../../redux/types' +import type { DiscoveryClientRobotAddress } from '/app/redux/discovery/types' +import type { State } from '/app/redux/types' -vi.mock('../../../../redux/discovery/selectors') -vi.mock('../../../../redux/networking') -vi.mock('../../../../redux/robot-api/selectors') -vi.mock('../../../../resources/networking/hooks') +vi.mock('/app/redux/discovery/selectors') +vi.mock('/app/redux/networking') +vi.mock('/app/redux/robot-api/selectors') +vi.mock('/app/resources/networking/hooks') vi.mock('../../hooks') vi.mock('../ConnectNetwork/DisconnectModal') -vi.mock('../../../../resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') const mockUpdateRobotStatus = vi.fn() diff --git a/app/src/organisms/Devices/RobotStatusHeader.tsx b/app/src/organisms/Devices/RobotStatusHeader.tsx index 5d9bac76a68..5abc3d33a5f 100644 --- a/app/src/organisms/Devices/RobotStatusHeader.tsx +++ b/app/src/organisms/Devices/RobotStatusHeader.tsx @@ -24,20 +24,20 @@ import { useInterval, } from '@opentrons/components' -import { QuaternaryButton } from '../../atoms/buttons' -import { useIsFlex } from '../../organisms/Devices/hooks' -import { useCurrentRunStatus } from '../../organisms/RunTimeControl/hooks' +import { QuaternaryButton } from '/app/atoms/buttons' +import { useIsFlex } from '/app/organisms/Devices/hooks' +import { useCurrentRunStatus } from '/app/organisms/RunTimeControl/hooks' import { getRobotAddressesByName, HEALTH_STATUS_OK, OPENTRONS_USB, -} from '../../redux/discovery' -import { getNetworkInterfaces, fetchStatus } from '../../redux/networking' -import { useNotifyRunQuery, useCurrentRunId } from '../../resources/runs' +} from '/app/redux/discovery' +import { getNetworkInterfaces, fetchStatus } from '/app/redux/networking' +import { useNotifyRunQuery, useCurrentRunId } from '/app/resources/runs' import type { IconName, StyleProps } from '@opentrons/components' -import type { DiscoveredRobot } from '../../redux/discovery/types' -import type { Dispatch, State } from '../../redux/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' +import type { Dispatch, State } from '/app/redux/types' type RobotStatusHeaderProps = StyleProps & Pick & { diff --git a/app/src/organisms/Devices/__tests__/CalibrationStatusBanner.test.tsx b/app/src/organisms/Devices/__tests__/CalibrationStatusBanner.test.tsx index 160a51a8225..8e893bb3851 100644 --- a/app/src/organisms/Devices/__tests__/CalibrationStatusBanner.test.tsx +++ b/app/src/organisms/Devices/__tests__/CalibrationStatusBanner.test.tsx @@ -2,9 +2,9 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { MemoryRouter } from 'react-router-dom' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { CalibrationStatusBanner } from '../CalibrationStatusBanner' import { useCalibrationTaskList } from '../hooks' diff --git a/app/src/organisms/Devices/__tests__/ConnectionTroubleshootingModal.test.tsx b/app/src/organisms/Devices/__tests__/ConnectionTroubleshootingModal.test.tsx index 6347ac1170f..01e73dc9880 100644 --- a/app/src/organisms/Devices/__tests__/ConnectionTroubleshootingModal.test.tsx +++ b/app/src/organisms/Devices/__tests__/ConnectionTroubleshootingModal.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { fireEvent, screen } from '@testing-library/react' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { ConnectionTroubleshootingModal } from '../ConnectionTroubleshootingModal' const render = ( diff --git a/app/src/organisms/Devices/__tests__/DevicesEmptyState.test.tsx b/app/src/organisms/Devices/__tests__/DevicesEmptyState.test.tsx index 817fac6e746..75448e8611e 100644 --- a/app/src/organisms/Devices/__tests__/DevicesEmptyState.test.tsx +++ b/app/src/organisms/Devices/__tests__/DevicesEmptyState.test.tsx @@ -2,16 +2,16 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../i18n' -import { startDiscovery } from '../../../redux/discovery' +import { i18n } from '/app/i18n' +import { startDiscovery } from '/app/redux/discovery' import { DevicesEmptyState, TROUBLESHOOTING_CONNECTION_PROBLEMS_URL, } from '../DevicesEmptyState' -vi.mock('../../../redux/discovery') +vi.mock('/app/redux/discovery') const render = () => { return renderWithProviders(, { diff --git a/app/src/organisms/Devices/__tests__/EstopBanner.test.tsx b/app/src/organisms/Devices/__tests__/EstopBanner.test.tsx index 727b92d8845..788588ab747 100644 --- a/app/src/organisms/Devices/__tests__/EstopBanner.test.tsx +++ b/app/src/organisms/Devices/__tests__/EstopBanner.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { EstopBanner } from '../EstopBanner' const render = (props: React.ComponentProps) => diff --git a/app/src/organisms/Devices/__tests__/HistoricalProtocolRun.test.tsx b/app/src/organisms/Devices/__tests__/HistoricalProtocolRun.test.tsx index 883abd15a28..3933ba3bb24 100644 --- a/app/src/organisms/Devices/__tests__/HistoricalProtocolRun.test.tsx +++ b/app/src/organisms/Devices/__tests__/HistoricalProtocolRun.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { getStoredProtocols } from '../../../redux/protocol-storage' -import { storedProtocolData as storedProtocolDataFixture } from '../../../redux/protocol-storage/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getStoredProtocols } from '/app/redux/protocol-storage' +import { storedProtocolData as storedProtocolDataFixture } from '/app/redux/protocol-storage/__fixtures__' import { useRunStatus, useRunTimestamps } from '../../RunTimeControl/hooks' import { HistoricalProtocolRun } from '../HistoricalProtocolRun' import { HistoricalProtocolRunOverflowMenu } from '../HistoricalProtocolRunOverflowMenu' @@ -13,7 +13,7 @@ import { HistoricalProtocolRunOverflowMenu } from '../HistoricalProtocolRunOverf import type { RunStatus, RunData } from '@opentrons/api-client' import type { RunTimeParameter } from '@opentrons/shared-data' -vi.mock('../../../redux/protocol-storage') +vi.mock('/app/redux/protocol-storage') vi.mock('../../RunTimeControl/hooks') vi.mock('../HistoricalProtocolRunOverflowMenu') diff --git a/app/src/organisms/Devices/__tests__/HistoricalProtocolRunOverflowMenu.test.tsx b/app/src/organisms/Devices/__tests__/HistoricalProtocolRunOverflowMenu.test.tsx index cbffbc34bb8..54b3531d155 100644 --- a/app/src/organisms/Devices/__tests__/HistoricalProtocolRunOverflowMenu.test.tsx +++ b/app/src/organisms/Devices/__tests__/HistoricalProtocolRunOverflowMenu.test.tsx @@ -6,33 +6,33 @@ import { MemoryRouter } from 'react-router-dom' import { useDeleteRunMutation } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockConnectableRobot } from '../../../redux/discovery/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import runRecord from '../ProtocolRun/ProtocolRunHeader/RunHeaderModalContainer/modals/__fixtures__/runRecord.json' import { useDownloadRunLog, useTrackProtocolRunEvent, useRobot } from '../hooks' import { useRunControls } from '../../RunTimeControl/hooks' import { useTrackEvent, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, -} from '../../../redux/analytics' -import { useIsRobotOnWrongVersionOfSoftware } from '../../../redux/robot-update' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' +} from '/app/redux/analytics' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { HistoricalProtocolRunOverflowMenu } from '../HistoricalProtocolRunOverflowMenu' -import { useNotifyAllCommandsQuery } from '../../../resources/runs' +import { useNotifyAllCommandsQuery } from '/app/resources/runs' import type { UseQueryResult } from 'react-query' import type { CommandsData } from '@opentrons/api-client' -vi.mock('../../../redux/analytics') -vi.mock('../../../redux/robot-update/selectors') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/robot-update/selectors') vi.mock('../../Devices/hooks') vi.mock('../../RunTimeControl/hooks') -vi.mock('../../../redux/analytics') -vi.mock('../../../redux/config') -vi.mock('../../../resources/devices/hooks/useIsEstopNotDisengaged') -vi.mock('../../../resources/runs') -vi.mock('../../../redux/robot-update') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/config') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/resources/runs') +vi.mock('/app/redux/robot-update') vi.mock('@opentrons/react-api-client') const render = ( diff --git a/app/src/organisms/Devices/__tests__/InstrumentsAndModules.test.tsx b/app/src/organisms/Devices/__tests__/InstrumentsAndModules.test.tsx index ea24f586fad..92e105d49df 100644 --- a/app/src/organisms/Devices/__tests__/InstrumentsAndModules.test.tsx +++ b/app/src/organisms/Devices/__tests__/InstrumentsAndModules.test.tsx @@ -3,16 +3,16 @@ import { when } from 'vitest-when' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach, afterEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useModulesQuery, useInstrumentsQuery, usePipettesQuery, } from '@opentrons/react-api-client' -import { i18n } from '../../../i18n' -import { Banner } from '../../../atoms/Banner' -import { mockMagneticModule } from '../../../redux/modules/__fixtures__' +import { i18n } from '/app/i18n' +import { Banner } from '/app/atoms/Banner' +import { mockMagneticModule } from '/app/redux/modules/__fixtures__' import { useIsFlex, useIsRobotViewable, useRunStatuses } from '../hooks' import { ModuleCard } from '../../ModuleCard' import { InstrumentsAndModules } from '../InstrumentsAndModules' @@ -21,8 +21,8 @@ import { PipetteCard } from '../PipetteCard' import { FlexPipetteCard } from '../PipetteCard/FlexPipetteCard' import { PipetteRecalibrationWarning } from '../PipetteCard/PipetteRecalibrationWarning' import { getShowPipetteCalibrationWarning } from '../utils' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' -import { useCurrentRunId } from '../../../resources/runs' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' +import { useCurrentRunId } from '/app/resources/runs' import type * as Components from '@opentrons/components' vi.mock('@opentrons/components', async importOriginal => { @@ -39,11 +39,11 @@ vi.mock('../../ModuleCard') vi.mock('../PipetteCard') vi.mock('../PipetteCard/FlexPipetteCard') vi.mock('../PipetteCard/PipetteRecalibrationWarning') -vi.mock('../../../resources/runs') -vi.mock('../../../atoms/Banner') +vi.mock('/app/resources/runs') +vi.mock('/app/atoms/Banner') vi.mock('../utils') vi.mock('../../RunTimeControl/hooks') -vi.mock('../../../resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') const ROBOT_NAME = 'otie' diff --git a/app/src/organisms/Devices/__tests__/ModuleInfo.test.tsx b/app/src/organisms/Devices/__tests__/ModuleInfo.test.tsx index c1d494690e8..68e2ff8660b 100644 --- a/app/src/organisms/Devices/__tests__/ModuleInfo.test.tsx +++ b/app/src/organisms/Devices/__tests__/ModuleInfo.test.tsx @@ -2,9 +2,9 @@ import React from 'react' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { when } from 'vitest-when' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { ModuleInfo } from '../ModuleInfo' import { useRunHasStarted } from '../hooks' import type { ModuleModel, ModuleType } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/__tests__/RecentProtocolRuns.test.tsx b/app/src/organisms/Devices/__tests__/RecentProtocolRuns.test.tsx index 92557e96570..5d624818489 100644 --- a/app/src/organisms/Devices/__tests__/RecentProtocolRuns.test.tsx +++ b/app/src/organisms/Devices/__tests__/RecentProtocolRuns.test.tsx @@ -2,9 +2,9 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { useNotifyAllRunsQuery } from '../../../resources/runs' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { useNotifyAllRunsQuery } from '/app/resources/runs' +import { i18n } from '/app/i18n' import { useIsRobotViewable, useRunStatuses } from '../hooks' import { RecentProtocolRuns } from '../RecentProtocolRuns' import { HistoricalProtocolRun } from '../HistoricalProtocolRun' @@ -13,7 +13,7 @@ import type { UseQueryResult } from 'react-query' import type { Runs } from '@opentrons/api-client' import type { AxiosError } from 'axios' -vi.mock('../../../resources/runs') +vi.mock('/app/resources/runs') vi.mock('../hooks') vi.mock('../../ProtocolUpload/hooks') vi.mock('../HistoricalProtocolRun') diff --git a/app/src/organisms/Devices/__tests__/RobotCard.test.tsx b/app/src/organisms/Devices/__tests__/RobotCard.test.tsx index d4cf00a61d7..ee7505f768e 100644 --- a/app/src/organisms/Devices/__tests__/RobotCard.test.tsx +++ b/app/src/organisms/Devices/__tests__/RobotCard.test.tsx @@ -4,7 +4,7 @@ import { when } from 'vitest-when' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { mockOT2HealthResponse, mockOT2ServerHealthResponse, @@ -12,20 +12,20 @@ import { mockOT3ServerHealthResponse, } from '../../../../../discovery-client/src/fixtures' -import { i18n } from '../../../i18n' -import { mockFetchModulesSuccessActionPayloadModules } from '../../../redux/modules/__fixtures__' +import { i18n } from '/app/i18n' +import { mockFetchModulesSuccessActionPayloadModules } from '/app/redux/modules/__fixtures__' import { mockLeftProtoPipette, mockRightProtoPipette, -} from '../../../redux/pipettes/__fixtures__' -import { mockConnectableRobot } from '../../../redux/discovery/__fixtures__' -import { getRobotUpdateDisplayInfo } from '../../../redux/robot-update' -import { getRobotModelByName } from '../../../redux/discovery' +} from '/app/redux/pipettes/__fixtures__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' +import { getRobotUpdateDisplayInfo } from '/app/redux/robot-update' +import { getRobotModelByName } from '/app/redux/discovery' import { HEALTH_STATUS_OK, ROBOT_MODEL_OT2, ROBOT_MODEL_OT3, -} from '../../../redux/discovery/constants' +} from '/app/redux/discovery/constants' import { useAttachedModules, useAttachedPipettes } from '../hooks' import { UpdateRobotBanner } from '../../UpdateRobotBanner' import { RobotOverflowMenu } from '../RobotOverflowMenu' @@ -36,13 +36,13 @@ import { useErrorRecoveryBanner, } from '../../ErrorRecoveryBanner' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../redux/robot-update/selectors') -vi.mock('../../../redux/discovery/selectors') +vi.mock('/app/redux/robot-update/selectors') +vi.mock('/app/redux/discovery/selectors') vi.mock('../hooks') vi.mock('../../UpdateRobotBanner') -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../RobotOverflowMenu') vi.mock('../RobotStatusHeader') vi.mock('../../ErrorRecoveryBanner') diff --git a/app/src/organisms/Devices/__tests__/RobotOverflowMenu.test.tsx b/app/src/organisms/Devices/__tests__/RobotOverflowMenu.test.tsx index f79a1885d40..0a8c56914b7 100644 --- a/app/src/organisms/Devices/__tests__/RobotOverflowMenu.test.tsx +++ b/app/src/organisms/Devices/__tests__/RobotOverflowMenu.test.tsx @@ -3,24 +3,24 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { useCurrentRunId } from '../../../resources/runs' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useCurrentRunId } from '/app/resources/runs' import { ChooseProtocolSlideout } from '../../ChooseProtocolSlideout' import { RobotOverflowMenu } from '../RobotOverflowMenu' -import { useIsRobotOnWrongVersionOfSoftware } from '../../../redux/robot-update' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' import { useIsRobotBusy } from '../hooks' import { mockUnreachableRobot, mockConnectedRobot, -} from '../../../redux/discovery/__fixtures__' +} from '/app/redux/discovery/__fixtures__' -vi.mock('../../../redux/robot-update/hooks') -vi.mock('../../../resources/runs') +vi.mock('/app/redux/robot-update/hooks') +vi.mock('/app/resources/runs') vi.mock('../../ChooseProtocolSlideout') vi.mock('../hooks') -vi.mock('../../../resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') const render = (props: React.ComponentProps) => { return renderWithProviders( diff --git a/app/src/organisms/Devices/__tests__/RobotOverview.test.tsx b/app/src/organisms/Devices/__tests__/RobotOverview.test.tsx index e800f9741bf..9099a9a5dff 100644 --- a/app/src/organisms/Devices/__tests__/RobotOverview.test.tsx +++ b/app/src/organisms/Devices/__tests__/RobotOverview.test.tsx @@ -4,24 +4,24 @@ import { when } from 'vitest-when' import { screen, fireEvent } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import * as DiscoveryClientFixtures from '../../../../../discovery-client/src/fixtures' import { useAuthorization } from '@opentrons/react-api-client' -import { i18n } from '../../../i18n' -import { useCurrentRunId } from '../../../resources/runs' -import { mockConnectableRobot } from '../../../redux/discovery/__fixtures__' -import { getRobotUpdateDisplayInfo } from '../../../redux/robot-update' -import { getConfig, useFeatureFlag } from '../../../redux/config' +import { i18n } from '/app/i18n' +import { useCurrentRunId } from '/app/resources/runs' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' +import { getRobotUpdateDisplayInfo } from '/app/redux/robot-update' +import { getConfig, useFeatureFlag } from '/app/redux/config' import { getRobotAddressesByName, getRobotModelByName, -} from '../../../redux/discovery' +} from '/app/redux/discovery' import { HEALTH_STATUS_OK, OPENTRONS_USB, ROBOT_MODEL_OT3, -} from '../../../redux/discovery/constants' +} from '/app/redux/discovery/constants' import { useCalibrationTaskList, useIsRobotBusy, @@ -49,9 +49,9 @@ import { useErrorRecoveryBanner, } from '../../ErrorRecoveryBanner' -import type { Config } from '../../../redux/config/types' -import type { DiscoveryClientRobotAddress } from '../../../redux/discovery/types' -import type { State } from '../../../redux/types' +import type { Config } from '/app/redux/config/types' +import type { DiscoveryClientRobotAddress } from '/app/redux/discovery/types' +import type { State } from '/app/redux/types' import type * as ReactApiClient from '@opentrons/react-api-client' vi.mock('@opentrons/react-api-client', async importOriginal => { @@ -61,11 +61,11 @@ vi.mock('@opentrons/react-api-client', async importOriginal => { useAuthorization: vi.fn(), } }) -vi.mock('../../../redux/robot-controls') -vi.mock('../../../redux/robot-update/selectors') -vi.mock('../../../redux/config') -vi.mock('../../../redux/discovery/selectors') -vi.mock('../../../resources/runs') +vi.mock('/app/redux/robot-controls') +vi.mock('/app/redux/robot-update/selectors') +vi.mock('/app/redux/config') +vi.mock('/app/redux/discovery/selectors') +vi.mock('/app/resources/runs') vi.mock('../hooks') vi.mock('../RobotStatusHeader') vi.mock('../../UpdateRobotBanner') diff --git a/app/src/organisms/Devices/__tests__/RobotOverviewOverflowMenu.test.tsx b/app/src/organisms/Devices/__tests__/RobotOverviewOverflowMenu.test.tsx index b60cd6e147a..30fc3a30efa 100644 --- a/app/src/organisms/Devices/__tests__/RobotOverviewOverflowMenu.test.tsx +++ b/app/src/organisms/Devices/__tests__/RobotOverviewOverflowMenu.test.tsx @@ -4,38 +4,36 @@ import { fireEvent, screen } from '@testing-library/react' import { when } from 'vitest-when' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../i18n' -import { home } from '../../../redux/robot-controls' -import { useIsRobotOnWrongVersionOfSoftware } from '../../../redux/robot-update' -import { restartRobot } from '../../../redux/robot-admin' +import { i18n } from '/app/i18n' +import { home } from '/app/redux/robot-controls' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' +import { restartRobot } from '/app/redux/robot-admin' import { mockConnectableRobot, mockReachableRobot, mockUnreachableRobot, -} from '../../../redux/discovery/__fixtures__' -import { useCanDisconnect } from '../../../resources/networking/hooks' -import { DisconnectModal } from '../../../organisms/Devices/RobotSettings/ConnectNetwork/DisconnectModal' +} from '/app/redux/discovery/__fixtures__' +import { useCanDisconnect } from '/app/resources/networking/hooks' +import { DisconnectModal } from '/app/organisms/Devices/RobotSettings/ConnectNetwork/DisconnectModal' import { ChooseProtocolSlideout } from '../../ChooseProtocolSlideout' -import { useCurrentRunId } from '../../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { useIsRobotBusy } from '../hooks' import { handleUpdateBuildroot } from '../RobotSettings/UpdateBuildroot' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { RobotOverviewOverflowMenu } from '../RobotOverviewOverflowMenu' -vi.mock('../../../redux/robot-controls') -vi.mock('../../../redux/robot-admin') +vi.mock('/app/redux/robot-controls') +vi.mock('/app/redux/robot-admin') vi.mock('../hooks') -vi.mock('../../../redux/robot-update') -vi.mock('../../../resources/networking/hooks') -vi.mock( - '../../../organisms/Devices/RobotSettings/ConnectNetwork/DisconnectModal' -) +vi.mock('/app/redux/robot-update') +vi.mock('/app/resources/networking/hooks') +vi.mock('/app/organisms/Devices/RobotSettings/ConnectNetwork/DisconnectModal') vi.mock('../../ChooseProtocolSlideout') -vi.mock('../../../resources/runs') +vi.mock('/app/resources/runs') vi.mock('../RobotSettings/UpdateBuildroot') -vi.mock('../../../resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') const render = ( props: React.ComponentProps diff --git a/app/src/organisms/Devices/__tests__/RobotStatusHeader.test.tsx b/app/src/organisms/Devices/__tests__/RobotStatusHeader.test.tsx index b7fee94c37f..60bcee283d5 100644 --- a/app/src/organisms/Devices/__tests__/RobotStatusHeader.test.tsx +++ b/app/src/organisms/Devices/__tests__/RobotStatusHeader.test.tsx @@ -5,31 +5,31 @@ import { when } from 'vitest-when' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useProtocolQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../i18n' -import { useCurrentRunStatus } from '../../../organisms/RunTimeControl/hooks' +import { i18n } from '/app/i18n' +import { useCurrentRunStatus } from '/app/organisms/RunTimeControl/hooks' import { getRobotAddressesByName, HEALTH_STATUS_OK, OPENTRONS_USB, -} from '../../../redux/discovery' -import { getNetworkInterfaces } from '../../../redux/networking' +} from '/app/redux/discovery' +import { getNetworkInterfaces } from '/app/redux/networking' import { useIsFlex } from '../hooks' import { RobotStatusHeader } from '../RobotStatusHeader' -import { useNotifyRunQuery, useCurrentRunId } from '../../../resources/runs' +import { useNotifyRunQuery, useCurrentRunId } from '/app/resources/runs' -import type { DiscoveryClientRobotAddress } from '../../../redux/discovery/types' -import type { SimpleInterfaceStatus } from '../../../redux/networking/types' -import type { State } from '../../../redux/types' +import type { DiscoveryClientRobotAddress } from '/app/redux/discovery/types' +import type { SimpleInterfaceStatus } from '/app/redux/networking/types' +import type { State } from '/app/redux/types' vi.mock('@opentrons/react-api-client') -vi.mock('../../../organisms/RunTimeControl/hooks') -vi.mock('../../../redux/discovery') -vi.mock('../../../redux/networking') +vi.mock('/app/organisms/RunTimeControl/hooks') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/networking') vi.mock('../hooks') -vi.mock('../../../resources/runs') +vi.mock('/app/resources/runs') const MOCK_OTIE = { name: 'otie', diff --git a/app/src/organisms/Devices/__tests__/utils.test.tsx b/app/src/organisms/Devices/__tests__/utils.test.tsx index d9a776deab1..c14b38bfbfd 100644 --- a/app/src/organisms/Devices/__tests__/utils.test.tsx +++ b/app/src/organisms/Devices/__tests__/utils.test.tsx @@ -9,11 +9,11 @@ import { mockPipetteOffsetCalibration1, mockPipetteOffsetCalibration2, mockPipetteOffsetCalibration3, -} from '../../../redux/calibration/pipette-offset/__fixtures__' +} from '/app/redux/calibration/pipette-offset/__fixtures__' import type { FetchPipettesResponseBody, FetchPipettesResponsePipette, -} from '../../../redux/pipettes/types' +} from '/app/redux/pipettes/types' describe('formatTimestamp', () => { it('should format an ISO 8601 date string', () => { diff --git a/app/src/organisms/Devices/constants.ts b/app/src/organisms/Devices/constants.ts index f6c8eece866..9752f0fb347 100644 --- a/app/src/organisms/Devices/constants.ts +++ b/app/src/organisms/Devices/constants.ts @@ -1,6 +1,6 @@ import { getPipetteNameSpecs } from '@opentrons/shared-data' import type { LabwareDefinition2, PipetteName } from '@opentrons/shared-data' -import { getLatestLabwareDef } from '../../assets/labware/getLabware' +import { getLatestLabwareDef } from '/app/assets/labware/getLabware' export const RUN_LOG_WINDOW_SIZE = 60 // number of command items rendered at a time export const EMPTY_TIMESTAMP = '--:--:--' diff --git a/app/src/organisms/Devices/getModulePrepCommands.ts b/app/src/organisms/Devices/getModulePrepCommands.ts index cb55081533e..251eedc4785 100644 --- a/app/src/organisms/Devices/getModulePrepCommands.ts +++ b/app/src/organisms/Devices/getModulePrepCommands.ts @@ -14,7 +14,7 @@ import type { HeaterShakerCloseLatchCreateCommand, TCCloseLidCreateCommand, } from '@opentrons/shared-data' -import type { AttachedModule } from '../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' export type ModulePrepCommandsType = | TemperatureModuleDeactivateCreateCommand diff --git a/app/src/organisms/Devices/getModuleTooHot.ts b/app/src/organisms/Devices/getModuleTooHot.ts index edf5e317d80..40264b691ad 100644 --- a/app/src/organisms/Devices/getModuleTooHot.ts +++ b/app/src/organisms/Devices/getModuleTooHot.ts @@ -4,7 +4,7 @@ import { THERMOCYCLER_MODULE_TYPE, TOO_HOT_TEMP, } from '@opentrons/shared-data' -import type { AttachedModule } from '../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' export function getModuleTooHot(module: AttachedModule): boolean { switch (module.moduleType) { diff --git a/app/src/organisms/Devices/hooks/__fixtures__/storedProtocolAnalysis.ts b/app/src/organisms/Devices/hooks/__fixtures__/storedProtocolAnalysis.ts index 2888ca494a3..8014324f2cf 100644 --- a/app/src/organisms/Devices/hooks/__fixtures__/storedProtocolAnalysis.ts +++ b/app/src/organisms/Devices/hooks/__fixtures__/storedProtocolAnalysis.ts @@ -1,4 +1,4 @@ -import { storedProtocolData } from '../../../../redux/protocol-storage/__fixtures__' +import { storedProtocolData } from '/app/redux/protocol-storage/__fixtures__' import type { LoadedLabware, diff --git a/app/src/organisms/Devices/hooks/__fixtures__/taskListFixtures.ts b/app/src/organisms/Devices/hooks/__fixtures__/taskListFixtures.ts index 821d059d782..f21e8eb7294 100644 --- a/app/src/organisms/Devices/hooks/__fixtures__/taskListFixtures.ts +++ b/app/src/organisms/Devices/hooks/__fixtures__/taskListFixtures.ts @@ -5,8 +5,8 @@ import type { Mock } from 'vitest' import type { TipLengthCalibration, PipetteOffsetCalibration, -} from '../../../../redux/calibration/api-types' -import type { AttachedPipettesByMount } from '../../../../redux/pipettes/types' +} from '/app/redux/calibration/api-types' +import type { AttachedPipettesByMount } from '/app/redux/pipettes/types' import type { TaskListProps } from '../../../TaskList/types' import type { PipetteModelSpecs } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/hooks/__tests__/useAttachedPipetteCalibrations.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useAttachedPipetteCalibrations.test.tsx index 45c1ff6487f..197f65bf92b 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useAttachedPipetteCalibrations.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useAttachedPipetteCalibrations.test.tsx @@ -14,20 +14,20 @@ import { import { mockPipetteOffsetCalibration1, mockPipetteOffsetCalibration2, -} from '../../../../redux/calibration/pipette-offset/__fixtures__' +} from '/app/redux/calibration/pipette-offset/__fixtures__' import { mockTipLengthCalibration1, mockTipLengthCalibration2, -} from '../../../../redux/calibration/tip-length/__fixtures__' +} from '/app/redux/calibration/tip-length/__fixtures__' import { useAttachedPipetteCalibrations } from '..' import type { Store } from 'redux' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../redux/calibration') -vi.mock('../../../../redux/pipettes') -vi.mock('../../../../redux/robot-api') +vi.mock('/app/redux/calibration') +vi.mock('/app/redux/pipettes') +vi.mock('/app/redux/robot-api') const store: Store = createStore(state => state, {}) diff --git a/app/src/organisms/Devices/hooks/__tests__/useAttachedPipettesFromInstrumentsQuery.test.ts b/app/src/organisms/Devices/hooks/__tests__/useAttachedPipettesFromInstrumentsQuery.test.ts index 535a394fbe9..a0ae4757582 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useAttachedPipettesFromInstrumentsQuery.test.ts +++ b/app/src/organisms/Devices/hooks/__tests__/useAttachedPipettesFromInstrumentsQuery.test.ts @@ -5,12 +5,12 @@ import { instrumentsResponseLeftPipetteFixture, instrumentsResponseRightPipetteFixture, } from '@opentrons/api-client' -import { useIsOEMMode } from '../../../../resources/robot-settings/hooks' +import { useIsOEMMode } from '/app/resources/robot-settings/hooks' import { useAttachedPipettesFromInstrumentsQuery } from '..' import type * as React from 'react' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../resources/robot-settings/hooks') +vi.mock('/app/resources/robot-settings/hooks') describe('useAttachedPipettesFromInstrumentsQuery hook', () => { beforeEach(() => { diff --git a/app/src/organisms/Devices/hooks/__tests__/useCalibrationTaskList.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useCalibrationTaskList.test.tsx index ae48675a201..127011ec054 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useCalibrationTaskList.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useCalibrationTaskList.test.tsx @@ -28,10 +28,10 @@ import { mockIncompleteTipLengthCalibrations, expectedTaskList, } from '../__fixtures__/taskListFixtures' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import type { Store } from 'redux' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' vi.mock('../') vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/Devices/hooks/__tests__/useDeckCalibrationData.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useDeckCalibrationData.test.tsx index 10ad0539b7b..e91bf298088 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useDeckCalibrationData.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useDeckCalibrationData.test.tsx @@ -11,21 +11,21 @@ import { DECK_CAL_STATUS_OK, DECK_CAL_STATUS_BAD_CALIBRATION, DECK_CAL_STATUS_IDENTITY, -} from '../../../../redux/calibration' -import { getDiscoverableRobotByName } from '../../../../redux/discovery' -import { mockDeckCalData } from '../../../../redux/calibration/__fixtures__' -import { useDispatchApiRequest } from '../../../../redux/robot-api' +} from '/app/redux/calibration' +import { getDiscoverableRobotByName } from '/app/redux/discovery' +import { mockDeckCalData } from '/app/redux/calibration/__fixtures__' +import { useDispatchApiRequest } from '/app/redux/robot-api' import type { Store } from 'redux' -import type { DispatchApiRequestType } from '../../../../redux/robot-api' +import type { DispatchApiRequestType } from '/app/redux/robot-api' import { useDeckCalibrationData } from '..' -import { mockConnectableRobot } from '../../../../redux/discovery/__fixtures__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../redux/calibration') -vi.mock('../../../../redux/robot-api') -vi.mock('../../../../redux/discovery') +vi.mock('/app/redux/calibration') +vi.mock('/app/redux/robot-api') +vi.mock('/app/redux/discovery') const store: Store = createStore(vi.fn(), {}) diff --git a/app/src/organisms/Devices/hooks/__tests__/useDeckCalibrationStatus.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useDeckCalibrationStatus.test.tsx index d409b0ba3cd..f80178a7b37 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useDeckCalibrationStatus.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useDeckCalibrationStatus.test.tsx @@ -7,16 +7,16 @@ import { renderHook } from '@testing-library/react' import { QueryClient, QueryClientProvider } from 'react-query' import { useCalibrationStatusQuery } from '@opentrons/react-api-client' -import { DECK_CAL_STATUS_OK } from '../../../../redux/calibration' -import { getDiscoverableRobotByName } from '../../../../redux/discovery' +import { DECK_CAL_STATUS_OK } from '/app/redux/calibration' +import { getDiscoverableRobotByName } from '/app/redux/discovery' import { useDeckCalibrationStatus } from '..' -import { mockConnectableRobot } from '../../../../redux/discovery/__fixtures__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import type { Store } from 'redux' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../redux/calibration') -vi.mock('../../../../redux/discovery') +vi.mock('/app/redux/calibration') +vi.mock('/app/redux/discovery') const store: Store = createStore(vi.fn(), {}) diff --git a/app/src/organisms/Devices/hooks/__tests__/useIsFlex.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useIsFlex.test.tsx index 9461cae9c22..88768843e19 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useIsFlex.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useIsFlex.test.tsx @@ -6,12 +6,12 @@ import { createStore } from 'redux' import { renderHook } from '@testing-library/react' import { QueryClient, QueryClientProvider } from 'react-query' -import { getRobotModelByName } from '../../../../redux/discovery' +import { getRobotModelByName } from '/app/redux/discovery' import { useIsFlex } from '..' import type { Store } from 'redux' -vi.mock('../../../../redux/discovery/selectors') +vi.mock('/app/redux/discovery/selectors') const store: Store = createStore(vi.fn(), {}) diff --git a/app/src/organisms/Devices/hooks/__tests__/useIsRobotBusy.test.ts b/app/src/organisms/Devices/hooks/__tests__/useIsRobotBusy.test.ts index 1a763143e3a..d5f0b1da5c5 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useIsRobotBusy.test.ts +++ b/app/src/organisms/Devices/hooks/__tests__/useIsRobotBusy.test.ts @@ -12,8 +12,8 @@ import { } from '../../../EmergencyStop' import { useIsRobotBusy } from '../useIsRobotBusy' import { useIsFlex } from '../useIsFlex' -import { useNotifyCurrentMaintenanceRun } from '../../../../resources/maintenance_runs' -import { useNotifyAllRunsQuery } from '../../../../resources/runs' +import { useNotifyCurrentMaintenanceRun } from '/app/resources/maintenance_runs' +import { useNotifyAllRunsQuery } from '/app/resources/runs' import type { UseQueryResult } from 'react-query' import type { Sessions, Runs } from '@opentrons/api-client' @@ -22,8 +22,8 @@ import type { AxiosError } from 'axios' vi.mock('@opentrons/react-api-client') vi.mock('../../../ProtocolUpload/hooks') vi.mock('../useIsFlex') -vi.mock('../../../../resources/runs') -vi.mock('../../../../resources/maintenance_runs') +vi.mock('/app/resources/runs') +vi.mock('/app/resources/maintenance_runs') const mockEstopStatus = { data: { diff --git a/app/src/organisms/Devices/hooks/__tests__/useIsRobotViewable.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useIsRobotViewable.test.tsx index 4ed49e831e2..fb6cf312c6c 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useIsRobotViewable.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useIsRobotViewable.test.tsx @@ -6,16 +6,16 @@ import { createStore } from 'redux' import { renderHook } from '@testing-library/react' import { QueryClient, QueryClientProvider } from 'react-query' -import { getDiscoverableRobotByName } from '../../../../redux/discovery' +import { getDiscoverableRobotByName } from '/app/redux/discovery' import { mockConnectableRobot, mockReachableRobot, mockUnreachableRobot, -} from '../../../../redux/discovery/__fixtures__' +} from '/app/redux/discovery/__fixtures__' import { useIsRobotViewable } from '..' import type { Store } from 'redux' -vi.mock('../../../../redux/discovery') +vi.mock('/app/redux/discovery') const store: Store = createStore(vi.fn(), {}) diff --git a/app/src/organisms/Devices/hooks/__tests__/useLPCDisabledReason.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useLPCDisabledReason.test.tsx index 1ad5e345e30..612d27fef81 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useLPCDisabledReason.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useLPCDisabledReason.test.tsx @@ -8,7 +8,7 @@ import { getLoadedLabwareDefinitionsByUri, simple_v6 as _uncastedSimpleV6Protocol, } from '@opentrons/shared-data' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { RUN_ID_1 } from '../../../RunTimeControl/__fixtures__' import { useLPCDisabledReason } from '../useLPCDisabledReason' import { @@ -20,7 +20,7 @@ import { import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import type { Store } from 'redux' import type * as SharedData from '@opentrons/shared-data' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' vi.mock('..') vi.mock('../../../LabwarePositionCheck/useMostRecentCompletedAnalysis') diff --git a/app/src/organisms/Devices/hooks/__tests__/useModuleCalibrationStatus.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useModuleCalibrationStatus.test.tsx index 67ae2f37d58..ddcfcf6b3cb 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useModuleCalibrationStatus.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useModuleCalibrationStatus.test.tsx @@ -10,7 +10,7 @@ import { useModuleRenderInfoForProtocolById, } from '..' -import { mockMagneticModuleGen2 } from '../../../../redux/modules/__fixtures__' +import { mockMagneticModuleGen2 } from '/app/redux/modules/__fixtures__' import type { ModuleModel, ModuleType } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/hooks/__tests__/useModuleRenderInfoForProtocolById.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useModuleRenderInfoForProtocolById.test.tsx index 50381361b9a..828b4cd4d2e 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useModuleRenderInfoForProtocolById.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useModuleRenderInfoForProtocolById.test.tsx @@ -15,13 +15,13 @@ import { getProtocolModulesInfo } from '../../ProtocolRun/utils/getProtocolModul import { mockTemperatureModuleGen2, mockThermocycler, -} from '../../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' import { useAttachedModules, useModuleRenderInfoForProtocolById, useStoredProtocolAnalysis, } from '..' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { CutoutConfig, @@ -31,13 +31,13 @@ import type { ProtocolAnalysisOutput, } from '@opentrons/shared-data' import type { UseQueryResult } from 'react-query' -import type { AttachedModule } from '../../../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' vi.mock('../../ProtocolRun/utils/getProtocolModulesInfo') vi.mock('../useAttachedModules') vi.mock('../useStoredProtocolAnalysis') vi.mock('../../../LabwarePositionCheck/useMostRecentCompletedAnalysis') -vi.mock('../../../../resources/deck_configuration') +vi.mock('/app/resources/deck_configuration') const heaterShakerCommandsWithResultsKey = (heater_shaker_commands_with_results_key as unknown) as ProtocolAnalysisOutput diff --git a/app/src/organisms/Devices/hooks/__tests__/usePipetteOffsetCalibration.test.tsx b/app/src/organisms/Devices/hooks/__tests__/usePipetteOffsetCalibration.test.tsx index 655b06532b8..73b096a5acf 100644 --- a/app/src/organisms/Devices/hooks/__tests__/usePipetteOffsetCalibration.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/usePipetteOffsetCalibration.test.tsx @@ -9,19 +9,19 @@ import { QueryClient, QueryClientProvider } from 'react-query' import { fetchPipetteOffsetCalibrations, getCalibrationForPipette, -} from '../../../../redux/calibration' -import { mockPipetteOffsetCalibration1 } from '../../../../redux/calibration/pipette-offset/__fixtures__' -import { useDispatchApiRequest } from '../../../../redux/robot-api' +} from '/app/redux/calibration' +import { mockPipetteOffsetCalibration1 } from '/app/redux/calibration/pipette-offset/__fixtures__' +import { useDispatchApiRequest } from '/app/redux/robot-api' import { useRobot } from '../useRobot' import { usePipetteOffsetCalibration } from '..' import type { Store } from 'redux' -import type { DiscoveredRobot } from '../../../../redux/discovery/types' -import type { DispatchApiRequestType } from '../../../../redux/robot-api' -import type { AttachedPipette, Mount } from '../../../../redux/pipettes/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' +import type { DispatchApiRequestType } from '/app/redux/robot-api' +import type { AttachedPipette, Mount } from '/app/redux/pipettes/types' -vi.mock('../../../../redux/calibration') -vi.mock('../../../../redux/robot-api') +vi.mock('/app/redux/calibration') +vi.mock('/app/redux/robot-api') vi.mock('../useRobot') const store: Store = createStore(vi.fn(), {}) diff --git a/app/src/organisms/Devices/hooks/__tests__/usePipetteOffsetCalibrations.test.tsx b/app/src/organisms/Devices/hooks/__tests__/usePipetteOffsetCalibrations.test.tsx index 65703fea279..33c33fe27c2 100644 --- a/app/src/organisms/Devices/hooks/__tests__/usePipetteOffsetCalibrations.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/usePipetteOffsetCalibrations.test.tsx @@ -8,7 +8,7 @@ import { mockPipetteOffsetCalibration1, mockPipetteOffsetCalibration2, mockPipetteOffsetCalibration3, -} from '../../../../redux/calibration/pipette-offset/__fixtures__' +} from '/app/redux/calibration/pipette-offset/__fixtures__' import { usePipetteOffsetCalibrations } from '..' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/Devices/hooks/__tests__/useProtocolAnalysisErrors.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useProtocolAnalysisErrors.test.tsx index 20e90f86f75..daaa7267aaa 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useProtocolAnalysisErrors.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useProtocolAnalysisErrors.test.tsx @@ -8,7 +8,7 @@ import { } from '@opentrons/react-api-client' import { useProtocolAnalysisErrors } from '..' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import { RUN_ID_2 } from '../../../RunTimeControl/__fixtures__' @@ -20,7 +20,7 @@ import type { } from '@opentrons/shared-data' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') describe('useProtocolAnalysisErrors hook', () => { beforeEach(() => { diff --git a/app/src/organisms/Devices/hooks/__tests__/useProtocolDetailsForRun.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useProtocolDetailsForRun.test.tsx index 02e3548c915..36963c6ec0a 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useProtocolDetailsForRun.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useProtocolDetailsForRun.test.tsx @@ -7,7 +7,7 @@ import { useProtocolQuery, } from '@opentrons/react-api-client' import { useProtocolDetailsForRun } from '..' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import { RUN_ID_2 } from '../../../RunTimeControl/__fixtures__' import type { Protocol, Run } from '@opentrons/api-client' @@ -15,7 +15,7 @@ import type { UseQueryResult } from 'react-query' import type { CompletedProtocolAnalysis } from '@opentrons/shared-data' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') const PROTOCOL_ID = 'fake_protocol_id' const PROTOCOL_ANALYSIS = { diff --git a/app/src/organisms/Devices/hooks/__tests__/useProtocolMetadata.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useProtocolMetadata.test.tsx index fa8c9419d3f..d2cea52bef4 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useProtocolMetadata.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useProtocolMetadata.test.tsx @@ -9,7 +9,7 @@ import { useCurrentProtocol } from '../../../ProtocolUpload/hooks' import { useProtocolMetadata } from '../useProtocolMetadata' import type { Store } from 'redux' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' vi.mock('../../../ProtocolUpload/hooks') diff --git a/app/src/organisms/Devices/hooks/__tests__/useProtocolRunAnalyticsData.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useProtocolRunAnalyticsData.test.tsx index 04305b8ed31..9066cc1bc4f 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useProtocolRunAnalyticsData.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useProtocolRunAnalyticsData.test.tsx @@ -7,17 +7,17 @@ import { Provider } from 'react-redux' import { QueryClient, QueryClientProvider } from 'react-query' import { useProtocolRunAnalyticsData } from '../useProtocolRunAnalyticsData' -import { hash } from '../../../../redux/analytics/hash' -import { getStoredProtocol } from '../../../../redux/protocol-storage' +import { hash } from '/app/redux/analytics/hash' +import { getStoredProtocol } from '/app/redux/protocol-storage' import { useStoredProtocolAnalysis, useProtocolDetailsForRun } from '../' import { useProtocolMetadata } from '../useProtocolMetadata' import { useRunTimestamps } from '../../../RunTimeControl/hooks' import { formatInterval } from '../../../RunTimeControl/utils' -import { mockConnectableRobot } from '../../../../redux/discovery/__fixtures__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import type { Store } from 'redux' -vi.mock('../../../../redux/analytics/hash') -vi.mock('../../../../redux/protocol-storage') +vi.mock('/app/redux/analytics/hash') +vi.mock('/app/redux/protocol-storage') vi.mock('../../hooks') vi.mock('../useProtocolMetadata') vi.mock('../../../RunTimeControl/hooks') diff --git a/app/src/organisms/Devices/hooks/__tests__/useRobot.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useRobot.test.tsx index 46b8a0c3edc..11e0a5c93af 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useRobot.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useRobot.test.tsx @@ -6,14 +6,14 @@ import { createStore } from 'redux' import { renderHook } from '@testing-library/react' import { QueryClient, QueryClientProvider } from 'react-query' -import { getDiscoverableRobotByName } from '../../../../redux/discovery' -import { mockConnectableRobot } from '../../../../redux/discovery/__fixtures__' +import { getDiscoverableRobotByName } from '/app/redux/discovery' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import { useRobot } from '..' import type { Store } from 'redux' -vi.mock('../../../../redux/discovery') +vi.mock('/app/redux/discovery') const store: Store = createStore(vi.fn(), {}) diff --git a/app/src/organisms/Devices/hooks/__tests__/useRobotAnalyticsData.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useRobotAnalyticsData.test.tsx index 29463fe55bc..a5c82ca6a7d 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useRobotAnalyticsData.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useRobotAnalyticsData.test.tsx @@ -8,25 +8,25 @@ import { QueryClient, QueryClientProvider } from 'react-query' import { useRobot } from '../' import { useRobotAnalyticsData } from '../useRobotAnalyticsData' -import { getAttachedPipettes } from '../../../../redux/pipettes' -import { getRobotSettings } from '../../../../redux/robot-settings' -import { mockConnectableRobot } from '../../../../redux/discovery/__fixtures__' +import { getAttachedPipettes } from '/app/redux/pipettes' +import { getRobotSettings } from '/app/redux/robot-settings' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import { getRobotApiVersion, getRobotFirmwareVersion, getRobotSerialNumber, -} from '../../../../redux/discovery' +} from '/app/redux/discovery' import type { Store } from 'redux' -import type { DiscoveredRobot } from '../../../../redux/discovery/types' -import type { AttachedPipettesByMount } from '../../../../redux/pipettes/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' +import type { AttachedPipettesByMount } from '/app/redux/pipettes/types' vi.mock('@opentrons/react-api-client') vi.mock('../../hooks') -vi.mock('../../../../redux/discovery') -vi.mock('../../../../redux/pipettes') -vi.mock('../../../../redux/robot-settings') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/pipettes') +vi.mock('/app/redux/robot-settings') const ROBOT_SETTINGS = [ { id: `setting1`, value: true, title: '', description: '' }, diff --git a/app/src/organisms/Devices/hooks/__tests__/useRunCalibrationStatus.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useRunCalibrationStatus.test.tsx index a067332dd82..5f31a766d99 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useRunCalibrationStatus.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useRunCalibrationStatus.test.tsx @@ -3,7 +3,7 @@ import { QueryClient, QueryClientProvider } from 'react-query' import { renderHook } from '@testing-library/react' import { vi, it, expect, describe, beforeEach } from 'vitest' import { when } from 'vitest-when' -import { mockTipRackDefinition } from '../../../../redux/custom-labware/__fixtures__' +import { mockTipRackDefinition } from '/app/redux/custom-labware/__fixtures__' import { useRunCalibrationStatus, @@ -11,7 +11,7 @@ import { useIsFlex, useRunPipetteInfoByMount, } from '..' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { PipetteInfo } from '..' import { Provider } from 'react-redux' @@ -20,7 +20,7 @@ import { createStore } from 'redux' vi.mock('../useDeckCalibrationStatus') vi.mock('../useIsFlex') vi.mock('../useRunPipetteInfoByMount') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') let wrapper: React.FunctionComponent<{ children: React.ReactNode }> diff --git a/app/src/organisms/Devices/hooks/__tests__/useRunCreatedAtTimestamp.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useRunCreatedAtTimestamp.test.tsx index 07546e8b382..e94eb672ffc 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useRunCreatedAtTimestamp.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useRunCreatedAtTimestamp.test.tsx @@ -5,12 +5,12 @@ import { when } from 'vitest-when' import { mockIdleUnstartedRun } from '../../../RunTimeControl/__fixtures__' import { formatTimestamp } from '../../utils' import { useRunCreatedAtTimestamp } from '../useRunCreatedAtTimestamp' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { UseQueryResult } from 'react-query' import type { Run } from '@opentrons/api-client' -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') vi.mock('../../utils') const MOCK_RUN_ID = '1' diff --git a/app/src/organisms/Devices/hooks/__tests__/useRunHasStarted.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useRunHasStarted.test.tsx index eb06db5c1e9..969c12e8984 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useRunHasStarted.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useRunHasStarted.test.tsx @@ -4,10 +4,10 @@ import { when } from 'vitest-when' import { RUN_STATUS_IDLE, RUN_STATUS_RUNNING } from '@opentrons/api-client' -import { useRunStatus } from '../../../../organisms/RunTimeControl/hooks' +import { useRunStatus } from '/app/organisms/RunTimeControl/hooks' import { useRunHasStarted } from '../useRunHasStarted' -vi.mock('../../../../organisms/RunTimeControl/hooks') +vi.mock('/app/organisms/RunTimeControl/hooks') const MOCK_RUN_ID = '1' diff --git a/app/src/organisms/Devices/hooks/__tests__/useRunPipetteInfoByMount.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useRunPipetteInfoByMount.test.tsx index 1235869ca0b..c5d1809c805 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useRunPipetteInfoByMount.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useRunPipetteInfoByMount.test.tsx @@ -12,15 +12,15 @@ import { useAllTipLengthCalibrationsQuery } from '@opentrons/react-api-client' import { mockPipetteOffsetCalibration1, mockPipetteOffsetCalibration2, -} from '../../../../redux/calibration/pipette-offset/__fixtures__' +} from '/app/redux/calibration/pipette-offset/__fixtures__' import { mockTipLengthCalibration1, mockTipLengthCalibration2, -} from '../../../../redux/calibration/tip-length/__fixtures__' +} from '/app/redux/calibration/tip-length/__fixtures__' import { mockLeftProtoPipette, mockRightProtoPipette, -} from '../../../../redux/pipettes/__fixtures__' +} from '/app/redux/pipettes/__fixtures__' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useAttachedPipetteCalibrations, diff --git a/app/src/organisms/Devices/hooks/__tests__/useRunStartedOrLegacySessionInProgress.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useRunStartedOrLegacySessionInProgress.test.tsx index e659e24930a..b27fa8eeef1 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useRunStartedOrLegacySessionInProgress.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useRunStartedOrLegacySessionInProgress.test.tsx @@ -2,7 +2,7 @@ import { useAllSessionsQuery } from '@opentrons/react-api-client' import { RUN_STATUS_IDLE, RUN_STATUS_RUNNING } from '@opentrons/api-client' import { vi, it, expect, describe, beforeEach, afterEach } from 'vitest' -import { useCurrentRunId } from '../../../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { useRunStatus } from '../../../RunTimeControl/hooks' import { useRunStartedOrLegacySessionInProgress } from '..' @@ -10,7 +10,7 @@ import type { UseQueryResult } from 'react-query' import type { Sessions } from '@opentrons/api-client' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') vi.mock('../../../RunTimeControl/hooks') describe('useRunStartedOrLegacySessionInProgress', () => { diff --git a/app/src/organisms/Devices/hooks/__tests__/useRunStatuses.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useRunStatuses.test.tsx index db738d4cafd..03851bd4a04 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useRunStatuses.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useRunStatuses.test.tsx @@ -14,11 +14,11 @@ import { } from '@opentrons/api-client' import { vi, it, expect, describe, beforeEach } from 'vitest' -import { useCurrentRunId } from '../../../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { useRunStatus } from '../../../RunTimeControl/hooks' import { useRunStatuses } from '..' -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') vi.mock('../../../RunTimeControl/hooks') describe('useRunStatuses', () => { diff --git a/app/src/organisms/Devices/hooks/__tests__/useStoredProtocolAnalysis.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useStoredProtocolAnalysis.test.tsx index 7d249f48909..51b1f00c441 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useStoredProtocolAnalysis.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useStoredProtocolAnalysis.test.tsx @@ -14,8 +14,8 @@ import { parseRequiredModulesEntity, } from '@opentrons/shared-data' -import { storedProtocolData } from '../../../../redux/protocol-storage/__fixtures__' -import { getStoredProtocol } from '../../../../redux/protocol-storage' +import { storedProtocolData } from '/app/redux/protocol-storage/__fixtures__' +import { getStoredProtocol } from '/app/redux/protocol-storage' import { useStoredProtocolAnalysis } from '../useStoredProtocolAnalysis' import { LABWARE_ENTITY, @@ -23,13 +23,13 @@ import { PIPETTE_ENTITY, STORED_PROTOCOL_ANALYSIS, } from '../__fixtures__/storedProtocolAnalysis' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { Store } from 'redux' import type { UseQueryResult } from 'react-query' import type { Protocol, Run } from '@opentrons/api-client' import type * as SharedData from '@opentrons/shared-data' -import type { StoredProtocolData } from '../../../../redux/protocol-storage' +import type { StoredProtocolData } from '/app/redux/protocol-storage' vi.mock('@opentrons/shared-data', async importOriginal => { const actualSharedData = await importOriginal() @@ -41,8 +41,8 @@ vi.mock('@opentrons/shared-data', async importOriginal => { } }) vi.mock('@opentrons/react-api-client') -vi.mock('../../../../redux/protocol-storage/selectors') -vi.mock('../../../../resources/runs') +vi.mock('/app/redux/protocol-storage/selectors') +vi.mock('/app/resources/runs') const store: Store = createStore(vi.fn(), {}) diff --git a/app/src/organisms/Devices/hooks/__tests__/useSyncRobotClock.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useSyncRobotClock.test.tsx index 37db5d9e752..9a7f6c6ab18 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useSyncRobotClock.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useSyncRobotClock.test.tsx @@ -5,11 +5,11 @@ import { createStore } from 'redux' import { renderHook } from '@testing-library/react' import { QueryClient, QueryClientProvider } from 'react-query' -import { syncSystemTime } from '../../../../redux/robot-admin' +import { syncSystemTime } from '/app/redux/robot-admin' import { useSyncRobotClock } from '..' import type { Store } from 'redux' -vi.mock('../../../../redux/discovery') +vi.mock('/app/redux/discovery') const store: Store = createStore(vi.fn(), {}) diff --git a/app/src/organisms/Devices/hooks/__tests__/useTipLengthCalibrations.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useTipLengthCalibrations.test.tsx index 1a827267531..4162c310037 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useTipLengthCalibrations.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useTipLengthCalibrations.test.tsx @@ -8,7 +8,7 @@ import { mockTipLengthCalibration1, mockTipLengthCalibration2, mockTipLengthCalibration3, -} from '../../../../redux/calibration/tip-length/__fixtures__' +} from '/app/redux/calibration/tip-length/__fixtures__' import { useTipLengthCalibrations } from '..' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/Devices/hooks/__tests__/useTrackCreateProtocolRunEvent.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useTrackCreateProtocolRunEvent.test.tsx index 0be697813a8..1c9c3d8e6c7 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useTrackCreateProtocolRunEvent.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useTrackCreateProtocolRunEvent.test.tsx @@ -9,20 +9,20 @@ import { STORED_PROTOCOL_ANALYSIS } from '../__fixtures__/storedProtocolAnalysis import { useTrackCreateProtocolRunEvent } from '../useTrackCreateProtocolRunEvent' import { parseProtocolRunAnalyticsData } from '../useProtocolRunAnalyticsData' import { parseProtocolAnalysisOutput } from '../useStoredProtocolAnalysis' -import { useTrackEvent } from '../../../../redux/analytics' -import { storedProtocolData } from '../../../../redux/protocol-storage/__fixtures__' +import { useTrackEvent } from '/app/redux/analytics' +import { storedProtocolData } from '/app/redux/protocol-storage/__fixtures__' import type { Mock } from 'vitest' import type { Store } from 'redux' -import type { ProtocolAnalyticsData } from '../../../../redux/analytics/types' +import type { ProtocolAnalyticsData } from '/app/redux/analytics/types' vi.mock('../../hooks') vi.mock('../useProtocolRunAnalyticsData') vi.mock('../useStoredProtocolAnalysis') -vi.mock('../../../../redux/discovery') -vi.mock('../../../../redux/pipettes') -vi.mock('../../../../redux/analytics') -vi.mock('../../../../redux/robot-settings') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/pipettes') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/robot-settings') const PROTOCOL_PROPERTIES = { protocolType: 'python' } as ProtocolAnalyticsData diff --git a/app/src/organisms/Devices/hooks/__tests__/useTrackProtocolRunEvent.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useTrackProtocolRunEvent.test.tsx index 99ff16d05f7..8a82f5d5aaf 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useTrackProtocolRunEvent.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useTrackProtocolRunEvent.test.tsx @@ -11,8 +11,8 @@ import { useProtocolRunAnalyticsData } from '../useProtocolRunAnalyticsData' import { useTrackEvent, ANALYTICS_PROTOCOL_RUN_ACTION, -} from '../../../../redux/analytics' -import { mockConnectableRobot } from '../../../../redux/discovery/__fixtures__' +} from '/app/redux/analytics' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import { useRobot } from '../useRobot' import type { Store } from 'redux' @@ -20,10 +20,10 @@ import type { Mock } from 'vitest' vi.mock('../useRobot') vi.mock('../useProtocolRunAnalyticsData') -vi.mock('../../../../redux/discovery') -vi.mock('../../../../redux/pipettes') -vi.mock('../../../../redux/analytics') -vi.mock('../../../../redux/robot-settings') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/pipettes') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/robot-settings') const RUN_ID = 'runId' const ROBOT_NAME = 'otie' diff --git a/app/src/organisms/Devices/hooks/__tests__/useUnmatchedModulesForProtocol.test.tsx b/app/src/organisms/Devices/hooks/__tests__/useUnmatchedModulesForProtocol.test.tsx index 90b666b045a..f1d4668d638 100644 --- a/app/src/organisms/Devices/hooks/__tests__/useUnmatchedModulesForProtocol.test.tsx +++ b/app/src/organisms/Devices/hooks/__tests__/useUnmatchedModulesForProtocol.test.tsx @@ -2,8 +2,8 @@ import { vi, it, expect, describe, beforeEach } from 'vitest' import { when } from 'vitest-when' import { renderHook } from '@testing-library/react' -import { mockConnectedRobot } from '../../../../redux/discovery/__fixtures__' -import { mockTemperatureModule } from '../../../../redux/modules/__fixtures__' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' +import { mockTemperatureModule } from '/app/redux/modules/__fixtures__' import { useAttachedModules, useModuleRenderInfoForProtocolById, diff --git a/app/src/organisms/Devices/hooks/useAttachedPipetteCalibrations.ts b/app/src/organisms/Devices/hooks/useAttachedPipetteCalibrations.ts index 55041b5f639..c1cb813c6c7 100644 --- a/app/src/organisms/Devices/hooks/useAttachedPipetteCalibrations.ts +++ b/app/src/organisms/Devices/hooks/useAttachedPipetteCalibrations.ts @@ -5,7 +5,7 @@ import { } from '@opentrons/react-api-client' import { useAttachedPipettes } from './useAttachedPipettes' -import type { PipetteCalibrationsByMount } from '../../../redux/pipettes/types' +import type { PipetteCalibrationsByMount } from '/app/redux/pipettes/types' import type { PipetteOffsetCalibration, TipLengthCalibration, diff --git a/app/src/organisms/Devices/hooks/useAttachedPipettes.ts b/app/src/organisms/Devices/hooks/useAttachedPipettes.ts index d891bd7d33b..ae638dd0af8 100644 --- a/app/src/organisms/Devices/hooks/useAttachedPipettes.ts +++ b/app/src/organisms/Devices/hooks/useAttachedPipettes.ts @@ -1,10 +1,10 @@ import { usePipettesQuery } from '@opentrons/react-api-client' import { getPipetteModelSpecs } from '@opentrons/shared-data' -import * as Constants from '../../../redux/pipettes/constants' +import * as Constants from '/app/redux/pipettes/constants' import type { PipetteModel } from '@opentrons/shared-data' -import type { AttachedPipettesByMount } from '../../../redux/pipettes/types' +import type { AttachedPipettesByMount } from '/app/redux/pipettes/types' const PIPETTE_POLL_MS = 5000 export function useAttachedPipettes( diff --git a/app/src/organisms/Devices/hooks/useAttachedPipettesFromInstrumentsQuery.ts b/app/src/organisms/Devices/hooks/useAttachedPipettesFromInstrumentsQuery.ts index 20427a60fbd..7b73e060e70 100644 --- a/app/src/organisms/Devices/hooks/useAttachedPipettesFromInstrumentsQuery.ts +++ b/app/src/organisms/Devices/hooks/useAttachedPipettesFromInstrumentsQuery.ts @@ -1,6 +1,6 @@ import { useInstrumentsQuery } from '@opentrons/react-api-client' import { LEFT, RIGHT } from '@opentrons/shared-data' -import { usePipetteModelSpecs } from '../../../resources/instruments/hooks' +import { usePipetteModelSpecs } from '/app/resources/instruments/hooks' import type { PipetteData } from '@opentrons/api-client' import type { Mount } from '@opentrons/components' diff --git a/app/src/organisms/Devices/hooks/useCalibrationTaskList.ts b/app/src/organisms/Devices/hooks/useCalibrationTaskList.ts index f46383b4007..13052b52fac 100644 --- a/app/src/organisms/Devices/hooks/useCalibrationTaskList.ts +++ b/app/src/organisms/Devices/hooks/useCalibrationTaskList.ts @@ -9,7 +9,7 @@ import { getLabwareDefURI } from '@opentrons/shared-data' import { useAttachedPipettes } from '.' import { getDefaultTiprackDefForPipetteName } from '../constants' -import { DECK_CAL_STATUS_OK } from '../../../redux/calibration/constants' +import { DECK_CAL_STATUS_OK } from '/app/redux/calibration/constants' import { formatTimestamp } from '../utils' import type { PipetteName } from '@opentrons/shared-data' @@ -18,10 +18,10 @@ import type { TaskListProps, TaskProps, } from '../../TaskList/types' -import type { AttachedPipette } from '../../../redux/pipettes/types' -import type { DashboardCalOffsetInvoker } from '../../../pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibratePipOffset' -import type { DashboardCalTipLengthInvoker } from '../../../pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength' -import type { DashboardCalDeckInvoker } from '../../../pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateDeck' +import type { AttachedPipette } from '/app/redux/pipettes/types' +import type { DashboardCalOffsetInvoker } from '/app/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibratePipOffset' +import type { DashboardCalTipLengthInvoker } from '/app/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength' +import type { DashboardCalDeckInvoker } from '/app/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateDeck' const CALIBRATION_DATA_POLL_MS = 5000 diff --git a/app/src/organisms/Devices/hooks/useDeckCalibrationData.ts b/app/src/organisms/Devices/hooks/useDeckCalibrationData.ts index 7cd506ce8b3..16f7c17bdc2 100644 --- a/app/src/organisms/Devices/hooks/useDeckCalibrationData.ts +++ b/app/src/organisms/Devices/hooks/useDeckCalibrationData.ts @@ -1,7 +1,7 @@ import { DECK_CAL_STATUS_OK, DECK_CAL_STATUS_BAD_CALIBRATION, -} from '../../../redux/calibration' +} from '/app/redux/calibration' import { useCalibrationStatusQuery } from '@opentrons/react-api-client' import { useRobot } from './useRobot' diff --git a/app/src/organisms/Devices/hooks/useDeckCalibrationStatus.ts b/app/src/organisms/Devices/hooks/useDeckCalibrationStatus.ts index 226a5843a74..9cb62e765db 100644 --- a/app/src/organisms/Devices/hooks/useDeckCalibrationStatus.ts +++ b/app/src/organisms/Devices/hooks/useDeckCalibrationStatus.ts @@ -1,6 +1,6 @@ import { useCalibrationStatusQuery } from '@opentrons/react-api-client' import { useRobot } from './useRobot' -import type { DeckCalibrationStatus } from '../../../redux/calibration/types' +import type { DeckCalibrationStatus } from '/app/redux/calibration/types' export function useDeckCalibrationStatus( robotName: string | null = null diff --git a/app/src/organisms/Devices/hooks/useDownloadRunLog.ts b/app/src/organisms/Devices/hooks/useDownloadRunLog.ts index 777f50bb806..1dd189e83bc 100644 --- a/app/src/organisms/Devices/hooks/useDownloadRunLog.ts +++ b/app/src/organisms/Devices/hooks/useDownloadRunLog.ts @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next' import { getRun, getCommands, getProtocol } from '@opentrons/api-client' import { useHost } from '@opentrons/react-api-client' import { ERROR_TOAST, INFO_TOAST } from '@opentrons/components' -import { useToaster } from '../../../organisms/ToasterOven' +import { useToaster } from '/app/organisms/ToasterOven' import { downloadFile } from '../utils' import type { IconProps } from '@opentrons/components' diff --git a/app/src/organisms/Devices/hooks/useIsFlex.ts b/app/src/organisms/Devices/hooks/useIsFlex.ts index bb78712578a..0e469bf47c3 100644 --- a/app/src/organisms/Devices/hooks/useIsFlex.ts +++ b/app/src/organisms/Devices/hooks/useIsFlex.ts @@ -1,11 +1,8 @@ import { useSelector } from 'react-redux' -import { - getRobotModelByName, - RE_ROBOT_MODEL_OT3, -} from '../../../redux/discovery' +import { getRobotModelByName, RE_ROBOT_MODEL_OT3 } from '/app/redux/discovery' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' export function useIsFlex(robotName: string): boolean { const robotModel = useSelector((state: State) => diff --git a/app/src/organisms/Devices/hooks/useIsRobotBusy.ts b/app/src/organisms/Devices/hooks/useIsRobotBusy.ts index 671cfb39fcb..f59d5a6fc95 100644 --- a/app/src/organisms/Devices/hooks/useIsRobotBusy.ts +++ b/app/src/organisms/Devices/hooks/useIsRobotBusy.ts @@ -5,8 +5,8 @@ import { useCurrentAllSubsystemUpdatesQuery, } from '@opentrons/react-api-client' -import { useNotifyCurrentMaintenanceRun } from '../../../resources/maintenance_runs' -import { useNotifyAllRunsQuery } from '../../../resources/runs' +import { useNotifyCurrentMaintenanceRun } from '/app/resources/maintenance_runs' +import { useNotifyAllRunsQuery } from '/app/resources/runs' import { DISENGAGED } from '../../EmergencyStop' import { useIsFlex } from './useIsFlex' diff --git a/app/src/organisms/Devices/hooks/useIsRobotViewable.ts b/app/src/organisms/Devices/hooks/useIsRobotViewable.ts index c0565f75af2..77e3da157c4 100644 --- a/app/src/organisms/Devices/hooks/useIsRobotViewable.ts +++ b/app/src/organisms/Devices/hooks/useIsRobotViewable.ts @@ -1,6 +1,6 @@ import { useRobot } from './useRobot' -import { CONNECTABLE } from '../../../redux/discovery' +import { CONNECTABLE } from '/app/redux/discovery' export function useIsRobotViewable(robotName: string): boolean { const robot = useRobot(robotName) diff --git a/app/src/organisms/Devices/hooks/useLEDLights.ts b/app/src/organisms/Devices/hooks/useLEDLights.ts index 0c27e27aeb2..49e62cb31e8 100644 --- a/app/src/organisms/Devices/hooks/useLEDLights.ts +++ b/app/src/organisms/Devices/hooks/useLEDLights.ts @@ -4,9 +4,9 @@ import { fetchSettings, getRobotSettings, updateSetting, -} from '../../../redux/robot-settings' -import type { RobotSettings } from '../../../redux/robot-settings/types' -import type { Dispatch, State } from '../../../redux/types' +} from '/app/redux/robot-settings' +import type { RobotSettings } from '/app/redux/robot-settings/types' +import type { Dispatch, State } from '/app/redux/types' // not releveant to the OT-2, this controls the front LED lights on the Flex export function useLEDLights( diff --git a/app/src/organisms/Devices/hooks/useLastRunCommand.ts b/app/src/organisms/Devices/hooks/useLastRunCommand.ts index 2b8b17bf53b..5ccfb5f95db 100644 --- a/app/src/organisms/Devices/hooks/useLastRunCommand.ts +++ b/app/src/organisms/Devices/hooks/useLastRunCommand.ts @@ -1,6 +1,6 @@ import { RUN_STATUSES_TERMINAL } from '@opentrons/api-client' -import { useNotifyAllCommandsQuery } from '../../../resources/runs' +import { useNotifyAllCommandsQuery } from '/app/resources/runs' import { useRunStatus } from '../../RunTimeControl/hooks' import type { UseQueryOptions } from 'react-query' diff --git a/app/src/organisms/Devices/hooks/useModuleRenderInfoForProtocolById.ts b/app/src/organisms/Devices/hooks/useModuleRenderInfoForProtocolById.ts index 0190a3702dd..9bb5a6c1f99 100644 --- a/app/src/organisms/Devices/hooks/useModuleRenderInfoForProtocolById.ts +++ b/app/src/organisms/Devices/hooks/useModuleRenderInfoForProtocolById.ts @@ -11,10 +11,10 @@ import { getProtocolModulesInfo } from '../ProtocolRun/utils/getProtocolModulesI import { useMostRecentCompletedAnalysis } from '../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useAttachedModules } from './useAttachedModules' import { useStoredProtocolAnalysis } from './useStoredProtocolAnalysis' -import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { CutoutConfig } from '@opentrons/shared-data' -import type { AttachedModule } from '../../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' import type { ProtocolModuleInfo } from '../ProtocolRun/utils/getProtocolModulesInfo' export interface ModuleRenderInfoForProtocol extends ProtocolModuleInfo { diff --git a/app/src/organisms/Devices/hooks/usePipetteOffsetCalibration.ts b/app/src/organisms/Devices/hooks/usePipetteOffsetCalibration.ts index a5fbd74b9e6..9e6f1e2383c 100644 --- a/app/src/organisms/Devices/hooks/usePipetteOffsetCalibration.ts +++ b/app/src/organisms/Devices/hooks/usePipetteOffsetCalibration.ts @@ -4,13 +4,13 @@ import { useSelector } from 'react-redux' import { getCalibrationForPipette, fetchPipetteOffsetCalibrations, -} from '../../../redux/calibration' -import { useDispatchApiRequest } from '../../../redux/robot-api' +} from '/app/redux/calibration' +import { useDispatchApiRequest } from '/app/redux/robot-api' import { useRobot } from '.' -import type { PipetteOffsetCalibration } from '../../../redux/calibration/types' -import type { State } from '../../../redux/types' -import type { AttachedPipette, Mount } from '../../../redux/pipettes/types' +import type { PipetteOffsetCalibration } from '/app/redux/calibration/types' +import type { State } from '/app/redux/types' +import type { AttachedPipette, Mount } from '/app/redux/pipettes/types' export function usePipetteOffsetCalibration( robotName: string | null = null, diff --git a/app/src/organisms/Devices/hooks/usePipetteOffsetCalibrations.ts b/app/src/organisms/Devices/hooks/usePipetteOffsetCalibrations.ts index da0ae158dd3..ac25649ac05 100644 --- a/app/src/organisms/Devices/hooks/usePipetteOffsetCalibrations.ts +++ b/app/src/organisms/Devices/hooks/usePipetteOffsetCalibrations.ts @@ -1,6 +1,6 @@ import { useAllPipetteOffsetCalibrationsQuery } from '@opentrons/react-api-client' -import type { PipetteOffsetCalibration } from '../../../redux/calibration/types' +import type { PipetteOffsetCalibration } from '/app/redux/calibration/types' const CALIBRATION_DATA_POLL_MS = 5000 diff --git a/app/src/organisms/Devices/hooks/useProtocolAnalysisErrors.ts b/app/src/organisms/Devices/hooks/useProtocolAnalysisErrors.ts index ad4633b3134..68670120298 100644 --- a/app/src/organisms/Devices/hooks/useProtocolAnalysisErrors.ts +++ b/app/src/organisms/Devices/hooks/useProtocolAnalysisErrors.ts @@ -4,7 +4,7 @@ import { useProtocolQuery, } from '@opentrons/react-api-client' -import { useNotifyRunQuery } from '../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { AnalysisError } from '@opentrons/shared-data' diff --git a/app/src/organisms/Devices/hooks/useProtocolDetailsForRun.ts b/app/src/organisms/Devices/hooks/useProtocolDetailsForRun.ts index 13a00225383..6f3909affb7 100644 --- a/app/src/organisms/Devices/hooks/useProtocolDetailsForRun.ts +++ b/app/src/organisms/Devices/hooks/useProtocolDetailsForRun.ts @@ -6,7 +6,7 @@ import { useProtocolAnalysisAsDocumentQuery, } from '@opentrons/react-api-client' -import { useNotifyRunQuery } from '../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { RobotType, diff --git a/app/src/organisms/Devices/hooks/useProtocolRunAnalyticsData.ts b/app/src/organisms/Devices/hooks/useProtocolRunAnalyticsData.ts index 47407f6c5e0..175a390ead5 100644 --- a/app/src/organisms/Devices/hooks/useProtocolRunAnalyticsData.ts +++ b/app/src/organisms/Devices/hooks/useProtocolRunAnalyticsData.ts @@ -1,8 +1,8 @@ import { useSelector } from 'react-redux' -import { hash } from '../../../redux/analytics/hash' -import { getStoredProtocol } from '../../../redux/protocol-storage' -import { getRobotSerialNumber } from '../../../redux/discovery' +import { hash } from '/app/redux/analytics/hash' +import { getStoredProtocol } from '/app/redux/protocol-storage' +import { getRobotSerialNumber } from '/app/redux/discovery' import { useStoredProtocolAnalysis, useProtocolDetailsForRun } from './' import { useProtocolMetadata } from './useProtocolMetadata' import { useRunTimestamps } from '../../RunTimeControl/hooks' @@ -10,10 +10,10 @@ import { formatInterval } from '../../RunTimeControl/utils' import { EMPTY_TIMESTAMP } from '../constants' import type { ProtocolAnalysisOutput } from '@opentrons/shared-data' -import type { ProtocolAnalyticsData } from '../../../redux/analytics/types' -import type { StoredProtocolData } from '../../../redux/protocol-storage/types' -import type { State } from '../../../redux/types' -import type { DiscoveredRobot } from '../../../redux/discovery/types' +import type { ProtocolAnalyticsData } from '/app/redux/analytics/types' +import type { StoredProtocolData } from '/app/redux/protocol-storage/types' +import type { State } from '/app/redux/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' export const parseProtocolRunAnalyticsData = ( protocolAnalysis: ProtocolAnalysisOutput | null, diff --git a/app/src/organisms/Devices/hooks/useRobot.ts b/app/src/organisms/Devices/hooks/useRobot.ts index 785e63f04c1..c7005a81df5 100644 --- a/app/src/organisms/Devices/hooks/useRobot.ts +++ b/app/src/organisms/Devices/hooks/useRobot.ts @@ -1,9 +1,9 @@ import { useSelector } from 'react-redux' -import { getDiscoverableRobotByName } from '../../../redux/discovery' +import { getDiscoverableRobotByName } from '/app/redux/discovery' -import type { DiscoveredRobot } from '../../../redux/discovery/types' -import type { State } from '../../../redux/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' +import type { State } from '/app/redux/types' export function useRobot(robotName: string | null): DiscoveredRobot | null { const robot = useSelector((state: State) => diff --git a/app/src/organisms/Devices/hooks/useRobotAnalyticsData.ts b/app/src/organisms/Devices/hooks/useRobotAnalyticsData.ts index 94037f05b2a..bf76f8fa94d 100644 --- a/app/src/organisms/Devices/hooks/useRobotAnalyticsData.ts +++ b/app/src/organisms/Devices/hooks/useRobotAnalyticsData.ts @@ -2,16 +2,16 @@ import * as React from 'react' import { useSelector, useDispatch } from 'react-redux' import { useRobot } from './' -import { getAttachedPipettes } from '../../../redux/pipettes' -import { getRobotSettings, fetchSettings } from '../../../redux/robot-settings' +import { getAttachedPipettes } from '/app/redux/pipettes' +import { getRobotSettings, fetchSettings } from '/app/redux/robot-settings' import { getRobotApiVersion, getRobotFirmwareVersion, getRobotSerialNumber, -} from '../../../redux/discovery' +} from '/app/redux/discovery' -import type { State, Dispatch } from '../../../redux/types' -import type { RobotAnalyticsData } from '../../../redux/analytics/types' +import type { State, Dispatch } from '/app/redux/types' +import type { RobotAnalyticsData } from '/app/redux/analytics/types' const FF_PREFIX = 'robotFF_' diff --git a/app/src/organisms/Devices/hooks/useRunCalibrationStatus.ts b/app/src/organisms/Devices/hooks/useRunCalibrationStatus.ts index 8bed099c5df..2df9fdc2902 100644 --- a/app/src/organisms/Devices/hooks/useRunCalibrationStatus.ts +++ b/app/src/organisms/Devices/hooks/useRunCalibrationStatus.ts @@ -1,4 +1,4 @@ -import { MATCH, INEXACT_MATCH } from '../../../redux/pipettes' +import { MATCH, INEXACT_MATCH } from '/app/redux/pipettes' import { useDeckCalibrationStatus, useIsFlex, @@ -6,7 +6,7 @@ import { useStoredProtocolAnalysis, } from '.' import { useMostRecentCompletedAnalysis } from '../../LabwarePositionCheck/useMostRecentCompletedAnalysis' -import { isGripperInCommands } from '../../../resources/protocols/utils' +import { isGripperInCommands } from '/app/resources/protocols/utils' import { useInstrumentsQuery } from '@opentrons/react-api-client' import type { GripperData, @@ -18,7 +18,7 @@ import type { LoadedPipette, ProtocolAnalysisOutput, } from '@opentrons/shared-data' -import type { DeckCalibrationStatus } from '../../../redux/calibration/api-types' +import type { DeckCalibrationStatus } from '/app/redux/calibration/api-types' export interface ProtocolCalibrationStatus { complete: boolean diff --git a/app/src/organisms/Devices/hooks/useRunCreatedAtTimestamp.ts b/app/src/organisms/Devices/hooks/useRunCreatedAtTimestamp.ts index 72936c75514..79bbac5a70c 100644 --- a/app/src/organisms/Devices/hooks/useRunCreatedAtTimestamp.ts +++ b/app/src/organisms/Devices/hooks/useRunCreatedAtTimestamp.ts @@ -1,6 +1,6 @@ import { formatTimestamp } from '../utils' import { EMPTY_TIMESTAMP } from '../constants' -import { useNotifyRunQuery } from '../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' export function useRunCreatedAtTimestamp(runId: string | null): string { const runRecord = useNotifyRunQuery(runId) diff --git a/app/src/organisms/Devices/hooks/useRunHasStarted.ts b/app/src/organisms/Devices/hooks/useRunHasStarted.ts index 73282e53535..da7e812d372 100644 --- a/app/src/organisms/Devices/hooks/useRunHasStarted.ts +++ b/app/src/organisms/Devices/hooks/useRunHasStarted.ts @@ -1,5 +1,5 @@ import { RUN_STATUS_IDLE } from '@opentrons/api-client' -import { useRunStatus } from '../../../organisms/RunTimeControl/hooks' +import { useRunStatus } from '/app/organisms/RunTimeControl/hooks' export function useRunHasStarted(runId: string | null): boolean { const runStatus = useRunStatus(runId) diff --git a/app/src/organisms/Devices/hooks/useRunPipetteInfoByMount.ts b/app/src/organisms/Devices/hooks/useRunPipetteInfoByMount.ts index 9445bb3ab8b..27eb18ab5eb 100644 --- a/app/src/organisms/Devices/hooks/useRunPipetteInfoByMount.ts +++ b/app/src/organisms/Devices/hooks/useRunPipetteInfoByMount.ts @@ -5,7 +5,7 @@ import { getLoadedLabwareDefinitionsByUri, } from '@opentrons/shared-data' import { useAllTipLengthCalibrationsQuery } from '@opentrons/react-api-client' -import { MATCH, INEXACT_MATCH, INCOMPATIBLE } from '../../../redux/pipettes' +import { MATCH, INEXACT_MATCH, INCOMPATIBLE } from '/app/redux/pipettes' import { useAttachedPipetteCalibrations, useAttachedPipettes, @@ -22,7 +22,7 @@ import type { Mount, AttachedPipette, TipRackCalibrationData, -} from '../../../redux/pipettes/types' +} from '/app/redux/pipettes/types' const EMPTY_MOUNTS = { left: null, right: null } diff --git a/app/src/organisms/Devices/hooks/useRunStartedOrLegacySessionInProgress.ts b/app/src/organisms/Devices/hooks/useRunStartedOrLegacySessionInProgress.ts index e8678518847..4be61d44304 100644 --- a/app/src/organisms/Devices/hooks/useRunStartedOrLegacySessionInProgress.ts +++ b/app/src/organisms/Devices/hooks/useRunStartedOrLegacySessionInProgress.ts @@ -1,6 +1,6 @@ import { useAllSessionsQuery } from '@opentrons/react-api-client' import { RUN_STATUS_IDLE } from '@opentrons/api-client' -import { useCurrentRunId } from '../../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { useRunStatus } from '../../RunTimeControl/hooks' export function useRunStartedOrLegacySessionInProgress(): boolean { diff --git a/app/src/organisms/Devices/hooks/useRunStatuses.ts b/app/src/organisms/Devices/hooks/useRunStatuses.ts index 39c15251c7a..95ce265c379 100644 --- a/app/src/organisms/Devices/hooks/useRunStatuses.ts +++ b/app/src/organisms/Devices/hooks/useRunStatuses.ts @@ -10,7 +10,7 @@ import { RUN_STATUS_BLOCKED_BY_OPEN_DOOR, RUN_STATUS_AWAITING_RECOVERY_BLOCKED_BY_OPEN_DOOR, } from '@opentrons/api-client' -import { useCurrentRunId } from '../../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { useRunStatus } from '../../RunTimeControl/hooks' import type { RunStatus } from '@opentrons/api-client' diff --git a/app/src/organisms/Devices/hooks/useStoredProtocolAnalysis.ts b/app/src/organisms/Devices/hooks/useStoredProtocolAnalysis.ts index a2fea785a3e..de0f570e3f4 100644 --- a/app/src/organisms/Devices/hooks/useStoredProtocolAnalysis.ts +++ b/app/src/organisms/Devices/hooks/useStoredProtocolAnalysis.ts @@ -7,11 +7,11 @@ import { parsePipetteEntity, } from '@opentrons/shared-data' -import { getStoredProtocol } from '../../../redux/protocol-storage' -import { useNotifyRunQuery } from '../../../resources/runs' +import { getStoredProtocol } from '/app/redux/protocol-storage' +import { useNotifyRunQuery } from '/app/resources/runs' import type { ProtocolAnalysisOutput } from '@opentrons/shared-data' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' export const parseProtocolAnalysisOutput = ( storedProtocolAnalysis: ProtocolAnalysisOutput | null diff --git a/app/src/organisms/Devices/hooks/useSyncRobotClock.ts b/app/src/organisms/Devices/hooks/useSyncRobotClock.ts index 8a3fcc2e59e..ddc74247d6d 100644 --- a/app/src/organisms/Devices/hooks/useSyncRobotClock.ts +++ b/app/src/organisms/Devices/hooks/useSyncRobotClock.ts @@ -1,8 +1,8 @@ import * as React from 'react' import { useDispatch } from 'react-redux' -import { syncSystemTime } from '../../../redux/robot-admin' +import { syncSystemTime } from '/app/redux/robot-admin' -import type { Dispatch } from '../../../redux/types' +import type { Dispatch } from '/app/redux/types' /** * syncs robot system time once on mount diff --git a/app/src/organisms/Devices/hooks/useTipLengthCalibrations.ts b/app/src/organisms/Devices/hooks/useTipLengthCalibrations.ts index 843260d1a0c..b764b87d63c 100644 --- a/app/src/organisms/Devices/hooks/useTipLengthCalibrations.ts +++ b/app/src/organisms/Devices/hooks/useTipLengthCalibrations.ts @@ -1,6 +1,6 @@ import { useAllTipLengthCalibrationsQuery } from '@opentrons/react-api-client' -import type { TipLengthCalibration } from '../../../redux/calibration/types' +import type { TipLengthCalibration } from '/app/redux/calibration/types' const CALIBRATIONS_FETCH_MS = 5000 diff --git a/app/src/organisms/Devices/hooks/useTrackCreateProtocolRunEvent.ts b/app/src/organisms/Devices/hooks/useTrackCreateProtocolRunEvent.ts index d34da539c8d..9ff17bf4358 100644 --- a/app/src/organisms/Devices/hooks/useTrackCreateProtocolRunEvent.ts +++ b/app/src/organisms/Devices/hooks/useTrackCreateProtocolRunEvent.ts @@ -1,8 +1,8 @@ -import { useTrackEvent } from '../../../redux/analytics' +import { useTrackEvent } from '/app/redux/analytics' import { parseProtocolRunAnalyticsData } from './useProtocolRunAnalyticsData' import { parseProtocolAnalysisOutput } from './useStoredProtocolAnalysis' -import type { StoredProtocolData } from '../../../redux/protocol-storage' +import type { StoredProtocolData } from '/app/redux/protocol-storage' import { useRobot } from './useRobot' type CreateProtocolRunEventName = diff --git a/app/src/organisms/Devices/hooks/useTrackProtocolRunEvent.ts b/app/src/organisms/Devices/hooks/useTrackProtocolRunEvent.ts index 02395c371f2..6392eb91300 100644 --- a/app/src/organisms/Devices/hooks/useTrackProtocolRunEvent.ts +++ b/app/src/organisms/Devices/hooks/useTrackProtocolRunEvent.ts @@ -1,4 +1,4 @@ -import { useTrackEvent } from '../../../redux/analytics' +import { useTrackEvent } from '/app/redux/analytics' import { useProtocolRunAnalyticsData } from './useProtocolRunAnalyticsData' import { useRobot } from './useRobot' diff --git a/app/src/organisms/Devices/hooks/useUnmatchedModulesForProtocol.ts b/app/src/organisms/Devices/hooks/useUnmatchedModulesForProtocol.ts index 9c76e899c45..f48ced52ed3 100644 --- a/app/src/organisms/Devices/hooks/useUnmatchedModulesForProtocol.ts +++ b/app/src/organisms/Devices/hooks/useUnmatchedModulesForProtocol.ts @@ -1,6 +1,6 @@ import reduce from 'lodash/reduce' -import type { AttachedModule } from '../../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' import { useAttachedModules, diff --git a/app/src/organisms/Devices/utils.ts b/app/src/organisms/Devices/utils.ts index 718bf976c63..37e49697eea 100644 --- a/app/src/organisms/Devices/utils.ts +++ b/app/src/organisms/Devices/utils.ts @@ -4,7 +4,7 @@ import type { FetchPipettesResponseBody, FetchPipettesResponsePipette, Mount, -} from '../../redux/pipettes/types' +} from '/app/redux/pipettes/types' import type { Instruments, PipetteData, diff --git a/app/src/organisms/DropTipWizardFlows/DropTipWizard.tsx b/app/src/organisms/DropTipWizardFlows/DropTipWizard.tsx index e07f3792f73..caa0c6a733d 100644 --- a/app/src/organisms/DropTipWizardFlows/DropTipWizard.tsx +++ b/app/src/organisms/DropTipWizardFlows/DropTipWizard.tsx @@ -20,7 +20,7 @@ import { } from '@opentrons/components' import { getTopPortalEl } from '../../App/portal' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { ExitConfirmation } from './ExitConfirmation' import { BEFORE_BEGINNING, @@ -37,7 +37,7 @@ import { JogToPosition, Success, } from './steps' -import { InProgressModal } from '../../molecules/InProgressModal' +import { InProgressModal } from '/app/molecules/InProgressModal' import { useDropTipErrorComponents } from './hooks' import { DropTipWizardHeader } from './DropTipWizardHeader' import { ErrorInfo } from './ErrorInfo' diff --git a/app/src/organisms/DropTipWizardFlows/DropTipWizardHeader.tsx b/app/src/organisms/DropTipWizardFlows/DropTipWizardHeader.tsx index 7816c2fee4f..551cb2435c5 100644 --- a/app/src/organisms/DropTipWizardFlows/DropTipWizardHeader.tsx +++ b/app/src/organisms/DropTipWizardFlows/DropTipWizardHeader.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { BEFORE_BEGINNING, BLOWOUT_SUCCESS, DT_ROUTES } from './constants' -import { WizardHeader } from '../../molecules/WizardHeader' +import { WizardHeader } from '/app/molecules/WizardHeader' import type { DropTipWizardProps } from './DropTipWizard' import type { DropTipFlowsRoute, DropTipFlowsStep, ErrorDetails } from './types' diff --git a/app/src/organisms/DropTipWizardFlows/TipsAttachedModal.tsx b/app/src/organisms/DropTipWizardFlows/TipsAttachedModal.tsx index b4863f5d2c9..401944a29ab 100644 --- a/app/src/organisms/DropTipWizardFlows/TipsAttachedModal.tsx +++ b/app/src/organisms/DropTipWizardFlows/TipsAttachedModal.tsx @@ -12,15 +12,15 @@ import { import { ApiHostProvider } from '@opentrons/react-api-client' import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' -import { SmallButton } from '../../atoms/buttons' -import { OddModal } from '../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' import { DropTipWizardFlows, useDropTipWizardFlows } from '.' import { useHomePipettes } from './hooks' import type { HostConfig } from '@opentrons/api-client' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' import type { UseHomePipettesProps, PipetteWithTip } from './hooks' -import type { PipetteDetails } from '../../resources/maintenance_runs' +import type { PipetteDetails } from '/app/resources/maintenance_runs' type TipsAttachedModalProps = Pick & { aPipetteWithTip: PipetteWithTip diff --git a/app/src/organisms/DropTipWizardFlows/__fixtures__/index.ts b/app/src/organisms/DropTipWizardFlows/__fixtures__/index.ts index 2f62804995c..203037d3eb0 100644 --- a/app/src/organisms/DropTipWizardFlows/__fixtures__/index.ts +++ b/app/src/organisms/DropTipWizardFlows/__fixtures__/index.ts @@ -1,4 +1,4 @@ -import { mockPipetteInfo } from '../../../redux/pipettes/__fixtures__' +import { mockPipetteInfo } from '/app/redux/pipettes/__fixtures__' import { CHOOSE_DROP_TIP_LOCATION, DT_ROUTES } from '../constants' import type { PipetteModelSpecs } from '@opentrons/shared-data' diff --git a/app/src/organisms/DropTipWizardFlows/__tests__/DropTipWizard.test.tsx b/app/src/organisms/DropTipWizardFlows/__tests__/DropTipWizard.test.tsx index 5f66db10011..891bac931c2 100644 --- a/app/src/organisms/DropTipWizardFlows/__tests__/DropTipWizard.test.tsx +++ b/app/src/organisms/DropTipWizardFlows/__tests__/DropTipWizard.test.tsx @@ -2,12 +2,12 @@ import * as React from 'react' import { vi, describe, it, expect, beforeEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockDropTipWizardContainerProps } from '../__fixtures__' import { DropTipWizardContent, DropTipWizardContainer } from '../DropTipWizard' import { DropTipWizardHeader } from '../DropTipWizardHeader' -import { InProgressModal } from '../../../molecules/InProgressModal' +import { InProgressModal } from '/app/molecules/InProgressModal' import { ExitConfirmation } from '../ExitConfirmation' import { BeforeBeginning, @@ -26,7 +26,7 @@ import { DROP_TIP_SUCCESS, } from '../constants' -vi.mock('../../../molecules/InProgressModal') +vi.mock('/app/molecules/InProgressModal') vi.mock('../ExitConfirmation') vi.mock('../steps') vi.mock('../ErrorInfo') diff --git a/app/src/organisms/DropTipWizardFlows/__tests__/DropTipWizardHeader.test.tsx b/app/src/organisms/DropTipWizardFlows/__tests__/DropTipWizardHeader.test.tsx index 5dbb85ecca2..aceecbdd723 100644 --- a/app/src/organisms/DropTipWizardFlows/__tests__/DropTipWizardHeader.test.tsx +++ b/app/src/organisms/DropTipWizardFlows/__tests__/DropTipWizardHeader.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { beforeEach, describe, expect, it, vi } from 'vitest' import { renderHook, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockDropTipWizardContainerProps } from '../__fixtures__' import { useWizardExitHeader, diff --git a/app/src/organisms/DropTipWizardFlows/__tests__/TipsAttachedModal.test.tsx b/app/src/organisms/DropTipWizardFlows/__tests__/TipsAttachedModal.test.tsx index 8dd0251038b..3c160f61e24 100644 --- a/app/src/organisms/DropTipWizardFlows/__tests__/TipsAttachedModal.test.tsx +++ b/app/src/organisms/DropTipWizardFlows/__tests__/TipsAttachedModal.test.tsx @@ -3,12 +3,12 @@ import NiceModal from '@ebay/nice-modal-react' import { describe, it, beforeEach, expect, vi } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { handleTipsAttachedModal } from '../TipsAttachedModal' import { LEFT } from '@opentrons/shared-data' -import { mockPipetteInfo } from '../../../redux/pipettes/__fixtures__' +import { mockPipetteInfo } from '/app/redux/pipettes/__fixtures__' import { useCloseCurrentRun } from '../../ProtocolUpload/hooks' import { useDropTipWizardFlows } from '..' diff --git a/app/src/organisms/DropTipWizardFlows/hooks/__tests__/useTipAttachmentStatus.test.tsx b/app/src/organisms/DropTipWizardFlows/hooks/__tests__/useTipAttachmentStatus.test.tsx index 208caefb4dc..86d6db11a10 100644 --- a/app/src/organisms/DropTipWizardFlows/hooks/__tests__/useTipAttachmentStatus.test.tsx +++ b/app/src/organisms/DropTipWizardFlows/hooks/__tests__/useTipAttachmentStatus.test.tsx @@ -5,7 +5,7 @@ import { act, renderHook } from '@testing-library/react' import { getPipetteModelSpecs } from '@opentrons/shared-data' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { mockPipetteInfo } from '../../../../redux/pipettes/__fixtures__' +import { mockPipetteInfo } from '/app/redux/pipettes/__fixtures__' import { getPipettesWithTipAttached } from '../useTipAttachmentStatus/getPipettesWithTipAttached' import { DropTipWizard } from '../../DropTipWizard' import { useTipAttachmentStatus } from '../useTipAttachmentStatus' diff --git a/app/src/organisms/DropTipWizardFlows/hooks/errors.tsx b/app/src/organisms/DropTipWizardFlows/hooks/errors.tsx index 08a1d4a0f34..cdfa5b32c2b 100644 --- a/app/src/organisms/DropTipWizardFlows/hooks/errors.tsx +++ b/app/src/organisms/DropTipWizardFlows/hooks/errors.tsx @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next' import { AlertPrimaryButton, SPACING } from '@opentrons/components' import { DROP_TIP_SPECIAL_ERROR_TYPES } from '../constants' -import { SmallButton } from '../../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' import type { RunCommandError } from '@opentrons/shared-data' import type { ErrorDetails } from '../types' diff --git a/app/src/organisms/DropTipWizardFlows/hooks/useDropTipCommands.ts b/app/src/organisms/DropTipWizardFlows/hooks/useDropTipCommands.ts index 5c073588ee8..fd8047841d0 100644 --- a/app/src/organisms/DropTipWizardFlows/hooks/useDropTipCommands.ts +++ b/app/src/organisms/DropTipWizardFlows/hooks/useDropTipCommands.ts @@ -4,7 +4,7 @@ import { useDeleteMaintenanceRunMutation } from '@opentrons/react-api-client' import { MANAGED_PIPETTE_ID, POSITION_AND_BLOWOUT } from '../constants' import { getAddressableAreaFromConfig } from '../utils' -import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { CreateCommand, AddressableAreaName, @@ -14,7 +14,7 @@ import type { } from '@opentrons/shared-data' import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' import type { CommandData, PipetteData } from '@opentrons/api-client' -import type { Axis, Sign, StepSize } from '../../../molecules/JogControls/types' +import type { Axis, Sign, StepSize } from '/app/molecules/JogControls/types' import type { DropTipFlowsStep, FixitCommandTypeUtils } from '../types' import type { SetRobotErrorDetailsParams, UseDTWithTypeParams } from '.' import type { RunCommandByCommandTypeParams } from './useDropTipCreateCommands' diff --git a/app/src/organisms/DropTipWizardFlows/hooks/useDropTipCreateCommands.ts b/app/src/organisms/DropTipWizardFlows/hooks/useDropTipCreateCommands.ts index 5b84e3a81dd..2e7ddd47fcc 100644 --- a/app/src/organisms/DropTipWizardFlows/hooks/useDropTipCreateCommands.ts +++ b/app/src/organisms/DropTipWizardFlows/hooks/useDropTipCreateCommands.ts @@ -3,13 +3,13 @@ import { useCreateMaintenanceCommandMutation } from '@opentrons/react-api-client import { useChainRunCommands, useCreateRunCommandMutation, -} from '../../../resources/runs' +} from '/app/resources/runs' import type { CreateCommand } from '@opentrons/shared-data' import type { CommandData } from '@opentrons/api-client' import type { UseDTWithTypeParams, SetRobotErrorDetailsParams } from '.' import type { FixitCommandTypeUtils } from '../types' -import { useChainMaintenanceCommands } from '../../../resources/maintenance_runs' +import { useChainMaintenanceCommands } from '/app/resources/maintenance_runs' export interface RunCommandByCommandTypeParams { command: CreateCommand diff --git a/app/src/organisms/DropTipWizardFlows/hooks/useDropTipMaintenanceRun.tsx b/app/src/organisms/DropTipWizardFlows/hooks/useDropTipMaintenanceRun.tsx index 2b181d6937b..9b3e5b67762 100644 --- a/app/src/organisms/DropTipWizardFlows/hooks/useDropTipMaintenanceRun.tsx +++ b/app/src/organisms/DropTipWizardFlows/hooks/useDropTipMaintenanceRun.tsx @@ -3,8 +3,8 @@ import * as React from 'react' import { useChainMaintenanceCommands, useNotifyCurrentMaintenanceRun, -} from '../../../resources/maintenance_runs' -import { useCreateTargetedMaintenanceRunMutation } from '../../../resources/runs' +} from '/app/resources/maintenance_runs' +import { useCreateTargetedMaintenanceRunMutation } from '/app/resources/runs' import { buildLoadPipetteCommand } from './useDropTipCommands' import type { PipetteModelSpecs } from '@opentrons/shared-data' diff --git a/app/src/organisms/DropTipWizardFlows/hooks/useHomePipettes.ts b/app/src/organisms/DropTipWizardFlows/hooks/useHomePipettes.ts index 2a828dcfedf..c0e58ef5bb5 100644 --- a/app/src/organisms/DropTipWizardFlows/hooks/useHomePipettes.ts +++ b/app/src/organisms/DropTipWizardFlows/hooks/useHomePipettes.ts @@ -1,10 +1,10 @@ -import { useRobotControlCommands } from '../../../resources/maintenance_runs' +import { useRobotControlCommands } from '/app/resources/maintenance_runs' import type { CreateCommand } from '@opentrons/shared-data' import type { UseRobotControlCommandsProps, UseRobotControlCommandsResult, -} from '../../../resources/maintenance_runs' +} from '/app/resources/maintenance_runs' interface UseHomePipettesResult { isHoming: UseRobotControlCommandsResult['isExecuting'] diff --git a/app/src/organisms/EmergencyStop/DesktopEstopMissingModal.stories.tsx b/app/src/organisms/EmergencyStop/DesktopEstopMissingModal.stories.tsx index 324ca64efc4..a1bd81c0654 100644 --- a/app/src/organisms/EmergencyStop/DesktopEstopMissingModal.stories.tsx +++ b/app/src/organisms/EmergencyStop/DesktopEstopMissingModal.stories.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { Provider } from 'react-redux' import { createStore } from 'redux' -import { configReducer } from '../../redux/config/reducer' +import { configReducer } from '/app/redux/config/reducer' import { EstopMissingModal } from '.' import type { Store, StoreEnhancer } from 'redux' diff --git a/app/src/organisms/EmergencyStop/DesktopEstopPressedModal.stories.tsx b/app/src/organisms/EmergencyStop/DesktopEstopPressedModal.stories.tsx index 66c49a944a5..45c7bd121da 100644 --- a/app/src/organisms/EmergencyStop/DesktopEstopPressedModal.stories.tsx +++ b/app/src/organisms/EmergencyStop/DesktopEstopPressedModal.stories.tsx @@ -3,7 +3,7 @@ import { Provider } from 'react-redux' import { createStore } from 'redux' import { QueryClient, QueryClientProvider } from 'react-query' -import { configReducer } from '../../redux/config/reducer' +import { configReducer } from '/app/redux/config/reducer' import { EstopPressedModal } from '.' import type { Store, StoreEnhancer } from 'redux' diff --git a/app/src/organisms/EmergencyStop/EstopMissingModal.tsx b/app/src/organisms/EmergencyStop/EstopMissingModal.tsx index 380d1f0f5ab..e90ed4bf247 100644 --- a/app/src/organisms/EmergencyStop/EstopMissingModal.tsx +++ b/app/src/organisms/EmergencyStop/EstopMissingModal.tsx @@ -14,11 +14,11 @@ import { } from '@opentrons/components' import { getTopPortalEl } from '../../App/portal' -import { OddModal } from '../../molecules/OddModal' -import { getIsOnDevice } from '../../redux/config' +import { OddModal } from '/app/molecules/OddModal' +import { getIsOnDevice } from '/app/redux/config' import type { ModalProps } from '@opentrons/components' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' // Note (07/13/2023) After the launch, we will unify the modal components into one component. // Then TouchScreenModal and DesktopModal will be TouchScreenContent and DesktopContent that only render each content. diff --git a/app/src/organisms/EmergencyStop/EstopPressedModal.tsx b/app/src/organisms/EmergencyStop/EstopPressedModal.tsx index a63dd9765d3..47aee918e90 100644 --- a/app/src/organisms/EmergencyStop/EstopPressedModal.tsx +++ b/app/src/organisms/EmergencyStop/EstopPressedModal.tsx @@ -24,15 +24,15 @@ import { import { useAcknowledgeEstopDisengageMutation } from '@opentrons/react-api-client' import { getTopPortalEl } from '../../App/portal' -import { Banner } from '../../atoms/Banner' -import { SmallButton } from '../../atoms/buttons' -import { OddModal } from '../../molecules/OddModal' -import { getIsOnDevice } from '../../redux/config' +import { Banner } from '/app/atoms/Banner' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { getIsOnDevice } from '/app/redux/config' import type { OddModalHeaderBaseProps, ModalSize, -} from '../../molecules/OddModal/types' +} from '/app/molecules/OddModal/types' import type { ModalProps } from '@opentrons/components' // Note (07/13/2023) After the launch, we will unify the modal components into one component. diff --git a/app/src/organisms/EmergencyStop/EstopTakeover.tsx b/app/src/organisms/EmergencyStop/EstopTakeover.tsx index 4faf63023c5..f7f1977be5d 100644 --- a/app/src/organisms/EmergencyStop/EstopTakeover.tsx +++ b/app/src/organisms/EmergencyStop/EstopTakeover.tsx @@ -6,7 +6,7 @@ import { EstopPressedModal } from './EstopPressedModal' import { EstopMissingModal } from './EstopMissingModal' import { useEstopContext } from './hooks' import { useIsUnboxingFlowOngoing } from '../ODD/hooks' -import { getLocalRobot } from '../../redux/discovery' +import { getLocalRobot } from '/app/redux/discovery' import { PHYSICALLY_ENGAGED, LOGICALLY_ENGAGED, diff --git a/app/src/organisms/EmergencyStop/TouchscreenEstopMissingModal.stories.tsx b/app/src/organisms/EmergencyStop/TouchscreenEstopMissingModal.stories.tsx index 4c91bc65464..27421ac61c6 100644 --- a/app/src/organisms/EmergencyStop/TouchscreenEstopMissingModal.stories.tsx +++ b/app/src/organisms/EmergencyStop/TouchscreenEstopMissingModal.stories.tsx @@ -4,7 +4,7 @@ import { createStore } from 'redux' import { VIEWPORT } from '@opentrons/components' -import { configReducer } from '../../redux/config/reducer' +import { configReducer } from '/app/redux/config/reducer' import { EstopMissingModal } from '.' import type { Store, StoreEnhancer } from 'redux' diff --git a/app/src/organisms/EmergencyStop/TouchscreenEstopPressedModal.stories.tsx b/app/src/organisms/EmergencyStop/TouchscreenEstopPressedModal.stories.tsx index b78864b74ff..8e5f30575f9 100644 --- a/app/src/organisms/EmergencyStop/TouchscreenEstopPressedModal.stories.tsx +++ b/app/src/organisms/EmergencyStop/TouchscreenEstopPressedModal.stories.tsx @@ -5,7 +5,7 @@ import { QueryClient, QueryClientProvider } from 'react-query' import { VIEWPORT } from '@opentrons/components' -import { configReducer } from '../../redux/config/reducer' +import { configReducer } from '/app/redux/config/reducer' import { EstopPressedModal } from '.' import type { Store, StoreEnhancer } from 'redux' diff --git a/app/src/organisms/EmergencyStop/__tests__/EstopMissingModal.test.tsx b/app/src/organisms/EmergencyStop/__tests__/EstopMissingModal.test.tsx index 0602fcbf4ac..bd6fd7bb7fb 100644 --- a/app/src/organisms/EmergencyStop/__tests__/EstopMissingModal.test.tsx +++ b/app/src/organisms/EmergencyStop/__tests__/EstopMissingModal.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { describe, it, vi, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../i18n' -import { getIsOnDevice } from '../../../redux/config' +import { i18n } from '/app/i18n' +import { getIsOnDevice } from '/app/redux/config' import { EstopMissingModal } from '../EstopMissingModal' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/EmergencyStop/__tests__/EstopPressedModal.test.tsx b/app/src/organisms/EmergencyStop/__tests__/EstopPressedModal.test.tsx index 2fd2733bea3..3393c9072a1 100644 --- a/app/src/organisms/EmergencyStop/__tests__/EstopPressedModal.test.tsx +++ b/app/src/organisms/EmergencyStop/__tests__/EstopPressedModal.test.tsx @@ -2,15 +2,15 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { describe, it, vi, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useAcknowledgeEstopDisengageMutation } from '@opentrons/react-api-client' -import { i18n } from '../../../i18n' -import { getIsOnDevice } from '../../../redux/config' +import { i18n } from '/app/i18n' +import { getIsOnDevice } from '/app/redux/config' import { EstopPressedModal } from '../EstopPressedModal' vi.mock('@opentrons/react-api-client') -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/EmergencyStop/__tests__/EstopTakeover.test.tsx b/app/src/organisms/EmergencyStop/__tests__/EstopTakeover.test.tsx index f169685ab65..4c3deece780 100644 --- a/app/src/organisms/EmergencyStop/__tests__/EstopTakeover.test.tsx +++ b/app/src/organisms/EmergencyStop/__tests__/EstopTakeover.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { describe, it, beforeEach, expect, vi } from 'vitest' import { screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useEstopQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { EstopMissingModal } from '../EstopMissingModal' import { EstopPressedModal } from '../EstopPressedModal' import { useIsUnboxingFlowOngoing } from '../../ODD/hooks' @@ -15,15 +15,15 @@ import { NOT_PRESENT, PHYSICALLY_ENGAGED, } from '../constants' -import { getLocalRobot } from '../../../redux/discovery' -import { mockConnectedRobot } from '../../../redux/discovery/__fixtures__' +import { getLocalRobot } from '/app/redux/discovery' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' import { EstopTakeover } from '../EstopTakeover' vi.mock('@opentrons/react-api-client') vi.mock('../EstopMissingModal') vi.mock('../EstopPressedModal') vi.mock('../../ODD/hooks') -vi.mock('../../../redux/discovery') +vi.mock('/app/redux/discovery') const mockPressed = { data: { diff --git a/app/src/organisms/ErrorRecoveryBanner/__tests__/ErrorRecoveryBanner.test.tsx b/app/src/organisms/ErrorRecoveryBanner/__tests__/ErrorRecoveryBanner.test.tsx index 78c5da162c3..17e0e5665db 100644 --- a/app/src/organisms/ErrorRecoveryBanner/__tests__/ErrorRecoveryBanner.test.tsx +++ b/app/src/organisms/ErrorRecoveryBanner/__tests__/ErrorRecoveryBanner.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { describe, it, vi, beforeEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useErrorRecoveryBanner, ErrorRecoveryBanner } from '..' vi.mock('..', async importOriginal => { diff --git a/app/src/organisms/ErrorRecoveryBanner/__tests__/useErrorRecoveryBanner.test.ts b/app/src/organisms/ErrorRecoveryBanner/__tests__/useErrorRecoveryBanner.test.ts index 6eedd264499..a82cde21a59 100644 --- a/app/src/organisms/ErrorRecoveryBanner/__tests__/useErrorRecoveryBanner.test.ts +++ b/app/src/organisms/ErrorRecoveryBanner/__tests__/useErrorRecoveryBanner.test.ts @@ -1,15 +1,15 @@ import { beforeEach, describe, expect, it, vi } from 'vitest' import { useSelector } from 'react-redux' -import { getUserId } from '../../../redux/config' -import { useClientDataRecovery } from '../../../resources/client_data' +import { getUserId } from '/app/redux/config' +import { useClientDataRecovery } from '/app/resources/client_data' import { renderHook } from '@testing-library/react' import { useErrorRecoveryBanner } from '../index' vi.mock('react-redux', () => ({ useSelector: vi.fn(), })) -vi.mock('../../../redux/config') -vi.mock('../../../resources/client_data') +vi.mock('/app/redux/config') +vi.mock('/app/resources/client_data') describe('useErrorRecoveryBanner', () => { beforeEach(() => { diff --git a/app/src/organisms/ErrorRecoveryBanner/index.tsx b/app/src/organisms/ErrorRecoveryBanner/index.tsx index 504cf2fc979..6a2d12607cd 100644 --- a/app/src/organisms/ErrorRecoveryBanner/index.tsx +++ b/app/src/organisms/ErrorRecoveryBanner/index.tsx @@ -9,11 +9,11 @@ import { StyledText, } from '@opentrons/components' -import { getUserId } from '../../redux/config' -import { useClientDataRecovery } from '../../resources/client_data' -import { Banner } from '../../atoms/Banner' +import { getUserId } from '/app/redux/config' +import { useClientDataRecovery } from '/app/resources/client_data' +import { Banner } from '/app/atoms/Banner' -import type { RecoveryIntent } from '../../resources/client_data' +import type { RecoveryIntent } from '/app/resources/client_data' import type { StyleProps } from '@opentrons/components' const CLIENT_DATA_INTERVAL_MS = 5000 diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryError.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryError.tsx index 99e6afa3113..ef0fa0ecfc7 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryError.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryError.tsx @@ -16,7 +16,7 @@ import { RESPONSIVENESS, } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' import { RecoverySingleColumnContentWrapper } from './shared' import { DESKTOP_ONLY, diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryInProgress.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryInProgress.tsx index 0f3f3fdb227..2fba61f0293 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryInProgress.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryInProgress.tsx @@ -12,7 +12,7 @@ import { SPACING, } from '@opentrons/components' -import { InProgressModal } from '../../molecules/InProgressModal' +import { InProgressModal } from '/app/molecules/InProgressModal' import type { RobotMovingRoute, RecoveryContentProps } from './types' diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/FillWellAndSkip.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/FillWellAndSkip.tsx index fab5d36f8eb..36cce4fdbf9 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/FillWellAndSkip.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/FillWellAndSkip.tsx @@ -16,7 +16,7 @@ import { LeftColumnLabwareInfo, TwoColTextAndFailedStepNextStep, } from '../shared' -import { TwoColumn, DeckMapContent } from '../../../molecules/InterventionModal' +import { TwoColumn, DeckMapContent } from '/app/molecules/InterventionModal' import { SelectRecoveryOption } from './SelectRecoveryOption' import type { RecoveryContentProps } from '../types' diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/CancelRun.test.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/CancelRun.test.tsx index 31e991deef9..3786e50e699 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/CancelRun.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/CancelRun.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { vi, describe, it, expect, beforeEach } from 'vitest' import { screen, waitFor } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockRecoveryContentProps } from '../../__fixtures__' import { CancelRun } from '../CancelRun' import { RECOVERY_MAP } from '../../constants' diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/FillWellAndSkip.test.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/FillWellAndSkip.test.tsx index 123bbb33626..4d839340805 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/FillWellAndSkip.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/FillWellAndSkip.test.tsx @@ -3,8 +3,8 @@ import { describe, it, vi, expect, beforeEach } from 'vitest' import { screen, waitFor } from '@testing-library/react' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { FillWellAndSkip, FillWell, SkipToNextStep } from '../FillWellAndSkip' import { RECOVERY_MAP } from '../../constants' import { CancelRun } from '../CancelRun' @@ -25,12 +25,12 @@ vi.mock('../../shared', async () => { )), } }) -vi.mock('../../../../molecules/InterventionModal/DeckMapContent', () => ({ +vi.mock('/app/molecules/InterventionModal/DeckMapContent', () => ({ DeckMapContent: vi.fn(() =>
MOCK_RECOVERY_MAP
), })) vi.mock('../CancelRun') vi.mock('../SelectRecoveryOption') -vi.mock('../../../../molecules/Command') +vi.mock('/app/molecules/Command') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/IgnoreErrorSkipStep.test.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/IgnoreErrorSkipStep.test.tsx index 466c9f65dc7..6ddc55506bc 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/IgnoreErrorSkipStep.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/IgnoreErrorSkipStep.test.tsx @@ -3,8 +3,8 @@ import { describe, it, vi, expect, beforeEach } from 'vitest' import { screen, fireEvent, waitFor } from '@testing-library/react' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { IgnoreErrorSkipStep, IgnoreErrorStepHome, diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/ManageTips.test.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/ManageTips.test.tsx index 06b199c0587..373b357d188 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/ManageTips.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/ManageTips.test.tsx @@ -7,10 +7,10 @@ import { render as testingRender, } from '@testing-library/react' -import { mockPipetteInfo } from '../../../../redux/pipettes/__fixtures__' +import { mockPipetteInfo } from '/app/redux/pipettes/__fixtures__' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ManageTips, useDropTipFlowUtils } from '../ManageTips' import { RECOVERY_MAP } from '../../constants' import { DropTipWizardFlows } from '../../../DropTipWizardFlows' diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetryNewTips.test.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetryNewTips.test.tsx index 708c847cd70..8ddb269aca5 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetryNewTips.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetryNewTips.test.tsx @@ -3,8 +3,8 @@ import { describe, it, vi, expect, beforeEach, afterEach } from 'vitest' import { screen, waitFor } from '@testing-library/react' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RetryNewTips, RetryWithNewTips } from '../RetryNewTips' import { RECOVERY_MAP } from '../../constants' import { SelectRecoveryOption } from '../SelectRecoveryOption' @@ -12,7 +12,7 @@ import { clickButtonLabeled } from '../../__tests__/util' import type { Mock } from 'vitest' -vi.mock('../../../../molecules/Command') +vi.mock('/app/molecules/Command') vi.mock('../SelectRecoveryOption') vi.mock('../../shared', async () => { const actual = await vi.importActual('../../shared') diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetrySameTips.test.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetrySameTips.test.tsx index da7e85fcadc..b79a96c036d 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetrySameTips.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetrySameTips.test.tsx @@ -3,8 +3,8 @@ import { describe, it, vi, expect, beforeEach, afterEach } from 'vitest' import { screen, waitFor } from '@testing-library/react' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RetrySameTips, RetrySameTipsInfo } from '../RetrySameTips' import { RECOVERY_MAP } from '../../constants' import { SelectRecoveryOption } from '../SelectRecoveryOption' @@ -12,7 +12,7 @@ import { clickButtonLabeled } from '../../__tests__/util' import type { Mock } from 'vitest' -vi.mock('../../../../molecules/Command') +vi.mock('/app/molecules/Command') vi.mock('../SelectRecoveryOption') const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetryStep.test.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetryStep.test.tsx index 40a7095b51d..25a9deee482 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetryStep.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/RetryStep.test.tsx @@ -3,8 +3,8 @@ import { describe, it, vi, expect, beforeEach, afterEach } from 'vitest' import { screen, waitFor } from '@testing-library/react' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RetryStep, RetryStepInfo } from '../RetryStep' import { RECOVERY_MAP } from '../../constants' import { SelectRecoveryOption } from '../SelectRecoveryOption' @@ -13,7 +13,7 @@ import { clickButtonLabeled } from '../../__tests__/util' import type { Mock } from 'vitest' -vi.mock('../../../../molecules/Command') +vi.mock('/app/molecules/Command') vi.mock('../SelectRecoveryOption') const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SelectRecoveryOptions.test.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SelectRecoveryOptions.test.tsx index a70e66d662e..7f4e8932070 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SelectRecoveryOptions.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SelectRecoveryOptions.test.tsx @@ -3,8 +3,8 @@ import { vi, describe, it, expect, beforeEach } from 'vitest' import { screen, fireEvent } from '@testing-library/react' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockRecoveryContentProps } from '../../__fixtures__' import { SelectRecoveryOption, diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SkipStepNewTips.test.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SkipStepNewTips.test.tsx index afb8dfdee48..389ebe3b7db 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SkipStepNewTips.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SkipStepNewTips.test.tsx @@ -3,8 +3,8 @@ import { describe, it, vi, expect, beforeEach, afterEach } from 'vitest' import { screen, waitFor } from '@testing-library/react' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SkipStepNewTips, SkipStepWithNewTips } from '../SkipStepNewTips' import { RECOVERY_MAP } from '../../constants' import { SelectRecoveryOption } from '../SelectRecoveryOption' @@ -12,7 +12,7 @@ import { clickButtonLabeled } from '../../__tests__/util' import type { Mock } from 'vitest' -vi.mock('../../../../molecules/Command') +vi.mock('/app/molecules/Command') vi.mock('../SelectRecoveryOption') vi.mock('../../shared', async () => { const actual = await vi.importActual('../../shared') diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SkipStepSameTips.test.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SkipStepSameTips.test.tsx index 3459ce305dd..c17957103f6 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SkipStepSameTips.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/__tests__/SkipStepSameTips.test.tsx @@ -3,8 +3,8 @@ import { describe, it, vi, expect, beforeEach, afterEach } from 'vitest' import { screen, waitFor } from '@testing-library/react' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SkipStepSameTips, SkipStepSameTipsInfo } from '../SkipStepSameTips' import { RECOVERY_MAP } from '../../constants' import { SelectRecoveryOption } from '../SelectRecoveryOption' @@ -13,7 +13,7 @@ import { clickButtonLabeled } from '../../__tests__/util' import type { Mock } from 'vitest' -vi.mock('../../../../molecules/Command') +vi.mock('/app/molecules/Command') vi.mock('../SelectRecoveryOption') const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ErrorRecoveryFlows/RecoveryTakeover.tsx b/app/src/organisms/ErrorRecoveryFlows/RecoveryTakeover.tsx index 13ad5c3e2eb..f42201a7f8f 100644 --- a/app/src/organisms/ErrorRecoveryFlows/RecoveryTakeover.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/RecoveryTakeover.tsx @@ -15,14 +15,14 @@ import { RUN_STATUS_AWAITING_RECOVERY_PAUSED, } from '@opentrons/api-client' -import { useUpdateClientDataRecovery } from '../../resources/client_data' +import { useUpdateClientDataRecovery } from '/app/resources/client_data' import { TakeoverModal } from '../TakeoverModal/TakeoverModal' import { RecoveryInterventionModal } from './shared' import type { ClientDataRecovery, UseUpdateClientDataRecoveryResult, -} from '../../resources/client_data' +} from '/app/resources/client_data' import type { ErrorRecoveryFlowsProps } from '.' import { BANNER_TEXT_CONTAINER_STYLE, diff --git a/app/src/organisms/ErrorRecoveryFlows/__fixtures__/index.ts b/app/src/organisms/ErrorRecoveryFlows/__fixtures__/index.ts index 129b2554ca5..30b44ed8d32 100644 --- a/app/src/organisms/ErrorRecoveryFlows/__fixtures__/index.ts +++ b/app/src/organisms/ErrorRecoveryFlows/__fixtures__/index.ts @@ -6,7 +6,7 @@ import { import { RUN_STATUS_AWAITING_RECOVERY } from '@opentrons/api-client' import { RECOVERY_MAP } from '../constants' -import { mockRobotSideAnalysis } from '../../../molecules/Command/__fixtures__' +import { mockRobotSideAnalysis } from '/app/molecules/Command/__fixtures__' import type { LoadedLabware, LabwareDefinition2 } from '@opentrons/shared-data' import type { FailedCommand, RecoveryContentProps } from '../types' diff --git a/app/src/organisms/ErrorRecoveryFlows/__tests__/ErrorRecoveryFlows.test.tsx b/app/src/organisms/ErrorRecoveryFlows/__tests__/ErrorRecoveryFlows.test.tsx index 8ed839887ef..10336b92d64 100644 --- a/app/src/organisms/ErrorRecoveryFlows/__tests__/ErrorRecoveryFlows.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/__tests__/ErrorRecoveryFlows.test.tsx @@ -9,8 +9,8 @@ import { RUN_STATUS_STOP_REQUESTED, } from '@opentrons/api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockFailedCommand } from '../__fixtures__' import { ErrorRecoveryFlows, useErrorRecoveryFlows } from '..' import { @@ -20,7 +20,7 @@ import { useRecoveryAnalytics, useRecoveryTakeover, } from '../hooks' -import { getIsOnDevice } from '../../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { useERWizard, ErrorRecoveryWizard } from '../ErrorRecoveryWizard' import { useRunPausedSplash, RunPausedSplash } from '../RunPausedSplash' @@ -29,7 +29,7 @@ import type { RunStatus } from '@opentrons/api-client' vi.mock('../ErrorRecoveryWizard') vi.mock('../hooks') vi.mock('../useRecoveryCommands') -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../RunPausedSplash') vi.mock('@opentrons/react-api-client') vi.mock('react-redux', async () => { diff --git a/app/src/organisms/ErrorRecoveryFlows/__tests__/ErrorRecoveryWizard.test.tsx b/app/src/organisms/ErrorRecoveryFlows/__tests__/ErrorRecoveryWizard.test.tsx index 1e80b53779d..312c90cc7cc 100644 --- a/app/src/organisms/ErrorRecoveryFlows/__tests__/ErrorRecoveryWizard.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/__tests__/ErrorRecoveryWizard.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { vi, describe, it, expect, beforeEach } from 'vitest' import { renderHook, act, screen, waitFor } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockRecoveryContentProps } from '../__fixtures__' import { ErrorRecoveryContent, diff --git a/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryDoorOpen.test.tsx b/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryDoorOpen.test.tsx index e224d9cb33b..aed255ba9a1 100644 --- a/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryDoorOpen.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryDoorOpen.test.tsx @@ -3,9 +3,9 @@ import { describe, it, beforeEach, vi, expect } from 'vitest' import { screen } from '@testing-library/react' import { RUN_STATUS_AWAITING_RECOVERY_PAUSED } from '@opentrons/api-client' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { mockRecoveryContentProps } from '../__fixtures__' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { RecoveryDoorOpen } from '../RecoveryDoorOpen' import type { Mock } from 'vitest' diff --git a/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryError.test.tsx b/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryError.test.tsx index 0360d5d6710..4e2a415d8ea 100644 --- a/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryError.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryError.test.tsx @@ -4,8 +4,8 @@ import { describe, it, vi, expect, beforeEach } from 'vitest' import { screen, fireEvent, waitFor } from '@testing-library/react' import { mockRecoveryContentProps } from '../__fixtures__' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RecoveryError } from '../RecoveryError' import { RECOVERY_MAP } from '../constants' diff --git a/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryInProgress.test.tsx b/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryInProgress.test.tsx index 0f6f02aa4b2..75f96a88dab 100644 --- a/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryInProgress.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryInProgress.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { beforeEach, describe, it } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockRecoveryContentProps } from '../__fixtures__' import { RecoveryInProgress } from '../RecoveryInProgress' import { RECOVERY_MAP } from '../constants' diff --git a/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryTakeover.test.tsx b/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryTakeover.test.tsx index 0caeffbf89f..6a3fe495366 100644 --- a/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryTakeover.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/__tests__/RecoveryTakeover.test.tsx @@ -8,15 +8,15 @@ import { RUN_STATUS_AWAITING_RECOVERY_PAUSED, } from '@opentrons/api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RecoveryTakeover, RecoveryTakeoverDesktop } from '../RecoveryTakeover' -import { useUpdateClientDataRecovery } from '../../../resources/client_data' +import { useUpdateClientDataRecovery } from '/app/resources/client_data' import { clickButtonLabeled } from './util' import type { Mock } from 'vitest' -vi.mock('../../../resources/client_data') +vi.mock('/app/resources/client_data') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ErrorRecoveryFlows/__tests__/RunPausedSplash.test.tsx b/app/src/organisms/ErrorRecoveryFlows/__tests__/RunPausedSplash.test.tsx index 0764b6c865e..f1d5e17b616 100644 --- a/app/src/organisms/ErrorRecoveryFlows/__tests__/RunPausedSplash.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/__tests__/RunPausedSplash.test.tsx @@ -4,10 +4,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { fireEvent, screen, waitFor, renderHook } from '@testing-library/react' import { createStore } from 'redux' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockRecoveryContentProps } from '../__fixtures__' -import { getIsOnDevice } from '../../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { useRunPausedSplash, RunPausedSplash } from '../RunPausedSplash' import { StepInfo } from '../shared' @@ -15,7 +15,7 @@ import type { Store } from 'redux' import { QueryClient, QueryClientProvider } from 'react-query' import { Provider } from 'react-redux' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../shared') const store: Store = createStore(vi.fn(), {}) diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useCurrentlyRecoveringFrom.test.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useCurrentlyRecoveringFrom.test.ts index 57adcdeaaa7..8213d14fec8 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useCurrentlyRecoveringFrom.test.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useCurrentlyRecoveringFrom.test.ts @@ -7,11 +7,11 @@ import { RUN_STATUS_IDLE, } from '@opentrons/api-client' -import { useNotifyAllCommandsQuery } from '../../../../resources/runs' +import { useNotifyAllCommandsQuery } from '/app/resources/runs' import { useCurrentlyRecoveringFrom } from '../useCurrentlyRecoveringFrom' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') const MOCK_RUN_ID = 'runId' const MOCK_COMMAND_ID = 'commandId' diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryCommands.test.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryCommands.test.ts index 1ca5733c106..c1f9eb9b667 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryCommands.test.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryCommands.test.ts @@ -7,7 +7,7 @@ import { useUpdateErrorRecoveryPolicy, } from '@opentrons/react-api-client' -import { useChainRunCommands } from '../../../../resources/runs' +import { useChainRunCommands } from '/app/resources/runs' import { useRecoveryCommands, HOME_PIPETTE_Z_AXES, @@ -17,7 +17,7 @@ import { import { RECOVERY_MAP } from '../../constants' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') describe('useRecoveryCommands', () => { const mockFailedCommand = { diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryOptionCopy.test.tsx b/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryOptionCopy.test.tsx index b1988be0dd9..0a0b29e405d 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryOptionCopy.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryOptionCopy.test.tsx @@ -7,8 +7,8 @@ import { useRecoveryOptionCopy } from '../useRecoveryOptionCopy' import { RECOVERY_MAP } from '../../constants' import type { RecoveryRoute } from '../../types' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' function MockRenderCmpt({ route, diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryTakeover.test.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryTakeover.test.ts index 309ea6f0c93..c8bb315cff7 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryTakeover.test.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryTakeover.test.ts @@ -3,19 +3,19 @@ import { renderHook, act } from '@testing-library/react' import { useSelector } from 'react-redux' import { useRecoveryTakeover } from '../useRecoveryTakeover' -import { getUserId } from '../../../../redux/config' +import { getUserId } from '/app/redux/config' import { useClientDataRecovery, useUpdateClientDataRecovery, -} from '../../../../resources/client_data' +} from '/app/resources/client_data' import type { Mock } from 'vitest' vi.mock('react-redux', () => ({ useSelector: vi.fn(), })) -vi.mock('../../../../redux/config') -vi.mock('../../../../resources/client_data') +vi.mock('/app/redux/config') +vi.mock('/app/resources/client_data') describe('useRecoveryTakeover', () => { let mockToggleERWiz: Mock diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryToasts.test.tsx b/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryToasts.test.tsx index 82a14835958..8bb0f19b0ce 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryToasts.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/__tests__/useRecoveryToasts.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { vi, describe, it, expect, beforeEach } from 'vitest' import { I18nextProvider } from 'react-i18next' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { renderHook, render, screen } from '@testing-library/react' import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' @@ -14,13 +14,13 @@ import { } from '../useRecoveryToasts' import { RECOVERY_MAP } from '../../constants' import { useToaster } from '../../../ToasterOven' -import { useCommandTextString } from '../../../../molecules/Command' +import { useCommandTextString } from '/app/molecules/Command' import type { Mock } from 'vitest' import type { BuildToast } from '../useRecoveryToasts' vi.mock('../../../ToasterOven') -vi.mock('../../../../molecules/Command') +vi.mock('/app/molecules/Command') const TEST_COMMAND = 'test command' const TC_COMMAND = 'tc command cycle some more text' diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/useCurrentlyRecoveringFrom.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/useCurrentlyRecoveringFrom.ts index 0ca5de470d3..319ba718270 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/useCurrentlyRecoveringFrom.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/useCurrentlyRecoveringFrom.ts @@ -5,7 +5,7 @@ import { } from '@opentrons/api-client' import { useCommandQuery } from '@opentrons/react-api-client' -import { useNotifyAllCommandsQuery } from '../../../resources/runs' +import { useNotifyAllCommandsQuery } from '/app/resources/runs' import type { RunStatus } from '@opentrons/api-client' import type { FailedCommand } from '../types' diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/useERUtils.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/useERUtils.ts index af84fc2c348..41be1997597 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/useERUtils.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/useERUtils.ts @@ -10,10 +10,10 @@ import { useDeckMapUtils } from './useDeckMapUtils' import { useNotifyAllCommandsQuery, useNotifyRunQuery, -} from '../../../resources/runs' +} from '/app/resources/runs' import { useRecoveryOptionCopy } from './useRecoveryOptionCopy' import { useRecoveryActionMutation } from './useRecoveryActionMutation' -import { useRunningStepCounts } from '../../../resources/protocols/hooks' +import { useRunningStepCounts } from '/app/resources/protocols/hooks' import { useRecoveryToasts } from './useRecoveryToasts' import { useRecoveryAnalytics } from './useRecoveryAnalytics' @@ -31,7 +31,7 @@ import type { SubMapUtils, } from './useRecoveryRouting' import type { RecoveryActionMutationResult } from './useRecoveryActionMutation' -import type { StepCounts } from '../../../resources/protocols/hooks' +import type { StepCounts } from '/app/resources/protocols/hooks' import type { UseRecoveryAnalyticsResult } from './useRecoveryAnalytics' import type { UseRecoveryTakeoverResult } from './useRecoveryTakeover' import type { useRetainedFailedCommandBySource } from './useRetainedFailedCommandBySource' diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/useFailedLabwareUtils.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/useFailedLabwareUtils.ts index ebe8a5f9bd9..b5f2866a154 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/useFailedLabwareUtils.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/useFailedLabwareUtils.ts @@ -9,7 +9,7 @@ import { import { ERROR_KINDS } from '../constants' import { getErrorKind } from '../utils' -import { getLoadedLabware } from '../../../molecules/Command/utils/accessors' +import { getLoadedLabware } from '/app/molecules/Command/utils/accessors' import type { WellGroup } from '@opentrons/components' import type { CommandsData, PipetteData, Run } from '@opentrons/api-client' diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryAnalytics.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryAnalytics.ts index 3a069284240..ad4ae1fb538 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryAnalytics.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryAnalytics.ts @@ -7,7 +7,7 @@ import { ANALYTICS_RECOVERY_RUN_RESULT, ANALYTICS_RECOVERY_VIEW_ERROR_DETAILS, useTrackEvent, -} from '../../../redux/analytics' +} from '/app/redux/analytics' import type { RunStatus } from '@opentrons/api-client' import type { FailedCommand, RecoveryRoute, RouteStep } from '../types' diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryCommands.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryCommands.ts index ff636d2cbd3..6ab37727101 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryCommands.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryCommands.ts @@ -7,7 +7,7 @@ import { useUpdateErrorRecoveryPolicy, } from '@opentrons/react-api-client' -import { useChainRunCommands } from '../../../resources/runs' +import { useChainRunCommands } from '/app/resources/runs' import { RECOVERY_MAP } from '../constants' import type { diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryTakeover.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryTakeover.ts index 3008a9066df..417b6da1719 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryTakeover.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryTakeover.ts @@ -1,13 +1,13 @@ import * as React from 'react' import { useSelector } from 'react-redux' -import { getUserId } from '../../../redux/config' +import { getUserId } from '/app/redux/config' import { useClientDataRecovery, useUpdateClientDataRecovery, -} from '../../../resources/client_data' +} from '/app/resources/client_data' -import type { ClientDataRecovery } from '../../../resources/client_data' +import type { ClientDataRecovery } from '/app/resources/client_data' import type { UseERWizardResult } from '../ErrorRecoveryWizard' const CLIENT_DATA_INTERVAL_MS = 5000 diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryToasts.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryToasts.ts index 00ccba0ea95..ea63447c78f 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryToasts.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryToasts.ts @@ -2,11 +2,11 @@ import { useTranslation } from 'react-i18next' import { useToaster } from '../../ToasterOven' import { RECOVERY_MAP } from '../constants' -import { useCommandTextString } from '../../../molecules/Command' +import { useCommandTextString } from '/app/molecules/Command' -import type { StepCounts } from '../../../resources/protocols/hooks' +import type { StepCounts } from '/app/resources/protocols/hooks' import type { CurrentRecoveryOptionUtils } from './useRecoveryRouting' -import type { UseCommandTextStringParams } from '../../../molecules/Command' +import type { UseCommandTextStringParams } from '/app/molecules/Command' export type BuildToast = Omit & { isOnDevice: boolean diff --git a/app/src/organisms/ErrorRecoveryFlows/index.tsx b/app/src/organisms/ErrorRecoveryFlows/index.tsx index 79b4ae90d07..85ae5c806fa 100644 --- a/app/src/organisms/ErrorRecoveryFlows/index.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/index.tsx @@ -16,7 +16,7 @@ import { import { OT2_ROBOT_TYPE } from '@opentrons/shared-data' import { useHost } from '@opentrons/react-api-client' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { ErrorRecoveryWizard, useERWizard } from './ErrorRecoveryWizard' import { RunPausedSplash, useRunPausedSplash } from './RunPausedSplash' import { RecoveryTakeover } from './RecoveryTakeover' diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/ErrorDetailsModal.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/ErrorDetailsModal.tsx index 2f5cf13b724..ba898d94d7e 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/ErrorDetailsModal.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/ErrorDetailsModal.tsx @@ -15,16 +15,16 @@ import { } from '@opentrons/components' import { useErrorName } from '../hooks' -import { OddModal } from '../../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' import { getModalPortalEl, getTopPortalEl } from '../../../App/portal' import { ERROR_KINDS } from '../constants' -import { InlineNotification } from '../../../atoms/InlineNotification' +import { InlineNotification } from '/app/atoms/InlineNotification' import { StepInfo } from './StepInfo' import { getErrorKind } from '../utils' import type { RobotType } from '@opentrons/shared-data' import type { IconProps } from '@opentrons/components' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' import type { ERUtilsResults, useRetainedFailedCommandBySource } from '../hooks' import type { ErrorRecoveryFlowsProps } from '..' import type { DesktopSizeType } from '../types' diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/FailedStepNextStep.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/FailedStepNextStep.tsx index f17a98bf311..8261e313848 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/FailedStepNextStep.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/FailedStepNextStep.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' -import { CategorizedStepContent } from '../../../molecules/InterventionModal' +import { CategorizedStepContent } from '/app/molecules/InterventionModal' import type { RecoveryContentProps } from '../types' export function FailedStepNextStep({ diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/LeftColumnLabwareInfo.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/LeftColumnLabwareInfo.tsx index 9363bdf7e50..756165ed425 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/LeftColumnLabwareInfo.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/LeftColumnLabwareInfo.tsx @@ -1,6 +1,6 @@ import * as React from 'react' -import { InterventionContent } from '../../../molecules/InterventionModal/InterventionContent' +import { InterventionContent } from '/app/molecules/InterventionModal/InterventionContent' import type { RecoveryContentProps } from '../types' diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryContentWrapper.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryContentWrapper.tsx index e3a87cfba2f..53a66630047 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryContentWrapper.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryContentWrapper.tsx @@ -15,7 +15,7 @@ import { OneColumn, TwoColumn, OneColumnOrTwoColumn, -} from '../../../molecules/InterventionModal' +} from '/app/molecules/InterventionModal' import { RecoveryFooterButtons } from './RecoveryFooterButtons' interface SingleColumnContentWrapperProps { diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryFooterButtons.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryFooterButtons.tsx index c9042cfc55f..b9aa7503baa 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryFooterButtons.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryFooterButtons.tsx @@ -16,7 +16,7 @@ import { RESPONSIVENESS, } from '@opentrons/components' -import { SmallButton, TextOnlyButton } from '../../../atoms/buttons' +import { SmallButton, TextOnlyButton } from '/app/atoms/buttons' interface RecoveryFooterButtonProps { primaryBtnOnClick: () => void diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryInterventionModal.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryInterventionModal.tsx index d0a098ded3d..901b5708974 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryInterventionModal.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/RecoveryInterventionModal.tsx @@ -4,10 +4,10 @@ import { css } from 'styled-components' import { Flex, RESPONSIVENESS, SPACING } from '@opentrons/components' -import { InterventionModal } from '../../../molecules/InterventionModal' +import { InterventionModal } from '/app/molecules/InterventionModal' import { getModalPortalEl, getTopPortalEl } from '../../../App/portal' -import type { ModalType } from '../../../molecules/InterventionModal' +import type { ModalType } from '/app/molecules/InterventionModal' import type { DesktopSizeType } from '../types' export type RecoveryInterventionModalProps = Omit< diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/ReplaceTips.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/ReplaceTips.tsx index 9d7f8adfcd7..08e600ae4be 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/ReplaceTips.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/ReplaceTips.tsx @@ -4,7 +4,7 @@ import { Flex } from '@opentrons/components' import { useTranslation } from 'react-i18next' import { RecoverySingleColumnContentWrapper } from './RecoveryContentWrapper' -import { TwoColumn, DeckMapContent } from '../../../molecules/InterventionModal' +import { TwoColumn, DeckMapContent } from '/app/molecules/InterventionModal' import { RecoveryFooterButtons } from './RecoveryFooterButtons' import { LeftColumnLabwareInfo } from './LeftColumnLabwareInfo' import { getSlotNameAndLwLocFrom } from '../hooks/useDeckMapUtils' diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/SelectTips.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/SelectTips.tsx index 6bad4600c76..21688dbf41c 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/SelectTips.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/SelectTips.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next' import { RECOVERY_MAP } from '../constants' import { RecoverySingleColumnContentWrapper } from './RecoveryContentWrapper' -import { TwoColumn } from '../../../molecules/InterventionModal' +import { TwoColumn } from '/app/molecules/InterventionModal' import { RecoveryFooterButtons } from './RecoveryFooterButtons' import { LeftColumnLabwareInfo } from './LeftColumnLabwareInfo' import { TipSelectionModal } from './TipSelectionModal' diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/StepInfo.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/StepInfo.tsx index e866155c354..002ba1458f8 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/StepInfo.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/StepInfo.tsx @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next' import { Flex, DISPLAY_INLINE, StyledText } from '@opentrons/components' -import { CommandText } from '../../../molecules/Command' +import { CommandText } from '/app/molecules/Command' import type { StyleProps } from '@opentrons/components' import type { RecoveryContentProps } from '../types' diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/TipSelectionModal.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/TipSelectionModal.tsx index d23d07f9557..6fe9106b1c4 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/TipSelectionModal.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/TipSelectionModal.tsx @@ -2,11 +2,11 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { createPortal } from 'react-dom' -import { OddModal } from '../../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' import { getTopPortalEl } from '../../../App/portal' import { TipSelection } from './TipSelection' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' import type { TipSelectionProps } from './TipSelection' type TipSelectionModalProps = TipSelectionProps & { diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/TwoColTextAndFailedStepNextStep.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/TwoColTextAndFailedStepNextStep.tsx index b98bb68e2c5..e5b69c4cc67 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/TwoColTextAndFailedStepNextStep.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/TwoColTextAndFailedStepNextStep.tsx @@ -9,7 +9,7 @@ import { } from '@opentrons/components' import { RecoverySingleColumnContentWrapper } from './RecoveryContentWrapper' -import { TwoColumn } from '../../../molecules/InterventionModal' +import { TwoColumn } from '/app/molecules/InterventionModal' import { RecoveryFooterButtons } from './RecoveryFooterButtons' import { FailedStepNextStep } from './FailedStepNextStep' diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/ErrorDetailsModal.test.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/ErrorDetailsModal.test.tsx index b9e0842732d..6a88cdc8ccc 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/ErrorDetailsModal.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/ErrorDetailsModal.test.tsx @@ -2,12 +2,12 @@ import * as React from 'react' import { describe, it, beforeEach, expect, vi } from 'vitest' import { screen, act, renderHook } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockRecoveryContentProps } from '../../__fixtures__' -import { InlineNotification } from '../../../../atoms/InlineNotification' +import { InlineNotification } from '/app/atoms/InlineNotification' import { StepInfo } from '../StepInfo' -import { OddModal } from '../../../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' import { useErrorDetailsModal, ErrorDetailsModal, @@ -18,11 +18,11 @@ vi.mock('react-dom', () => ({ ...vi.importActual('react-dom'), createPortal: vi.fn((element, container) => element), })) -vi.mock('../../../../molecules/OddModal', () => ({ +vi.mock('/app/molecules/OddModal', () => ({ OddModal: vi.fn(({ children }) =>
{children}
), })) -vi.mock('../../../../atoms/InlineNotification') +vi.mock('/app/atoms/InlineNotification') vi.mock('../StepInfo') describe('useErrorDetailsModal', () => { diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/LeftColumnLabwareInfo.test.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/LeftColumnLabwareInfo.test.tsx index 30aae62a9ca..6a070e62e77 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/LeftColumnLabwareInfo.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/LeftColumnLabwareInfo.test.tsx @@ -2,17 +2,15 @@ import * as React from 'react' import { describe, it, beforeEach, expect, vi } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { mockRecoveryContentProps } from '../../__fixtures__' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { LeftColumnLabwareInfo } from '../LeftColumnLabwareInfo' -import { InterventionInfo } from '../../../../molecules/InterventionModal/InterventionContent/InterventionInfo' -import { InlineNotification } from '../../../../atoms/InlineNotification' +import { InterventionInfo } from '/app/molecules/InterventionModal/InterventionContent/InterventionInfo' +import { InlineNotification } from '/app/atoms/InlineNotification' -vi.mock( - '../../../../molecules/InterventionModal/InterventionContent/InterventionInfo' -) -vi.mock('../../../../atoms/InlineNotification') +vi.mock('/app/molecules/InterventionModal/InterventionContent/InterventionInfo') +vi.mock('/app/atoms/InlineNotification') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/RecoveryFooterButtons.test.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/RecoveryFooterButtons.test.tsx index 3e4e9045c1a..3520851ac0b 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/RecoveryFooterButtons.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/RecoveryFooterButtons.test.tsx @@ -4,8 +4,8 @@ import { screen, fireEvent } from '@testing-library/react' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RecoveryFooterButtons } from '../RecoveryFooterButtons' import type { Mock } from 'vitest' diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/SelectTips.test.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/SelectTips.test.tsx index bccc0567d8b..87526dfe8c0 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/SelectTips.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/SelectTips.test.tsx @@ -3,8 +3,8 @@ import { describe, it, vi, expect, beforeEach } from 'vitest' import { screen, fireEvent, waitFor } from '@testing-library/react' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SelectTips } from '../SelectTips' import { RECOVERY_MAP } from '../../constants' import { TipSelectionModal } from '../TipSelectionModal' diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/StepInfo.test.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/StepInfo.test.tsx index 9396fcf8f7d..9a305804c6c 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/StepInfo.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/StepInfo.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { describe, it, expect, beforeEach, vi } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { mockRecoveryContentProps, mockFailedCommand } from '../../__fixtures__' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { StepInfo } from '../StepInfo' -import { CommandText } from '../../../../molecules/Command' +import { CommandText } from '/app/molecules/Command' -vi.mock('../../../../molecules/Command') +vi.mock('/app/molecules/Command') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/TipSelection.test.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/TipSelection.test.tsx index d9d99b08b49..96da4e8144d 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/TipSelection.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/TipSelection.test.tsx @@ -3,8 +3,8 @@ import { describe, it, vi, expect, beforeEach } from 'vitest' import { screen } from '@testing-library/react' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { TipSelection } from '../TipSelection' import { WellSelection } from '../../../WellSelection' diff --git a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/TipSelectionModal.test.tsx b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/TipSelectionModal.test.tsx index 78f9666b3e0..50ed13e34d4 100644 --- a/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/TipSelectionModal.test.tsx +++ b/app/src/organisms/ErrorRecoveryFlows/shared/__tests__/TipSelectionModal.test.tsx @@ -3,8 +3,8 @@ import { describe, it, vi, beforeEach, expect } from 'vitest' import { screen } from '@testing-library/react' import { mockRecoveryContentProps } from '../../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { TipSelectionModal } from '../TipSelectionModal' import { TipSelection } from '../TipSelection' diff --git a/app/src/organisms/FirmwareUpdateModal/FirmwareUpdateTakeover.tsx b/app/src/organisms/FirmwareUpdateModal/FirmwareUpdateTakeover.tsx index b47454a03d7..d2cf969fbda 100644 --- a/app/src/organisms/FirmwareUpdateModal/FirmwareUpdateTakeover.tsx +++ b/app/src/organisms/FirmwareUpdateModal/FirmwareUpdateTakeover.tsx @@ -6,7 +6,7 @@ import { useCurrentAllSubsystemUpdatesQuery, useSubsystemUpdateQuery, } from '@opentrons/react-api-client' -import { useNotifyCurrentMaintenanceRun } from '../../resources/maintenance_runs' +import { useNotifyCurrentMaintenanceRun } from '/app/resources/maintenance_runs' import { getTopPortalEl } from '../../App/portal' import { useIsUnboxingFlowOngoing } from '../ODD/hooks' import { UpdateInProgressModal } from './UpdateInProgressModal' diff --git a/app/src/organisms/FirmwareUpdateModal/UpdateInProgressModal.tsx b/app/src/organisms/FirmwareUpdateModal/UpdateInProgressModal.tsx index 93f74c21efc..9fa84bf49ba 100644 --- a/app/src/organisms/FirmwareUpdateModal/UpdateInProgressModal.tsx +++ b/app/src/organisms/FirmwareUpdateModal/UpdateInProgressModal.tsx @@ -13,7 +13,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { OddModal } from '../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' import type { Subsystem } from '@opentrons/api-client' interface UpdateInProgressModalProps { diff --git a/app/src/organisms/FirmwareUpdateModal/UpdateNeededModal.tsx b/app/src/organisms/FirmwareUpdateModal/UpdateNeededModal.tsx index 32ef5a6763e..de00b12655d 100644 --- a/app/src/organisms/FirmwareUpdateModal/UpdateNeededModal.tsx +++ b/app/src/organisms/FirmwareUpdateModal/UpdateNeededModal.tsx @@ -16,13 +16,13 @@ import { } from '@opentrons/react-api-client' import { LEFT, RIGHT } from '@opentrons/shared-data' import { getTopPortalEl } from '../../App/portal' -import { SmallButton } from '../../atoms/buttons' -import { OddModal } from '../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' import { UpdateInProgressModal } from './UpdateInProgressModal' import { UpdateResultsModal } from './UpdateResultsModal' import type { Subsystem } from '@opentrons/api-client' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface UpdateNeededModalProps { onClose: () => void diff --git a/app/src/organisms/FirmwareUpdateModal/UpdateResultsModal.tsx b/app/src/organisms/FirmwareUpdateModal/UpdateResultsModal.tsx index cd5dad33f02..19c540e82f0 100644 --- a/app/src/organisms/FirmwareUpdateModal/UpdateResultsModal.tsx +++ b/app/src/organisms/FirmwareUpdateModal/UpdateResultsModal.tsx @@ -11,12 +11,12 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' -import { OddModal } from '../../molecules/OddModal' -import { usePipetteModelSpecs } from '../../resources/instruments/hooks' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { usePipetteModelSpecs } from '/app/resources/instruments/hooks' import type { InstrumentData, PipetteData } from '@opentrons/api-client' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface UpdateResultsModalProps { isSuccess: boolean diff --git a/app/src/organisms/FirmwareUpdateModal/__tests__/FirmwareUpdateModal.test.tsx b/app/src/organisms/FirmwareUpdateModal/__tests__/FirmwareUpdateModal.test.tsx index 377c38a3bf4..08a0c8f6aad 100644 --- a/app/src/organisms/FirmwareUpdateModal/__tests__/FirmwareUpdateModal.test.tsx +++ b/app/src/organisms/FirmwareUpdateModal/__tests__/FirmwareUpdateModal.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { act, screen, waitFor } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useInstrumentsQuery, useSubsystemUpdateQuery, useUpdateSubsystemMutation, } from '@opentrons/react-api-client' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { FirmwareUpdateModal } from '..' import type { BadPipette, diff --git a/app/src/organisms/FirmwareUpdateModal/__tests__/FirmwareUpdateTakeover.test.tsx b/app/src/organisms/FirmwareUpdateModal/__tests__/FirmwareUpdateTakeover.test.tsx index 2cc4c53e5c9..ca2ee5a9d90 100644 --- a/app/src/organisms/FirmwareUpdateModal/__tests__/FirmwareUpdateTakeover.test.tsx +++ b/app/src/organisms/FirmwareUpdateModal/__tests__/FirmwareUpdateTakeover.test.tsx @@ -2,19 +2,19 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useInstrumentsQuery, useCurrentAllSubsystemUpdatesQuery, useSubsystemUpdateQuery, } from '@opentrons/react-api-client' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { UpdateNeededModal } from '../UpdateNeededModal' import { UpdateInProgressModal } from '../UpdateInProgressModal' import { useIsUnboxingFlowOngoing } from '../../ODD/hooks' import { FirmwareUpdateTakeover } from '../FirmwareUpdateTakeover' -import { useNotifyCurrentMaintenanceRun } from '../../../resources/maintenance_runs' +import { useNotifyCurrentMaintenanceRun } from '/app/resources/maintenance_runs' import type { BadPipette, PipetteData } from '@opentrons/api-client' @@ -22,7 +22,7 @@ vi.mock('@opentrons/react-api-client') vi.mock('../UpdateNeededModal') vi.mock('../UpdateInProgressModal') vi.mock('../../ODD/hooks') -vi.mock('../../../resources/maintenance_runs') +vi.mock('/app/resources/maintenance_runs') const render = () => { return renderWithProviders(, { diff --git a/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateInProgressModal.test.tsx b/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateInProgressModal.test.tsx index 6d0ccf2c12b..496da7421fb 100644 --- a/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateInProgressModal.test.tsx +++ b/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateInProgressModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { describe, it, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { UpdateInProgressModal } from '../UpdateInProgressModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateNeededModal.test.tsx b/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateNeededModal.test.tsx index 77ed2ee0de1..545854dbf1e 100644 --- a/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateNeededModal.test.tsx +++ b/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateNeededModal.test.tsx @@ -1,13 +1,13 @@ import * as React from 'react' import { describe, it, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useInstrumentsQuery, useSubsystemUpdateQuery, useUpdateSubsystemMutation, } from '@opentrons/react-api-client' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { UpdateNeededModal } from '../UpdateNeededModal' import { UpdateInProgressModal } from '../UpdateInProgressModal' import { UpdateResultsModal } from '../UpdateResultsModal' diff --git a/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateResultsModal.test.tsx b/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateResultsModal.test.tsx index 8e3f11afd6d..47095ebdc5e 100644 --- a/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateResultsModal.test.tsx +++ b/app/src/organisms/FirmwareUpdateModal/__tests__/UpdateResultsModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { UpdateResultsModal } from '../UpdateResultsModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/GripperCard/AboutGripperSlideout.tsx b/app/src/organisms/GripperCard/AboutGripperSlideout.tsx index 8c583cf75ea..5cfb59e2c21 100644 --- a/app/src/organisms/GripperCard/AboutGripperSlideout.tsx +++ b/app/src/organisms/GripperCard/AboutGripperSlideout.tsx @@ -9,7 +9,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Slideout } from '../../atoms/Slideout' +import { Slideout } from '/app/atoms/Slideout' interface AboutGripperSlideoutProps { serialNumber: string diff --git a/app/src/organisms/GripperCard/__tests__/AboutGripperSlideout.test.tsx b/app/src/organisms/GripperCard/__tests__/AboutGripperSlideout.test.tsx index 8422846ac2c..fa6fff2a552 100644 --- a/app/src/organisms/GripperCard/__tests__/AboutGripperSlideout.test.tsx +++ b/app/src/organisms/GripperCard/__tests__/AboutGripperSlideout.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { screen, fireEvent } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { AboutGripperSlideout } from '../AboutGripperSlideout' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/GripperCard/__tests__/GripperCard.test.tsx b/app/src/organisms/GripperCard/__tests__/GripperCard.test.tsx index 11767aacb16..32f523b82ca 100644 --- a/app/src/organisms/GripperCard/__tests__/GripperCard.test.tsx +++ b/app/src/organisms/GripperCard/__tests__/GripperCard.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useCurrentSubsystemUpdateQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { GripperWizardFlows } from '../../GripperWizardFlows' import { AboutGripperSlideout } from '../AboutGripperSlideout' import { GripperCard } from '../' diff --git a/app/src/organisms/GripperCard/index.tsx b/app/src/organisms/GripperCard/index.tsx index df2ef99fbb5..fd720a99e0f 100644 --- a/app/src/organisms/GripperCard/index.tsx +++ b/app/src/organisms/GripperCard/index.tsx @@ -9,8 +9,8 @@ import { } from '@opentrons/components' import { getGripperDisplayName } from '@opentrons/shared-data' import { useCurrentSubsystemUpdateQuery } from '@opentrons/react-api-client' -import { Banner } from '../../atoms/Banner' -import { InstrumentCard } from '../../molecules/InstrumentCard' +import { Banner } from '/app/atoms/Banner' +import { InstrumentCard } from '/app/molecules/InstrumentCard' import { GripperWizardFlows } from '../GripperWizardFlows' import { AboutGripperSlideout } from './AboutGripperSlideout' import { GRIPPER_FLOW_TYPES } from '../GripperWizardFlows/constants' diff --git a/app/src/organisms/GripperWizardFlows/BeforeBeginning.tsx b/app/src/organisms/GripperWizardFlows/BeforeBeginning.tsx index 249f7ca8ddf..463de1f6223 100644 --- a/app/src/organisms/GripperWizardFlows/BeforeBeginning.tsx +++ b/app/src/organisms/GripperWizardFlows/BeforeBeginning.tsx @@ -2,12 +2,12 @@ import * as React from 'react' import { Trans, useTranslation } from 'react-i18next' import { COLORS, LegacyStyledText } from '@opentrons/components' import { EXTENSION } from '@opentrons/shared-data' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -import { WizardRequiredEquipmentList } from '../../molecules/WizardRequiredEquipmentList' +} from '/app/molecules/SimpleWizardBody' +import { WizardRequiredEquipmentList } from '/app/molecules/WizardRequiredEquipmentList' import { GRIPPER_FLOW_TYPES, SCREWDRIVER_LOADNAME, diff --git a/app/src/organisms/GripperWizardFlows/ExitConfirmation.tsx b/app/src/organisms/GripperWizardFlows/ExitConfirmation.tsx index 6633a7ba9fd..3994536df78 100644 --- a/app/src/organisms/GripperWizardFlows/ExitConfirmation.tsx +++ b/app/src/organisms/GripperWizardFlows/ExitConfirmation.tsx @@ -9,12 +9,12 @@ import { SecondaryButton, JUSTIFY_FLEX_END, } from '@opentrons/components' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -import { SmallButton } from '../../atoms/buttons' +} from '/app/molecules/SimpleWizardBody' +import { SmallButton } from '/app/atoms/buttons' import { GRIPPER_FLOW_TYPES } from './constants' import type { GripperWizardFlowType } from './types' diff --git a/app/src/organisms/GripperWizardFlows/GripperWizardFlows.stories.tsx b/app/src/organisms/GripperWizardFlows/GripperWizardFlows.stories.tsx index 86a7ebdf427..b960c38ce77 100644 --- a/app/src/organisms/GripperWizardFlows/GripperWizardFlows.stories.tsx +++ b/app/src/organisms/GripperWizardFlows/GripperWizardFlows.stories.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { QueryClient, QueryClientProvider } from 'react-query' import { Provider } from 'react-redux' import { createStore } from 'redux' -import { mockConnectableRobot } from '../../redux/discovery/__fixtures__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import * as DiscoveryClientFixtures from '../../../../discovery-client/src/fixtures' import { HEALTH_STATUS_OK, ROBOT_MODEL_OT3, -} from '../../redux/discovery/constants' -import { configReducer } from '../../redux/config/reducer' +} from '/app/redux/discovery/constants' +import { configReducer } from '/app/redux/config/reducer' import { GripperWizardFlows } from './' import type { Store, StoreEnhancer } from 'redux' diff --git a/app/src/organisms/GripperWizardFlows/MountGripper.tsx b/app/src/organisms/GripperWizardFlows/MountGripper.tsx index 7f69bf389ac..acda62ef28c 100644 --- a/app/src/organisms/GripperWizardFlows/MountGripper.tsx +++ b/app/src/organisms/GripperWizardFlows/MountGripper.tsx @@ -16,14 +16,14 @@ import { useInstrumentsQuery } from '@opentrons/react-api-client' import { css } from 'styled-components' import * as React from 'react' import { useTranslation } from 'react-i18next' -import { getIsOnDevice } from '../../redux/config' -import { SmallButton } from '../../atoms/buttons' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import { getIsOnDevice } from '/app/redux/config' +import { SmallButton } from '/app/atoms/buttons' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -import mountGripper from '../../assets/videos/gripper-wizards/MOUNT_GRIPPER.webm' +} from '/app/molecules/SimpleWizardBody' +import mountGripper from '/app/assets/videos/gripper-wizards/MOUNT_GRIPPER.webm' import type { GripperWizardStepProps } from './types' import type { BadGripper, GripperData } from '@opentrons/api-client' diff --git a/app/src/organisms/GripperWizardFlows/MovePin.tsx b/app/src/organisms/GripperWizardFlows/MovePin.tsx index 2a791a1faeb..1f62f769daa 100644 --- a/app/src/organisms/GripperWizardFlows/MovePin.tsx +++ b/app/src/organisms/GripperWizardFlows/MovePin.tsx @@ -12,21 +12,21 @@ import { css } from 'styled-components' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +} from '/app/molecules/SimpleWizardBody' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import { MOVE_PIN_FROM_FRONT_JAW_TO_REAR_JAW, MOVE_PIN_TO_FRONT_JAW, REMOVE_PIN_FROM_REAR_JAW, } from './constants' -import movePinStorageToFront from '../../assets/videos/gripper-wizards/PIN_FROM_STORAGE_TO_FRONT_JAW.webm' -import movePinFrontToRear from '../../assets/videos/gripper-wizards/PIN_FROM_FRONT_TO_REAR_JAW.webm' -import movePinRearToStorage from '../../assets/videos/gripper-wizards/PIN_FROM_REAR_TO_STORAGE.webm' -import calibratingFrontJaw from '../../assets/videos/gripper-wizards/CALIBRATING_FRONT_JAW.webm' -import calibratingRearJaw from '../../assets/videos/gripper-wizards/CALIBRATING_REAR_JAW.webm' +import movePinStorageToFront from '/app/assets/videos/gripper-wizards/PIN_FROM_STORAGE_TO_FRONT_JAW.webm' +import movePinFrontToRear from '/app/assets/videos/gripper-wizards/PIN_FROM_FRONT_TO_REAR_JAW.webm' +import movePinRearToStorage from '/app/assets/videos/gripper-wizards/PIN_FROM_REAR_TO_STORAGE.webm' +import calibratingFrontJaw from '/app/assets/videos/gripper-wizards/CALIBRATING_FRONT_JAW.webm' +import calibratingRearJaw from '/app/assets/videos/gripper-wizards/CALIBRATING_REAR_JAW.webm' import type { Coordinates } from '@opentrons/shared-data' -import type { CreateMaintenanceCommand } from '../../resources/runs' +import type { CreateMaintenanceCommand } from '/app/resources/runs' import type { GripperWizardStepProps, MovePinStep } from './types' interface MovePinProps extends GripperWizardStepProps, MovePinStep { diff --git a/app/src/organisms/GripperWizardFlows/Success.tsx b/app/src/organisms/GripperWizardFlows/Success.tsx index 91ce1c30213..9d4e4a0ec14 100644 --- a/app/src/organisms/GripperWizardFlows/Success.tsx +++ b/app/src/organisms/GripperWizardFlows/Success.tsx @@ -9,12 +9,12 @@ import { JUSTIFY_FLEX_END, Flex, } from '@opentrons/components' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -import { SmallButton } from '../../atoms/buttons' +} from '/app/molecules/SimpleWizardBody' +import { SmallButton } from '/app/atoms/buttons' import { SUCCESSFULLY_ATTACHED, SUCCESSFULLY_ATTACHED_AND_CALIBRATED, diff --git a/app/src/organisms/GripperWizardFlows/UnmountGripper.tsx b/app/src/organisms/GripperWizardFlows/UnmountGripper.tsx index 46b62bdf40d..f6a36e1cfed 100644 --- a/app/src/organisms/GripperWizardFlows/UnmountGripper.tsx +++ b/app/src/organisms/GripperWizardFlows/UnmountGripper.tsx @@ -16,14 +16,14 @@ import { } from '@opentrons/components' import { useInstrumentsQuery } from '@opentrons/react-api-client' import { css } from 'styled-components' -import { getIsOnDevice } from '../../redux/config' -import { SmallButton } from '../../atoms/buttons' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import { getIsOnDevice } from '/app/redux/config' +import { SmallButton } from '/app/atoms/buttons' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -import unmountGripper from '../../assets/videos/gripper-wizards/UNMOUNT_GRIPPER.webm' +} from '/app/molecules/SimpleWizardBody' +import unmountGripper from '/app/assets/videos/gripper-wizards/UNMOUNT_GRIPPER.webm' import type { GripperWizardStepProps } from './types' import type { GripperData } from '@opentrons/api-client' diff --git a/app/src/organisms/GripperWizardFlows/__tests__/BeforeBeginning.test.tsx b/app/src/organisms/GripperWizardFlows/__tests__/BeforeBeginning.test.tsx index 59e554ea372..9aa89038335 100644 --- a/app/src/organisms/GripperWizardFlows/__tests__/BeforeBeginning.test.tsx +++ b/app/src/organisms/GripperWizardFlows/__tests__/BeforeBeginning.test.tsx @@ -1,14 +1,14 @@ import * as React from 'react' import { fireEvent, screen, waitFor } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { InProgressModal } from '../../../molecules/InProgressModal/InProgressModal' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { InProgressModal } from '/app/molecules/InProgressModal/InProgressModal' import { RUN_ID_1 } from '../../RunTimeControl/__fixtures__' import { BeforeBeginning } from '../BeforeBeginning' import { GRIPPER_FLOW_TYPES } from '../constants' -vi.mock('../../../molecules/InProgressModal/InProgressModal') +vi.mock('/app/molecules/InProgressModal/InProgressModal') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/GripperWizardFlows/__tests__/ExitConfirmation.test.tsx b/app/src/organisms/GripperWizardFlows/__tests__/ExitConfirmation.test.tsx index 50ad7285497..9865b9f3143 100644 --- a/app/src/organisms/GripperWizardFlows/__tests__/ExitConfirmation.test.tsx +++ b/app/src/organisms/GripperWizardFlows/__tests__/ExitConfirmation.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ExitConfirmation } from '../ExitConfirmation' import { GRIPPER_FLOW_TYPES } from '../constants' diff --git a/app/src/organisms/GripperWizardFlows/__tests__/MountGripper.test.tsx b/app/src/organisms/GripperWizardFlows/__tests__/MountGripper.test.tsx index fbe6bb5ea16..6a351304f78 100644 --- a/app/src/organisms/GripperWizardFlows/__tests__/MountGripper.test.tsx +++ b/app/src/organisms/GripperWizardFlows/__tests__/MountGripper.test.tsx @@ -1,10 +1,10 @@ import * as React from 'react' import { fireEvent, screen, waitFor } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useInstrumentsQuery } from '@opentrons/react-api-client' import { instrumentsResponseFixture } from '@opentrons/api-client' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { MountGripper } from '../MountGripper' import { GRIPPER_FLOW_TYPES } from '../constants' diff --git a/app/src/organisms/GripperWizardFlows/__tests__/MovePin.test.tsx b/app/src/organisms/GripperWizardFlows/__tests__/MovePin.test.tsx index 954a3bcb19e..136d7f01da1 100644 --- a/app/src/organisms/GripperWizardFlows/__tests__/MovePin.test.tsx +++ b/app/src/organisms/GripperWizardFlows/__tests__/MovePin.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect, afterEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { instrumentsResponseFixture } from '@opentrons/api-client' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { MovePin } from '../MovePin' import { diff --git a/app/src/organisms/GripperWizardFlows/__tests__/Success.test.tsx b/app/src/organisms/GripperWizardFlows/__tests__/Success.test.tsx index 08935cf29ae..ad42aca7da3 100644 --- a/app/src/organisms/GripperWizardFlows/__tests__/Success.test.tsx +++ b/app/src/organisms/GripperWizardFlows/__tests__/Success.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { Success } from '../Success' import { diff --git a/app/src/organisms/GripperWizardFlows/__tests__/UnmountGripper.test.tsx b/app/src/organisms/GripperWizardFlows/__tests__/UnmountGripper.test.tsx index e0c6e3e3c4e..64ddbe1e709 100644 --- a/app/src/organisms/GripperWizardFlows/__tests__/UnmountGripper.test.tsx +++ b/app/src/organisms/GripperWizardFlows/__tests__/UnmountGripper.test.tsx @@ -5,8 +5,8 @@ import { fireEvent, screen, waitFor } from '@testing-library/react' import { useInstrumentsQuery } from '@opentrons/react-api-client' import { instrumentsResponseFixture } from '@opentrons/api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { UnmountGripper } from '../UnmountGripper' import { GRIPPER_FLOW_TYPES } from '../constants' diff --git a/app/src/organisms/GripperWizardFlows/index.tsx b/app/src/organisms/GripperWizardFlows/index.tsx index 84573117e39..553c3a7308a 100644 --- a/app/src/organisms/GripperWizardFlows/index.tsx +++ b/app/src/organisms/GripperWizardFlows/index.tsx @@ -18,13 +18,13 @@ import { import { useChainMaintenanceCommands, useNotifyCurrentMaintenanceRun, -} from '../../resources/maintenance_runs' +} from '/app/resources/maintenance_runs' import { getTopPortalEl } from '../../App/portal' -import { WizardHeader } from '../../molecules/WizardHeader' -import { SimpleWizardBody } from '../../molecules/SimpleWizardBody' +import { WizardHeader } from '/app/molecules/WizardHeader' +import { SimpleWizardBody } from '/app/molecules/SimpleWizardBody' import { FirmwareUpdateModal } from '../FirmwareUpdateModal' -import { getIsOnDevice } from '../../redux/config' -import { useCreateTargetedMaintenanceRunMutation } from '../../resources/runs' +import { getIsOnDevice } from '/app/redux/config' +import { useCreateTargetedMaintenanceRunMutation } from '/app/resources/runs' import { getGripperWizardSteps } from './getGripperWizardSteps' import { GRIPPER_FLOW_TYPES, SECTIONS } from './constants' import { BeforeBeginning } from './BeforeBeginning' diff --git a/app/src/organisms/HowCalibrationWorksModal/__tests__/HowCalibrationWorksModal.test.tsx b/app/src/organisms/HowCalibrationWorksModal/__tests__/HowCalibrationWorksModal.test.tsx index 7a37b9177e8..329d3ed3e5f 100644 --- a/app/src/organisms/HowCalibrationWorksModal/__tests__/HowCalibrationWorksModal.test.tsx +++ b/app/src/organisms/HowCalibrationWorksModal/__tests__/HowCalibrationWorksModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { describe, it, vi, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { HowCalibrationWorksModal } from '..' const render = ( diff --git a/app/src/organisms/HowCalibrationWorksModal/index.tsx b/app/src/organisms/HowCalibrationWorksModal/index.tsx index 9cdf4f18f4b..e0f4bda2972 100644 --- a/app/src/organisms/HowCalibrationWorksModal/index.tsx +++ b/app/src/organisms/HowCalibrationWorksModal/index.tsx @@ -18,9 +18,9 @@ import { } from '@opentrons/components' import { getTopPortalEl } from '../../App/portal' -import RobotCalHelpImage from '../../assets/images/robot_calibration_help.png' -import { ExternalLink } from '../../atoms/Link/ExternalLink' -import { Divider } from '../../atoms/structure' +import RobotCalHelpImage from '/app/assets/images/robot_calibration_help.png' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' +import { Divider } from '/app/atoms/structure' const ROBOT_CAL_HELP_ARTICLE = 'https://support.opentrons.com/s/article/How-positional-calibration-works-on-the-OT-2' diff --git a/app/src/organisms/IncompatibleModule/IncompatibleModuleDesktopModalBody.tsx b/app/src/organisms/IncompatibleModule/IncompatibleModuleDesktopModalBody.tsx index 0161a75cd05..862ddb817d4 100644 --- a/app/src/organisms/IncompatibleModule/IncompatibleModuleDesktopModalBody.tsx +++ b/app/src/organisms/IncompatibleModule/IncompatibleModuleDesktopModalBody.tsx @@ -16,7 +16,7 @@ import { import { getModuleDisplayName } from '@opentrons/shared-data' import type { AttachedModule } from '@opentrons/api-client' import { useIsFlex } from '../Devices/hooks' -import { InterventionModal } from '../../molecules/InterventionModal' +import { InterventionModal } from '/app/molecules/InterventionModal' export interface IncompatibleModuleDesktopModalBodyProps { modules: AttachedModule[] robotName: string diff --git a/app/src/organisms/IncompatibleModule/IncompatibleModuleODDModalBody.tsx b/app/src/organisms/IncompatibleModule/IncompatibleModuleODDModalBody.tsx index 4b84490f83a..fb08e1a8bcc 100644 --- a/app/src/organisms/IncompatibleModule/IncompatibleModuleODDModalBody.tsx +++ b/app/src/organisms/IncompatibleModule/IncompatibleModuleODDModalBody.tsx @@ -11,9 +11,9 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { getModuleDisplayName } from '@opentrons/shared-data' -import { OddModal } from '../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' import type { AttachedModule } from '@opentrons/api-client' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' export interface IncompatibleModuleODDModalBodyProps { modules: AttachedModule[] } diff --git a/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleDesktopModalBody.test.tsx b/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleDesktopModalBody.test.tsx index b3d7fc7bbf3..8deb560b991 100644 --- a/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleDesktopModalBody.test.tsx +++ b/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleDesktopModalBody.test.tsx @@ -3,8 +3,8 @@ import { screen } from '@testing-library/react' import { describe, it, beforeEach, vi } from 'vitest' import { when } from 'vitest-when' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { IncompatibleModuleDesktopModalBody } from '../IncompatibleModuleDesktopModalBody' import { useIsFlex } from '../../Devices/hooks' import * as Fixtures from '../__fixtures__' diff --git a/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleODDModalBody.test.tsx b/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleODDModalBody.test.tsx index ce63b26ed88..1a6ce6854ae 100644 --- a/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleODDModalBody.test.tsx +++ b/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleODDModalBody.test.tsx @@ -2,8 +2,8 @@ import React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { IncompatibleModuleODDModalBody } from '../IncompatibleModuleODDModalBody' import * as Fixtures from '../__fixtures__' diff --git a/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleTakeover.test.tsx b/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleTakeover.test.tsx index 017f9f25c48..b8615e62d36 100644 --- a/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleTakeover.test.tsx +++ b/app/src/organisms/IncompatibleModule/__tests__/IncompatibleModuleTakeover.test.tsx @@ -3,8 +3,8 @@ import { screen } from '@testing-library/react' import { describe, it, beforeEach, afterEach, expect, vi } from 'vitest' import { when } from 'vitest-when' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { IncompatibleModuleTakeover } from '../IncompatibleModuleTakeover' import { IncompatibleModuleODDModalBody } from '../IncompatibleModuleODDModalBody' import { IncompatibleModuleDesktopModalBody } from '../IncompatibleModuleDesktopModalBody' diff --git a/app/src/organisms/InstrumentInfo/__tests__/InstrumentInfo.test.tsx b/app/src/organisms/InstrumentInfo/__tests__/InstrumentInfo.test.tsx index adccba35529..ac6387cfc24 100644 --- a/app/src/organisms/InstrumentInfo/__tests__/InstrumentInfo.test.tsx +++ b/app/src/organisms/InstrumentInfo/__tests__/InstrumentInfo.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockPipetteData1Channel } from '../../../redux/pipettes/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockPipetteData1Channel } from '/app/redux/pipettes/__fixtures__' import { PipetteWizardFlows } from '../../PipetteWizardFlows' import { GripperWizardFlows } from '../../GripperWizardFlows' import { InstrumentInfo } from '..' diff --git a/app/src/organisms/InstrumentInfo/index.tsx b/app/src/organisms/InstrumentInfo/index.tsx index ea7599dde76..c4c77cbf100 100644 --- a/app/src/organisms/InstrumentInfo/index.tsx +++ b/app/src/organisms/InstrumentInfo/index.tsx @@ -18,10 +18,10 @@ import { } from '@opentrons/shared-data' import { PipetteWizardFlows } from '../PipetteWizardFlows' import { GripperWizardFlows } from '../GripperWizardFlows' -import { MediumButton } from '../../atoms/buttons' +import { MediumButton } from '/app/atoms/buttons' import { FLOWS } from '../PipetteWizardFlows/constants' import { GRIPPER_FLOW_TYPES } from '../GripperWizardFlows/constants' -import { formatTimeWithUtcLabel } from '../../resources/runs' +import { formatTimeWithUtcLabel } from '/app/resources/runs' import type { InstrumentData } from '@opentrons/api-client' import type { PipetteMount } from '@opentrons/shared-data' diff --git a/app/src/organisms/InstrumentMountItem/AttachedInstrumentMountItem.tsx b/app/src/organisms/InstrumentMountItem/AttachedInstrumentMountItem.tsx index d56a1af86ae..d83e3d4e8fd 100644 --- a/app/src/organisms/InstrumentMountItem/AttachedInstrumentMountItem.tsx +++ b/app/src/organisms/InstrumentMountItem/AttachedInstrumentMountItem.tsx @@ -6,7 +6,7 @@ import { SINGLE_MOUNT_PIPETTES } from '@opentrons/shared-data' import { useGripperDisplayName, usePipetteModelSpecs, -} from '../../resources/instruments/hooks' +} from '/app/resources/instruments/hooks' import { ChoosePipette } from '../PipetteWizardFlows/ChoosePipette' import { FLOWS } from '../PipetteWizardFlows/constants' import { GRIPPER_FLOW_TYPES } from '../GripperWizardFlows/constants' @@ -14,7 +14,7 @@ import { LabeledMount } from './LabeledMount' import type { InstrumentData } from '@opentrons/api-client' import type { GripperModel, PipetteModel } from '@opentrons/shared-data' -import type { Mount } from '../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' import type { SelectablePipettes } from '../PipetteWizardFlows/types' import type { GripperWizardFlows } from '../GripperWizardFlows' import type { PipetteWizardFlows } from '../PipetteWizardFlows' diff --git a/app/src/organisms/InstrumentMountItem/LabeledMount.tsx b/app/src/organisms/InstrumentMountItem/LabeledMount.tsx index 515d0ab0c54..668d7b960a0 100644 --- a/app/src/organisms/InstrumentMountItem/LabeledMount.tsx +++ b/app/src/organisms/InstrumentMountItem/LabeledMount.tsx @@ -15,7 +15,7 @@ import { TEXT_TRANSFORM_CAPITALIZE, TYPOGRAPHY, } from '@opentrons/components' -import type { Mount } from '../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' const MountButton = styled.button<{ isAttached: boolean }>` display: flex; diff --git a/app/src/organisms/InstrumentMountItem/ProtocolInstrumentMountItem.tsx b/app/src/organisms/InstrumentMountItem/ProtocolInstrumentMountItem.tsx index f96b09ef8b4..459b584f882 100644 --- a/app/src/organisms/InstrumentMountItem/ProtocolInstrumentMountItem.tsx +++ b/app/src/organisms/InstrumentMountItem/ProtocolInstrumentMountItem.tsx @@ -18,11 +18,11 @@ import { SINGLE_MOUNT_PIPETTES, } from '@opentrons/shared-data' -import { SmallButton } from '../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' import { useGripperDisplayName, usePipetteNameSpecs, -} from '../../resources/instruments/hooks' +} from '/app/resources/instruments/hooks' import { FLOWS } from '../PipetteWizardFlows/constants' import { PipetteWizardFlows } from '../PipetteWizardFlows' import { GripperWizardFlows } from '../GripperWizardFlows' @@ -33,7 +33,7 @@ import type { PipetteName, LoadedPipette, } from '@opentrons/shared-data' -import type { Mount } from '../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' export const MountItem = styled.div<{ isReady: boolean }>` display: flex; diff --git a/app/src/organisms/InstrumentMountItem/__tests__/ProtocolInstrumentMountItem.test.tsx b/app/src/organisms/InstrumentMountItem/__tests__/ProtocolInstrumentMountItem.test.tsx index e7283b60466..eb4aa97ca65 100644 --- a/app/src/organisms/InstrumentMountItem/__tests__/ProtocolInstrumentMountItem.test.tsx +++ b/app/src/organisms/InstrumentMountItem/__tests__/ProtocolInstrumentMountItem.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { describe, it, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { LEFT } from '@opentrons/shared-data' import { fireEvent, screen } from '@testing-library/react' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { PipetteWizardFlows } from '../../PipetteWizardFlows' import { GripperWizardFlows } from '../../GripperWizardFlows' import { ProtocolInstrumentMountItem } from '..' diff --git a/app/src/organisms/InterventionModal/InterventionModal.stories.tsx b/app/src/organisms/InterventionModal/InterventionModal.stories.tsx index a7bbfddab3c..f9f13bb583e 100644 --- a/app/src/organisms/InterventionModal/InterventionModal.stories.tsx +++ b/app/src/organisms/InterventionModal/InterventionModal.stories.tsx @@ -5,14 +5,14 @@ import { QueryClient, QueryClientProvider } from 'react-query' import { fixture96Plate } from '@opentrons/shared-data' -import { configReducer } from '../../redux/config/reducer' +import { configReducer } from '/app/redux/config/reducer' import { mockRunData } from './__fixtures__' -import { mockConnectableRobot } from '../../redux/discovery/__fixtures__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import * as DiscoveryClientFixtures from '../../../../discovery-client/src/fixtures' import { HEALTH_STATUS_OK, ROBOT_MODEL_OT3, -} from '../../redux/discovery/constants' +} from '/app/redux/discovery/constants' import { InterventionModal as InterventionModalComponent } from './' import type { Store, StoreEnhancer } from 'redux' diff --git a/app/src/organisms/InterventionModal/MoveLabwareInterventionContent.tsx b/app/src/organisms/InterventionModal/MoveLabwareInterventionContent.tsx index 4f2a760582c..29049bd82a0 100644 --- a/app/src/organisms/InterventionModal/MoveLabwareInterventionContent.tsx +++ b/app/src/organisms/InterventionModal/MoveLabwareInterventionContent.tsx @@ -38,12 +38,12 @@ import { getLabwareNameFromRunData, getModuleModelFromRunData, } from './utils' -import { Divider } from '../../atoms/structure' +import { Divider } from '/app/atoms/structure' import { getLoadedLabware, getLoadedModule, -} from '../../molecules/Command/utils/accessors' -import { useNotifyDeckConfigurationQuery } from '../../resources/deck_configuration' +} from '/app/molecules/Command/utils/accessors' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { CompletedProtocolAnalysis, diff --git a/app/src/organisms/InterventionModal/__tests__/InterventionCommandMesage.test.tsx b/app/src/organisms/InterventionModal/__tests__/InterventionCommandMesage.test.tsx index 979fcda6edc..48f2508435f 100644 --- a/app/src/organisms/InterventionModal/__tests__/InterventionCommandMesage.test.tsx +++ b/app/src/organisms/InterventionModal/__tests__/InterventionCommandMesage.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { InterventionCommandMessage } from '../InterventionCommandMessage' import { longCommandMessage, diff --git a/app/src/organisms/InterventionModal/__tests__/InterventionCommandMessage.test.tsx b/app/src/organisms/InterventionModal/__tests__/InterventionCommandMessage.test.tsx index 979fcda6edc..48f2508435f 100644 --- a/app/src/organisms/InterventionModal/__tests__/InterventionCommandMessage.test.tsx +++ b/app/src/organisms/InterventionModal/__tests__/InterventionCommandMessage.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { InterventionCommandMessage } from '../InterventionCommandMessage' import { longCommandMessage, diff --git a/app/src/organisms/InterventionModal/__tests__/InterventionModal.test.tsx b/app/src/organisms/InterventionModal/__tests__/InterventionModal.test.tsx index e1a6830d251..0f7e6381b65 100644 --- a/app/src/organisms/InterventionModal/__tests__/InterventionModal.test.tsx +++ b/app/src/organisms/InterventionModal/__tests__/InterventionModal.test.tsx @@ -5,9 +5,9 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' import { RUN_STATUS_RUNNING, RUN_STATUS_STOPPED } from '@opentrons/api-client' import { getLabwareDefURI } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { mockTipRackDefinition } from '../../../redux/custom-labware/__fixtures__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockTipRackDefinition } from '/app/redux/custom-labware/__fixtures__' +import { i18n } from '/app/i18n' import { mockPauseCommandWithoutStartTime, mockPauseCommandWithStartTime, diff --git a/app/src/organisms/InterventionModal/index.tsx b/app/src/organisms/InterventionModal/index.tsx index ae7fe46acef..ee235540142 100644 --- a/app/src/organisms/InterventionModal/index.tsx +++ b/app/src/organisms/InterventionModal/index.tsx @@ -26,10 +26,10 @@ import { RUN_STATUS_SUCCEEDED, } from '@opentrons/api-client' -import { SmallButton } from '../../atoms/buttons' -import { OddModal } from '../../molecules/OddModal' -import { InterventionModal as InterventionModalMolecule } from '../../molecules/InterventionModal' -import { getIsOnDevice } from '../../redux/config' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { InterventionModal as InterventionModalMolecule } from '/app/molecules/InterventionModal' +import { getIsOnDevice } from '/app/redux/config' import { PauseInterventionContent } from './PauseInterventionContent' import { MoveLabwareInterventionContent } from './MoveLabwareInterventionContent' import { isInterventionCommand } from './utils' diff --git a/app/src/organisms/InterventionModal/utils/getLabwareNameFromRunData.ts b/app/src/organisms/InterventionModal/utils/getLabwareNameFromRunData.ts index 1c1831a1ff7..b6671a32a3b 100644 --- a/app/src/organisms/InterventionModal/utils/getLabwareNameFromRunData.ts +++ b/app/src/organisms/InterventionModal/utils/getLabwareNameFromRunData.ts @@ -1,6 +1,6 @@ import { getLabwareDefURI, getLabwareDisplayName } from '@opentrons/shared-data' -import { getLoadedLabware } from '../../../molecules/Command/utils/accessors' -import { getLabwareDefinitionsFromCommands } from '../../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLoadedLabware } from '/app/molecules/Command/utils/accessors' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import type { RunTimeCommand } from '@opentrons/shared-data' import type { RunData } from '@opentrons/api-client' diff --git a/app/src/organisms/InterventionModal/utils/getModuleDisplayLocationFromRunData.ts b/app/src/organisms/InterventionModal/utils/getModuleDisplayLocationFromRunData.ts index cbf58696040..3301cb6c77c 100644 --- a/app/src/organisms/InterventionModal/utils/getModuleDisplayLocationFromRunData.ts +++ b/app/src/organisms/InterventionModal/utils/getModuleDisplayLocationFromRunData.ts @@ -1,4 +1,4 @@ -import { getLoadedModule } from '../../../molecules/Command/utils/accessors' +import { getLoadedModule } from '/app/molecules/Command/utils/accessors' import type { RunData } from '@opentrons/api-client' diff --git a/app/src/organisms/InterventionModal/utils/getModuleModelFromRunData.ts b/app/src/organisms/InterventionModal/utils/getModuleModelFromRunData.ts index 21c2087a9e3..c709e5b9ab4 100644 --- a/app/src/organisms/InterventionModal/utils/getModuleModelFromRunData.ts +++ b/app/src/organisms/InterventionModal/utils/getModuleModelFromRunData.ts @@ -1,4 +1,4 @@ -import { getLoadedModule } from '../../../molecules/Command/utils/accessors' +import { getLoadedModule } from '/app/molecules/Command/utils/accessors' import type { RunData } from '@opentrons/api-client' import type { ModuleModel } from '@opentrons/shared-data' diff --git a/app/src/organisms/LabwareCard/CustomLabwareOverflowMenu.tsx b/app/src/organisms/LabwareCard/CustomLabwareOverflowMenu.tsx index d0634f3282e..13dfb3f3804 100644 --- a/app/src/organisms/LabwareCard/CustomLabwareOverflowMenu.tsx +++ b/app/src/organisms/LabwareCard/CustomLabwareOverflowMenu.tsx @@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next' import { useTrackEvent, ANALYTICS_OPEN_LABWARE_CREATOR_FROM_OVERFLOW_MENU, -} from '../../redux/analytics' +} from '/app/redux/analytics' import { AlertPrimaryButton, ALIGN_CENTER, @@ -29,14 +29,14 @@ import { useOnClickOutside, } from '@opentrons/components' -import { Divider } from '../../atoms/structure' +import { Divider } from '/app/atoms/structure' import { getTopPortalEl } from '../../App/portal' import { deleteCustomLabwareFile, openCustomLabwareDirectory, -} from '../../redux/custom-labware' +} from '/app/redux/custom-labware' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' const LABWARE_CREATOR_HREF = 'https://labware.opentrons.com/create/' diff --git a/app/src/organisms/LabwareCard/__tests__/CustomLabwareOverflowMenu.test.tsx b/app/src/organisms/LabwareCard/__tests__/CustomLabwareOverflowMenu.test.tsx index b21600a354e..d96be28d824 100644 --- a/app/src/organisms/LabwareCard/__tests__/CustomLabwareOverflowMenu.test.tsx +++ b/app/src/organisms/LabwareCard/__tests__/CustomLabwareOverflowMenu.test.tsx @@ -4,15 +4,15 @@ import { describe, it, vi, expect, beforeEach, afterEach } from 'vitest' import { useConditionalConfirm } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { useTrackEvent } from '../../../redux/analytics' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useTrackEvent } from '/app/redux/analytics' import { CustomLabwareOverflowMenu } from '../CustomLabwareOverflowMenu' import type { Mock } from 'vitest' import type * as OpentronsComponents from '@opentrons/components' -vi.mock('../../../redux/analytics') +vi.mock('/app/redux/analytics') const mockConfirm = vi.fn() const mockCancel = vi.fn() diff --git a/app/src/organisms/LabwareCard/__tests__/LabwareCard.test.tsx b/app/src/organisms/LabwareCard/__tests__/LabwareCard.test.tsx index 00cfd4f626b..652d89386a5 100644 --- a/app/src/organisms/LabwareCard/__tests__/LabwareCard.test.tsx +++ b/app/src/organisms/LabwareCard/__tests__/LabwareCard.test.tsx @@ -1,19 +1,16 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach } from 'vitest' -import { - renderWithProviders, - nestedTextMatcher, -} from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { useAllLabware } from '../../../pages/Desktop/Labware/hooks' -import { mockDefinition } from '../../../redux/custom-labware/__fixtures__' +import { renderWithProviders, nestedTextMatcher } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useAllLabware } from '/app/pages/Desktop/Labware/hooks' +import { mockDefinition } from '/app/redux/custom-labware/__fixtures__' import { CustomLabwareOverflowMenu } from '../CustomLabwareOverflowMenu' import { LabwareCard } from '..' import type * as OpentronsComponents from '@opentrons/components' -vi.mock('../../../pages/Desktop/Labware/hooks') +vi.mock('/app/pages/Desktop/Labware/hooks') vi.mock('../CustomLabwareOverflowMenu') vi.mock('@opentrons/components', async importOriginal => { diff --git a/app/src/organisms/LabwareCard/index.tsx b/app/src/organisms/LabwareCard/index.tsx index 22b06710080..6b38a8c6ce9 100644 --- a/app/src/organisms/LabwareCard/index.tsx +++ b/app/src/organisms/LabwareCard/index.tsx @@ -22,7 +22,7 @@ import { import { UNIVERSAL_FLAT_ADAPTER_X_DIMENSION } from '../LabwareDetails/Gallery' import { CustomLabwareOverflowMenu } from './CustomLabwareOverflowMenu' -import type { LabwareDefAndDate } from '../../pages/Desktop/Labware/hooks' +import type { LabwareDefAndDate } from '/app/pages/Desktop/Labware/hooks' export interface LabwareCardProps { labware: LabwareDefAndDate diff --git a/app/src/organisms/LabwareDetails/Dimensions.tsx b/app/src/organisms/LabwareDetails/Dimensions.tsx index 7a19466c9c7..c0f5fc18d20 100644 --- a/app/src/organisms/LabwareDetails/Dimensions.tsx +++ b/app/src/organisms/LabwareDetails/Dimensions.tsx @@ -4,7 +4,7 @@ import round from 'lodash/round' import { Box, SPACING, getFootprintDiagram } from '@opentrons/components' import { LabeledValue } from './StyledComponents/LabeledValue' import { ExpandingTitle } from './StyledComponents/ExpandingTitle' -import type { LabwareDefinition } from '../../pages/Desktop/Labware/types' +import type { LabwareDefinition } from '/app/pages/Desktop/Labware/types' const toFixed = (n: number): string => round(n, 2).toFixed(2) diff --git a/app/src/organisms/LabwareDetails/Gallery.tsx b/app/src/organisms/LabwareDetails/Gallery.tsx index 8bf8c8204f4..3feddb482c5 100644 --- a/app/src/organisms/LabwareDetails/Gallery.tsx +++ b/app/src/organisms/LabwareDetails/Gallery.tsx @@ -13,7 +13,7 @@ import { } from '@opentrons/components' import { labwareImages } from './labware-images' -import type { LabwareDefinition } from '../../pages/Desktop/Labware/types' +import type { LabwareDefinition } from '/app/pages/Desktop/Labware/types' export const UNIVERSAL_FLAT_ADAPTER_X_DIMENSION = 127.4 diff --git a/app/src/organisms/LabwareDetails/InsertDetails.tsx b/app/src/organisms/LabwareDetails/InsertDetails.tsx index c9a5adf3e10..705c6f7b49d 100644 --- a/app/src/organisms/LabwareDetails/InsertDetails.tsx +++ b/app/src/organisms/LabwareDetails/InsertDetails.tsx @@ -12,7 +12,7 @@ import { WellProperties } from './WellProperties' import { WellDimensions } from './WellDimensions' import { ManufacturerDetails } from './ManufacturerDetails' -import type { LabwareDefinition } from '../../pages/Desktop/Labware/types' +import type { LabwareDefinition } from '/app/pages/Desktop/Labware/types' export interface InsertDetailsProps { definition: LabwareDefinition diff --git a/app/src/organisms/LabwareDetails/ManufacturerDetails.tsx b/app/src/organisms/LabwareDetails/ManufacturerDetails.tsx index d7ffbc1b6bc..bacccd4a951 100644 --- a/app/src/organisms/LabwareDetails/ManufacturerDetails.tsx +++ b/app/src/organisms/LabwareDetails/ManufacturerDetails.tsx @@ -12,7 +12,7 @@ import { SPACING, LegacyStyledText, } from '@opentrons/components' -import type { LabwareBrand } from '../../pages/Desktop/Labware/types' +import type { LabwareBrand } from '/app/pages/Desktop/Labware/types' export interface ManufacturerDetailsProps { brand: LabwareBrand diff --git a/app/src/organisms/LabwareDetails/StyledComponents/ExpandingTitle.tsx b/app/src/organisms/LabwareDetails/StyledComponents/ExpandingTitle.tsx index 9863829f079..c92a63434cb 100644 --- a/app/src/organisms/LabwareDetails/StyledComponents/ExpandingTitle.tsx +++ b/app/src/organisms/LabwareDetails/StyledComponents/ExpandingTitle.tsx @@ -11,7 +11,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Divider } from '../../../atoms/structure' +import { Divider } from '/app/atoms/structure' interface ExpandingTitleProps { label: React.ReactNode diff --git a/app/src/organisms/LabwareDetails/StyledComponents/__tests__/ExpandingTitle.test.tsx b/app/src/organisms/LabwareDetails/StyledComponents/__tests__/ExpandingTitle.test.tsx index 792a8eab2fa..af0283e6a32 100644 --- a/app/src/organisms/LabwareDetails/StyledComponents/__tests__/ExpandingTitle.test.tsx +++ b/app/src/organisms/LabwareDetails/StyledComponents/__tests__/ExpandingTitle.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, beforeEach } from 'vitest' import { getFootprintDiagram } from '@opentrons/components' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { ExpandingTitle } from '../ExpandingTitle' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/LabwareDetails/StyledComponents/__tests__/LabeledValue.test.tsx b/app/src/organisms/LabwareDetails/StyledComponents/__tests__/LabeledValue.test.tsx index c410a7f556f..584f800e864 100644 --- a/app/src/organisms/LabwareDetails/StyledComponents/__tests__/LabeledValue.test.tsx +++ b/app/src/organisms/LabwareDetails/StyledComponents/__tests__/LabeledValue.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { LabeledValue } from '../LabeledValue' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/LabwareDetails/WellDimensions.tsx b/app/src/organisms/LabwareDetails/WellDimensions.tsx index 176cba33bf7..5fdea6cadf9 100644 --- a/app/src/organisms/LabwareDetails/WellDimensions.tsx +++ b/app/src/organisms/LabwareDetails/WellDimensions.tsx @@ -8,7 +8,7 @@ import { ExpandingTitle } from './StyledComponents/ExpandingTitle' import type { LabwareWellGroupProperties, LabwareParameters, -} from '../../pages/Desktop/Labware/types' +} from '/app/pages/Desktop/Labware/types' const toFixed = (n: number): string => round(n, 2).toFixed(2) diff --git a/app/src/organisms/LabwareDetails/WellProperties.tsx b/app/src/organisms/LabwareDetails/WellProperties.tsx index 112e4f538e7..75da0a5edce 100644 --- a/app/src/organisms/LabwareDetails/WellProperties.tsx +++ b/app/src/organisms/LabwareDetails/WellProperties.tsx @@ -17,7 +17,7 @@ import type { LabwareDefinition, LabwareWellGroupProperties, LabwareVolumeUnits, -} from '../../pages/Desktop/Labware/types' +} from '/app/pages/Desktop/Labware/types' export interface AllWellPropertiesProps { definition: LabwareDefinition diff --git a/app/src/organisms/LabwareDetails/WellSpacing.tsx b/app/src/organisms/LabwareDetails/WellSpacing.tsx index 86089ae16d8..94ccccfb046 100644 --- a/app/src/organisms/LabwareDetails/WellSpacing.tsx +++ b/app/src/organisms/LabwareDetails/WellSpacing.tsx @@ -5,7 +5,7 @@ import { getSpacingDiagram } from '@opentrons/components' import { LabeledValue } from './StyledComponents/LabeledValue' import { ExpandingTitle } from './StyledComponents/ExpandingTitle' -import type { LabwareWellGroupProperties } from '../../pages/Desktop/Labware/types' +import type { LabwareWellGroupProperties } from '/app/pages/Desktop/Labware/types' const toFixed = (n: number): string => round(n, 2).toFixed(2) diff --git a/app/src/organisms/LabwareDetails/__tests__/Dimensions.test.tsx b/app/src/organisms/LabwareDetails/__tests__/Dimensions.test.tsx index f6c864c9162..09e3f5c9771 100644 --- a/app/src/organisms/LabwareDetails/__tests__/Dimensions.test.tsx +++ b/app/src/organisms/LabwareDetails/__tests__/Dimensions.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockDefinition } from '../../../redux/custom-labware/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockDefinition } from '/app/redux/custom-labware/__fixtures__' import { Dimensions } from '../Dimensions' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/LabwareDetails/__tests__/Gallery.test.tsx b/app/src/organisms/LabwareDetails/__tests__/Gallery.test.tsx index 8af2a4ad0d3..771ff4f8717 100644 --- a/app/src/organisms/LabwareDetails/__tests__/Gallery.test.tsx +++ b/app/src/organisms/LabwareDetails/__tests__/Gallery.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { mockDefinition } from '../../../redux/custom-labware/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockDefinition } from '/app/redux/custom-labware/__fixtures__' import { labwareImages } from '../labware-images' import { Gallery } from '../Gallery' diff --git a/app/src/organisms/LabwareDetails/__tests__/LabwareDetails.test.tsx b/app/src/organisms/LabwareDetails/__tests__/LabwareDetails.test.tsx index d3bf97bf5ef..5c7ed3e868b 100644 --- a/app/src/organisms/LabwareDetails/__tests__/LabwareDetails.test.tsx +++ b/app/src/organisms/LabwareDetails/__tests__/LabwareDetails.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, afterEach, vi, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { useAllLabware } from '../../../pages/Desktop/Labware/hooks' -import { mockOpentronsLabwareDetailsDefinition } from '../../../redux/custom-labware/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useAllLabware } from '/app/pages/Desktop/Labware/hooks' +import { mockOpentronsLabwareDetailsDefinition } from '/app/redux/custom-labware/__fixtures__' import { CustomLabwareOverflowMenu } from '../../LabwareCard/CustomLabwareOverflowMenu' import { Dimensions } from '../Dimensions' import { Gallery } from '../Gallery' @@ -17,7 +17,7 @@ import { WellSpacing } from '../WellSpacing' import { LabwareDetails } from '..' -vi.mock('../../../pages/Desktop/Labware/hooks') +vi.mock('/app/pages/Desktop/Labware/hooks') vi.mock('../../LabwareCard/CustomLabwareOverflowMenu') vi.mock('../Dimensions') vi.mock('../Gallery') diff --git a/app/src/organisms/LabwareDetails/__tests__/ManufacturerDetails.test.tsx b/app/src/organisms/LabwareDetails/__tests__/ManufacturerDetails.test.tsx index 925b8351bf4..24faff9fbcd 100644 --- a/app/src/organisms/LabwareDetails/__tests__/ManufacturerDetails.test.tsx +++ b/app/src/organisms/LabwareDetails/__tests__/ManufacturerDetails.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ManufacturerDetails } from '../ManufacturerDetails' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/LabwareDetails/__tests__/WellCount.test.tsx b/app/src/organisms/LabwareDetails/__tests__/WellCount.test.tsx index b02d071a22b..fe8fdcd43d2 100644 --- a/app/src/organisms/LabwareDetails/__tests__/WellCount.test.tsx +++ b/app/src/organisms/LabwareDetails/__tests__/WellCount.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { WellCount } from '../WellCount' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/LabwareDetails/__tests__/WellDimensions.test.tsx b/app/src/organisms/LabwareDetails/__tests__/WellDimensions.test.tsx index f31ef09c86b..1dee29cfa69 100644 --- a/app/src/organisms/LabwareDetails/__tests__/WellDimensions.test.tsx +++ b/app/src/organisms/LabwareDetails/__tests__/WellDimensions.test.tsx @@ -1,13 +1,13 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockDefinition, mockCircularLabwareWellGroupProperties, mockRectangularLabwareWellGroupProperties, -} from '../../../redux/custom-labware/__fixtures__' +} from '/app/redux/custom-labware/__fixtures__' import { WellDimensions } from '../WellDimensions' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/LabwareDetails/__tests__/WellProperties.test.tsx b/app/src/organisms/LabwareDetails/__tests__/WellProperties.test.tsx index 03852fd7f6f..74f1b1014cd 100644 --- a/app/src/organisms/LabwareDetails/__tests__/WellProperties.test.tsx +++ b/app/src/organisms/LabwareDetails/__tests__/WellProperties.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockCircularLabwareWellGroupProperties } from '../../../redux/custom-labware/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockCircularLabwareWellGroupProperties } from '/app/redux/custom-labware/__fixtures__' import { WellProperties } from '../WellProperties' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/LabwareDetails/__tests__/WellSpacing.test.tsx b/app/src/organisms/LabwareDetails/__tests__/WellSpacing.test.tsx index c2273e705ee..a2696d1aa98 100644 --- a/app/src/organisms/LabwareDetails/__tests__/WellSpacing.test.tsx +++ b/app/src/organisms/LabwareDetails/__tests__/WellSpacing.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockCircularLabwareWellGroupProperties } from '../../../redux/custom-labware/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockCircularLabwareWellGroupProperties } from '/app/redux/custom-labware/__fixtures__' import { WellSpacing } from '../WellSpacing' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/LabwareDetails/helpers/labels.ts b/app/src/organisms/LabwareDetails/helpers/labels.ts index 1397725665b..27cf6d76bb8 100644 --- a/app/src/organisms/LabwareDetails/helpers/labels.ts +++ b/app/src/organisms/LabwareDetails/helpers/labels.ts @@ -2,7 +2,7 @@ import uniqBy from 'lodash/uniqBy' import type { LabwareWellGroupProperties, LabwareDefinition, -} from '../../../pages/Desktop/Labware/types' +} from '/app/pages/Desktop/Labware/types' const WELL_TYPE_BY_CATEGORY = { tubeRack: 'tube', tipRack: 'tip', diff --git a/app/src/organisms/LabwareDetails/index.tsx b/app/src/organisms/LabwareDetails/index.tsx index 8da23ed47b0..fc8e73a16a4 100644 --- a/app/src/organisms/LabwareDetails/index.tsx +++ b/app/src/organisms/LabwareDetails/index.tsx @@ -24,7 +24,7 @@ import { useHoverTooltip, } from '@opentrons/components' import { getUniqueWellProperties } from '@opentrons/shared-data' -import { Slideout } from '../../atoms/Slideout' +import { Slideout } from '/app/atoms/Slideout' import { getWellLabel } from './helpers/labels' import { WellCount } from './WellCount' import { WellProperties } from './WellProperties' @@ -35,7 +35,7 @@ import { ManufacturerDetails } from './ManufacturerDetails' import { InsertDetails } from './InsertDetails' import { Gallery } from './Gallery' import { CustomLabwareOverflowMenu } from '../LabwareCard/CustomLabwareOverflowMenu' -import type { LabwareDefAndDate } from '../../pages/Desktop/Labware/hooks' +import type { LabwareDefAndDate } from '/app/pages/Desktop/Labware/hooks' const CLOSE_ICON_STYLE = css` border-radius: 50%; diff --git a/app/src/organisms/LabwareOffsetTabs/__tests__/LabwareOffsetTabs.test.tsx b/app/src/organisms/LabwareOffsetTabs/__tests__/LabwareOffsetTabs.test.tsx index aa313000b9c..3029cecdd2f 100644 --- a/app/src/organisms/LabwareOffsetTabs/__tests__/LabwareOffsetTabs.test.tsx +++ b/app/src/organisms/LabwareOffsetTabs/__tests__/LabwareOffsetTabs.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { LabwareOffsetTabs } from '..' const mockTableComponent =
Table Component
diff --git a/app/src/organisms/LabwarePositionCheck/AttachProbe.tsx b/app/src/organisms/LabwarePositionCheck/AttachProbe.tsx index 1b232f00d51..7c374a6cf99 100644 --- a/app/src/organisms/LabwarePositionCheck/AttachProbe.tsx +++ b/app/src/organisms/LabwarePositionCheck/AttachProbe.tsx @@ -10,18 +10,18 @@ import { getPipetteNameSpecs } from '@opentrons/shared-data' import { css } from 'styled-components' import { ProbeNotAttached } from '../PipetteWizardFlows/ProbeNotAttached' import { RobotMotionLoader } from './RobotMotionLoader' -import attachProbe1 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_1.webm' -import attachProbe8 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_8.webm' -import attachProbe96 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_96.webm' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import attachProbe1 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_1.webm' +import attachProbe8 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_8.webm' +import attachProbe96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_96.webm' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import type { CompletedProtocolAnalysis, CreateCommand, } from '@opentrons/shared-data' import type { LabwareOffset } from '@opentrons/api-client' -import type { Jog } from '../../molecules/JogControls/types' -import type { useChainRunCommands } from '../../resources/runs' +import type { Jog } from '/app/molecules/JogControls/types' +import type { useChainRunCommands } from '/app/resources/runs' import type { AttachProbeStep, RegisterPositionAction, diff --git a/app/src/organisms/LabwarePositionCheck/CheckItem.tsx b/app/src/organisms/LabwarePositionCheck/CheckItem.tsx index 4d3e6af1a94..45c237d5a93 100644 --- a/app/src/organisms/LabwarePositionCheck/CheckItem.tsx +++ b/app/src/organisms/LabwarePositionCheck/CheckItem.tsx @@ -23,10 +23,10 @@ import { } from '@opentrons/shared-data' import { useSelector } from 'react-redux' import { getLabwareDef } from './utils/labware' -import { getLabwareDefinitionsFromCommands } from '../../molecules/Command/utils/getLabwareDefinitionsFromCommands' -import { UnorderedList } from '../../molecules/UnorderedList' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { UnorderedList } from '/app/molecules/UnorderedList' import { getCurrentOffsetForLabwareInLocation } from '../Devices/ProtocolRun/utils/getCurrentOffsetForLabwareInLocation' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { getDisplayLocation } from './utils/getDisplayLocation' import type { LabwareOffset } from '@opentrons/api-client' @@ -37,13 +37,13 @@ import type { MoveLabwareCreateCommand, RobotType, } from '@opentrons/shared-data' -import type { useChainRunCommands } from '../../resources/runs' +import type { useChainRunCommands } from '/app/resources/runs' import type { CheckLabwareStep, RegisterPositionAction, WorkingOffset, } from './types' -import type { Jog } from '../../molecules/JogControls/types' +import type { Jog } from '/app/molecules/JogControls/types' import type { TFunction } from 'i18next' const PROBE_LENGTH_MM = 44.5 diff --git a/app/src/organisms/LabwarePositionCheck/DetachProbe.tsx b/app/src/organisms/LabwarePositionCheck/DetachProbe.tsx index 303fbf4f84e..da0952ca407 100644 --- a/app/src/organisms/LabwarePositionCheck/DetachProbe.tsx +++ b/app/src/organisms/LabwarePositionCheck/DetachProbe.tsx @@ -9,14 +9,14 @@ import { } from '@opentrons/components' import { RobotMotionLoader } from './RobotMotionLoader' import { getPipetteNameSpecs } from '@opentrons/shared-data' -import detachProbe1 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_1.webm' -import detachProbe8 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_8.webm' -import detachProbe96 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_96.webm' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import detachProbe1 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_1.webm' +import detachProbe8 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_8.webm' +import detachProbe96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_96.webm' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import type { CompletedProtocolAnalysis } from '@opentrons/shared-data' -import type { Jog } from '../../molecules/JogControls/types' -import type { useChainRunCommands } from '../../resources/runs' +import type { Jog } from '/app/molecules/JogControls/types' +import type { useChainRunCommands } from '/app/resources/runs' import type { DetachProbeStep, RegisterPositionAction, diff --git a/app/src/organisms/LabwarePositionCheck/ExitConfirmation.tsx b/app/src/organisms/LabwarePositionCheck/ExitConfirmation.tsx index 1f03223c0c7..47cb0c11cab 100644 --- a/app/src/organisms/LabwarePositionCheck/ExitConfirmation.tsx +++ b/app/src/organisms/LabwarePositionCheck/ExitConfirmation.tsx @@ -19,8 +19,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { useSelector } from 'react-redux' -import { getIsOnDevice } from '../../redux/config' -import { SmallButton } from '../../atoms/buttons' +import { getIsOnDevice } from '/app/redux/config' +import { SmallButton } from '/app/atoms/buttons' interface ExitConfirmationProps { onGoBack: () => void diff --git a/app/src/organisms/LabwarePositionCheck/FatalErrorModal.tsx b/app/src/organisms/LabwarePositionCheck/FatalErrorModal.tsx index 50d6d214bc9..96e6f920d47 100644 --- a/app/src/organisms/LabwarePositionCheck/FatalErrorModal.tsx +++ b/app/src/organisms/LabwarePositionCheck/FatalErrorModal.tsx @@ -21,8 +21,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { getTopPortalEl } from '../../App/portal' -import { WizardHeader } from '../../molecules/WizardHeader' -import { i18n } from '../../i18n' +import { WizardHeader } from '/app/molecules/WizardHeader' +import { i18n } from '/app/i18n' const SUPPORT_EMAIL = 'support@opentrons.com' interface FatalErrorProps { diff --git a/app/src/organisms/LabwarePositionCheck/IntroScreen/index.tsx b/app/src/organisms/LabwarePositionCheck/IntroScreen/index.tsx index e11c60cdf50..75fc6b8a62e 100644 --- a/app/src/organisms/LabwarePositionCheck/IntroScreen/index.tsx +++ b/app/src/organisms/LabwarePositionCheck/IntroScreen/index.tsx @@ -20,26 +20,26 @@ import { } from '@opentrons/components' import { RobotMotionLoader } from '../RobotMotionLoader' import { getPrepCommands } from './getPrepCommands' -import { WizardRequiredEquipmentList } from '../../../molecules/WizardRequiredEquipmentList' +import { WizardRequiredEquipmentList } from '/app/molecules/WizardRequiredEquipmentList' import { getLatestCurrentOffsets } from '../../Devices/ProtocolRun/SetupLabwarePositionCheck/utils' -import { getIsOnDevice } from '../../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { NeedHelpLink } from '../../CalibrationPanels' import { useSelector } from 'react-redux' import { TwoUpTileLayout } from '../TwoUpTileLayout' import { getTopPortalEl } from '../../../App/portal' -import { SmallButton } from '../../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' import { CALIBRATION_PROBE } from '../../PipetteWizardFlows/constants' import { TerseOffsetTable } from '../ResultsSummary' -import { getLabwareDefinitionsFromCommands } from '../../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import type { LabwareOffset } from '@opentrons/api-client' import type { CompletedProtocolAnalysis, LabwareDefinition2, } from '@opentrons/shared-data' -import type { useChainRunCommands } from '../../../resources/runs' +import type { useChainRunCommands } from '/app/resources/runs' import type { RegisterPositionAction } from '../types' -import type { Jog } from '../../../molecules/JogControls' +import type { Jog } from '/app/molecules/JogControls' export const INTERVAL_MS = 3000 diff --git a/app/src/organisms/LabwarePositionCheck/JogToWell.tsx b/app/src/organisms/LabwarePositionCheck/JogToWell.tsx index 81e89741546..c61c3751498 100644 --- a/app/src/organisms/LabwarePositionCheck/JogToWell.tsx +++ b/app/src/organisms/LabwarePositionCheck/JogToWell.tsx @@ -29,21 +29,21 @@ import { getVectorSum, } from '@opentrons/shared-data' -import levelWithTip from '../../assets/images/lpc_level_with_tip.svg' -import levelWithLabware from '../../assets/images/lpc_level_with_labware.svg' -import levelProbeWithTip from '../../assets/images/lpc_level_probe_with_tip.svg' -import levelProbeWithLabware from '../../assets/images/lpc_level_probe_with_labware.svg' -import { getIsOnDevice } from '../../redux/config' +import levelWithTip from '/app/assets/images/lpc_level_with_tip.svg' +import levelWithLabware from '/app/assets/images/lpc_level_with_labware.svg' +import levelProbeWithTip from '/app/assets/images/lpc_level_probe_with_tip.svg' +import levelProbeWithLabware from '/app/assets/images/lpc_level_probe_with_labware.svg' +import { getIsOnDevice } from '/app/redux/config' import { getTopPortalEl } from '../../App/portal' -import { SmallButton } from '../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' import { NeedHelpLink } from '../CalibrationPanels' -import { JogControls } from '../../molecules/JogControls' +import { JogControls } from '/app/molecules/JogControls' import { LiveOffsetValue } from './LiveOffsetValue' import type { PipetteName, LabwareDefinition2 } from '@opentrons/shared-data' import type { WellStroke } from '@opentrons/components' import type { VectorOffset } from '@opentrons/api-client' -import type { Jog } from '../../molecules/JogControls' +import type { Jog } from '/app/molecules/JogControls' const DECK_MAP_VIEWBOX = '-10 -10 150 105' const LPC_HELP_LINK_URL = diff --git a/app/src/organisms/LabwarePositionCheck/LabwarePositionCheckComponent.tsx b/app/src/organisms/LabwarePositionCheck/LabwarePositionCheckComponent.tsx index b63c87ecdf9..3174ef5f9de 100644 --- a/app/src/organisms/LabwarePositionCheck/LabwarePositionCheckComponent.tsx +++ b/app/src/organisms/LabwarePositionCheck/LabwarePositionCheckComponent.tsx @@ -12,12 +12,12 @@ import { import { FIXED_TRASH_ID, FLEX_ROBOT_TYPE } from '@opentrons/shared-data' import { getTopPortalEl } from '../../App/portal' -// import { useTrackEvent } from '../../redux/analytics' +// import { useTrackEvent } from '/app/redux/analytics' import { IntroScreen } from './IntroScreen' import { ExitConfirmation } from './ExitConfirmation' import { CheckItem } from './CheckItem' -import { WizardHeader } from '../../molecules/WizardHeader' -import { getIsOnDevice } from '../../redux/config' +import { WizardHeader } from '/app/molecules/WizardHeader' +import { getIsOnDevice } from '/app/redux/config' import { AttachProbe } from './AttachProbe' import { DetachProbe } from './DetachProbe' import { PickUpTip } from './PickUpTip' @@ -28,7 +28,7 @@ import { RobotMotionLoader } from './RobotMotionLoader' import { useChainMaintenanceCommands, useNotifyCurrentMaintenanceRun, -} from '../../resources/maintenance_runs' +} from '/app/resources/maintenance_runs' import { getLabwarePositionCheckSteps } from './getLabwarePositionCheckSteps' import type { @@ -43,7 +43,7 @@ import type { LabwareOffset, CommandData, } from '@opentrons/api-client' -import type { Axis, Sign, StepSize } from '../../molecules/JogControls/types' +import type { Axis, Sign, StepSize } from '/app/molecules/JogControls/types' import type { RegisterPositionAction, WorkingOffset } from './types' const RUN_REFETCH_INTERVAL = 5000 diff --git a/app/src/organisms/LabwarePositionCheck/LiveOffsetValue.tsx b/app/src/organisms/LabwarePositionCheck/LiveOffsetValue.tsx index e2500cd33cd..294755a73ca 100644 --- a/app/src/organisms/LabwarePositionCheck/LiveOffsetValue.tsx +++ b/app/src/organisms/LabwarePositionCheck/LiveOffsetValue.tsx @@ -14,7 +14,7 @@ import { import { useTranslation } from 'react-i18next' import { useSelector } from 'react-redux' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import type { StyleProps } from '@opentrons/components' diff --git a/app/src/organisms/LabwarePositionCheck/PickUpTip.tsx b/app/src/organisms/LabwarePositionCheck/PickUpTip.tsx index 4df41813983..10e3fc73838 100644 --- a/app/src/organisms/LabwarePositionCheck/PickUpTip.tsx +++ b/app/src/organisms/LabwarePositionCheck/PickUpTip.tsx @@ -18,14 +18,14 @@ import { import { RobotMotionLoader } from './RobotMotionLoader' import { PrepareSpace } from './PrepareSpace' import { JogToWell } from './JogToWell' -import { UnorderedList } from '../../molecules/UnorderedList' +import { UnorderedList } from '/app/molecules/UnorderedList' import { getCurrentOffsetForLabwareInLocation } from '../Devices/ProtocolRun/utils/getCurrentOffsetForLabwareInLocation' import { TipConfirmation } from './TipConfirmation' import { getLabwareDef } from './utils/labware' -import { getLabwareDefinitionsFromCommands } from '../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import { getDisplayLocation } from './utils/getDisplayLocation' import { useSelector } from 'react-redux' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import type { CompletedProtocolAnalysis, @@ -33,8 +33,8 @@ import type { MoveLabwareCreateCommand, RobotType, } from '@opentrons/shared-data' -import type { useChainRunCommands } from '../../resources/runs' -import type { Jog } from '../../molecules/JogControls/types' +import type { useChainRunCommands } from '/app/resources/runs' +import type { Jog } from '/app/molecules/JogControls/types' import type { PickUpTipStep, RegisterPositionAction, diff --git a/app/src/organisms/LabwarePositionCheck/PrepareSpace.tsx b/app/src/organisms/LabwarePositionCheck/PrepareSpace.tsx index ad3df11c6aa..12e630b6f00 100644 --- a/app/src/organisms/LabwarePositionCheck/PrepareSpace.tsx +++ b/app/src/organisms/LabwarePositionCheck/PrepareSpace.tsx @@ -18,10 +18,10 @@ import { } from '@opentrons/components' import { THERMOCYCLER_MODULE_TYPE, getModuleType } from '@opentrons/shared-data' -import { getIsOnDevice } from '../../redux/config' -import { SmallButton } from '../../atoms/buttons' +import { getIsOnDevice } from '/app/redux/config' +import { SmallButton } from '/app/atoms/buttons' import { NeedHelpLink } from '../CalibrationPanels' -import { useNotifyDeckConfigurationQuery } from '../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { CompletedProtocolAnalysis, diff --git a/app/src/organisms/LabwarePositionCheck/ResultsSummary.tsx b/app/src/organisms/LabwarePositionCheck/ResultsSummary.tsx index 3459b095f61..bbf9fd55e38 100644 --- a/app/src/organisms/LabwarePositionCheck/ResultsSummary.tsx +++ b/app/src/organisms/LabwarePositionCheck/ResultsSummary.tsx @@ -30,15 +30,15 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { PythonLabwareOffsetSnippet } from '../../molecules/PythonLabwareOffsetSnippet' +import { PythonLabwareOffsetSnippet } from '/app/molecules/PythonLabwareOffsetSnippet' import { getIsLabwareOffsetCodeSnippetsOn, getIsOnDevice, -} from '../../redux/config' -import { SmallButton } from '../../atoms/buttons' +} from '/app/redux/config' +import { SmallButton } from '/app/atoms/buttons' import { LabwareOffsetTabs } from '../LabwareOffsetTabs' import { getCurrentOffsetForLabwareInLocation } from '../Devices/ProtocolRun/utils/getCurrentOffsetForLabwareInLocation' -import { getLabwareDefinitionsFromCommands } from '../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import { getDisplayLocation } from './utils/getDisplayLocation' import type { diff --git a/app/src/organisms/LabwarePositionCheck/ReturnTip.tsx b/app/src/organisms/LabwarePositionCheck/ReturnTip.tsx index d3b56d9f88f..fe01316894d 100644 --- a/app/src/organisms/LabwarePositionCheck/ReturnTip.tsx +++ b/app/src/organisms/LabwarePositionCheck/ReturnTip.tsx @@ -12,14 +12,14 @@ import { getModuleType, HEATERSHAKER_MODULE_TYPE, } from '@opentrons/shared-data' -import { UnorderedList } from '../../molecules/UnorderedList' +import { UnorderedList } from '/app/molecules/UnorderedList' import { getLabwareDef } from './utils/labware' -import { getLabwareDefinitionsFromCommands } from '../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import { getDisplayLocation } from './utils/getDisplayLocation' import { RobotMotionLoader } from './RobotMotionLoader' import { PrepareSpace } from './PrepareSpace' import { useSelector } from 'react-redux' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import type { CompletedProtocolAnalysis, @@ -28,7 +28,7 @@ import type { MoveLabwareCreateCommand, } from '@opentrons/shared-data' import type { VectorOffset } from '@opentrons/api-client' -import type { useChainRunCommands } from '../../resources/runs' +import type { useChainRunCommands } from '/app/resources/runs' import type { ReturnTipStep } from './types' import type { TFunction } from 'i18next' diff --git a/app/src/organisms/LabwarePositionCheck/TerseOffsetTable.stories.tsx b/app/src/organisms/LabwarePositionCheck/TerseOffsetTable.stories.tsx index ef88c401878..3e324412002 100644 --- a/app/src/organisms/LabwarePositionCheck/TerseOffsetTable.stories.tsx +++ b/app/src/organisms/LabwarePositionCheck/TerseOffsetTable.stories.tsx @@ -13,7 +13,7 @@ import { getLabwareDefURI, } from '@opentrons/shared-data' -import { SmallButton } from '../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' import { TerseOffsetTable } from './ResultsSummary' import type { Story, Meta } from '@storybook/react' diff --git a/app/src/organisms/LabwarePositionCheck/TipConfirmation.tsx b/app/src/organisms/LabwarePositionCheck/TipConfirmation.tsx index f34d64ed1b1..35cdc3230e0 100644 --- a/app/src/organisms/LabwarePositionCheck/TipConfirmation.tsx +++ b/app/src/organisms/LabwarePositionCheck/TipConfirmation.tsx @@ -15,10 +15,10 @@ import { useTranslation } from 'react-i18next' import { NeedHelpLink } from '../CalibrationPanels' import { useSelector } from 'react-redux' -import { getIsOnDevice } from '../../redux/config' -import { SimpleWizardBody } from '../../molecules/SimpleWizardBody' -import { SmallButton } from '../../atoms/buttons' -import { i18n } from '../../i18n' +import { getIsOnDevice } from '/app/redux/config' +import { SimpleWizardBody } from '/app/molecules/SimpleWizardBody' +import { SmallButton } from '/app/atoms/buttons' +import { i18n } from '/app/i18n' const LPC_HELP_LINK_URL = 'https://support.opentrons.com/s/article/How-Labware-Offsets-work-on-the-OT-2' diff --git a/app/src/organisms/LabwarePositionCheck/__tests__/CheckItem.test.tsx b/app/src/organisms/LabwarePositionCheck/__tests__/CheckItem.test.tsx index 748da0c01a5..cf0b61a8036 100644 --- a/app/src/organisms/LabwarePositionCheck/__tests__/CheckItem.test.tsx +++ b/app/src/organisms/LabwarePositionCheck/__tests__/CheckItem.test.tsx @@ -9,18 +9,15 @@ import { THERMOCYCLER_MODULE_V2, } from '@opentrons/shared-data' -import { - nestedTextMatcher, - renderWithProviders, -} from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { nestedTextMatcher, renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CheckItem } from '../CheckItem' import { SECTIONS } from '../constants' import { mockCompletedAnalysis, mockExistingOffsets } from '../__fixtures__' import type { Mock } from 'vitest' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../../Devices/hooks') const mockStartPosition = { x: 10, y: 20, z: 30 } diff --git a/app/src/organisms/LabwarePositionCheck/__tests__/ExitConfirmation.test.tsx b/app/src/organisms/LabwarePositionCheck/__tests__/ExitConfirmation.test.tsx index 409ef9d0efa..2fd71e3acf0 100644 --- a/app/src/organisms/LabwarePositionCheck/__tests__/ExitConfirmation.test.tsx +++ b/app/src/organisms/LabwarePositionCheck/__tests__/ExitConfirmation.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, afterEach, expect, vi } from 'vitest' import { ExitConfirmation } from '../ExitConfirmation' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/LabwarePositionCheck/__tests__/PickUpTip.test.tsx b/app/src/organisms/LabwarePositionCheck/__tests__/PickUpTip.test.tsx index b5db396e855..1bc2468a6ab 100644 --- a/app/src/organisms/LabwarePositionCheck/__tests__/PickUpTip.test.tsx +++ b/app/src/organisms/LabwarePositionCheck/__tests__/PickUpTip.test.tsx @@ -2,21 +2,18 @@ import * as React from 'react' import { fireEvent, screen, waitFor } from '@testing-library/react' import { it, describe, beforeEach, vi, afterEach, expect } from 'vitest' import { FLEX_ROBOT_TYPE, HEATERSHAKER_MODULE_V1 } from '@opentrons/shared-data' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { useProtocolMetadata } from '../../Devices/hooks' -import { getIsOnDevice } from '../../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { PickUpTip } from '../PickUpTip' import { SECTIONS } from '../constants' import { mockCompletedAnalysis, mockExistingOffsets } from '../__fixtures__' import type { CommandData } from '@opentrons/api-client' -import { - nestedTextMatcher, - renderWithProviders, -} from '../../../__testing-utils__' +import { nestedTextMatcher, renderWithProviders } from '/app/__testing-utils__' import type { Mock } from 'vitest' vi.mock('../../Devices/hooks') -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const mockStartPosition = { x: 10, y: 20, z: 30 } diff --git a/app/src/organisms/LabwarePositionCheck/__tests__/ResultsSummary.test.tsx b/app/src/organisms/LabwarePositionCheck/__tests__/ResultsSummary.test.tsx index d9aaa62f6b6..e66d900e76e 100644 --- a/app/src/organisms/LabwarePositionCheck/__tests__/ResultsSummary.test.tsx +++ b/app/src/organisms/LabwarePositionCheck/__tests__/ResultsSummary.test.tsx @@ -1,19 +1,19 @@ import * as React from 'react' import { describe, it, beforeEach, afterEach, expect, vi } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' -import { getIsLabwareOffsetCodeSnippetsOn } from '../../../redux/config' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { getIsLabwareOffsetCodeSnippetsOn } from '/app/redux/config' import { ResultsSummary } from '../ResultsSummary' import { SECTIONS } from '../constants' -import { mockTipRackDefinition } from '../../../redux/custom-labware/__fixtures__' +import { mockTipRackDefinition } from '/app/redux/custom-labware/__fixtures__' import { mockCompletedAnalysis, mockExistingOffsets, mockWorkingOffsets, } from '../__fixtures__' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/LabwarePositionCheck/__tests__/ReturnTip.test.tsx b/app/src/organisms/LabwarePositionCheck/__tests__/ReturnTip.test.tsx index 23069c7cf61..a3860c24cd7 100644 --- a/app/src/organisms/LabwarePositionCheck/__tests__/ReturnTip.test.tsx +++ b/app/src/organisms/LabwarePositionCheck/__tests__/ReturnTip.test.tsx @@ -4,16 +4,16 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest' import { FLEX_ROBOT_TYPE, HEATERSHAKER_MODULE_V1 } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SECTIONS } from '../constants' import { mockCompletedAnalysis } from '../__fixtures__' import { useProtocolMetadata } from '../../Devices/hooks' -import { getIsOnDevice } from '../../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { ReturnTip } from '../ReturnTip' vi.mock('../../Devices/hooks') -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/LabwarePositionCheck/__tests__/RobotMotionLoader.test.tsx b/app/src/organisms/LabwarePositionCheck/__tests__/RobotMotionLoader.test.tsx index 70b969568e6..f12c52b07d4 100644 --- a/app/src/organisms/LabwarePositionCheck/__tests__/RobotMotionLoader.test.tsx +++ b/app/src/organisms/LabwarePositionCheck/__tests__/RobotMotionLoader.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RobotMotionLoader } from '../RobotMotionLoader' const mockHeader = 'Stand back, robot needs some space right now' diff --git a/app/src/organisms/LabwarePositionCheck/__tests__/TipConfirmation.test.tsx b/app/src/organisms/LabwarePositionCheck/__tests__/TipConfirmation.test.tsx index 8ff504af81c..3217cea0dbe 100644 --- a/app/src/organisms/LabwarePositionCheck/__tests__/TipConfirmation.test.tsx +++ b/app/src/organisms/LabwarePositionCheck/__tests__/TipConfirmation.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { describe, it, beforeEach, afterEach, expect, vi } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import { TipConfirmation } from '../TipConfirmation' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/LabwarePositionCheck/__tests__/useLaunchLPC.test.tsx b/app/src/organisms/LabwarePositionCheck/__tests__/useLaunchLPC.test.tsx index 560a1bb70b1..4c007581c81 100644 --- a/app/src/organisms/LabwarePositionCheck/__tests__/useLaunchLPC.test.tsx +++ b/app/src/organisms/LabwarePositionCheck/__tests__/useLaunchLPC.test.tsx @@ -18,11 +18,11 @@ import { } from '@opentrons/react-api-client' import { FLEX_ROBOT_TYPE, fixtureTiprack300ul } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useCreateTargetedMaintenanceRunMutation, useNotifyRunQuery, -} from '../../../resources/runs' +} from '/app/resources/runs' import { useMostRecentCompletedAnalysis } from '../useMostRecentCompletedAnalysis' import { useLaunchLPC } from '../useLaunchLPC' import { LabwarePositionCheck } from '..' @@ -34,7 +34,7 @@ import type { LabwareDefinition2 } from '@opentrons/shared-data' vi.mock('../') vi.mock('@opentrons/react-api-client') vi.mock('../useMostRecentCompletedAnalysis') -vi.mock('../../../resources/runs') +vi.mock('/app/resources/runs') const MOCK_RUN_ID = 'mockRunId' const MOCK_MAINTENANCE_RUN_ID = 'mockMaintenanceRunId' diff --git a/app/src/organisms/LabwarePositionCheck/index.tsx b/app/src/organisms/LabwarePositionCheck/index.tsx index 5648913cfe2..b1453f9267c 100644 --- a/app/src/organisms/LabwarePositionCheck/index.tsx +++ b/app/src/organisms/LabwarePositionCheck/index.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { useLogger } from '../../logger' import { LabwarePositionCheckComponent } from './LabwarePositionCheckComponent' import { FatalErrorModal } from './FatalErrorModal' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { useSelector } from 'react-redux' import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' diff --git a/app/src/organisms/LabwarePositionCheck/useLaunchLPC.tsx b/app/src/organisms/LabwarePositionCheck/useLaunchLPC.tsx index da58709a1a7..23569a776fd 100644 --- a/app/src/organisms/LabwarePositionCheck/useLaunchLPC.tsx +++ b/app/src/organisms/LabwarePositionCheck/useLaunchLPC.tsx @@ -8,10 +8,10 @@ import { import { useCreateTargetedMaintenanceRunMutation, useNotifyRunQuery, -} from '../../resources/runs' +} from '/app/resources/runs' import { LabwarePositionCheck } from '.' import { useMostRecentCompletedAnalysis } from './useMostRecentCompletedAnalysis' -import { getLabwareDefinitionsFromCommands } from '../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import type { RobotType } from '@opentrons/shared-data' diff --git a/app/src/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis.ts b/app/src/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis.ts index 3e2d9f3c9c2..e5188af8d38 100644 --- a/app/src/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis.ts +++ b/app/src/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis.ts @@ -4,7 +4,7 @@ import { useProtocolQuery, } from '@opentrons/react-api-client' -import { useNotifyRunQuery } from '../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { CompletedProtocolAnalysis } from '@opentrons/shared-data' diff --git a/app/src/organisms/LabwarePositionCheck/utils/getProbeBasedLPCSteps.ts b/app/src/organisms/LabwarePositionCheck/utils/getProbeBasedLPCSteps.ts index 83faab7f32f..b309703f333 100644 --- a/app/src/organisms/LabwarePositionCheck/utils/getProbeBasedLPCSteps.ts +++ b/app/src/organisms/LabwarePositionCheck/utils/getProbeBasedLPCSteps.ts @@ -2,7 +2,7 @@ import { isEqual } from 'lodash' import { SECTIONS } from '../constants' import { getLabwareDefURI, getPipetteNameSpecs } from '@opentrons/shared-data' import { getLabwareLocationCombos } from '../../ApplyHistoricOffsets/hooks/getLabwareLocationCombos' -import { getLabwareDefinitionsFromCommands } from '../../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import type { CompletedProtocolAnalysis, diff --git a/app/src/organisms/LabwarePositionCheck/utils/getTipBasedLPCSteps.ts b/app/src/organisms/LabwarePositionCheck/utils/getTipBasedLPCSteps.ts index 01bc50330ba..c36e02d80af 100644 --- a/app/src/organisms/LabwarePositionCheck/utils/getTipBasedLPCSteps.ts +++ b/app/src/organisms/LabwarePositionCheck/utils/getTipBasedLPCSteps.ts @@ -1,6 +1,6 @@ import { isEqual } from 'lodash' import { SECTIONS } from '../constants' -import { getLabwareDefinitionsFromCommands } from '../../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import { getLabwareDefURI, getIsTiprack, diff --git a/app/src/organisms/LabwarePositionCheck/utils/labware.ts b/app/src/organisms/LabwarePositionCheck/utils/labware.ts index d4eae3581a5..efa4336bc78 100644 --- a/app/src/organisms/LabwarePositionCheck/utils/labware.ts +++ b/app/src/organisms/LabwarePositionCheck/utils/labware.ts @@ -5,7 +5,7 @@ import { getLabwareDefURI, } from '@opentrons/shared-data' import { getModuleInitialLoadInfo } from '../../Devices/ProtocolRun/utils/getModuleInitialLoadInfo' -import { getLabwareDefinitionsFromCommands } from '../../../molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' import type { CompletedProtocolAnalysis, LabwareDefinition2, diff --git a/app/src/organisms/ModuleCard/AboutModuleSlideout.tsx b/app/src/organisms/ModuleCard/AboutModuleSlideout.tsx index ddd3f60a6fb..61cf06a970c 100644 --- a/app/src/organisms/ModuleCard/AboutModuleSlideout.tsx +++ b/app/src/organisms/ModuleCard/AboutModuleSlideout.tsx @@ -15,11 +15,11 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { getModuleDisplayName } from '@opentrons/shared-data' -import { Slideout } from '../../atoms/Slideout' -import { Banner } from '../../atoms/Banner' +import { Slideout } from '/app/atoms/Slideout' +import { Banner } from '/app/atoms/Banner' import { useCurrentRunStatus } from '../RunTimeControl/hooks' -import type { AttachedModule } from '../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' interface AboutModuleSlideoutProps { module: AttachedModule diff --git a/app/src/organisms/ModuleCard/AbsorbanceReaderData.tsx b/app/src/organisms/ModuleCard/AbsorbanceReaderData.tsx index e6a30b742d7..7a6a77d0ce3 100644 --- a/app/src/organisms/ModuleCard/AbsorbanceReaderData.tsx +++ b/app/src/organisms/ModuleCard/AbsorbanceReaderData.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { TYPOGRAPHY, LegacyStyledText } from '@opentrons/components' -import type { AbsorbanceReaderModule } from '../../redux/modules/types' +import type { AbsorbanceReaderModule } from '/app/redux/modules/types' interface AbsorbanceReaderProps { moduleData: AbsorbanceReaderModule['data'] diff --git a/app/src/organisms/ModuleCard/AbsorbanceReaderSlideout.tsx b/app/src/organisms/ModuleCard/AbsorbanceReaderSlideout.tsx index fd04a4730a7..5ef3ffd3845 100644 --- a/app/src/organisms/ModuleCard/AbsorbanceReaderSlideout.tsx +++ b/app/src/organisms/ModuleCard/AbsorbanceReaderSlideout.tsx @@ -2,9 +2,9 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { getModuleDisplayName } from '@opentrons/shared-data' import { SPACING, LegacyStyledText, TYPOGRAPHY } from '@opentrons/components' -import { Slideout } from '../../atoms/Slideout' +import { Slideout } from '/app/atoms/Slideout' -import type { AbsorbanceReaderModule } from '../../redux/modules/types' +import type { AbsorbanceReaderModule } from '/app/redux/modules/types' interface AbsorbanceReaderSlideoutProps { module: AbsorbanceReaderModule diff --git a/app/src/organisms/ModuleCard/ConfirmAttachmentModal.tsx b/app/src/organisms/ModuleCard/ConfirmAttachmentModal.tsx index ecd63653dfe..7031f176425 100644 --- a/app/src/organisms/ModuleCard/ConfirmAttachmentModal.tsx +++ b/app/src/organisms/ModuleCard/ConfirmAttachmentModal.tsx @@ -16,9 +16,9 @@ import { TEXT_ALIGN_CENTER, TYPOGRAPHY, } from '@opentrons/components' -import { updateConfigValue } from '../../redux/config' -import type { Dispatch } from '../../redux/types' -import type { UpdateConfigValueAction } from '../../redux/config/types' +import { updateConfigValue } from '/app/redux/config' +import type { Dispatch } from '/app/redux/types' +import type { UpdateConfigValueAction } from '/app/redux/config/types' export function setHeaterShakerAttached( heaterShakerAttached: boolean diff --git a/app/src/organisms/ModuleCard/ErrorInfo.tsx b/app/src/organisms/ModuleCard/ErrorInfo.tsx index 5bb41c4e72d..57caacbdc56 100644 --- a/app/src/organisms/ModuleCard/ErrorInfo.tsx +++ b/app/src/organisms/ModuleCard/ErrorInfo.tsx @@ -19,10 +19,10 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import { getTopPortalEl } from '../../App/portal' -import type { AttachedModule } from '../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' interface ErrorInfoProps { attachedModule: AttachedModule diff --git a/app/src/organisms/ModuleCard/FirmwareUpdateFailedModal.tsx b/app/src/organisms/ModuleCard/FirmwareUpdateFailedModal.tsx index d1af72560b8..180e9574b72 100644 --- a/app/src/organisms/ModuleCard/FirmwareUpdateFailedModal.tsx +++ b/app/src/organisms/ModuleCard/FirmwareUpdateFailedModal.tsx @@ -15,7 +15,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import type { AttachedModule } from '../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' interface FirmwareUpdateFailedModalProps { onCloseClick: () => void diff --git a/app/src/organisms/ModuleCard/HeaterShakerModuleData.tsx b/app/src/organisms/ModuleCard/HeaterShakerModuleData.tsx index ea33d37736c..668f8f66fd0 100644 --- a/app/src/organisms/ModuleCard/HeaterShakerModuleData.tsx +++ b/app/src/organisms/ModuleCard/HeaterShakerModuleData.tsx @@ -12,13 +12,13 @@ import { TYPOGRAPHY, WRAP, } from '@opentrons/components' -import { StatusLabel } from '../../atoms/StatusLabel' +import { StatusLabel } from '/app/atoms/StatusLabel' import type { LatchStatus, SpeedStatus, TemperatureStatus, -} from '../../redux/modules/api-types' -import type { HeaterShakerModule } from '../../redux/modules/types' +} from '/app/redux/modules/api-types' +import type { HeaterShakerModule } from '/app/redux/modules/types' interface HeaterShakerModuleDataProps { moduleData: HeaterShakerModule['data'] diff --git a/app/src/organisms/ModuleCard/HeaterShakerSlideout.tsx b/app/src/organisms/ModuleCard/HeaterShakerSlideout.tsx index 3265a149f45..1b189f3174d 100644 --- a/app/src/organisms/ModuleCard/HeaterShakerSlideout.tsx +++ b/app/src/organisms/ModuleCard/HeaterShakerSlideout.tsx @@ -18,10 +18,10 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { Slideout } from '../../atoms/Slideout' -import { SubmitPrimaryButton } from '../../atoms/buttons' +import { Slideout } from '/app/atoms/Slideout' +import { SubmitPrimaryButton } from '/app/atoms/buttons' -import type { HeaterShakerModule } from '../../redux/modules/types' +import type { HeaterShakerModule } from '/app/redux/modules/types' import type { HeaterShakerSetTargetTemperatureCreateCommand } from '@opentrons/shared-data' interface HeaterShakerSlideoutProps { diff --git a/app/src/organisms/ModuleCard/MagneticModuleData.tsx b/app/src/organisms/ModuleCard/MagneticModuleData.tsx index e9cdc7aeb5c..580731eeab8 100644 --- a/app/src/organisms/ModuleCard/MagneticModuleData.tsx +++ b/app/src/organisms/ModuleCard/MagneticModuleData.tsx @@ -2,9 +2,9 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { COLORS, TYPOGRAPHY, LegacyStyledText } from '@opentrons/components' import { MAGNETIC_MODULE_V2 } from '@opentrons/shared-data' -import { StatusLabel } from '../../atoms/StatusLabel' +import { StatusLabel } from '/app/atoms/StatusLabel' import type { MAGNETIC_MODULE_V1 } from '@opentrons/shared-data' -import type { MagneticStatus } from '../../redux/modules/api-types' +import type { MagneticStatus } from '/app/redux/modules/api-types' interface MagModuleProps { moduleStatus: MagneticStatus diff --git a/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx b/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx index 4dcbbddc349..b4fc4dac9bc 100644 --- a/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx +++ b/app/src/organisms/ModuleCard/MagneticModuleSlideout.tsx @@ -25,10 +25,10 @@ import { MM, } from '@opentrons/shared-data' -import { Slideout } from '../../atoms/Slideout' -import { SubmitPrimaryButton } from '../../atoms/buttons' +import { Slideout } from '/app/atoms/Slideout' +import { SubmitPrimaryButton } from '/app/atoms/buttons' -import type { MagneticModule } from '../../redux/modules/types' +import type { MagneticModule } from '/app/redux/modules/types' import type { MagneticModuleEngageMagnetCreateCommand, MagneticModuleModel, diff --git a/app/src/organisms/ModuleCard/ModuleOverflowMenu.tsx b/app/src/organisms/ModuleCard/ModuleOverflowMenu.tsx index 8da1db06d8f..8de9cb1f880 100644 --- a/app/src/organisms/ModuleCard/ModuleOverflowMenu.tsx +++ b/app/src/organisms/ModuleCard/ModuleOverflowMenu.tsx @@ -17,7 +17,7 @@ import { TEMPERATURE_MODULE_TYPE, THERMOCYCLER_MODULE_TYPE, } from '@opentrons/shared-data' -import { useCurrentRunId } from '../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { useIsFlex, useRunStatuses, @@ -25,7 +25,7 @@ import { } from '../Devices/hooks' import { useModuleOverflowMenu } from './hooks' -import type { AttachedModule } from '../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' interface ModuleOverflowMenuProps { module: AttachedModule diff --git a/app/src/organisms/ModuleCard/ModuleSetupModal.tsx b/app/src/organisms/ModuleCard/ModuleSetupModal.tsx index f389cc878ea..218bfe4dd6b 100644 --- a/app/src/organisms/ModuleCard/ModuleSetupModal.tsx +++ b/app/src/organisms/ModuleCard/ModuleSetupModal.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { createPortal } from 'react-dom' -import code from '../../assets/images/module_instruction_code.png' +import code from '/app/assets/images/module_instruction_code.png' import { ALIGN_FLEX_END, DIRECTION_COLUMN, diff --git a/app/src/organisms/ModuleCard/TemperatureModuleData.tsx b/app/src/organisms/ModuleCard/TemperatureModuleData.tsx index 2cadd9fd12b..369b7999552 100644 --- a/app/src/organisms/ModuleCard/TemperatureModuleData.tsx +++ b/app/src/organisms/ModuleCard/TemperatureModuleData.tsx @@ -8,8 +8,8 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { StatusLabel } from '../../atoms/StatusLabel' -import type { TemperatureStatus } from '../../redux/modules/api-types' +import { StatusLabel } from '/app/atoms/StatusLabel' +import type { TemperatureStatus } from '/app/redux/modules/api-types' interface TemperatureModuleProps { moduleStatus: TemperatureStatus diff --git a/app/src/organisms/ModuleCard/TemperatureModuleSlideout.tsx b/app/src/organisms/ModuleCard/TemperatureModuleSlideout.tsx index dc6fe561ba3..c3445efaf06 100644 --- a/app/src/organisms/ModuleCard/TemperatureModuleSlideout.tsx +++ b/app/src/organisms/ModuleCard/TemperatureModuleSlideout.tsx @@ -18,11 +18,11 @@ import { TEMP_MIN, } from '@opentrons/shared-data' -import { Slideout } from '../../atoms/Slideout' -import { SubmitPrimaryButton } from '../../atoms/buttons' +import { Slideout } from '/app/atoms/Slideout' +import { SubmitPrimaryButton } from '/app/atoms/buttons' import type { TemperatureModuleSetTargetTemperatureCreateCommand } from '@opentrons/shared-data' -import type { TemperatureModule } from '../../redux/modules/types' +import type { TemperatureModule } from '/app/redux/modules/types' interface TemperatureModuleSlideoutProps { module: TemperatureModule diff --git a/app/src/organisms/ModuleCard/TestShakeSlideout.tsx b/app/src/organisms/ModuleCard/TestShakeSlideout.tsx index a98c6a63583..53847cddea3 100644 --- a/app/src/organisms/ModuleCard/TestShakeSlideout.tsx +++ b/app/src/organisms/ModuleCard/TestShakeSlideout.tsx @@ -31,11 +31,11 @@ import { RPM, } from '@opentrons/shared-data' -import { getIsHeaterShakerAttached } from '../../redux/config' +import { getIsHeaterShakerAttached } from '/app/redux/config' import { getTopPortalEl } from '../../App/portal' -import { Slideout } from '../../atoms/Slideout' -import { TertiaryButton } from '../../atoms/buttons' -import { Divider } from '../../atoms/structure' +import { Slideout } from '/app/atoms/Slideout' +import { TertiaryButton } from '/app/atoms/buttons' +import { Divider } from '/app/atoms/structure' import { ConfirmAttachmentModal } from './ConfirmAttachmentModal' import { useLatchControls } from './hooks' import { ModuleSetupModal } from './ModuleSetupModal' @@ -46,7 +46,7 @@ import type { HeaterShakerDeactivateShakerCreateCommand, HeaterShakerSetAndWaitForShakeSpeedCreateCommand, } from '@opentrons/shared-data' -import type { HeaterShakerModule, LatchStatus } from '../../redux/modules/types' +import type { HeaterShakerModule, LatchStatus } from '/app/redux/modules/types' interface TestShakeSlideoutProps { module: HeaterShakerModule diff --git a/app/src/organisms/ModuleCard/ThermocyclerModuleData.tsx b/app/src/organisms/ModuleCard/ThermocyclerModuleData.tsx index a495b7afcb5..f3d7d910301 100644 --- a/app/src/organisms/ModuleCard/ThermocyclerModuleData.tsx +++ b/app/src/organisms/ModuleCard/ThermocyclerModuleData.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' -import { StatusLabel } from '../../atoms/StatusLabel' +import { StatusLabel } from '/app/atoms/StatusLabel' import { Box, COLORS, @@ -14,7 +14,7 @@ import { WRAP, } from '@opentrons/components' -import type { ThermocyclerData } from '../../redux/modules/api-types' +import type { ThermocyclerData } from '/app/redux/modules/api-types' interface ThermocyclerModuleProps { data: ThermocyclerData diff --git a/app/src/organisms/ModuleCard/ThermocyclerModuleSlideout.tsx b/app/src/organisms/ModuleCard/ThermocyclerModuleSlideout.tsx index dcacc771369..c393336357e 100644 --- a/app/src/organisms/ModuleCard/ThermocyclerModuleSlideout.tsx +++ b/app/src/organisms/ModuleCard/ThermocyclerModuleSlideout.tsx @@ -19,14 +19,14 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { Slideout } from '../../atoms/Slideout' -import { SubmitPrimaryButton } from '../../atoms/buttons' +import { Slideout } from '/app/atoms/Slideout' +import { SubmitPrimaryButton } from '/app/atoms/buttons' import type { TCSetTargetBlockTemperatureCreateCommand, TCSetTargetLidTemperatureCreateCommand, } from '@opentrons/shared-data' -import type { ThermocyclerModule } from '../../redux/modules/types' +import type { ThermocyclerModule } from '/app/redux/modules/types' interface ThermocyclerModuleSlideoutProps { module: ThermocyclerModule diff --git a/app/src/organisms/ModuleCard/__tests__/AboutModuleSlideout.test.tsx b/app/src/organisms/ModuleCard/__tests__/AboutModuleSlideout.test.tsx index 66ac7ccd016..19f49c412c8 100644 --- a/app/src/organisms/ModuleCard/__tests__/AboutModuleSlideout.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/AboutModuleSlideout.test.tsx @@ -8,15 +8,15 @@ import { RUN_STATUS_FINISHING, } from '@opentrons/api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockMagneticModule, mockMagneticModuleGen2, mockTemperatureModule, mockTemperatureModuleGen2, mockThermocycler, -} from '../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' import { useCurrentRunStatus } from '../../RunTimeControl/hooks' import { AboutModuleSlideout } from '../AboutModuleSlideout' diff --git a/app/src/organisms/ModuleCard/__tests__/Collapsible.test.tsx b/app/src/organisms/ModuleCard/__tests__/Collapsible.test.tsx index 5d6fcbdffba..e312a177459 100644 --- a/app/src/organisms/ModuleCard/__tests__/Collapsible.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/Collapsible.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { Collapsible } from '../Collapsible' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ModuleCard/__tests__/ConfirmAttachmentModal.test.tsx b/app/src/organisms/ModuleCard/__tests__/ConfirmAttachmentModal.test.tsx index 47b16c62383..73e8f495e9c 100644 --- a/app/src/organisms/ModuleCard/__tests__/ConfirmAttachmentModal.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/ConfirmAttachmentModal.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ConfirmAttachmentModal } from '../ConfirmAttachmentModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ModuleCard/__tests__/ErrorInfo.test.tsx b/app/src/organisms/ModuleCard/__tests__/ErrorInfo.test.tsx index c578307ae8a..467f512ef08 100644 --- a/app/src/organisms/ModuleCard/__tests__/ErrorInfo.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/ErrorInfo.test.tsx @@ -1,18 +1,18 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { beforeEach, describe, expect, it } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ErrorInfo } from '../ErrorInfo' import { mockHeaterShaker, mockTemperatureModule, mockThermocycler, -} from '../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' import type { HeaterShakerModule, ThermocyclerModule, -} from '../../../redux/modules/types' +} from '/app/redux/modules/types' const mockErrorThermocycler = { id: 'thermocycler_id', diff --git a/app/src/organisms/ModuleCard/__tests__/FirmwareUpdateFailedModal.test.tsx b/app/src/organisms/ModuleCard/__tests__/FirmwareUpdateFailedModal.test.tsx index f47e2331350..498483c7b67 100644 --- a/app/src/organisms/ModuleCard/__tests__/FirmwareUpdateFailedModal.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/FirmwareUpdateFailedModal.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockTemperatureModule } from '../../../redux/modules/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockTemperatureModule } from '/app/redux/modules/__fixtures__' import { FirmwareUpdateFailedModal } from '../FirmwareUpdateFailedModal' const render = ( diff --git a/app/src/organisms/ModuleCard/__tests__/HeaterShakerModuleData.test.tsx b/app/src/organisms/ModuleCard/__tests__/HeaterShakerModuleData.test.tsx index 54ca6a319ac..7128c46f55d 100644 --- a/app/src/organisms/ModuleCard/__tests__/HeaterShakerModuleData.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/HeaterShakerModuleData.test.tsx @@ -1,12 +1,12 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { StatusLabel } from '../../../atoms/StatusLabel' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { StatusLabel } from '/app/atoms/StatusLabel' import { HeaterShakerModuleData } from '../HeaterShakerModuleData' -vi.mock('../../../atoms/StatusLabel') +vi.mock('/app/atoms/StatusLabel') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ModuleCard/__tests__/HeaterShakerSlideout.test.tsx b/app/src/organisms/ModuleCard/__tests__/HeaterShakerSlideout.test.tsx index 7148fd3f645..74f770bb235 100644 --- a/app/src/organisms/ModuleCard/__tests__/HeaterShakerSlideout.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/HeaterShakerSlideout.test.tsx @@ -4,9 +4,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockHeaterShaker } from '../../../redux/modules/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockHeaterShaker } from '/app/redux/modules/__fixtures__' import { HeaterShakerSlideout } from '../HeaterShakerSlideout' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/ModuleCard/__tests__/MagneticModuleData.test.tsx b/app/src/organisms/ModuleCard/__tests__/MagneticModuleData.test.tsx index 2cbcc154510..594b17f1df0 100644 --- a/app/src/organisms/ModuleCard/__tests__/MagneticModuleData.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/MagneticModuleData.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { afterEach, beforeEach, describe, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { StatusLabel } from '../../../atoms/StatusLabel' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { StatusLabel } from '/app/atoms/StatusLabel' import { MagneticModuleData } from '../MagneticModuleData' -import { mockMagneticModule } from '../../../redux/modules/__fixtures__' +import { mockMagneticModule } from '/app/redux/modules/__fixtures__' -vi.mock('../../../atoms/StatusLabel') +vi.mock('/app/atoms/StatusLabel') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ModuleCard/__tests__/MagneticModuleSlideout.test.tsx b/app/src/organisms/ModuleCard/__tests__/MagneticModuleSlideout.test.tsx index 8414580df17..2820cb7651c 100644 --- a/app/src/organisms/ModuleCard/__tests__/MagneticModuleSlideout.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/MagneticModuleSlideout.test.tsx @@ -3,15 +3,15 @@ import { fireEvent, screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' import { MagneticModuleSlideout } from '../MagneticModuleSlideout' import { mockMagneticModule, mockMagneticModuleGen2, -} from '../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/ModuleCard/__tests__/ModuleCard.test.tsx b/app/src/organisms/ModuleCard/__tests__/ModuleCard.test.tsx index 0e48c4828cc..5a1e1fedcb0 100644 --- a/app/src/organisms/ModuleCard/__tests__/ModuleCard.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/ModuleCard.test.tsx @@ -5,26 +5,18 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { RUN_STATUS_IDLE, RUN_STATUS_RUNNING } from '@opentrons/api-client' -import { - nestedTextMatcher, - renderWithProviders, -} from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { getIsHeaterShakerAttached } from '../../../redux/config' +import { nestedTextMatcher, renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getIsHeaterShakerAttached } from '/app/redux/config' import { mockMagneticModule, mockTemperatureModuleGen2, mockThermocycler, mockHeaterShaker, -} from '../../../redux/modules/__fixtures__' -import { mockRobot } from '../../../redux/robot-api/__fixtures__' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' -import { - FAILURE, - getRequestById, - PENDING, - SUCCESS, -} from '../../../redux/robot-api' +} from '/app/redux/modules/__fixtures__' +import { mockRobot } from '/app/redux/robot-api/__fixtures__' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' +import { FAILURE, getRequestById, PENDING, SUCCESS } from '/app/redux/robot-api' import { useCurrentRunStatus } from '../../RunTimeControl/hooks' import { useToaster } from '../../ToasterOven' import { useIsFlex } from '../../Devices/hooks' @@ -42,7 +34,7 @@ import type { HeaterShakerModule, MagneticModule, ThermocyclerModule, -} from '../../../redux/modules/types' +} from '/app/redux/modules/types' import type { Mock } from 'vitest' vi.mock('../ErrorInfo') @@ -50,14 +42,14 @@ vi.mock('../MagneticModuleData') vi.mock('../TemperatureModuleData') vi.mock('../ThermocyclerModuleData') vi.mock('../HeaterShakerModuleData') -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../ModuleOverflowMenu') vi.mock('../../RunTimeControl/hooks') vi.mock('../FirmwareUpdateFailedModal') -vi.mock('../../../redux/robot-api') -vi.mock('../../../organisms/ToasterOven') -vi.mock('../../../organisms/Devices/hooks') -vi.mock('../../../resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/redux/robot-api') +vi.mock('/app/organisms/ToasterOven') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') vi.mock('react-router-dom', async importOriginal => { const actual = await importOriginal() return { diff --git a/app/src/organisms/ModuleCard/__tests__/ModuleOverflowMenu.test.tsx b/app/src/organisms/ModuleCard/__tests__/ModuleOverflowMenu.test.tsx index e78b0a2d0e7..a90bfc17ecb 100644 --- a/app/src/organisms/ModuleCard/__tests__/ModuleOverflowMenu.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/ModuleOverflowMenu.test.tsx @@ -2,28 +2,28 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockMagneticModule, mockTemperatureModuleGen2, mockThermocycler, mockHeaterShaker, mockThermocyclerGen2, -} from '../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' import { useRunStatuses, useIsLegacySessionInProgress, useIsFlex, } from '../../Devices/hooks' -import { useCurrentRunId } from '../../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { ModuleOverflowMenu } from '../ModuleOverflowMenu' import type { TemperatureStatus } from '@opentrons/api-client' vi.mock('../../Devices/hooks') vi.mock('../../RunTimeControl/hooks') -vi.mock('../../../resources/runs') +vi.mock('/app/resources/runs') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ModuleCard/__tests__/ModuleSetupModal.test.tsx b/app/src/organisms/ModuleCard/__tests__/ModuleSetupModal.test.tsx index f56b0a67535..3a8dab77008 100644 --- a/app/src/organisms/ModuleCard/__tests__/ModuleSetupModal.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/ModuleSetupModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ModuleSetupModal } from '../ModuleSetupModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ModuleCard/__tests__/TemperatureModuleData.test.tsx b/app/src/organisms/ModuleCard/__tests__/TemperatureModuleData.test.tsx index 4ca6b89741d..603388807c3 100644 --- a/app/src/organisms/ModuleCard/__tests__/TemperatureModuleData.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/TemperatureModuleData.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { StatusLabel } from '../../../atoms/StatusLabel' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { StatusLabel } from '/app/atoms/StatusLabel' import { TemperatureModuleData } from '../TemperatureModuleData' -import { mockTemperatureModuleGen2 } from '../../../redux/modules/__fixtures__' +import { mockTemperatureModuleGen2 } from '/app/redux/modules/__fixtures__' -vi.mock('../../../atoms/StatusLabel') +vi.mock('/app/atoms/StatusLabel') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ModuleCard/__tests__/TemperatureModuleSlideout.test.tsx b/app/src/organisms/ModuleCard/__tests__/TemperatureModuleSlideout.test.tsx index eb3336cefe5..65fd489abc6 100644 --- a/app/src/organisms/ModuleCard/__tests__/TemperatureModuleSlideout.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/TemperatureModuleSlideout.test.tsx @@ -4,12 +4,12 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockTemperatureModule, mockTemperatureModuleGen2, -} from '../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' import { TemperatureModuleSlideout } from '../TemperatureModuleSlideout' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/ModuleCard/__tests__/TestShakeSlideout.test.tsx b/app/src/organisms/ModuleCard/__tests__/TestShakeSlideout.test.tsx index 213d44259fa..02e3509b078 100644 --- a/app/src/organisms/ModuleCard/__tests__/TestShakeSlideout.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/TestShakeSlideout.test.tsx @@ -4,15 +4,15 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { getIsHeaterShakerAttached } from '../../../redux/config' -import { mockHeaterShaker } from '../../../redux/modules/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getIsHeaterShakerAttached } from '/app/redux/config' +import { mockHeaterShaker } from '/app/redux/modules/__fixtures__' import { useLatchControls } from '../hooks' import { TestShakeSlideout } from '../TestShakeSlideout' import { ModuleSetupModal } from '../ModuleSetupModal' -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') vi.mock('@opentrons/react-api-client') vi.mock('../hooks') vi.mock('../ModuleSetupModal') diff --git a/app/src/organisms/ModuleCard/__tests__/ThermocyclerModuleData.test.tsx b/app/src/organisms/ModuleCard/__tests__/ThermocyclerModuleData.test.tsx index b0de531d6c8..f4289bf175c 100644 --- a/app/src/organisms/ModuleCard/__tests__/ThermocyclerModuleData.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/ThermocyclerModuleData.test.tsx @@ -3,15 +3,15 @@ import { screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mockThermocycler, mockThermocyclerGen2, -} from '../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' import { ThermocyclerModuleData } from '../ThermocyclerModuleData' -import type { ThermocyclerData } from '../../../redux/modules/api-types' +import type { ThermocyclerData } from '/app/redux/modules/api-types' const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ModuleCard/__tests__/ThermocyclerModuleSlideout.test.tsx b/app/src/organisms/ModuleCard/__tests__/ThermocyclerModuleSlideout.test.tsx index 7840d68269f..5996f43a6ab 100644 --- a/app/src/organisms/ModuleCard/__tests__/ThermocyclerModuleSlideout.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/ThermocyclerModuleSlideout.test.tsx @@ -4,9 +4,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockThermocycler } from '../../../redux/modules/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockThermocycler } from '/app/redux/modules/__fixtures__' import { ThermocyclerModuleSlideout } from '../ThermocyclerModuleSlideout' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/ModuleCard/__tests__/hooks.test.tsx b/app/src/organisms/ModuleCard/__tests__/hooks.test.tsx index ffeb8eb0e84..0a92dd08099 100644 --- a/app/src/organisms/ModuleCard/__tests__/hooks.test.tsx +++ b/app/src/organisms/ModuleCard/__tests__/hooks.test.tsx @@ -9,17 +9,17 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' import { heater_shaker_commands_with_results_key } from '@opentrons/shared-data' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { mockHeaterShaker, mockMagneticModuleGen2, mockTemperatureModuleGen2, mockThermocycler, mockThermocyclerGen2, -} from '../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' import { useIsRobotBusy, useRunStatuses } from '../../Devices/hooks' import { useMostRecentCompletedAnalysis } from '../../LabwarePositionCheck/useMostRecentCompletedAnalysis' -import { useCurrentRunId } from '../../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { useLatchControls, useModuleOverflowMenu, @@ -27,11 +27,11 @@ import { } from '../hooks' import type { Store } from 'redux' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' vi.mock('@opentrons/react-api-client') vi.mock('../../LabwarePositionCheck/useMostRecentCompletedAnalysis') -vi.mock('../../../resources/runs') +vi.mock('/app/resources/runs') vi.mock('../../Devices/hooks') const mockCloseLatchHeaterShaker = { diff --git a/app/src/organisms/ModuleCard/__tests__/utils.test.ts b/app/src/organisms/ModuleCard/__tests__/utils.test.ts index 5798efeb827..71ac9e50106 100644 --- a/app/src/organisms/ModuleCard/__tests__/utils.test.ts +++ b/app/src/organisms/ModuleCard/__tests__/utils.test.ts @@ -9,11 +9,11 @@ import { mockTemperatureModuleGen2, mockThermocycler, mockThermocyclerGen2, -} from '../../../redux/modules/__fixtures__' +} from '/app/redux/modules/__fixtures__' import { getModuleCardImage, useModuleApiRequests } from '../utils' -import { useDispatchApiRequest } from '../../../redux/robot-api' +import { useDispatchApiRequest } from '/app/redux/robot-api' -vi.mock('../../../redux/robot-api') +vi.mock('/app/redux/robot-api') const mockThermocyclerGen2ClosedLid = { id: 'thermocycler_id2', diff --git a/app/src/organisms/ModuleCard/hooks.tsx b/app/src/organisms/ModuleCard/hooks.tsx index 43ad848d2ae..0507fb80d88 100644 --- a/app/src/organisms/ModuleCard/hooks.tsx +++ b/app/src/organisms/ModuleCard/hooks.tsx @@ -14,7 +14,7 @@ import { THERMOCYCLER_MODULE_TYPE, } from '@opentrons/shared-data' import { useMostRecentCompletedAnalysis } from '../LabwarePositionCheck/useMostRecentCompletedAnalysis' -import { useCurrentRunId } from '../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import type { HeaterShakerCloseLatchCreateCommand, @@ -29,7 +29,7 @@ import type { TemperatureModuleDeactivateCreateCommand, } from '@opentrons/shared-data' -import type { AttachedModule } from '../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' export function useIsHeaterShakerInProtocol(): boolean { const currentRunId = useCurrentRunId() diff --git a/app/src/organisms/ModuleCard/index.tsx b/app/src/organisms/ModuleCard/index.tsx index 9d02e55d562..225ffa0216d 100644 --- a/app/src/organisms/ModuleCard/index.tsx +++ b/app/src/organisms/ModuleCard/index.tsx @@ -40,12 +40,12 @@ import { getErrorResponseMessage, dismissRequest, SUCCESS, -} from '../../redux/robot-api' -import { Banner } from '../../atoms/Banner' -import { UpdateBanner } from '../../molecules/UpdateBanner' -import { useChainLiveCommands } from '../../resources/runs' +} from '/app/redux/robot-api' +import { Banner } from '/app/atoms/Banner' +import { UpdateBanner } from '/app/molecules/UpdateBanner' +import { useChainLiveCommands } from '/app/resources/runs' import { useCurrentRunStatus } from '../RunTimeControl/hooks' -import { useIsFlex } from '../../organisms/Devices/hooks' +import { useIsFlex } from '/app/organisms/Devices/hooks' import { getModuleTooHot } from '../Devices/getModuleTooHot' import { useToaster } from '../ToasterOven' import { MagneticModuleData } from './MagneticModuleData' @@ -65,15 +65,15 @@ import { getModuleCardImage } from './utils' import { FirmwareUpdateFailedModal } from './FirmwareUpdateFailedModal' import { ErrorInfo } from './ErrorInfo' import { ModuleSetupModal } from './ModuleSetupModal' -import { useIsEstopNotDisengaged } from '../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import type { IconProps } from '@opentrons/components' import type { AttachedModule, HeaterShakerModule, -} from '../../redux/modules/types' -import type { State, Dispatch } from '../../redux/types' -import type { RequestState } from '../../redux/robot-api/types' +} from '/app/redux/modules/types' +import type { State, Dispatch } from '/app/redux/types' +import type { RequestState } from '/app/redux/robot-api/types' import { AbsorbanceReaderData } from './AbsorbanceReaderData' import { AbsorbanceReaderSlideout } from './AbsorbanceReaderSlideout' diff --git a/app/src/organisms/ModuleCard/utils.ts b/app/src/organisms/ModuleCard/utils.ts index dfd136bfcfc..825a4bb6c6d 100644 --- a/app/src/organisms/ModuleCard/utils.ts +++ b/app/src/organisms/ModuleCard/utils.ts @@ -1,18 +1,18 @@ import * as React from 'react' import last from 'lodash/last' -import { useDispatchApiRequest } from '../../redux/robot-api' -import { updateModule } from '../../redux/modules' +import { useDispatchApiRequest } from '/app/redux/robot-api' +import { updateModule } from '/app/redux/modules' -import magneticModule from '../../assets/images/magnetic_module_gen_2_transparent.png' -import temperatureModule from '../../assets/images/temp_deck_gen_2_transparent.png' -import thermoModuleGen1Closed from '../../assets/images/thermocycler_closed.png' -import thermoModuleGen1Opened from '../../assets/images/thermocycler_open_transparent.png' -import heaterShakerModule from '../../assets/images/heater_shaker_module_transparent.png' -import thermoModuleGen2Closed from '../../assets/images/thermocycler_gen_2_closed.png' -import thermoModuleGen2Opened from '../../assets/images/thermocycler_gen_2_opened.png' +import magneticModule from '/app/assets/images/magnetic_module_gen_2_transparent.png' +import temperatureModule from '/app/assets/images/temp_deck_gen_2_transparent.png' +import thermoModuleGen1Closed from '/app/assets/images/thermocycler_closed.png' +import thermoModuleGen1Opened from '/app/assets/images/thermocycler_open_transparent.png' +import heaterShakerModule from '/app/assets/images/heater_shaker_module_transparent.png' +import thermoModuleGen2Closed from '/app/assets/images/thermocycler_gen_2_closed.png' +import thermoModuleGen2Opened from '/app/assets/images/thermocycler_gen_2_opened.png' -import type { AttachedModule } from '../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' export function getModuleCardImage(attachedModule: AttachedModule): string { // TODO(jr, 9/22/22): add images for V1 of magneticModule and temperatureModule diff --git a/app/src/organisms/ModuleWizardFlows/AttachProbe.tsx b/app/src/organisms/ModuleWizardFlows/AttachProbe.tsx index 94af0fcdd40..18fc3657732 100644 --- a/app/src/organisms/ModuleWizardFlows/AttachProbe.tsx +++ b/app/src/organisms/ModuleWizardFlows/AttachProbe.tsx @@ -9,10 +9,10 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { LEFT, WASTE_CHUTE_FIXTURES } from '@opentrons/shared-data' -import attachProbe1 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_1.webm' -import attachProbe8 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_8.webm' -import attachProbe96 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_96.webm' -import { SimpleWizardInProgressBody } from '../../molecules/SimpleWizardBody' +import attachProbe1 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_1.webm' +import attachProbe8 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_8.webm' +import attachProbe96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_96.webm' +import { SimpleWizardInProgressBody } from '/app/molecules/SimpleWizardBody' import type { CreateCommand, @@ -20,8 +20,8 @@ import type { CutoutId, CutoutFixtureId, } from '@opentrons/shared-data' -import { Banner } from '../../atoms/Banner' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import { Banner } from '/app/atoms/Banner' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import type { ModuleCalibrationWizardStepProps } from './types' interface AttachProbeProps extends ModuleCalibrationWizardStepProps { diff --git a/app/src/organisms/ModuleWizardFlows/BeforeBeginning.tsx b/app/src/organisms/ModuleWizardFlows/BeforeBeginning.tsx index 3437ccd0c44..edc65d0ebc0 100644 --- a/app/src/organisms/ModuleWizardFlows/BeforeBeginning.tsx +++ b/app/src/organisms/ModuleWizardFlows/BeforeBeginning.tsx @@ -8,8 +8,8 @@ import { getModuleDisplayName, } from '@opentrons/shared-data' import { LegacyStyledText } from '@opentrons/components' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' -import { WizardRequiredEquipmentList } from '../../molecules/WizardRequiredEquipmentList' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' +import { WizardRequiredEquipmentList } from '/app/molecules/WizardRequiredEquipmentList' import type { AttachedModule } from '@opentrons/api-client' import type { ModuleCalibrationWizardStepProps } from './types' diff --git a/app/src/organisms/ModuleWizardFlows/DetachProbe.tsx b/app/src/organisms/ModuleWizardFlows/DetachProbe.tsx index c95d515c4f8..fa82a3b507d 100644 --- a/app/src/organisms/ModuleWizardFlows/DetachProbe.tsx +++ b/app/src/organisms/ModuleWizardFlows/DetachProbe.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { css } from 'styled-components' -import detachProbe1 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_1.webm' -import detachProbe8 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_8.webm' -import detachProbe96 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_96.webm' +import detachProbe1 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_1.webm' +import detachProbe8 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_8.webm' +import detachProbe96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_96.webm' import { useTranslation } from 'react-i18next' import { Flex, @@ -11,7 +11,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import type { ModuleCalibrationWizardStepProps } from './types' diff --git a/app/src/organisms/ModuleWizardFlows/PlaceAdapter.tsx b/app/src/organisms/ModuleWizardFlows/PlaceAdapter.tsx index 7e044b1db46..f10c1d29fdc 100644 --- a/app/src/organisms/ModuleWizardFlows/PlaceAdapter.tsx +++ b/app/src/organisms/ModuleWizardFlows/PlaceAdapter.tsx @@ -2,11 +2,11 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { css } from 'styled-components' import { v4 as uuidv4 } from 'uuid' -import HeaterShaker_PlaceAdapter_L from '../../assets/videos/module_wizard_flows/HeaterShaker_PlaceAdapter_L.webm' -import HeaterShaker_PlaceAdapter_R from '../../assets/videos/module_wizard_flows/HeaterShaker_PlaceAdapter_R.webm' -import TempModule_PlaceAdapter_L from '../../assets/videos/module_wizard_flows/TempModule_PlaceAdapter_L.webm' -import TempModule_PlaceAdapter_R from '../../assets/videos/module_wizard_flows/TempModule_PlaceAdapter_R.webm' -import Thermocycler_PlaceAdapter from '../../assets/videos/module_wizard_flows/Thermocycler_PlaceAdapter.webm' +import HeaterShaker_PlaceAdapter_L from '/app/assets/videos/module_wizard_flows/HeaterShaker_PlaceAdapter_L.webm' +import HeaterShaker_PlaceAdapter_R from '/app/assets/videos/module_wizard_flows/HeaterShaker_PlaceAdapter_R.webm' +import TempModule_PlaceAdapter_L from '/app/assets/videos/module_wizard_flows/TempModule_PlaceAdapter_L.webm' +import TempModule_PlaceAdapter_R from '/app/assets/videos/module_wizard_flows/TempModule_PlaceAdapter_R.webm' +import Thermocycler_PlaceAdapter from '/app/assets/videos/module_wizard_flows/Thermocycler_PlaceAdapter.webm' import { Flex, @@ -27,8 +27,8 @@ import { THERMOCYCLER_V2_FRONT_FIXTURE, } from '@opentrons/shared-data' -import { SimpleWizardInProgressBody } from '../../molecules/SimpleWizardBody' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import { SimpleWizardInProgressBody } from '/app/molecules/SimpleWizardBody' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import { LEFT_SLOTS } from './constants' import type { DeckConfiguration, CreateCommand } from '@opentrons/shared-data' diff --git a/app/src/organisms/ModuleWizardFlows/SelectLocation.tsx b/app/src/organisms/ModuleWizardFlows/SelectLocation.tsx index dc56e3891f5..c7b9e98005f 100644 --- a/app/src/organisms/ModuleWizardFlows/SelectLocation.tsx +++ b/app/src/organisms/ModuleWizardFlows/SelectLocation.tsx @@ -24,8 +24,8 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import { Banner } from '/app/atoms/Banner' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import type { ModuleCalibrationWizardStepProps } from './types' import type { CutoutConfig, diff --git a/app/src/organisms/ModuleWizardFlows/Success.tsx b/app/src/organisms/ModuleWizardFlows/Success.tsx index 86f4f044fec..724ce984dbb 100644 --- a/app/src/organisms/ModuleWizardFlows/Success.tsx +++ b/app/src/organisms/ModuleWizardFlows/Success.tsx @@ -9,8 +9,8 @@ import { RESPONSIVENESS, TYPOGRAPHY, } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' -import { SimpleWizardBody } from '../../molecules/SimpleWizardBody' +import { SmallButton } from '/app/atoms/buttons' +import { SimpleWizardBody } from '/app/molecules/SimpleWizardBody' import type { ModuleCalibrationWizardStepProps } from './types' export const BODY_STYLE = css` diff --git a/app/src/organisms/ModuleWizardFlows/index.tsx b/app/src/organisms/ModuleWizardFlows/index.tsx index 6e18d0ab851..f964c2a1600 100644 --- a/app/src/organisms/ModuleWizardFlows/index.tsx +++ b/app/src/organisms/ModuleWizardFlows/index.tsx @@ -15,14 +15,14 @@ import { FLEX_ROBOT_TYPE, } from '@opentrons/shared-data' import { getTopPortalEl } from '../../App/portal' -import { WizardHeader } from '../../molecules/WizardHeader' -import { useAttachedPipettesFromInstrumentsQuery } from '../../organisms/Devices/hooks' -import { useCreateTargetedMaintenanceRunMutation } from '../../resources/runs' -import { getIsOnDevice } from '../../redux/config' +import { WizardHeader } from '/app/molecules/WizardHeader' +import { useAttachedPipettesFromInstrumentsQuery } from '/app/organisms/Devices/hooks' +import { useCreateTargetedMaintenanceRunMutation } from '/app/resources/runs' +import { getIsOnDevice } from '/app/redux/config' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' +} from '/app/molecules/SimpleWizardBody' import { getModuleCalibrationSteps } from './getModuleCalibrationSteps' import { FLEX_SLOT_NAMES_BY_MOD_TYPE, SECTIONS } from './constants' import { BeforeBeginning } from './BeforeBeginning' @@ -31,11 +31,11 @@ import { PlaceAdapter } from './PlaceAdapter' import { SelectLocation } from './SelectLocation' import { Success } from './Success' import { DetachProbe } from './DetachProbe' -import { useNotifyDeckConfigurationQuery } from '../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import { useChainMaintenanceCommands, useNotifyCurrentMaintenanceRun, -} from '../../resources/maintenance_runs' +} from '/app/resources/maintenance_runs' import type { AttachedModule, CommandData } from '@opentrons/api-client' import { RUN_STATUS_FAILED } from '@opentrons/api-client' diff --git a/app/src/organisms/Navigation/NavigationMenu.tsx b/app/src/organisms/Navigation/NavigationMenu.tsx index f48bb3c15bb..1b18bc19029 100644 --- a/app/src/organisms/Navigation/NavigationMenu.tsx +++ b/app/src/organisms/Navigation/NavigationMenu.tsx @@ -16,12 +16,12 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { home, ROBOT } from '../../redux/robot-controls' +import { home, ROBOT } from '/app/redux/robot-controls' import { useLights } from '../Devices/hooks' import { getTopPortalEl } from '../../App/portal' import { RestartRobotConfirmationModal } from './RestartRobotConfirmationModal' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' interface NavigationMenuProps { onClick: React.MouseEventHandler diff --git a/app/src/organisms/Navigation/RestartRobotConfirmationModal.tsx b/app/src/organisms/Navigation/RestartRobotConfirmationModal.tsx index 5be5488fd03..2cb4d794438 100644 --- a/app/src/organisms/Navigation/RestartRobotConfirmationModal.tsx +++ b/app/src/organisms/Navigation/RestartRobotConfirmationModal.tsx @@ -11,12 +11,12 @@ import { LegacyStyledText, } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' -import { OddModal } from '../../molecules/OddModal' -import { restartRobot } from '../../redux/robot-admin' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { restartRobot } from '/app/redux/robot-admin' -import type { Dispatch } from '../../redux/types' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { Dispatch } from '/app/redux/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface RestartRobotConfirmationModalProps { robotName: string diff --git a/app/src/organisms/Navigation/__tests__/Navigation.test.tsx b/app/src/organisms/Navigation/__tests__/Navigation.test.tsx index d1056531976..7090e1a9551 100644 --- a/app/src/organisms/Navigation/__tests__/Navigation.test.tsx +++ b/app/src/organisms/Navigation/__tests__/Navigation.test.tsx @@ -3,16 +3,16 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { getLocalRobot } from '../../../redux/discovery' -import { mockConnectedRobot } from '../../../redux/discovery/__fixtures__' -import { useNetworkConnection } from '../../../resources/networking/hooks/useNetworkConnection' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getLocalRobot } from '/app/redux/discovery' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' +import { useNetworkConnection } from '/app/resources/networking/hooks/useNetworkConnection' import { NavigationMenu } from '../NavigationMenu' import { Navigation } from '..' -vi.mock('../../../resources/networking/hooks/useNetworkConnection') -vi.mock('../../../redux/discovery') +vi.mock('/app/resources/networking/hooks/useNetworkConnection') +vi.mock('/app/redux/discovery') vi.mock('../NavigationMenu') mockConnectedRobot.name = '12345678901234567' diff --git a/app/src/organisms/Navigation/__tests__/NavigationMenu.test.tsx b/app/src/organisms/Navigation/__tests__/NavigationMenu.test.tsx index 52f18c32306..4912161b8f2 100644 --- a/app/src/organisms/Navigation/__tests__/NavigationMenu.test.tsx +++ b/app/src/organisms/Navigation/__tests__/NavigationMenu.test.tsx @@ -2,17 +2,17 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { home } from '../../../redux/robot-controls' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { home } from '/app/redux/robot-controls' import { useLights } from '../../Devices/hooks' import { RestartRobotConfirmationModal } from '../RestartRobotConfirmationModal' import { NavigationMenu } from '../NavigationMenu' import type { NavigateFunction } from 'react-router-dom' -vi.mock('../../../redux/robot-admin') -vi.mock('../../../redux/robot-controls') +vi.mock('/app/redux/robot-admin') +vi.mock('/app/redux/robot-controls') vi.mock('../../Devices/hooks') vi.mock('../RestartRobotConfirmationModal') diff --git a/app/src/organisms/Navigation/__tests__/RestartRobotConfirmationModal.test.tsx b/app/src/organisms/Navigation/__tests__/RestartRobotConfirmationModal.test.tsx index b3c3d8ec98e..4f18362879e 100644 --- a/app/src/organisms/Navigation/__tests__/RestartRobotConfirmationModal.test.tsx +++ b/app/src/organisms/Navigation/__tests__/RestartRobotConfirmationModal.test.tsx @@ -2,12 +2,12 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { restartRobot } from '../../../redux/robot-admin' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { restartRobot } from '/app/redux/robot-admin' import { RestartRobotConfirmationModal } from '../RestartRobotConfirmationModal' -vi.mock('../../../redux/robot-admin') +vi.mock('/app/redux/robot-admin') const mockFunc = vi.fn() diff --git a/app/src/organisms/Navigation/index.tsx b/app/src/organisms/Navigation/index.tsx index 8341e175682..2515761f2a4 100644 --- a/app/src/organisms/Navigation/index.tsx +++ b/app/src/organisms/Navigation/index.tsx @@ -26,10 +26,10 @@ import { truncateString, TYPOGRAPHY, } from '@opentrons/components' -import { ODD_FOCUS_VISIBLE } from '../../atoms/buttons/constants' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' -import { useNetworkConnection } from '../../resources/networking/hooks/useNetworkConnection' -import { getLocalRobot } from '../../redux/discovery' +import { useNetworkConnection } from '/app/resources/networking/hooks/useNetworkConnection' +import { getLocalRobot } from '/app/redux/discovery' import { NavigationMenu } from './NavigationMenu' import type { ON_DEVICE_DISPLAY_PATHS } from '../../App/OnDeviceDisplayApp' diff --git a/app/src/organisms/ODD/NameRobot/ConfirmRobotName.tsx b/app/src/organisms/ODD/NameRobot/ConfirmRobotName.tsx index ebcb54f1f69..526d2a77f3d 100644 --- a/app/src/organisms/ODD/NameRobot/ConfirmRobotName.tsx +++ b/app/src/organisms/ODD/NameRobot/ConfirmRobotName.tsx @@ -13,9 +13,9 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { StepMeter } from '../../../atoms/StepMeter' -import { MediumButton } from '../../../atoms/buttons' -import screenImage from '../../../assets/images/on-device-display/odd_abstract@x2.png' +import { StepMeter } from '/app/atoms/StepMeter' +import { MediumButton } from '/app/atoms/buttons' +import screenImage from '/app/assets/images/on-device-display/odd_abstract@x2.png' const IMAGE_ALT = 'finish setting up a robot' diff --git a/app/src/organisms/ODD/NameRobot/__tests__/ConfirmRobotName.test.tsx b/app/src/organisms/ODD/NameRobot/__tests__/ConfirmRobotName.test.tsx index d33230a6424..195a0764f0e 100644 --- a/app/src/organisms/ODD/NameRobot/__tests__/ConfirmRobotName.test.tsx +++ b/app/src/organisms/ODD/NameRobot/__tests__/ConfirmRobotName.test.tsx @@ -3,8 +3,8 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ConfirmRobotName } from '../ConfirmRobotName' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/organisms/ODD/NetworkSettings/AlternativeSecurityTypeModal.tsx b/app/src/organisms/ODD/NetworkSettings/AlternativeSecurityTypeModal.tsx index 3d85d2dddc4..d63d34f0667 100644 --- a/app/src/organisms/ODD/NetworkSettings/AlternativeSecurityTypeModal.tsx +++ b/app/src/organisms/ODD/NetworkSettings/AlternativeSecurityTypeModal.tsx @@ -12,10 +12,10 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface AlternativeSecurityTypeModalProps { setShowAlternativeSecurityTypeModal: ( diff --git a/app/src/organisms/ODD/NetworkSettings/DisplayWifiList.tsx b/app/src/organisms/ODD/NetworkSettings/DisplayWifiList.tsx index 476db7169d5..26ba8610229 100644 --- a/app/src/organisms/ODD/NetworkSettings/DisplayWifiList.tsx +++ b/app/src/organisms/ODD/NetworkSettings/DisplayWifiList.tsx @@ -17,11 +17,11 @@ import { LegacyStyledText, } from '@opentrons/components' -import { ODD_FOCUS_VISIBLE } from '../../../atoms/buttons/constants' -import { RobotSetupHeader } from '../../../organisms/RobotSetupHeader' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' +import { RobotSetupHeader } from '/app/organisms/RobotSetupHeader' import { DisplaySearchNetwork } from './DisplaySearchNetwork' -import type { WifiNetwork } from '../../../redux/networking/types' +import type { WifiNetwork } from '/app/redux/networking/types' const NETWORK_ROW_STYLE = css` display: ${DISPLAY_FLEX}; diff --git a/app/src/organisms/ODD/NetworkSettings/FailedToConnect.tsx b/app/src/organisms/ODD/NetworkSettings/FailedToConnect.tsx index 2cfdd9092d8..d5a8f4cf331 100644 --- a/app/src/organisms/ODD/NetworkSettings/FailedToConnect.tsx +++ b/app/src/organisms/ODD/NetworkSettings/FailedToConnect.tsx @@ -14,9 +14,9 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { MediumButton } from '../../../atoms/buttons' +import { MediumButton } from '/app/atoms/buttons' -import type { RequestState } from '../../../redux/robot-api/types' +import type { RequestState } from '/app/redux/robot-api/types' interface FailedToConnectProps { selectedSsid: string diff --git a/app/src/organisms/ODD/NetworkSettings/SelectAuthenticationType.tsx b/app/src/organisms/ODD/NetworkSettings/SelectAuthenticationType.tsx index 455c91d432f..b017af2a927 100644 --- a/app/src/organisms/ODD/NetworkSettings/SelectAuthenticationType.tsx +++ b/app/src/organisms/ODD/NetworkSettings/SelectAuthenticationType.tsx @@ -16,13 +16,13 @@ import { RadioButton, } from '@opentrons/components' -import { getLocalRobot } from '../../../redux/discovery' -import { getNetworkInterfaces, fetchStatus } from '../../../redux/networking' +import { getLocalRobot } from '/app/redux/discovery' +import { getNetworkInterfaces, fetchStatus } from '/app/redux/networking' import { useIsUnboxingFlowOngoing } from '../hooks' import { AlternativeSecurityTypeModal } from './AlternativeSecurityTypeModal' import type { WifiSecurityType } from '@opentrons/api-client' -import type { Dispatch, State } from '../../../redux/types' +import type { Dispatch, State } from '/app/redux/types' interface SelectAuthenticationTypeProps { selectedAuthType: WifiSecurityType diff --git a/app/src/organisms/ODD/NetworkSettings/SetWifiCred.tsx b/app/src/organisms/ODD/NetworkSettings/SetWifiCred.tsx index 7d1af2ab2e8..52cc37bd2cf 100644 --- a/app/src/organisms/ODD/NetworkSettings/SetWifiCred.tsx +++ b/app/src/organisms/ODD/NetworkSettings/SetWifiCred.tsx @@ -18,7 +18,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { FullKeyboard } from '../../../atoms/SoftwareKeyboard' +import { FullKeyboard } from '/app/atoms/SoftwareKeyboard' import { useIsUnboxingFlowOngoing } from '../hooks' interface SetWifiCredProps { diff --git a/app/src/organisms/ODD/NetworkSettings/SetWifiSsid.tsx b/app/src/organisms/ODD/NetworkSettings/SetWifiSsid.tsx index 05c0b7a13a2..c537aa3dab6 100644 --- a/app/src/organisms/ODD/NetworkSettings/SetWifiSsid.tsx +++ b/app/src/organisms/ODD/NetworkSettings/SetWifiSsid.tsx @@ -12,7 +12,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { FullKeyboard } from '../../../atoms/SoftwareKeyboard' +import { FullKeyboard } from '/app/atoms/SoftwareKeyboard' import { useIsUnboxingFlowOngoing } from '../hooks' interface SetWifiSsidProps { diff --git a/app/src/organisms/ODD/NetworkSettings/WifiConnectionDetails.tsx b/app/src/organisms/ODD/NetworkSettings/WifiConnectionDetails.tsx index e3cb9e18ba6..e6fd446f129 100644 --- a/app/src/organisms/ODD/NetworkSettings/WifiConnectionDetails.tsx +++ b/app/src/organisms/ODD/NetworkSettings/WifiConnectionDetails.tsx @@ -17,14 +17,14 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { MediumButton } from '../../../atoms/buttons' -import { RobotSetupHeader } from '../../../organisms/RobotSetupHeader' -import { getLocalRobot } from '../../../redux/discovery' -import { getNetworkInterfaces, fetchStatus } from '../../../redux/networking' +import { MediumButton } from '/app/atoms/buttons' +import { RobotSetupHeader } from '/app/organisms/RobotSetupHeader' +import { getLocalRobot } from '/app/redux/discovery' +import { getNetworkInterfaces, fetchStatus } from '/app/redux/networking' import { NetworkDetailsModal } from '../RobotSettingsDashboard/NetworkSettings/NetworkDetailsModal' import type { WifiSecurityType } from '@opentrons/api-client' -import type { Dispatch, State } from '../../../redux/types' +import type { Dispatch, State } from '/app/redux/types' interface WifiConnectionDetailsProps { ssid?: string diff --git a/app/src/organisms/ODD/NetworkSettings/__tests__/AlternativeSecurityTypeModal.test.tsx b/app/src/organisms/ODD/NetworkSettings/__tests__/AlternativeSecurityTypeModal.test.tsx index 4c091f8e0ae..719ede15b7e 100644 --- a/app/src/organisms/ODD/NetworkSettings/__tests__/AlternativeSecurityTypeModal.test.tsx +++ b/app/src/organisms/ODD/NetworkSettings/__tests__/AlternativeSecurityTypeModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { AlternativeSecurityTypeModal } from '../AlternativeSecurityTypeModal' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/organisms/ODD/NetworkSettings/__tests__/ConnectingNetwork.test.tsx b/app/src/organisms/ODD/NetworkSettings/__tests__/ConnectingNetwork.test.tsx index 32bcd2e81cb..293d6ad31cc 100644 --- a/app/src/organisms/ODD/NetworkSettings/__tests__/ConnectingNetwork.test.tsx +++ b/app/src/organisms/ODD/NetworkSettings/__tests__/ConnectingNetwork.test.tsx @@ -3,8 +3,8 @@ import { MemoryRouter } from 'react-router-dom' import { screen } from '@testing-library/react' import { beforeEach, describe, expect, it } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ConnectingNetwork } from '../ConnectingNetwork' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/ODD/NetworkSettings/__tests__/DisplaySearchNetwork.test.tsx b/app/src/organisms/ODD/NetworkSettings/__tests__/DisplaySearchNetwork.test.tsx index e82aedb63ca..67a04a01977 100644 --- a/app/src/organisms/ODD/NetworkSettings/__tests__/DisplaySearchNetwork.test.tsx +++ b/app/src/organisms/ODD/NetworkSettings/__tests__/DisplaySearchNetwork.test.tsx @@ -4,8 +4,8 @@ import { describe, expect, it } from 'vitest' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { DisplaySearchNetwork } from '../DisplaySearchNetwork' const render = () => { diff --git a/app/src/organisms/ODD/NetworkSettings/__tests__/DisplayWifiList.test.tsx b/app/src/organisms/ODD/NetworkSettings/__tests__/DisplayWifiList.test.tsx index 1970dc85242..756bc146ed6 100644 --- a/app/src/organisms/ODD/NetworkSettings/__tests__/DisplayWifiList.test.tsx +++ b/app/src/organisms/ODD/NetworkSettings/__tests__/DisplayWifiList.test.tsx @@ -2,9 +2,9 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import * as Fixtures from '../../../../redux/networking/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import * as Fixtures from '/app/redux/networking/__fixtures__' import { DisplaySearchNetwork } from '../DisplaySearchNetwork' import { DisplayWifiList } from '../DisplayWifiList' @@ -20,8 +20,8 @@ const mockWifiList = [ }, ] -vi.mock('../../../../redux/networking/selectors') -vi.mock('../../../../redux/discovery/selectors') +vi.mock('/app/redux/networking/selectors') +vi.mock('/app/redux/discovery/selectors') vi.mock('../DisplaySearchNetwork') vi.mock('react-router-dom', async importOriginal => { const actual = await importOriginal() diff --git a/app/src/organisms/ODD/NetworkSettings/__tests__/FailedToConnect.test.tsx b/app/src/organisms/ODD/NetworkSettings/__tests__/FailedToConnect.test.tsx index 894eac79887..6bcd02a200e 100644 --- a/app/src/organisms/ODD/NetworkSettings/__tests__/FailedToConnect.test.tsx +++ b/app/src/organisms/ODD/NetworkSettings/__tests__/FailedToConnect.test.tsx @@ -3,11 +3,11 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { FailedToConnect } from '../FailedToConnect' -import type { RequestState } from '../../../../redux/robot-api/types' +import type { RequestState } from '/app/redux/robot-api/types' const render = (props: React.ComponentProps) => { return renderWithProviders( diff --git a/app/src/organisms/ODD/NetworkSettings/__tests__/SelectAuthenticationType.test.tsx b/app/src/organisms/ODD/NetworkSettings/__tests__/SelectAuthenticationType.test.tsx index 00b53dfd25f..a5df5d7ba5e 100644 --- a/app/src/organisms/ODD/NetworkSettings/__tests__/SelectAuthenticationType.test.tsx +++ b/app/src/organisms/ODD/NetworkSettings/__tests__/SelectAuthenticationType.test.tsx @@ -3,12 +3,9 @@ import { fireEvent, screen } from '@testing-library/react' import { MemoryRouter } from 'react-router-dom' import { afterEach, beforeEach, describe, it, vi } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { - getNetworkInterfaces, - INTERFACE_WIFI, -} from '../../../../redux/networking' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getNetworkInterfaces, INTERFACE_WIFI } from '/app/redux/networking' import { useIsUnboxingFlowOngoing } from '../../hooks' import { AlternativeSecurityTypeModal } from '../AlternativeSecurityTypeModal' import { SelectAuthenticationType } from '../SelectAuthenticationType' @@ -20,8 +17,8 @@ const mockNavigate = vi.fn() const mockSetSelectedAuthType = vi.fn() vi.mock('../SetWifiCred') -vi.mock('../../../../redux/networking') -vi.mock('../../../../redux/discovery/selectors') +vi.mock('/app/redux/networking') +vi.mock('/app/redux/discovery/selectors') vi.mock('../AlternativeSecurityTypeModal') vi.mock('../../hooks') vi.mock('react-router-dom', async importOriginal => { diff --git a/app/src/organisms/ODD/NetworkSettings/__tests__/SetWifiCred.test.tsx b/app/src/organisms/ODD/NetworkSettings/__tests__/SetWifiCred.test.tsx index 9c2d6867ab8..4a89304f677 100644 --- a/app/src/organisms/ODD/NetworkSettings/__tests__/SetWifiCred.test.tsx +++ b/app/src/organisms/ODD/NetworkSettings/__tests__/SetWifiCred.test.tsx @@ -3,13 +3,13 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SetWifiCred } from '../SetWifiCred' const mockSetPassword = vi.fn() -vi.mock('../../../../redux/discovery') -vi.mock('../../../../redux/robot-api') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-api') const render = (props: React.ComponentProps) => { return renderWithProviders( diff --git a/app/src/organisms/ODD/NetworkSettings/__tests__/SetWifiSsid.test.tsx b/app/src/organisms/ODD/NetworkSettings/__tests__/SetWifiSsid.test.tsx index 017155a8fe2..ab3fa750168 100644 --- a/app/src/organisms/ODD/NetworkSettings/__tests__/SetWifiSsid.test.tsx +++ b/app/src/organisms/ODD/NetworkSettings/__tests__/SetWifiSsid.test.tsx @@ -3,8 +3,8 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SetWifiSsid } from '../SetWifiSsid' const mockSetSelectedSsid = vi.fn() diff --git a/app/src/organisms/ODD/NetworkSettings/__tests__/WifiConnectionDetails.test.tsx b/app/src/organisms/ODD/NetworkSettings/__tests__/WifiConnectionDetails.test.tsx index e1426610ebf..0ac96705adc 100644 --- a/app/src/organisms/ODD/NetworkSettings/__tests__/WifiConnectionDetails.test.tsx +++ b/app/src/organisms/ODD/NetworkSettings/__tests__/WifiConnectionDetails.test.tsx @@ -3,22 +3,19 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { useWifiList } from '../../../../resources/networking/hooks' -import { - getNetworkInterfaces, - INTERFACE_WIFI, -} from '../../../../redux/networking' -import * as Fixtures from '../../../../redux/networking/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useWifiList } from '/app/resources/networking/hooks' +import { getNetworkInterfaces, INTERFACE_WIFI } from '/app/redux/networking' +import * as Fixtures from '/app/redux/networking/__fixtures__' import { NetworkDetailsModal } from '../../RobotSettingsDashboard/NetworkSettings/NetworkDetailsModal' import { WifiConnectionDetails } from '../WifiConnectionDetails' import type { NavigateFunction } from 'react-router-dom' -vi.mock('../../../../resources/networking/hooks') -vi.mock('../../../../redux/networking') -vi.mock('../../../../redux/discovery/selectors') +vi.mock('/app/resources/networking/hooks') +vi.mock('/app/redux/networking') +vi.mock('/app/redux/discovery/selectors') vi.mock('../../RobotSettingsDashboard/NetworkSettings/NetworkDetailsModal') const mockNavigate = vi.fn() diff --git a/app/src/organisms/ODD/ProtocolDetails/ProtocolDetailsSkeleton.tsx b/app/src/organisms/ODD/ProtocolDetails/ProtocolDetailsSkeleton.tsx index aa241725f18..e34e2d92b35 100644 --- a/app/src/organisms/ODD/ProtocolDetails/ProtocolDetailsSkeleton.tsx +++ b/app/src/organisms/ODD/ProtocolDetails/ProtocolDetailsSkeleton.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { Flex, BORDERS, DIRECTION_COLUMN, SPACING } from '@opentrons/components' -import { Skeleton } from '../../../atoms/Skeleton' +import { Skeleton } from '/app/atoms/Skeleton' export function ProtocolDetailsHeaderChipSkeleton(): JSX.Element { return ( diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupDeckConfiguration/__tests__/ProtocolSetupDeckConfiguration.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupDeckConfiguration/__tests__/ProtocolSetupDeckConfiguration.test.tsx index 499ea4cf717..f56c6db8c72 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupDeckConfiguration/__tests__/ProtocolSetupDeckConfiguration.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupDeckConfiguration/__tests__/ProtocolSetupDeckConfiguration.test.tsx @@ -9,11 +9,11 @@ import { useUpdateDeckConfigurationMutation, } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useMostRecentCompletedAnalysis } from '../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { ProtocolSetupDeckConfiguration } from '..' -import { useNotifyDeckConfigurationQuery } from '../../../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { UseQueryResult } from 'react-query' import type { @@ -25,7 +25,7 @@ import type { Modules } from '@opentrons/api-client' vi.mock('@opentrons/components/src/hardware-sim/BaseDeck/index') vi.mock('@opentrons/react-api-client') vi.mock('../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis') -vi.mock('../../../../../resources/deck_configuration') +vi.mock('/app/resources/deck_configuration') const mockSetSetupScreen = vi.fn() const PROTOCOL_DETAILS = { diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupDeckConfiguration/index.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupDeckConfiguration/index.tsx index c18604f51a8..cc3c181bd2c 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupDeckConfiguration/index.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupDeckConfiguration/index.tsx @@ -24,7 +24,7 @@ import { AddFixtureModal } from '../../../DeviceDetailsDeckConfiguration/AddFixt import { DeckConfigurationDiscardChangesModal } from '../../../DeviceDetailsDeckConfiguration/DeckConfigurationDiscardChangesModal' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { getTopPortalEl } from '../../../../App/portal' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { CutoutFixtureId, diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/ProtocolSetupInstruments.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/ProtocolSetupInstruments.tsx index 0a292625b30..6c757f16dce 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/ProtocolSetupInstruments.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/ProtocolSetupInstruments.tsx @@ -11,8 +11,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { ODDBackButton } from '../../../../molecules/ODDBackButton' -import { PipetteRecalibrationODDWarning } from '../../../../pages/ODD/InstrumentsDashboard/PipetteRecalibrationODDWarning' +import { ODDBackButton } from '/app/molecules/ODDBackButton' +import { PipetteRecalibrationODDWarning } from '/app/pages/ODD/InstrumentsDashboard/PipetteRecalibrationODDWarning' import { getShowPipetteCalibrationWarning } from '../../../Devices/utils' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { ProtocolInstrumentMountItem } from '../../../InstrumentMountItem' @@ -20,7 +20,7 @@ import { ProtocolInstrumentMountItem } from '../../../InstrumentMountItem' import type { GripperData, PipetteData } from '@opentrons/api-client' import type { GripperModel } from '@opentrons/shared-data' import type { SetupScreens } from '../types' -import { isGripperInCommands } from '../../../../resources/protocols/utils' +import { isGripperInCommands } from '/app/resources/protocols/utils' export interface ProtocolSetupInstrumentsProps { runId: string diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/__tests__/ProtocolSetupInstruments.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/__tests__/ProtocolSetupInstruments.test.tsx index 14edc2b89f8..3d82d3e544d 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/__tests__/ProtocolSetupInstruments.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/__tests__/ProtocolSetupInstruments.test.tsx @@ -9,18 +9,16 @@ import { useAllPipetteOffsetCalibrationsQuery, } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { useMostRecentCompletedAnalysis } from '../../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -import { useIsOEMMode } from '../../../../../resources/robot-settings/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useMostRecentCompletedAnalysis } from '/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' +import { useIsOEMMode } from '/app/resources/robot-settings/hooks' import { mockRecentAnalysis } from '../__fixtures__' import { ProtocolSetupInstruments } from '..' vi.mock('@opentrons/react-api-client') -vi.mock( - '../../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -) -vi.mock('../../../../../resources/robot-settings/hooks') +vi.mock('/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis') +vi.mock('/app/resources/robot-settings/hooks') const mockGripperData = { instrumentModel: 'gripper_v1', diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/utils.ts b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/utils.ts index ee19492827b..c0d3a5ee30d 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/utils.ts +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/utils.ts @@ -8,7 +8,7 @@ import type { PipetteData, } from '@opentrons/api-client' -import { getProtocolUsesGripper } from '../../../../transformations/commands' +import { getProtocolUsesGripper } from '/app/transformations/commands' export function getAttachedGripper( attachedInstruments: Instruments diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/SingleLabwareModal.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/SingleLabwareModal.tsx index c50becdfd95..81ced71c592 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/SingleLabwareModal.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/SingleLabwareModal.tsx @@ -18,7 +18,7 @@ import { import { getLabwareDisplayName } from '@opentrons/shared-data' import { getTopPortalEl } from '../../../../App/portal' -import { OddModal } from '../../../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' import type { CompletedProtocolAnalysis, diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/__tests__/LabwareMapView.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/__tests__/LabwareMapView.test.tsx index ac20b68e8bd..541c719def6 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/__tests__/LabwareMapView.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/__tests__/LabwareMapView.test.tsx @@ -10,8 +10,8 @@ import { fixtureTiprack300ul, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { getLabwareRenderInfo } from '../../../../Devices/ProtocolRun/utils/getLabwareRenderInfo' import { getStandardDeckViewLayerBlockList } from '../../../../Devices/ProtocolRun/utils/getStandardDeckViewLayerBlockList' import { mockProtocolModuleInfo } from '../__fixtures__' @@ -29,8 +29,8 @@ vi.mock('../../../../Devices/ProtocolRun/utils/getLabwareRenderInfo') vi.mock('@opentrons/components/src/hardware-sim/Labware/LabwareRender') vi.mock('@opentrons/components/src/hardware-sim/BaseDeck') vi.mock('@opentrons/shared-data/js/helpers/getSimplestFlexDeckConfig') -vi.mock('../../../../../resources/deck_configuration/utils') -vi.mock('../../../../../redux/config') +vi.mock('/app/resources/deck_configuration/utils') +vi.mock('/app/redux/config') const MOCK_300_UL_TIPRACK_COORDS = [30, 40, 0] diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/__tests__/ProtocolSetupLabware.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/__tests__/ProtocolSetupLabware.test.tsx index 174f0c7b72f..fe975d4ad0e 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/__tests__/ProtocolSetupLabware.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/__tests__/ProtocolSetupLabware.test.tsx @@ -13,9 +13,9 @@ import { ot3StandardDeckV5 as ot3StandardDeckDef, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { useMostRecentCompletedAnalysis } from '../../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useMostRecentCompletedAnalysis } from '/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' import { getProtocolModulesInfo } from '../../../../Devices/ProtocolRun/utils/getProtocolModulesInfo' import { ProtocolSetupLabware } from '..' import { @@ -27,7 +27,7 @@ import { mockUseModulesQueryOpening, mockUseModulesQueryUnknown, } from '../__fixtures__' -import { useNotifyDeckConfigurationQuery } from '../../../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type * as ReactApiClient from '@opentrons/react-api-client' @@ -40,11 +40,9 @@ vi.mock('@opentrons/react-api-client', async importOriginal => { } }) -vi.mock( - '../../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -) +vi.mock('/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis') vi.mock('../../../../Devices/ProtocolRun/utils/getProtocolModulesInfo') -vi.mock('../../../../../resources/deck_configuration') +vi.mock('/app/resources/deck_configuration') const RUN_ID = "otie's run" const mockSetSetupScreen = vi.fn() diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/index.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/index.tsx index 092138b8b2f..8a08f5fa672 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/index.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/index.tsx @@ -35,10 +35,10 @@ import { useModulesQuery, } from '@opentrons/react-api-client' -import { FloatingActionButton, SmallButton } from '../../../../atoms/buttons' -import { ODDBackButton } from '../../../../molecules/ODDBackButton' -import { getLabwareSetupItemGroups } from '../../../../transformations/commands' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration' +import { FloatingActionButton, SmallButton } from '/app/atoms/buttons' +import { ODDBackButton } from '/app/molecules/ODDBackButton' +import { getLabwareSetupItemGroups } from '/app/transformations/commands' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import { getProtocolModulesInfo } from '../../../Devices/ProtocolRun/utils/getProtocolModulesInfo' import { getNestedLabwareInfo } from '../../../Devices/ProtocolRun/SetupLabware/getNestedLabwareInfo' import { LabwareStackModal } from '../../../Devices/ProtocolRun/SetupLabware/LabwareStackModal' @@ -57,7 +57,7 @@ import type { RunTimeCommand, } from '@opentrons/shared-data' import type { HeaterShakerModule, Modules } from '@opentrons/api-client' -import type { LabwareSetupItem } from '../../../../transformations/commands' +import type { LabwareSetupItem } from '/app/transformations/commands' import type { SetupScreens } from '../types' import type { NestedLabwareInfo } from '../../../Devices/ProtocolRun/SetupLabware/getNestedLabwareInfo' import type { AttachedProtocolModuleMatch } from '../ProtocolSetupModulesAndDeck/utils' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/__tests__/LiquidDetails.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/__tests__/LiquidDetails.test.tsx index b1e4103a6c0..bf306507773 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/__tests__/LiquidDetails.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/__tests__/LiquidDetails.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen, fireEvent } from '@testing-library/react' import { describe, it, beforeEach, vi } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RUN_ID_1 } from '../../../../RunTimeControl/__fixtures__' import { getLocationInfoNames } from '../../../../Devices/ProtocolRun/utils/getLocationInfoNames' import { getVolumePerWell } from '../../../../Devices/ProtocolRun/SetupLiquids/utils' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/__tests__/ProtocolSetupLiquids.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/__tests__/ProtocolSetupLiquids.test.tsx index e3e77ab3681..cccd36241c5 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/__tests__/ProtocolSetupLiquids.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/__tests__/ProtocolSetupLiquids.test.tsx @@ -7,8 +7,8 @@ import { parseLiquidsInLoadOrder, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RUN_ID_1 } from '../../../../RunTimeControl/__fixtures__' import { getTotalVolumePerLiquidId } from '../../../../Devices/ProtocolRun/SetupLiquids/utils' import { useMostRecentCompletedAnalysis } from '../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' @@ -23,7 +23,7 @@ import { ProtocolSetupLiquids } from '..' import type * as SharedData from '@opentrons/shared-data' vi.mock('../../../../Devices/ProtocolRun/SetupLiquids/utils') -vi.mock('../../../../../atoms/buttons') +vi.mock('/app/atoms/buttons') vi.mock('../LiquidDetails') vi.mock('../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis') vi.mock('@opentrons/shared-data', async importOriginal => { diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/index.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/index.tsx index 14290caf69b..f271d312716 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/index.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/index.tsx @@ -19,8 +19,8 @@ import { parseLabwareInfoByLiquidId, parseLiquidsInLoadOrder, } from '@opentrons/shared-data' -import { ODDBackButton } from '../../../../molecules/ODDBackButton' -import { SmallButton } from '../../../../atoms/buttons' +import { ODDBackButton } from '/app/molecules/ODDBackButton' +import { SmallButton } from '/app/atoms/buttons' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { getTotalVolumePerLiquidId } from '../../../Devices/ProtocolRun/SetupLiquids/utils' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/FixtureTable.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/FixtureTable.tsx index 904ce8513ce..43e5ae29036 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/FixtureTable.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/FixtureTable.tsx @@ -22,9 +22,9 @@ import { SINGLE_SLOT_FIXTURES, } from '@opentrons/shared-data' -import { SmallButton } from '../../../../atoms/buttons' -import { useDeckConfigurationCompatibility } from '../../../../resources/deck_configuration/hooks' -import { getRequiredDeckConfig } from '../../../../resources/deck_configuration/utils' +import { SmallButton } from '/app/atoms/buttons' +import { useDeckConfigurationCompatibility } from '/app/resources/deck_configuration/hooks' +import { getRequiredDeckConfig } from '/app/resources/deck_configuration/utils' import { LocationConflictModal } from '../../../Devices/ProtocolRun/SetupModuleAndDeck/LocationConflictModal' import type { @@ -35,9 +35,9 @@ import type { RobotType, } from '@opentrons/shared-data' import type { SetupScreens } from '../types' -import type { CutoutConfigAndCompatibility } from '../../../../resources/deck_configuration/hooks' +import type { CutoutConfigAndCompatibility } from '/app/resources/deck_configuration/hooks' import { useSelector } from 'react-redux' -import { getLocalRobot } from '../../../../redux/discovery' +import { getLocalRobot } from '/app/redux/discovery' interface FixtureTableProps { robotType: RobotType diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ModuleTable.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ModuleTable.tsx index 664369120b4..0e3e442a7dd 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ModuleTable.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ModuleTable.tsx @@ -25,16 +25,16 @@ import { THERMOCYCLER_MODULE_TYPE, } from '@opentrons/shared-data' -import { SmallButton } from '../../../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' import { getModulePrepCommands } from '../../../Devices/getModulePrepCommands' import { getModuleTooHot } from '../../../Devices/getModuleTooHot' import { useRunCalibrationStatus } from '../../../Devices/hooks' import { LocationConflictModal } from '../../../Devices/ProtocolRun/SetupModuleAndDeck/LocationConflictModal' import { ModuleWizardFlows } from '../../../ModuleWizardFlows' import { useToaster } from '../../../ToasterOven' -import { getLocalRobot } from '../../../../redux/discovery' -import { useChainLiveCommands } from '../../../../resources/runs' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration' +import { getLocalRobot } from '/app/redux/discovery' +import { useChainLiveCommands } from '/app/resources/runs' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { CommandData } from '@opentrons/api-client' import type { CutoutConfig, DeckDefinition } from '@opentrons/shared-data' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ProtocolSetupModulesAndDeck.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ProtocolSetupModulesAndDeck.tsx index c32330b27e3..5d6ed7565e6 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ProtocolSetupModulesAndDeck.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ProtocolSetupModulesAndDeck.tsx @@ -17,12 +17,12 @@ import { import { RUN_STATUS_STOPPED } from '@opentrons/api-client' import { getTopPortalEl } from '../../../../App/portal' -import { FloatingActionButton } from '../../../../atoms/buttons' -import { InlineNotification } from '../../../../atoms/InlineNotification' -import { ChildNavigation } from '../../../../organisms/ChildNavigation' -import { useAttachedModules } from '../../../../organisms/Devices/hooks' -import { getProtocolModulesInfo } from '../../../../organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo' -import { useMostRecentCompletedAnalysis } from '../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' +import { FloatingActionButton } from '/app/atoms/buttons' +import { InlineNotification } from '/app/atoms/InlineNotification' +import { ChildNavigation } from '/app/organisms/ChildNavigation' +import { useAttachedModules } from '/app/organisms/Devices/hooks' +import { getProtocolModulesInfo } from '/app/organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo' +import { useMostRecentCompletedAnalysis } from '/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useRunStatus } from '../../../RunTimeControl/hooks' import { getAttachedProtocolModuleMatches, @@ -32,7 +32,7 @@ import { SetupInstructionsModal } from './SetupInstructionsModal' import { FixtureTable } from './FixtureTable' import { ModuleTable } from './ModuleTable' import { ModulesAndDeckMapView } from './ModulesAndDeckMapView' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { CutoutId, CutoutFixtureId } from '@opentrons/shared-data' import type { SetupScreens } from '../types' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/SetupInstructionsModal.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/SetupInstructionsModal.tsx index 2c4e141a1db..4c701bc108e 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/SetupInstructionsModal.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/SetupInstructionsModal.tsx @@ -12,11 +12,11 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { OddModal } from '../../../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' -import type { OddModalHeaderBaseProps } from '../../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' -import imgSrc from '../../../../assets/images/on-device-display/setup_instructions_qr_code.png' +import imgSrc from '/app/assets/images/on-device-display/setup_instructions_qr_code.png' const INSTRUCTIONS_URL = 'support.opentrons.com/s/modules' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/FixtureTable.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/FixtureTable.test.tsx index 6e7769440ea..2f754de1590 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/FixtureTable.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/FixtureTable.test.tsx @@ -10,18 +10,18 @@ import { TRASH_BIN_ADAPTER_FIXTURE, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { LocationConflictModal } from '../../../../../organisms/Devices/ProtocolRun/SetupModuleAndDeck/LocationConflictModal' -import { useDeckConfigurationCompatibility } from '../../../../../resources/deck_configuration/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { LocationConflictModal } from '/app/organisms/Devices/ProtocolRun/SetupModuleAndDeck/LocationConflictModal' +import { useDeckConfigurationCompatibility } from '/app/resources/deck_configuration/hooks' import { FixtureTable } from '../FixtureTable' -import { getLocalRobot } from '../../../../../redux/discovery' -import { mockConnectedRobot } from '../../../../../redux/discovery/__fixtures__' +import { getLocalRobot } from '/app/redux/discovery' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' -vi.mock('../../../../../redux/discovery') -vi.mock('../../../../../resources/deck_configuration/hooks') +vi.mock('/app/redux/discovery') +vi.mock('/app/resources/deck_configuration/hooks') vi.mock( - '../../../../../organisms/Devices/ProtocolRun/SetupModuleAndDeck/LocationConflictModal' + '/app/organisms/Devices/ProtocolRun/SetupModuleAndDeck/LocationConflictModal' ) const mockSetSetupScreen = vi.fn() diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/ModulesAndDeckMapView.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/ModulesAndDeckMapView.test.tsx index 14ae921ee15..0fb9b90fd97 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/ModulesAndDeckMapView.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/ModulesAndDeckMapView.test.tsx @@ -8,16 +8,16 @@ import { getSimplestDeckConfigForProtocol, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ModulesAndDeckMapView } from '../ModulesAndDeckMapView' vi.mock('@opentrons/components/src/hardware-sim/BaseDeck') vi.mock('@opentrons/api-client') vi.mock('@opentrons/shared-data/js/helpers/getSimplestFlexDeckConfig') -vi.mock('../../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../../../../Devices/hooks') -vi.mock('../../../../../resources/deck_configuration/utils') +vi.mock('/app/resources/deck_configuration/utils') vi.mock('../../../../Devices/ModuleInfo') vi.mock('../../../../Devices/ProtocolRun/utils/getLabwareRenderInfo') diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/ProtocolSetupModulesAndDeck.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/ProtocolSetupModulesAndDeck.test.tsx index cb268c18906..9b97db1eccf 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/ProtocolSetupModulesAndDeck.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/ProtocolSetupModulesAndDeck.test.tsx @@ -11,20 +11,20 @@ import { getDeckDefFromRobotType, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { useChainLiveCommands } from '../../../../../resources/runs' -import { mockRobotSideAnalysis } from '../../../../../molecules/Command/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useChainLiveCommands } from '/app/resources/runs' +import { mockRobotSideAnalysis } from '/app/molecules/Command/__fixtures__' import { useAttachedModules, useRunCalibrationStatus, } from '../../../../Devices/hooks' import { useMostRecentCompletedAnalysis } from '../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { getProtocolModulesInfo } from '../../../../Devices/ProtocolRun/utils/getProtocolModulesInfo' -import { mockApiHeaterShaker } from '../../../../../redux/modules/__fixtures__' +import { mockApiHeaterShaker } from '/app/redux/modules/__fixtures__' import { mockProtocolModuleInfo } from '../../ProtocolSetupInstruments/__fixtures__' -import { getLocalRobot } from '../../../../../redux/discovery' -import { mockConnectedRobot } from '../../../../../redux/discovery/__fixtures__' +import { getLocalRobot } from '/app/redux/discovery' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' import { getAttachedProtocolModuleMatches, getUnmatchedModulesForProtocol, @@ -35,22 +35,18 @@ import { SetupInstructionsModal } from '../SetupInstructionsModal' import { FixtureTable } from '../FixtureTable' import { ModulesAndDeckMapView } from '../ModulesAndDeckMapView' import { ProtocolSetupModulesAndDeck } from '..' -import { useNotifyDeckConfigurationQuery } from '../../../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import { useRunStatus } from '../../../../RunTimeControl/hooks' import type { CutoutConfig, DeckConfiguration } from '@opentrons/shared-data' import type { UseQueryResult } from 'react-query' -vi.mock('../../../../../resources/runs') -vi.mock('../../../../../redux/discovery') -vi.mock('../../../../../organisms/Devices/hooks') -vi.mock('../../../../../resources/deck_configuration') -vi.mock( - '../../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -) -vi.mock( - '../../../../../organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo' -) +vi.mock('/app/resources/runs') +vi.mock('/app/redux/discovery') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/resources/deck_configuration') +vi.mock('/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis') +vi.mock('/app/organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo') vi.mock('../utils') vi.mock('../SetupInstructionsModal') vi.mock('../../../../ModuleWizardFlows') diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/SetupInstructionsModal.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/SetupInstructionsModal.test.tsx index 65b1949cef2..28c0dd8222b 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/SetupInstructionsModal.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/SetupInstructionsModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, beforeEach, vi } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SetupInstructionsModal } from '../SetupInstructionsModal' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/utils.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/utils.test.tsx index 852c5f04e11..81fb410bc30 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/utils.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/__tests__/utils.test.tsx @@ -4,7 +4,7 @@ import { getModuleDef2, } from '@opentrons/shared-data' -import { mockTemperatureModuleGen2 } from '../../../../../redux/modules/__fixtures__' +import { mockTemperatureModuleGen2 } from '/app/redux/modules/__fixtures__' import { getAttachedProtocolModuleMatches, getUnmatchedModulesForProtocol, diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/utils.ts b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/utils.ts index fb4ecb5ad7f..6d98c8edd11 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/utils.ts +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/utils.ts @@ -11,7 +11,7 @@ import { import type { DeckConfiguration, RobotType } from '@opentrons/shared-data' import type { ProtocolModuleInfo } from '../../../Devices/ProtocolRun/utils/getProtocolModulesInfo' -import type { AttachedModule } from '../../../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' export type AttachedProtocolModuleMatch = ProtocolModuleInfo & { attachedModuleMatch: AttachedModule | null diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupOffsets/index.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupOffsets/index.tsx index 85395e5a085..a66e6dd8a93 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupOffsets/index.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupOffsets/index.tsx @@ -12,15 +12,15 @@ import { } from '@opentrons/components' import type { LabwareOffset } from '@opentrons/api-client' -import { useToaster } from '../../../../organisms/ToasterOven' -import { ODDBackButton } from '../../../../molecules/ODDBackButton' -import { FloatingActionButton, SmallButton } from '../../../../atoms/buttons' +import { useToaster } from '/app/organisms/ToasterOven' +import { ODDBackButton } from '/app/molecules/ODDBackButton' +import { FloatingActionButton, SmallButton } from '/app/atoms/buttons' import type { SetupScreens } from '../types' import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' -import { TerseOffsetTable } from '../../../../organisms/LabwarePositionCheck/ResultsSummary' -import { getLabwareDefinitionsFromCommands } from '../../../../molecules/Command/utils/getLabwareDefinitionsFromCommands' -import { useNotifyRunQuery } from '../../../../resources/runs' -import { getLatestCurrentOffsets } from '../../../../organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/utils' +import { TerseOffsetTable } from '/app/organisms/LabwarePositionCheck/ResultsSummary' +import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/getLabwareDefinitionsFromCommands' +import { useNotifyRunQuery } from '/app/resources/runs' +import { getLatestCurrentOffsets } from '/app/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/utils' export interface ProtocolSetupOffsetsProps { runId: string diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/AnalysisFailedModal.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/AnalysisFailedModal.tsx index a993a0a8b43..2d22198a58b 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/AnalysisFailedModal.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/AnalysisFailedModal.tsx @@ -11,10 +11,10 @@ import { } from '@opentrons/components' import { useDismissCurrentRunMutation } from '@opentrons/react-api-client' -import { SmallButton } from '../../../../atoms/buttons' -import { OddModal } from '../../../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' -import type { OddModalHeaderBaseProps } from '../../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface AnalysisFailedModalProps { errors: string[] diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ChooseCsvFile.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ChooseCsvFile.tsx index 309d3350724..eac9523b702 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ChooseCsvFile.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ChooseCsvFile.tsx @@ -18,7 +18,7 @@ import { } from '@opentrons/components' import { useAllCsvFilesQuery } from '@opentrons/react-api-client' -import { getShellUpdateDataFiles } from '../../../../redux/shell' +import { getShellUpdateDataFiles } from '/app/redux/shell' import { ChildNavigation } from '../../../ChildNavigation' import { EmptyFile } from './EmptyFile' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ChooseNumber.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ChooseNumber.tsx index 2a2fe6a4dc6..53475939420 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ChooseNumber.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ChooseNumber.tsx @@ -13,7 +13,7 @@ import { import { useToaster } from '../../../ToasterOven' import { ChildNavigation } from '../../../ChildNavigation' -import { NumericalKeyboard } from '../../../../atoms/SoftwareKeyboard' +import { NumericalKeyboard } from '/app/atoms/SoftwareKeyboard' import type { NumberParameter } from '@opentrons/shared-data' interface ChooseNumberProps { diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ResetValuesModal.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ResetValuesModal.tsx index 64468e9176e..4000052e933 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ResetValuesModal.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ResetValuesModal.tsx @@ -11,11 +11,11 @@ import { LegacyStyledText, } from '@opentrons/components' -import { SmallButton } from '../../../../atoms/buttons' -import { OddModal } from '../../../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' import type { RunTimeParameter } from '@opentrons/shared-data' -import type { OddModalHeaderBaseProps } from '../../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface ResetValuesModalProps { runTimeParametersOverrides: RunTimeParameter[] diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/AnalysisFailedModal.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/AnalysisFailedModal.test.tsx index 96b6c0c8a4a..b64e1c34e54 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/AnalysisFailedModal.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/AnalysisFailedModal.test.tsx @@ -4,8 +4,8 @@ import { when } from 'vitest-when' import { fireEvent, screen } from '@testing-library/react' import { useDismissCurrentRunMutation } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { AnalysisFailedModal } from '../AnalysisFailedModal' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseCsvFile.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseCsvFile.test.tsx index 4f095a834e3..6440581840c 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseCsvFile.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseCsvFile.test.tsx @@ -5,19 +5,19 @@ import { when } from 'vitest-when' import { useAllCsvFilesQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../../../i18n' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { mockConnectedRobot } from '../../../../../redux/discovery/__fixtures__' -import { getLocalRobot } from '../../../../../redux/discovery' -import { getShellUpdateDataFiles } from '../../../../../redux/shell' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' +import { getLocalRobot } from '/app/redux/discovery' +import { getShellUpdateDataFiles } from '/app/redux/shell' import { EmptyFile } from '../EmptyFile' import { ChooseCsvFile } from '../ChooseCsvFile' import type { CsvFileParameter } from '@opentrons/shared-data' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../../redux/discovery') -vi.mock('../../../../../redux/shell') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/shell') vi.mock('../EmptyFile') const mockHandleGoBack = vi.fn() diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseEnum.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseEnum.test.tsx index fffc31e5127..9e19d40a78b 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseEnum.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseEnum.test.tsx @@ -3,8 +3,8 @@ import { it, describe, beforeEach, vi, expect } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ChooseEnum } from '../ChooseEnum' vi.mocked('../../../../ToasterOven') diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseNumber.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseNumber.test.tsx index 56ec3669c8d..c8e354fe39d 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseNumber.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ChooseNumber.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { it, describe, beforeEach, vi, expect } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useToaster } from '../../../../ToasterOven' -import { mockRunTimeParameterData } from '../../../../../pages/ODD/ProtocolDetails/fixtures' +import { mockRunTimeParameterData } from '/app/pages/ODD/ProtocolDetails/fixtures' import { ChooseNumber } from '../ChooseNumber' import type { NumberParameter } from '@opentrons/shared-data' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/EmptyFile.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/EmptyFile.test.tsx index 804eb946cfa..0a48ea73f5a 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/EmptyFile.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/EmptyFile.test.tsx @@ -11,8 +11,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { i18n } from '../../../../../i18n' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { EmptyFile } from '../EmptyFile' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ProtocolSetupParameters.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ProtocolSetupParameters.test.tsx index 1b6fe5ae376..65ebf91787c 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ProtocolSetupParameters.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ProtocolSetupParameters.test.tsx @@ -10,12 +10,12 @@ import { } from '@opentrons/react-api-client' import { COLORS } from '@opentrons/components' -import { i18n } from '../../../../../i18n' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { ChooseEnum } from '../ChooseEnum' import { ChooseNumber } from '../ChooseNumber' import { ChooseCsvFile } from '../ChooseCsvFile' -import { mockRunTimeParameterData } from '../../../../../pages/ODD/ProtocolDetails/fixtures' +import { mockRunTimeParameterData } from '/app/pages/ODD/ProtocolDetails/fixtures' import { useToaster } from '../../../../ToasterOven' import { ProtocolSetupParameters } from '..' @@ -28,7 +28,7 @@ const mockNavigate = vi.fn() vi.mock('../ChooseEnum') vi.mock('../ChooseNumber') vi.mock('../ChooseCsvFile') -vi.mock('../../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../../../../ToasterOven') vi.mock('@opentrons/react-api-client') vi.mock('../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis') @@ -39,7 +39,7 @@ vi.mock('react-router-dom', async importOriginal => { useNavigate: () => mockNavigate, } }) -vi.mock('../../../../../redux/config') +vi.mock('/app/redux/config') const MOCK_HOST_CONFIG: HostConfig = { hostname: 'MOCK_HOST' } const mockCreateProtocolAnalysis = vi.fn() diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ResetValuesModal.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ResetValuesModal.test.tsx index 48d232edc5c..244fa6808ed 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ResetValuesModal.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ResetValuesModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { describe, it, vi, beforeEach, expect } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ResetValuesModal } from '../ResetValuesModal' import type { RunTimeParameter } from '@opentrons/shared-data' diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ViewOnlyParameters.test.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ViewOnlyParameters.test.tsx index 0c38e37e7ee..425329e4fcb 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ViewOnlyParameters.test.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/__tests__/ViewOnlyParameters.test.tsx @@ -2,11 +2,11 @@ import * as React from 'react' import { when } from 'vitest-when' import { it, describe, beforeEach, vi, expect } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { i18n } from '../../../../../i18n' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { useMostRecentCompletedAnalysis } from '../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useToaster } from '../../../../ToasterOven' -import { mockRunTimeParameterData } from '../../../../../pages/ODD/ProtocolDetails/fixtures' +import { mockRunTimeParameterData } from '/app/pages/ODD/ProtocolDetails/fixtures' import { ViewOnlyParameters } from '../ViewOnlyParameters' vi.mock('../../../../LabwarePositionCheck/useMostRecentCompletedAnalysis') diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupSkeleton.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupSkeleton.tsx index 23a51d26439..4fc048a4422 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupSkeleton.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupSkeleton.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { BORDERS } from '@opentrons/components' -import { Skeleton } from '../../../atoms/Skeleton' +import { Skeleton } from '/app/atoms/Skeleton' export function ProtocolSetupTitleSkeleton(): JSX.Element { return ( diff --git a/app/src/organisms/ODD/RobotDashboard/EmptyRecentRun.tsx b/app/src/organisms/ODD/RobotDashboard/EmptyRecentRun.tsx index 3233dc9bb37..ddf462e570a 100644 --- a/app/src/organisms/ODD/RobotDashboard/EmptyRecentRun.tsx +++ b/app/src/organisms/ODD/RobotDashboard/EmptyRecentRun.tsx @@ -13,7 +13,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import abstractImage from '../../../assets/images/on-device-display/empty_protocol_dashboard.png' +import abstractImage from '/app/assets/images/on-device-display/empty_protocol_dashboard.png' export function EmptyRecentRun(): JSX.Element { const { t } = useTranslation('device_details') diff --git a/app/src/organisms/ODD/RobotDashboard/RecentRunProtocolCard.tsx b/app/src/organisms/ODD/RobotDashboard/RecentRunProtocolCard.tsx index cc735256244..88c7e53a845 100644 --- a/app/src/organisms/ODD/RobotDashboard/RecentRunProtocolCard.tsx +++ b/app/src/organisms/ODD/RobotDashboard/RecentRunProtocolCard.tsx @@ -28,13 +28,13 @@ import { RUN_STATUS_SUCCEEDED, } from '@opentrons/api-client' -import { ODD_FOCUS_VISIBLE } from '../../../atoms/buttons/constants' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' import { useTrackEvent, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, -} from '../../../redux/analytics' -import { Skeleton } from '../../../atoms/Skeleton' -import { useMissingProtocolHardware } from '../../../transformations/commands' +} from '/app/redux/analytics' +import { Skeleton } from '/app/atoms/Skeleton' +import { useMissingProtocolHardware } from '/app/transformations/commands' import { useCloneRun } from '../../ProtocolUpload/hooks' import { useRerunnableStatusText } from './hooks' diff --git a/app/src/organisms/ODD/RobotDashboard/__tests__/EmptyRecentRun.test.tsx b/app/src/organisms/ODD/RobotDashboard/__tests__/EmptyRecentRun.test.tsx index 25e8df22f2b..5cfd0b070b6 100644 --- a/app/src/organisms/ODD/RobotDashboard/__tests__/EmptyRecentRun.test.tsx +++ b/app/src/organisms/ODD/RobotDashboard/__tests__/EmptyRecentRun.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, expect, it } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { EmptyRecentRun } from '../EmptyRecentRun' const PNG_FILE_NAME = diff --git a/app/src/organisms/ODD/RobotDashboard/__tests__/RecentRunProtocolCard.test.tsx b/app/src/organisms/ODD/RobotDashboard/__tests__/RecentRunProtocolCard.test.tsx index 967b44ce21e..ca7a51dfb21 100644 --- a/app/src/organisms/ODD/RobotDashboard/__tests__/RecentRunProtocolCard.test.tsx +++ b/app/src/organisms/ODD/RobotDashboard/__tests__/RecentRunProtocolCard.test.tsx @@ -13,22 +13,22 @@ import { } from '@opentrons/react-api-client' import { simpleAnalysisFileFixture } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { Skeleton } from '../../../../atoms/Skeleton' -import { useMissingProtocolHardware } from '../../../../transformations/commands' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { Skeleton } from '/app/atoms/Skeleton' +import { useMissingProtocolHardware } from '/app/transformations/commands' import { useTrackProtocolRunEvent } from '../../../Devices/hooks' import { useTrackEvent, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, -} from '../../../../redux/analytics' +} from '/app/redux/analytics' import { useCloneRun } from '../../../ProtocolUpload/hooks' import { useRerunnableStatusText } from '../hooks' import { RecentRunProtocolCard } from '../' -import { useNotifyAllRunsQuery } from '../../../../resources/runs' +import { useNotifyAllRunsQuery } from '/app/resources/runs' import type { NavigateFunction } from 'react-router-dom' -import type { ProtocolHardware } from '../../../../transformations/commands' +import type { ProtocolHardware } from '/app/transformations/commands' const mockNavigate = vi.fn() @@ -41,15 +41,15 @@ vi.mock('react-router-dom', async importOriginal => { }) vi.mock('@opentrons/react-api-client') -vi.mock('../../../../atoms/Skeleton') -vi.mock('../../../../transformations/commands') -vi.mock('../../../../pages/ODD/ProtocolDetails') -vi.mock('../../../../organisms/Devices/hooks') -vi.mock('../../../../organisms/RunTimeControl/hooks') -vi.mock('../../../../organisms/ProtocolUpload/hooks') -vi.mock('../../../../redux/analytics') +vi.mock('/app/atoms/Skeleton') +vi.mock('/app/transformations/commands') +vi.mock('/app/pages/ODD/ProtocolDetails') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/organisms/RunTimeControl/hooks') +vi.mock('/app/organisms/ProtocolUpload/hooks') +vi.mock('/app/redux/analytics') vi.mock('../hooks') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') const RUN_ID = 'mockRunId' const ROBOT_NAME = 'otie' diff --git a/app/src/organisms/ODD/RobotDashboard/__tests__/RecentRunProtocolCarousel.test.tsx b/app/src/organisms/ODD/RobotDashboard/__tests__/RecentRunProtocolCarousel.test.tsx index f029d739806..be90caa09e4 100644 --- a/app/src/organisms/ODD/RobotDashboard/__tests__/RecentRunProtocolCarousel.test.tsx +++ b/app/src/organisms/ODD/RobotDashboard/__tests__/RecentRunProtocolCarousel.test.tsx @@ -2,15 +2,15 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { beforeEach, describe, it, vi } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { useNotifyAllRunsQuery } from '../../../../resources/runs' +import { renderWithProviders } from '/app/__testing-utils__' +import { useNotifyAllRunsQuery } from '/app/resources/runs' import { RecentRunProtocolCard, RecentRunProtocolCarousel } from '..' import type { RunData } from '@opentrons/api-client' vi.mock('@opentrons/react-api-client') vi.mock('../RecentRunProtocolCard') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') const mockRun = { actions: [], diff --git a/app/src/organisms/ODD/RobotDashboard/hooks/__tests__/useHardwareStatusText.test.tsx b/app/src/organisms/ODD/RobotDashboard/hooks/__tests__/useHardwareStatusText.test.tsx index c5c87003bff..04388bda536 100644 --- a/app/src/organisms/ODD/RobotDashboard/hooks/__tests__/useHardwareStatusText.test.tsx +++ b/app/src/organisms/ODD/RobotDashboard/hooks/__tests__/useHardwareStatusText.test.tsx @@ -3,11 +3,11 @@ import { I18nextProvider } from 'react-i18next' import { renderHook } from '@testing-library/react' import { beforeEach, describe, expect, it, vi } from 'vitest' -import { i18n } from '../../../../../i18n' -import { useFeatureFlag } from '../../../../../redux/config' +import { i18n } from '/app/i18n' +import { useFeatureFlag } from '/app/redux/config' import { useHardwareStatusText } from '..' -vi.mock('../../../../../redux/config') +vi.mock('/app/redux/config') describe('useHardwareStatusText', () => { let wrapper: React.FunctionComponent<{ children: React.ReactNode }> diff --git a/app/src/organisms/ODD/RobotDashboard/hooks/useHardwareStatusText.ts b/app/src/organisms/ODD/RobotDashboard/hooks/useHardwareStatusText.ts index 0f285e2c24e..5ba7c189066 100644 --- a/app/src/organisms/ODD/RobotDashboard/hooks/useHardwareStatusText.ts +++ b/app/src/organisms/ODD/RobotDashboard/hooks/useHardwareStatusText.ts @@ -1,6 +1,6 @@ import { useTranslation } from 'react-i18next' -import type { ProtocolHardware } from '../../../../transformations/commands' +import type { ProtocolHardware } from '/app/transformations/commands' export function useHardwareStatusText( missingProtocolHardware: ProtocolHardware[], diff --git a/app/src/organisms/ODD/RobotDashboard/hooks/useRerunnableStatusText.ts b/app/src/organisms/ODD/RobotDashboard/hooks/useRerunnableStatusText.ts index e9d8353f95f..b57a47d39db 100644 --- a/app/src/organisms/ODD/RobotDashboard/hooks/useRerunnableStatusText.ts +++ b/app/src/organisms/ODD/RobotDashboard/hooks/useRerunnableStatusText.ts @@ -1,6 +1,6 @@ import { useTranslation } from 'react-i18next' import { useHardwareStatusText } from './useHardwareStatusText' -import type { ProtocolHardware } from '../../../../transformations/commands' +import type { ProtocolHardware } from '/app/transformations/commands' export function useRerunnableStatusText( runOk: boolean, diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/DeviceReset.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/DeviceReset.tsx index 0153e40f22d..d7416bbe625 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/DeviceReset.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/DeviceReset.tsx @@ -15,20 +15,20 @@ import { useConditionalConfirm, } from '@opentrons/components' -import { MediumButton, SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' -import { ChildNavigation } from '../../../organisms/ChildNavigation' +import { MediumButton, SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { getResetConfigOptions, fetchResetConfigOptions, resetConfig, -} from '../../../redux/robot-admin' -import { useDispatchApiRequest } from '../../../redux/robot-api' +} from '/app/redux/robot-admin' +import { useDispatchApiRequest } from '/app/redux/robot-api' -import type { Dispatch, State } from '../../../redux/types' -import type { ResetConfigRequest } from '../../../redux/robot-admin/types' +import type { Dispatch, State } from '/app/redux/types' +import type { ResetConfigRequest } from '/app/redux/robot-admin/types' import type { SetSettingOption } from './types' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface LabelProps { isSelected?: boolean diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/EthernetConnectionDetails.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/EthernetConnectionDetails.tsx index 2ccb0f56acf..34653237faa 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/EthernetConnectionDetails.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/EthernetConnectionDetails.tsx @@ -15,11 +15,11 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ChildNavigation } from '../../../../organisms/ChildNavigation' -import { getNetworkInterfaces } from '../../../../redux/networking' -import { getLocalRobot } from '../../../../redux/discovery' +import { ChildNavigation } from '/app/organisms/ChildNavigation' +import { getNetworkInterfaces } from '/app/redux/networking' +import { getLocalRobot } from '/app/redux/discovery' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' const STRETCH_LIST_STYLE = css` width: 100%; diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/NetworkDetailsModal.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/NetworkDetailsModal.tsx index 9bff7c0c26f..a6b6c5fa473 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/NetworkDetailsModal.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/NetworkDetailsModal.tsx @@ -14,9 +14,9 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { OddModal } from '../../../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' -import type { OddModalHeaderBaseProps } from '../../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface NetworkDetailsModalProps { setShowNetworkDetailModal: (showNetworkDetailModal: boolean) => void diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsJoinOtherNetwork.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsJoinOtherNetwork.tsx index 9c83651b76b..bf11cbd22c8 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsJoinOtherNetwork.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsJoinOtherNetwork.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next' import { DIRECTION_COLUMN, Flex } from '@opentrons/components' -import { ChildNavigation } from '../../../../organisms/ChildNavigation' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { SetWifiSsid } from '../../NetworkSettings' import type { SetSettingOption } from '../types' diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsSelectAuthenticationType.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsSelectAuthenticationType.tsx index be9988ef579..bb870f8fb77 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsSelectAuthenticationType.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsSelectAuthenticationType.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next' import { DIRECTION_COLUMN, Flex } from '@opentrons/components' -import { ChildNavigation } from '../../../../organisms/ChildNavigation' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { SelectAuthenticationType } from '../../NetworkSettings' import type { WifiSecurityType } from '@opentrons/api-client' diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsSetWifiCred.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsSetWifiCred.tsx index 68fa084b4a7..f86e4d977b1 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsSetWifiCred.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsSetWifiCred.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next' import { DIRECTION_COLUMN, Flex } from '@opentrons/components' -import { ChildNavigation } from '../../../../organisms/ChildNavigation' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { SetWifiCred } from '../../NetworkSettings/SetWifiCred' import type { SetSettingOption } from '../types' diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsWifi.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsWifi.tsx index d1f05b10894..081c9967b38 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsWifi.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsWifi.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next' import { DIRECTION_COLUMN, Flex } from '@opentrons/components' -import { ChildNavigation } from '../../../../organisms/ChildNavigation' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { WifiConnectionDetails } from './WifiConnectionDetails' import type { WifiSecurityType } from '@opentrons/api-client' diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsWifiConnect.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsWifiConnect.tsx index 4fb0510b5ff..70377aef3c8 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsWifiConnect.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/RobotSettingsWifiConnect.tsx @@ -3,12 +3,12 @@ import { useTranslation } from 'react-i18next' import { Flex, DIRECTION_COLUMN, SPACING } from '@opentrons/components' -import { ChildNavigation } from '../../../../organisms/ChildNavigation' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { ConnectingNetwork, FailedToConnect } from '../../NetworkSettings' -import { FAILURE, PENDING, SUCCESS } from '../../../../redux/robot-api' +import { FAILURE, PENDING, SUCCESS } from '/app/redux/robot-api' import type { SetSettingOption } from '../types' -import type { RequestState } from '../../../../redux/robot-api/types' +import type { RequestState } from '/app/redux/robot-api/types' interface RobotSettingsWifiConnectProps { handleConnect: () => void diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/WifiConnectionDetails.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/WifiConnectionDetails.tsx index e4ce4db581e..0d94ec04d55 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/WifiConnectionDetails.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/WifiConnectionDetails.tsx @@ -20,12 +20,12 @@ import { import { NetworkDetailsModal } from './NetworkDetailsModal' import { DisplayWifiList } from '../../NetworkSettings' -import { getLocalRobot } from '../../../../redux/discovery' -import { getNetworkInterfaces } from '../../../../redux/networking' -import { useWifiList } from '../../../../resources/networking/hooks' +import { getLocalRobot } from '/app/redux/discovery' +import { getNetworkInterfaces } from '/app/redux/networking' +import { useWifiList } from '/app/resources/networking/hooks' import type { WifiSecurityType } from '@opentrons/api-client' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' const FETCH_WIFI_LIST_MS = 5000 diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/EthernetConnectionDetails.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/EthernetConnectionDetails.test.tsx index 9f97bddebb3..e4d1a096ec7 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/EthernetConnectionDetails.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/EthernetConnectionDetails.test.tsx @@ -3,17 +3,17 @@ import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../../i18n' -import { INTERFACE_ETHERNET } from '../../../../../redux/networking' -import { getNetworkInterfaces } from '../../../../../redux/networking/selectors' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { getLocalRobot } from '../../../../../redux/discovery' -import { mockConnectedRobot } from '../../../../../redux/discovery/__fixtures__' +import { i18n } from '/app/i18n' +import { INTERFACE_ETHERNET } from '/app/redux/networking' +import { getNetworkInterfaces } from '/app/redux/networking/selectors' +import { renderWithProviders } from '/app/__testing-utils__' +import { getLocalRobot } from '/app/redux/discovery' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' import { EthernetConnectionDetails } from '../EthernetConnectionDetails' -vi.mock('../../../../../redux/discovery') -vi.mock('../../../../../redux/discovery/selectors') -vi.mock('../../../../../redux/networking/selectors') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/discovery/selectors') +vi.mock('/app/redux/networking/selectors') const render = ( props: React.ComponentProps diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/NetworkDetailsModal.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/NetworkDetailsModal.test.tsx index 1c7766156ee..21cd6fbc4c6 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/NetworkDetailsModal.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/NetworkDetailsModal.test.tsx @@ -3,8 +3,8 @@ import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../../i18n' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { NetworkDetailsModal } from '../NetworkDetailsModal' const mockFn = vi.fn() diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/NetworkSettings.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/NetworkSettings.test.tsx index c0af9d3e2d4..5c1244ba66c 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/NetworkSettings.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/NetworkSettings.test.tsx @@ -4,19 +4,19 @@ import { screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../../i18n' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { getLocalRobot } from '../../../../../redux/discovery' -import { useWifiList } from '../../../../../resources/networking/hooks' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { getLocalRobot } from '/app/redux/discovery' +import { useWifiList } from '/app/resources/networking/hooks' import { WifiConnectionDetails } from '../WifiConnectionDetails' import { EthernetConnectionDetails } from '../EthernetConnectionDetails' import { NetworkSettings } from '..' -import type { DiscoveredRobot } from '../../../../../redux/discovery/types' -import type { WifiNetwork } from '../../../../../redux/networking/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' +import type { WifiNetwork } from '/app/redux/networking/types' -vi.mock('../../../../../redux/discovery') -vi.mock('../../../../../resources/networking/hooks') +vi.mock('/app/redux/discovery') +vi.mock('/app/resources/networking/hooks') vi.mock('../WifiConnectionDetails') vi.mock('../EthernetConnectionDetails') diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/WifiConnectionDetails.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/WifiConnectionDetails.test.tsx index aa2ca76572b..b7d6aeafe18 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/WifiConnectionDetails.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/__tests__/WifiConnectionDetails.test.tsx @@ -4,17 +4,17 @@ import { when } from 'vitest-when' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../../i18n' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { getLocalRobot } from '../../../../../redux/discovery' -import * as Networking from '../../../../../redux/networking' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { getLocalRobot } from '/app/redux/discovery' +import * as Networking from '/app/redux/networking' import { NetworkDetailsModal } from '../NetworkDetailsModal' import { WifiConnectionDetails } from '../WifiConnectionDetails' import type * as Dom from 'react-router-dom' -import type { State } from '../../../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../../../redux/discovery') -vi.mock('../../../../../redux/networking') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/networking') vi.mock('../NetworkDetailsModal') const mockNavigate = vi.fn() diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/index.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/index.tsx index dfe066aeb54..f3e6c1ea351 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/index.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/NetworkSettings/index.tsx @@ -17,10 +17,10 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ChildNavigation } from '../../../../organisms/ChildNavigation' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import type { IconName, ChipType } from '@opentrons/components' -import type { NetworkConnection } from '../../../../resources/networking/hooks/useNetworkConnection' +import type { NetworkConnection } from '/app/resources/networking/hooks/useNetworkConnection' import type { SetSettingOption } from '../types' export type ConnectionType = 'wifi' | 'ethernet' | 'usb' diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/Privacy.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/Privacy.tsx index 117b57d8cc9..5954ae3850e 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/Privacy.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/Privacy.tsx @@ -10,15 +10,15 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ChildNavigation } from '../../../organisms/ChildNavigation' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { RobotSettingButton } from './RobotSettingButton' import { OnOffToggle } from './OnOffToggle' import { getAnalyticsOptedIn, toggleAnalyticsOptedIn, -} from '../../../redux/analytics' +} from '/app/redux/analytics' -import type { Dispatch } from '../../../redux/types' +import type { Dispatch } from '/app/redux/types' import type { SetSettingOption } from './types' interface PrivacyProps { diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/RobotSystemVersion.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/RobotSystemVersion.tsx index 254d45b829d..0cb3087c1f1 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/RobotSystemVersion.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/RobotSystemVersion.tsx @@ -13,11 +13,11 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { MediumButton } from '../../../atoms/buttons' -import { ChildNavigation } from '../../../organisms/ChildNavigation' +import { MediumButton } from '/app/atoms/buttons' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { RobotSystemVersionModal } from './RobotSystemVersionModal' -import type { RobotUpdateInfo } from '../../../redux/robot-update/types' +import type { RobotUpdateInfo } from '/app/redux/robot-update/types' import type { SetSettingOption } from './types' const GITHUB_URL = 'https://github.com/Opentrons/opentrons/releases' diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/RobotSystemVersionModal.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/RobotSystemVersionModal.tsx index 407ff8cb8dd..d08ea8b7328 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/RobotSystemVersionModal.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/RobotSystemVersionModal.tsx @@ -10,12 +10,12 @@ import { SPACING, } from '@opentrons/components' -import { SmallButton } from '../../../atoms/buttons' -import { InlineNotification } from '../../../atoms/InlineNotification' -import { ReleaseNotes } from '../../../molecules/ReleaseNotes' -import { OddModal } from '../../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { InlineNotification } from '/app/atoms/InlineNotification' +import { ReleaseNotes } from '/app/molecules/ReleaseNotes' +import { OddModal } from '/app/molecules/OddModal' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface RobotSystemVersionModalProps { version: string diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/TouchScreenSleep.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/TouchScreenSleep.tsx index 627c9842547..520adff8438 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/TouchScreenSleep.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/TouchScreenSleep.tsx @@ -9,14 +9,14 @@ import { RadioButton, } from '@opentrons/components' -import { ChildNavigation } from '../../../organisms/ChildNavigation' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { getOnDeviceDisplaySettings, updateConfigValue, -} from '../../../redux/config' +} from '/app/redux/config' import { SLEEP_NEVER_MS } from '../../../App/constants' -import type { Dispatch } from '../../../redux/types' +import type { Dispatch } from '/app/redux/types' import type { SetSettingOption } from './types' const SLEEP_TIME_MS = 60 * 1000 // 1 min diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/TouchscreenBrightness.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/TouchscreenBrightness.tsx index 6f466ea7f95..2d2e7522fe5 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/TouchscreenBrightness.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/TouchscreenBrightness.tsx @@ -16,15 +16,15 @@ import { SPACING, } from '@opentrons/components' -import { ChildNavigation } from '../../../organisms/ChildNavigation' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { getOnDeviceDisplaySettings, updateConfigValue, -} from '../../../redux/config' +} from '/app/redux/config' -import type { Dispatch } from '../../../redux/types' +import type { Dispatch } from '/app/redux/types' import type { SetSettingOption } from './types' -import { IconButton } from '../../../atoms/buttons/IconButton' +import { IconButton } from '/app/atoms/buttons/IconButton' interface BrightnessTileProps { isActive: boolean diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/UpdateChannel.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/UpdateChannel.tsx index d2049ef246d..856d5d4613c 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/UpdateChannel.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/UpdateChannel.tsx @@ -14,15 +14,15 @@ import { CURSOR_POINTER, } from '@opentrons/components' -import { ChildNavigation } from '../../../organisms/ChildNavigation' +import { ChildNavigation } from '/app/organisms/ChildNavigation' import { getDevtoolsEnabled, getUpdateChannel, getUpdateChannelOptions, updateConfigValue, -} from '../../../redux/config' +} from '/app/redux/config' -import type { Dispatch } from '../../../redux/types' +import type { Dispatch } from '/app/redux/types' interface LabelProps { isSelected?: boolean diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/DeviceReset.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/DeviceReset.test.tsx index d6473d83e85..8c04c6effa2 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/DeviceReset.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/DeviceReset.test.tsx @@ -2,20 +2,17 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../i18n' -import { renderWithProviders } from '../../../../__testing-utils__' -import { - getResetConfigOptions, - resetConfig, -} from '../../../../redux/robot-admin' -import { useDispatchApiRequest } from '../../../../redux/robot-api' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { getResetConfigOptions, resetConfig } from '/app/redux/robot-admin' +import { useDispatchApiRequest } from '/app/redux/robot-api' import { DeviceReset } from '../DeviceReset' -import type { DispatchApiRequestType } from '../../../../redux/robot-api' +import type { DispatchApiRequestType } from '/app/redux/robot-api' -vi.mock('../../../../redux/robot-admin') -vi.mock('../../../../redux/robot-api') +vi.mock('/app/redux/robot-admin') +vi.mock('/app/redux/robot-api') const mockResetConfigOptions = [ { diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/Privacy.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/Privacy.test.tsx index 551b04c8acb..82b72d2707e 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/Privacy.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/Privacy.test.tsx @@ -2,15 +2,15 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, describe, beforeEach, afterEach, expect, it } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { toggleAnalyticsOptedIn } from '../../../../redux/analytics' -import { getRobotSettings } from '../../../../redux/robot-settings' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { toggleAnalyticsOptedIn } from '/app/redux/analytics' +import { getRobotSettings } from '/app/redux/robot-settings' import { Privacy } from '../Privacy' -vi.mock('../../../../redux/analytics') -vi.mock('../../../../redux/robot-settings') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/robot-settings') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/RobotSystemVersion.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/RobotSystemVersion.test.tsx index 8665ed09405..b5088e678c0 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/RobotSystemVersion.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/RobotSystemVersion.test.tsx @@ -4,12 +4,12 @@ import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../i18n' -import { renderWithProviders } from '../../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { RobotSystemVersion } from '../RobotSystemVersion' import { RobotSystemVersionModal } from '../RobotSystemVersionModal' -vi.mock('../../../../redux/shell') +vi.mock('/app/redux/shell') vi.mock('../RobotSystemVersionModal') const mockBack = vi.fn() diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/RobotSystemVersionModal.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/RobotSystemVersionModal.test.tsx index 9eaa93aabf1..7ddfe109485 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/RobotSystemVersionModal.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/RobotSystemVersionModal.test.tsx @@ -3,8 +3,8 @@ import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../i18n' -import { renderWithProviders } from '../../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { RobotSystemVersionModal } from '../RobotSystemVersionModal' import type * as Dom from 'react-router-dom' diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TextSize.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TextSize.test.tsx index ca555bc096d..e58d805514c 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TextSize.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TextSize.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../../i18n' -import { renderWithProviders } from '../../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { TextSize } from '../TextSize' const mockFunc = vi.fn() diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TouchScreenSleep.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TouchScreenSleep.test.tsx index 65bd35ce0cd..c1cfde27b4e 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TouchScreenSleep.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TouchScreenSleep.test.tsx @@ -1,12 +1,12 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../../i18n' -import { updateConfigValue } from '../../../../redux/config' +import { i18n } from '/app/i18n' +import { updateConfigValue } from '/app/redux/config' import { TouchScreenSleep } from '../TouchScreenSleep' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') // Note (kj:06/28/2023) this line is to avoid causing errors for scrollIntoView window.HTMLElement.prototype.scrollIntoView = vi.fn() diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TouchscreenBrightness.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TouchscreenBrightness.test.tsx index a3d20baf2cf..5795f7a1bba 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TouchscreenBrightness.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/TouchscreenBrightness.test.tsx @@ -2,15 +2,15 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { getOnDeviceDisplaySettings, updateConfigValue, -} from '../../../../redux/config' -import { renderWithProviders } from '../../../../__testing-utils__' +} from '/app/redux/config' +import { renderWithProviders } from '/app/__testing-utils__' import { TouchscreenBrightness } from '../TouchscreenBrightness' -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') const mockFunc = vi.fn() diff --git a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/UpdateChannel.test.tsx b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/UpdateChannel.test.tsx index cb1a703a0e3..dd9b4c217be 100644 --- a/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/UpdateChannel.test.tsx +++ b/app/src/organisms/ODD/RobotSettingsDashboard/__tests__/UpdateChannel.test.tsx @@ -3,17 +3,17 @@ import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { getDevtoolsEnabled, getUpdateChannelOptions, updateConfigValue, -} from '../../../../redux/config' -import { renderWithProviders } from '../../../../__testing-utils__' +} from '/app/redux/config' +import { renderWithProviders } from '/app/__testing-utils__' import { UpdateChannel } from '../UpdateChannel' -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') const mockChannelOptions = [ { diff --git a/app/src/organisms/ODD/RunningProtocol/CancelingRunModal.tsx b/app/src/organisms/ODD/RunningProtocol/CancelingRunModal.tsx index ae1bd9bbca2..ff5f096fa64 100644 --- a/app/src/organisms/ODD/RunningProtocol/CancelingRunModal.tsx +++ b/app/src/organisms/ODD/RunningProtocol/CancelingRunModal.tsx @@ -13,7 +13,7 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { OddModal } from '../../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' export function CancelingRunModal(): JSX.Element { const { t, i18n } = useTranslation('run_details') diff --git a/app/src/organisms/ODD/RunningProtocol/ConfirmCancelRunModal.tsx b/app/src/organisms/ODD/RunningProtocol/ConfirmCancelRunModal.tsx index c79f7930df7..0044cc477bc 100644 --- a/app/src/organisms/ODD/RunningProtocol/ConfirmCancelRunModal.tsx +++ b/app/src/organisms/ODD/RunningProtocol/ConfirmCancelRunModal.tsx @@ -18,15 +18,15 @@ import { useDismissCurrentRunMutation, } from '@opentrons/react-api-client' -import { SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' -import { useTrackProtocolRunEvent } from '../../../organisms/Devices/hooks' -import { useRunStatus } from '../../../organisms/RunTimeControl/hooks' -import { ANALYTICS_PROTOCOL_RUN_ACTION } from '../../../redux/analytics' -import { getLocalRobot } from '../../../redux/discovery' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { useTrackProtocolRunEvent } from '/app/organisms/Devices/hooks' +import { useRunStatus } from '/app/organisms/RunTimeControl/hooks' +import { ANALYTICS_PROTOCOL_RUN_ACTION } from '/app/redux/analytics' +import { getLocalRobot } from '/app/redux/discovery' import { CancelingRunModal } from './CancelingRunModal' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface ConfirmCancelRunModalProps { runId: string diff --git a/app/src/organisms/ODD/RunningProtocol/CurrentRunningProtocolCommand.tsx b/app/src/organisms/ODD/RunningProtocol/CurrentRunningProtocolCommand.tsx index 0e2f10dc483..e3bff58decd 100644 --- a/app/src/organisms/ODD/RunningProtocol/CurrentRunningProtocolCommand.tsx +++ b/app/src/organisms/ODD/RunningProtocol/CurrentRunningProtocolCommand.tsx @@ -20,14 +20,14 @@ import { } from '@opentrons/components' import { RUN_STATUS_RUNNING, RUN_STATUS_IDLE } from '@opentrons/api-client' -import { CommandText } from '../../../molecules/Command' +import { CommandText } from '/app/molecules/Command' import { RunTimer } from '../../Devices/ProtocolRun/RunTimer' -import { getCommandTextData } from '../../../molecules/Command/utils/getCommandTextData' +import { getCommandTextData } from '/app/molecules/Command/utils/getCommandTextData' import { PlayPauseButton } from './PlayPauseButton' import { StopButton } from './StopButton' -import { ANALYTICS_PROTOCOL_RUN_ACTION } from '../../../redux/analytics' -import { useRunningStepCounts } from '../../../resources/protocols/hooks' -import { useNotifyAllCommandsQuery } from '../../../resources/runs' +import { ANALYTICS_PROTOCOL_RUN_ACTION } from '/app/redux/analytics' +import { useRunningStepCounts } from '/app/resources/protocols/hooks' +import { useNotifyAllCommandsQuery } from '/app/resources/runs' import type { CompletedProtocolAnalysis, @@ -36,7 +36,7 @@ import type { } from '@opentrons/shared-data' import type { RunCommandSummary, RunStatus } from '@opentrons/api-client' import type { TrackProtocolRunEvent } from '../../Devices/hooks' -import type { RobotAnalyticsData } from '../../../redux/analytics/types' +import type { RobotAnalyticsData } from '/app/redux/analytics/types' const ODD_ANIMATION_OPTIMIZATIONS = ` backface-visibility: hidden; diff --git a/app/src/organisms/ODD/RunningProtocol/PlayPauseButton.tsx b/app/src/organisms/ODD/RunningProtocol/PlayPauseButton.tsx index 940851126e1..47428f1420b 100644 --- a/app/src/organisms/ODD/RunningProtocol/PlayPauseButton.tsx +++ b/app/src/organisms/ODD/RunningProtocol/PlayPauseButton.tsx @@ -10,7 +10,7 @@ import { } from '@opentrons/components' import { RUN_STATUS_RUNNING } from '@opentrons/api-client' -import { ODD_FOCUS_VISIBLE } from '../../../atoms/buttons/constants' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' import type { RunStatus } from '@opentrons/api-client' diff --git a/app/src/organisms/ODD/RunningProtocol/RunFailedModal.tsx b/app/src/organisms/ODD/RunningProtocol/RunFailedModal.tsx index 6f9229089d6..1de8c5138d7 100644 --- a/app/src/organisms/ODD/RunningProtocol/RunFailedModal.tsx +++ b/app/src/organisms/ODD/RunningProtocol/RunFailedModal.tsx @@ -16,11 +16,11 @@ import { } from '@opentrons/components' import { useStopRunMutation } from '@opentrons/react-api-client' -import { SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' import { RUN_STATUS_SUCCEEDED } from '@opentrons/api-client' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' import type { RunCommandErrors, RunError, diff --git a/app/src/organisms/ODD/RunningProtocol/RunningProtocolCommandList.tsx b/app/src/organisms/ODD/RunningProtocol/RunningProtocolCommandList.tsx index 9bfe2ca73fc..4d8f20413ff 100644 --- a/app/src/organisms/ODD/RunningProtocol/RunningProtocolCommandList.tsx +++ b/app/src/organisms/ODD/RunningProtocol/RunningProtocolCommandList.tsx @@ -22,11 +22,11 @@ import { } from '@opentrons/components' import { RUN_STATUS_RUNNING, RUN_STATUS_IDLE } from '@opentrons/api-client' -import { CommandText, CommandIcon } from '../../../molecules/Command' -import { getCommandTextData } from '../../../molecules/Command/utils/getCommandTextData' +import { CommandText, CommandIcon } from '/app/molecules/Command' +import { getCommandTextData } from '/app/molecules/Command/utils/getCommandTextData' import { PlayPauseButton } from './PlayPauseButton' import { StopButton } from './StopButton' -import { ANALYTICS_PROTOCOL_RUN_ACTION } from '../../../redux/analytics' +import { ANALYTICS_PROTOCOL_RUN_ACTION } from '/app/redux/analytics' import type { ViewportListRef } from 'react-viewport-list' import type { @@ -35,7 +35,7 @@ import type { } from '@opentrons/shared-data' import type { RunStatus } from '@opentrons/api-client' import type { TrackProtocolRunEvent } from '../../Devices/hooks' -import type { RobotAnalyticsData } from '../../../redux/analytics/types' +import type { RobotAnalyticsData } from '/app/redux/analytics/types' const TITLE_TEXT_STYLE = css` color: ${COLORS.grey60}; diff --git a/app/src/organisms/ODD/RunningProtocol/RunningProtocolSkeleton.tsx b/app/src/organisms/ODD/RunningProtocol/RunningProtocolSkeleton.tsx index edee7492427..073f650530a 100644 --- a/app/src/organisms/ODD/RunningProtocol/RunningProtocolSkeleton.tsx +++ b/app/src/organisms/ODD/RunningProtocol/RunningProtocolSkeleton.tsx @@ -12,9 +12,9 @@ import { import { PlayPauseButton } from './PlayPauseButton' import { StopButton } from './StopButton' -import { Skeleton } from '../../../atoms/Skeleton' +import { Skeleton } from '/app/atoms/Skeleton' -import type { ScreenOption } from '../../../pages/ODD/RunningProtocol' +import type { ScreenOption } from '/app/pages/ODD/RunningProtocol' const CURRENT_RUNNING_PROTOCOL_COMMAND_SIZE = '99rem' // CurrentRunningProtocolCommand screen const RUNNING_PROTOCOL_COMMAND_LIST_SIZE = '389rem' // RunningProtocolCommandList screen diff --git a/app/src/organisms/ODD/RunningProtocol/StopButton.tsx b/app/src/organisms/ODD/RunningProtocol/StopButton.tsx index 9eadc863f35..2711c8b9da2 100644 --- a/app/src/organisms/ODD/RunningProtocol/StopButton.tsx +++ b/app/src/organisms/ODD/RunningProtocol/StopButton.tsx @@ -9,7 +9,7 @@ import { JUSTIFY_CENTER, } from '@opentrons/components' -import { ODD_FOCUS_VISIBLE } from '../../../atoms/buttons/constants' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' const STOP_BUTTON_STYLE = css` -webkit-tap-highlight-color: transparent; diff --git a/app/src/organisms/ODD/RunningProtocol/__tests__/CancelingRunModal.test.tsx b/app/src/organisms/ODD/RunningProtocol/__tests__/CancelingRunModal.test.tsx index 9ae311aca0f..334493b8db9 100644 --- a/app/src/organisms/ODD/RunningProtocol/__tests__/CancelingRunModal.test.tsx +++ b/app/src/organisms/ODD/RunningProtocol/__tests__/CancelingRunModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CancelingRunModal } from '../CancelingRunModal' const render = () => { diff --git a/app/src/organisms/ODD/RunningProtocol/__tests__/ConfirmCancelRunModal.test.tsx b/app/src/organisms/ODD/RunningProtocol/__tests__/ConfirmCancelRunModal.test.tsx index b3934d3303c..7e59deff9f5 100644 --- a/app/src/organisms/ODD/RunningProtocol/__tests__/ConfirmCancelRunModal.test.tsx +++ b/app/src/organisms/ODD/RunningProtocol/__tests__/ConfirmCancelRunModal.test.tsx @@ -11,25 +11,25 @@ import { useDismissCurrentRunMutation, } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { useTrackProtocolRunEvent } from '../../../../organisms/Devices/hooks' -import { useRunStatus } from '../../../../organisms/RunTimeControl/hooks' -import { useTrackEvent } from '../../../../redux/analytics' -import { getLocalRobot } from '../../../../redux/discovery' -import { mockConnectedRobot } from '../../../../redux/discovery/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useTrackProtocolRunEvent } from '/app/organisms/Devices/hooks' +import { useRunStatus } from '/app/organisms/RunTimeControl/hooks' +import { useTrackEvent } from '/app/redux/analytics' +import { getLocalRobot } from '/app/redux/discovery' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' import { ConfirmCancelRunModal } from '../ConfirmCancelRunModal' import { CancelingRunModal } from '../CancelingRunModal' import type { NavigateFunction } from 'react-router-dom' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../organisms/Devices/hooks') -vi.mock('../../../../organisms/RunTimeControl/hooks') -vi.mock('../../../../redux/analytics') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/organisms/RunTimeControl/hooks') +vi.mock('/app/redux/analytics') vi.mock('../../../ProtocolUpload/hooks') vi.mock('../CancelingRunModal') -vi.mock('../../../../redux/discovery') +vi.mock('/app/redux/discovery') const mockNavigate = vi.fn() const mockStopRun = vi.fn() const mockDeleteRun = vi.fn() diff --git a/app/src/organisms/ODD/RunningProtocol/__tests__/CurrentRunningProtocolCommand.test.tsx b/app/src/organisms/ODD/RunningProtocol/__tests__/CurrentRunningProtocolCommand.test.tsx index f463222c5fd..7cde75fdbaf 100644 --- a/app/src/organisms/ODD/RunningProtocol/__tests__/CurrentRunningProtocolCommand.test.tsx +++ b/app/src/organisms/ODD/RunningProtocol/__tests__/CurrentRunningProtocolCommand.test.tsx @@ -4,16 +4,16 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { RUN_STATUS_RUNNING, RUN_STATUS_IDLE } from '@opentrons/api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { mockRobotSideAnalysis } from '../../../../molecules/Command/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockRobotSideAnalysis } from '/app/molecules/Command/__fixtures__' import { CurrentRunningProtocolCommand } from '../CurrentRunningProtocolCommand' -import { useRunningStepCounts } from '../../../../resources/protocols/hooks' -import { useNotifyAllCommandsQuery } from '../../../../resources/runs' +import { useRunningStepCounts } from '/app/resources/protocols/hooks' +import { useNotifyAllCommandsQuery } from '/app/resources/runs' import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' -vi.mock('../../../../resources/runs') -vi.mock('../../../../resources/protocols/hooks') +vi.mock('/app/resources/runs') +vi.mock('/app/resources/protocols/hooks') const mockPlayRun = vi.fn() const mockPauseRun = vi.fn() diff --git a/app/src/organisms/ODD/RunningProtocol/__tests__/RunFailedModal.test.tsx b/app/src/organisms/ODD/RunningProtocol/__tests__/RunFailedModal.test.tsx index 570a012bda1..09f86423fcf 100644 --- a/app/src/organisms/ODD/RunningProtocol/__tests__/RunFailedModal.test.tsx +++ b/app/src/organisms/ODD/RunningProtocol/__tests__/RunFailedModal.test.tsx @@ -5,8 +5,8 @@ import { beforeEach, describe, expect, it, vi } from 'vitest' import { useStopRunMutation } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RunFailedModal } from '../RunFailedModal' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/organisms/ODD/RunningProtocol/__tests__/RunningProtocolCommandList.test.tsx b/app/src/organisms/ODD/RunningProtocol/__tests__/RunningProtocolCommandList.test.tsx index eb21f242817..3504d069ee5 100644 --- a/app/src/organisms/ODD/RunningProtocol/__tests__/RunningProtocolCommandList.test.tsx +++ b/app/src/organisms/ODD/RunningProtocol/__tests__/RunningProtocolCommandList.test.tsx @@ -5,9 +5,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest' import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' import { RUN_STATUS_RUNNING, RUN_STATUS_IDLE } from '@opentrons/api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { mockRobotSideAnalysis } from '../../../../molecules/Command/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockRobotSideAnalysis } from '/app/molecules/Command/__fixtures__' import { RunningProtocolCommandList } from '../RunningProtocolCommandList' const mockPlayRun = vi.fn() diff --git a/app/src/organisms/ODD/RunningProtocol/__tests__/RunningProtocolSkeleton.test.tsx b/app/src/organisms/ODD/RunningProtocol/__tests__/RunningProtocolSkeleton.test.tsx index fb842e88e1d..33bc166f181 100644 --- a/app/src/organisms/ODD/RunningProtocol/__tests__/RunningProtocolSkeleton.test.tsx +++ b/app/src/organisms/ODD/RunningProtocol/__tests__/RunningProtocolSkeleton.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { beforeEach, describe, expect, it } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { RunningProtocolSkeleton } from '../RunningProtocolSkeleton' const render = ( diff --git a/app/src/organisms/ODD/hooks/__tests__/useIsUnboxingFlowOngoing.test.tsx b/app/src/organisms/ODD/hooks/__tests__/useIsUnboxingFlowOngoing.test.tsx index d7c6e4c8db7..4f4bec2ccbe 100644 --- a/app/src/organisms/ODD/hooks/__tests__/useIsUnboxingFlowOngoing.test.tsx +++ b/app/src/organisms/ODD/hooks/__tests__/useIsUnboxingFlowOngoing.test.tsx @@ -4,16 +4,13 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' import { Provider } from 'react-redux' import { createStore } from 'redux' -import { - getIsOnDevice, - getOnDeviceDisplaySettings, -} from '../../../../redux/config' +import { getIsOnDevice, getOnDeviceDisplaySettings } from '/app/redux/config' import { useIsUnboxingFlowOngoing } from '../useIsUnboxingFlowOngoing' import type { Store } from 'redux' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') const store: Store = createStore(vi.fn(), {}) diff --git a/app/src/organisms/ODD/hooks/useIsUnboxingFlowOngoing.ts b/app/src/organisms/ODD/hooks/useIsUnboxingFlowOngoing.ts index 0e31fb6fd05..babee48f5ba 100644 --- a/app/src/organisms/ODD/hooks/useIsUnboxingFlowOngoing.ts +++ b/app/src/organisms/ODD/hooks/useIsUnboxingFlowOngoing.ts @@ -1,8 +1,5 @@ import { useSelector } from 'react-redux' -import { - getIsOnDevice, - getOnDeviceDisplaySettings, -} from '../../../redux/config' +import { getIsOnDevice, getOnDeviceDisplaySettings } from '/app/redux/config' export const useIsUnboxingFlowOngoing = (): boolean => { const { unfinishedUnboxingFlowRoute } = useSelector( diff --git a/app/src/organisms/OpenDoorAlertModal/__tests__/OpenDoorAlertModal.test.tsx b/app/src/organisms/OpenDoorAlertModal/__tests__/OpenDoorAlertModal.test.tsx index 2f1a66b0faa..9bd39379845 100644 --- a/app/src/organisms/OpenDoorAlertModal/__tests__/OpenDoorAlertModal.test.tsx +++ b/app/src/organisms/OpenDoorAlertModal/__tests__/OpenDoorAlertModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { OpenDoorAlertModal } from '..' diff --git a/app/src/organisms/OpenDoorAlertModal/index.tsx b/app/src/organisms/OpenDoorAlertModal/index.tsx index fad1ee54143..b12435d9c99 100644 --- a/app/src/organisms/OpenDoorAlertModal/index.tsx +++ b/app/src/organisms/OpenDoorAlertModal/index.tsx @@ -14,7 +14,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { getTopPortalEl } from '../../App/portal' -import { OddModal } from '../../molecules/OddModal' +import { OddModal } from '/app/molecules/OddModal' export function OpenDoorAlertModal(): JSX.Element { const { t } = useTranslation('run_details') diff --git a/app/src/organisms/PipetteWizardFlows/AttachProbe.tsx b/app/src/organisms/PipetteWizardFlows/AttachProbe.tsx index 86652e4f558..24086bc6e6f 100644 --- a/app/src/organisms/PipetteWizardFlows/AttachProbe.tsx +++ b/app/src/organisms/PipetteWizardFlows/AttachProbe.tsx @@ -10,19 +10,19 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { LEFT, WASTE_CHUTE_CUTOUT } from '@opentrons/shared-data' -import { Banner } from '../../atoms/Banner' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import { Banner } from '/app/atoms/Banner' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -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 probing96 from '../../assets/videos/pipette-wizard-flows/Pipette_Probing_96.webm' +} from '/app/molecules/SimpleWizardBody' +import pipetteProbe1 from '/app/assets/videos/pipette-wizard-flows/Pipette_Probing_1.webm' +import pipetteProbe8 from '/app/assets/videos/pipette-wizard-flows/Pipette_Probing_8.webm' +import probing96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Probing_96.webm' import { BODY_STYLE, SECTIONS, FLOWS } from './constants' import { getPipetteAnimations } from './utils' import { ProbeNotAttached } from './ProbeNotAttached' -import { useNotifyDeckConfigurationQuery } from '../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { MotorAxes, CreateCommand } from '@opentrons/shared-data' import type { PipetteWizardStepProps } from './types' diff --git a/app/src/organisms/PipetteWizardFlows/BeforeBeginning.tsx b/app/src/organisms/PipetteWizardFlows/BeforeBeginning.tsx index 2e9fbd28e3f..f781e435f2a 100644 --- a/app/src/organisms/PipetteWizardFlows/BeforeBeginning.tsx +++ b/app/src/organisms/PipetteWizardFlows/BeforeBeginning.tsx @@ -14,14 +14,14 @@ import { WEIGHT_OF_96_CHANNEL, WASTE_CHUTE_CUTOUT, } from '@opentrons/shared-data' -import { Banner } from '../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' -import { WizardRequiredEquipmentList } from '../../molecules/WizardRequiredEquipmentList' -import { usePipetteNameSpecs } from '../../resources/instruments/hooks' +} from '/app/molecules/SimpleWizardBody' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' +import { WizardRequiredEquipmentList } from '/app/molecules/WizardRequiredEquipmentList' +import { usePipetteNameSpecs } from '/app/resources/instruments/hooks' import { CALIBRATION_PROBE, FLOWS, @@ -32,7 +32,7 @@ import { BODY_STYLE, } from './constants' import { getIsGantryEmpty } from './utils' -import { useNotifyDeckConfigurationQuery } from '../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import type { UseMutateFunction } from 'react-query' import type { AxiosError } from 'axios' diff --git a/app/src/organisms/PipetteWizardFlows/Carriage.tsx b/app/src/organisms/PipetteWizardFlows/Carriage.tsx index a827db87581..cdd75df4ffe 100644 --- a/app/src/organisms/PipetteWizardFlows/Carriage.tsx +++ b/app/src/organisms/PipetteWizardFlows/Carriage.tsx @@ -7,9 +7,9 @@ import { SPACING, LegacyStyledText, } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' -import { SimpleWizardBody } from '../../molecules/SimpleWizardBody' +import { SmallButton } from '/app/atoms/buttons' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' +import { SimpleWizardBody } from '/app/molecules/SimpleWizardBody' import { getPipetteAnimations96 } from './utils' import { BODY_STYLE, FLOWS, SECTIONS } from './constants' diff --git a/app/src/organisms/PipetteWizardFlows/CheckPipetteButton.tsx b/app/src/organisms/PipetteWizardFlows/CheckPipetteButton.tsx index 545d7ceffad..83c5b1507fd 100644 --- a/app/src/organisms/PipetteWizardFlows/CheckPipetteButton.tsx +++ b/app/src/organisms/PipetteWizardFlows/CheckPipetteButton.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { useInstrumentsQuery } from '@opentrons/react-api-client' import { PrimaryButton } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' interface CheckPipetteButtonProps { proceedButtonText: string diff --git a/app/src/organisms/PipetteWizardFlows/ChoosePipette.tsx b/app/src/organisms/PipetteWizardFlows/ChoosePipette.tsx index fdf68a337c1..8f146e5b57d 100644 --- a/app/src/organisms/PipetteWizardFlows/ChoosePipette.tsx +++ b/app/src/organisms/PipetteWizardFlows/ChoosePipette.tsx @@ -33,14 +33,14 @@ import { RIGHT, SINGLE_MOUNT_PIPETTES, } from '@opentrons/shared-data' -import { i18n } from '../../i18n' -import { getIsOnDevice } from '../../redux/config' +import { i18n } from '/app/i18n' +import { getIsOnDevice } from '/app/redux/config' import { getTopPortalEl } from '../../App/portal' -import { SmallButton } from '../../atoms/buttons' -import { WizardHeader } from '../../molecules/WizardHeader' -import { ModalContentOneColSimpleButtons } from '../../molecules/InterventionModal' -import singleChannelAndEightChannel from '../../assets/images/change-pip/1_and_8_channel.png' -import ninetySixChannel from '../../assets/images/change-pip/ninety-six-channel.png' +import { SmallButton } from '/app/atoms/buttons' +import { WizardHeader } from '/app/molecules/WizardHeader' +import { ModalContentOneColSimpleButtons } from '/app/molecules/InterventionModal' +import singleChannelAndEightChannel from '/app/assets/images/change-pip/1_and_8_channel.png' +import ninetySixChannel from '/app/assets/images/change-pip/ninety-six-channel.png' import { useAttachedPipettesFromInstrumentsQuery } from '../Devices/hooks' import { ExitModal } from './ExitModal' import { FLOWS } from './constants' diff --git a/app/src/organisms/PipetteWizardFlows/DetachPipette.tsx b/app/src/organisms/PipetteWizardFlows/DetachPipette.tsx index 2ba20ac3ad0..8d5db88c879 100644 --- a/app/src/organisms/PipetteWizardFlows/DetachPipette.tsx +++ b/app/src/organisms/PipetteWizardFlows/DetachPipette.tsx @@ -17,14 +17,14 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +import { Banner } from '/app/atoms/Banner' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -import { Skeleton } from '../../atoms/Skeleton' -import { SmallButton } from '../../atoms/buttons' +} from '/app/molecules/SimpleWizardBody' +import { Skeleton } from '/app/atoms/Skeleton' +import { SmallButton } from '/app/atoms/buttons' import { BODY_STYLE, SECTIONS } from './constants' import { getPipetteAnimations, getPipetteAnimations96 } from './utils' import type { PipetteWizardStepProps } from './types' diff --git a/app/src/organisms/PipetteWizardFlows/DetachProbe.tsx b/app/src/organisms/PipetteWizardFlows/DetachProbe.tsx index ff5d9c7d700..03603bd640c 100644 --- a/app/src/organisms/PipetteWizardFlows/DetachProbe.tsx +++ b/app/src/organisms/PipetteWizardFlows/DetachProbe.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { LegacyStyledText } from '@opentrons/components' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' -import { SimpleWizardInProgressBody } from '../../molecules/SimpleWizardBody' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' +import { SimpleWizardInProgressBody } from '/app/molecules/SimpleWizardBody' import { BODY_STYLE, SECTIONS } from './constants' import { getPipetteAnimations } from './utils' import type { PipetteWizardStepProps } from './types' diff --git a/app/src/organisms/PipetteWizardFlows/ExitModal.tsx b/app/src/organisms/PipetteWizardFlows/ExitModal.tsx index 3b9fee11913..90430769d8f 100644 --- a/app/src/organisms/PipetteWizardFlows/ExitModal.tsx +++ b/app/src/organisms/PipetteWizardFlows/ExitModal.tsx @@ -9,11 +9,11 @@ import { AlertPrimaryButton, JUSTIFY_FLEX_END, } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' +} from '/app/molecules/SimpleWizardBody' import { FLOWS } from './constants' import type { PipetteWizardFlow } from './types' diff --git a/app/src/organisms/PipetteWizardFlows/MountPipette.tsx b/app/src/organisms/PipetteWizardFlows/MountPipette.tsx index 62a0d08d24b..6234d5247a0 100644 --- a/app/src/organisms/PipetteWizardFlows/MountPipette.tsx +++ b/app/src/organisms/PipetteWizardFlows/MountPipette.tsx @@ -11,9 +11,9 @@ import { SPACING, LegacyStyledText, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' -import { Skeleton } from '../../atoms/Skeleton' +import { Banner } from '/app/atoms/Banner' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' +import { Skeleton } from '/app/atoms/Skeleton' import { CheckPipetteButton } from './CheckPipetteButton' import { BODY_STYLE, SECTIONS } from './constants' import { getPipetteAnimations, getPipetteAnimations96 } from './utils' diff --git a/app/src/organisms/PipetteWizardFlows/MountingPlate.tsx b/app/src/organisms/PipetteWizardFlows/MountingPlate.tsx index f8d04509dd2..a09ee3d2c1b 100644 --- a/app/src/organisms/PipetteWizardFlows/MountingPlate.tsx +++ b/app/src/organisms/PipetteWizardFlows/MountingPlate.tsx @@ -5,8 +5,8 @@ import { COLORS, SPACING, LegacyStyledText } from '@opentrons/components' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -import { GenericWizardTile } from '../../molecules/GenericWizardTile' +} from '/app/molecules/SimpleWizardBody' +import { GenericWizardTile } from '/app/molecules/GenericWizardTile' import { getPipetteAnimations96 } from './utils' import { BODY_STYLE, FLOWS, SECTIONS } from './constants' import type { PipetteWizardStepProps } from './types' diff --git a/app/src/organisms/PipetteWizardFlows/ProbeNotAttached.tsx b/app/src/organisms/PipetteWizardFlows/ProbeNotAttached.tsx index 0b00e64fad7..d959065ac49 100644 --- a/app/src/organisms/PipetteWizardFlows/ProbeNotAttached.tsx +++ b/app/src/organisms/PipetteWizardFlows/ProbeNotAttached.tsx @@ -14,8 +14,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { css } from 'styled-components' -import { SimpleWizardBody } from '../../molecules/SimpleWizardBody' -import { SmallButton } from '../../atoms/buttons' +import { SimpleWizardBody } from '/app/molecules/SimpleWizardBody' +import { SmallButton } from '/app/atoms/buttons' interface ProbeNotAttachedProps { handleOnClick: () => void diff --git a/app/src/organisms/PipetteWizardFlows/Results.tsx b/app/src/organisms/PipetteWizardFlows/Results.tsx index 4813db7fd5b..3be1f3a92b3 100644 --- a/app/src/organisms/PipetteWizardFlows/Results.tsx +++ b/app/src/organisms/PipetteWizardFlows/Results.tsx @@ -13,12 +13,12 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { LEFT, RIGHT, NINETY_SIX_CHANNEL } from '@opentrons/shared-data' -import { SmallButton } from '../../atoms/buttons' +import { SmallButton } from '/app/atoms/buttons' import { SimpleWizardBody, SimpleWizardInProgressBody, -} from '../../molecules/SimpleWizardBody' -import { usePipetteNameSpecs } from '../../resources/instruments/hooks' +} from '/app/molecules/SimpleWizardBody' +import { usePipetteNameSpecs } from '/app/resources/instruments/hooks' import { CheckPipetteButton } from './CheckPipetteButton' import { FLOWS } from './constants' diff --git a/app/src/organisms/PipetteWizardFlows/UnskippableModal.tsx b/app/src/organisms/PipetteWizardFlows/UnskippableModal.tsx index 497e5fc19b0..f0c63f7d900 100644 --- a/app/src/organisms/PipetteWizardFlows/UnskippableModal.tsx +++ b/app/src/organisms/PipetteWizardFlows/UnskippableModal.tsx @@ -7,8 +7,8 @@ import { SecondaryButton, AlertPrimaryButton, } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' -import { SimpleWizardBody } from '../../molecules/SimpleWizardBody' +import { SmallButton } from '/app/atoms/buttons' +import { SimpleWizardBody } from '/app/molecules/SimpleWizardBody' interface UnskippableModalProps { goBack: () => void diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/AttachProbe.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/AttachProbe.test.tsx index e1f6c5bd765..34fbcaa9baf 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/AttachProbe.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/AttachProbe.test.tsx @@ -4,27 +4,24 @@ import { describe, it, beforeEach, vi, expect } from 'vitest' import { LEFT, SINGLE_MOUNT_PIPETTES } from '@opentrons/shared-data' -import { - nestedTextMatcher, - renderWithProviders, -} from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { nestedTextMatcher, renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mock8ChannelAttachedPipetteInformation, mock96ChannelAttachedPipetteInformation, mockAttachedPipetteInformation, -} from '../../../redux/pipettes/__fixtures__' +} from '/app/redux/pipettes/__fixtures__' import { RUN_ID_1 } from '../../RunTimeControl/__fixtures__' import { FLOWS } from '../constants' import { AttachProbe } from '../AttachProbe' -import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' const render = (props: React.ComponentProps) => { return renderWithProviders(, { i18nInstance: i18n, })[0] } -vi.mock('../../../resources/deck_configuration') +vi.mock('/app/resources/deck_configuration') describe('AttachProbe', () => { let props: React.ComponentProps diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/BeforeBeginning.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/BeforeBeginning.test.tsx index f8450ba5583..1413a8a603a 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/BeforeBeginning.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/BeforeBeginning.test.tsx @@ -9,10 +9,10 @@ import { SINGLE_MOUNT_PIPETTES, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockAttachedPipetteInformation } from '../../../redux/pipettes/__fixtures__' -import { InProgressModal } from '../../../molecules/InProgressModal/InProgressModal' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockAttachedPipetteInformation } from '/app/redux/pipettes/__fixtures__' +import { InProgressModal } from '/app/molecules/InProgressModal/InProgressModal' // import { NeedHelpLink } from '../../CalibrationPanels' import { RUN_ID_1 } from '../../RunTimeControl/__fixtures__' import { BeforeBeginning } from '../BeforeBeginning' @@ -21,7 +21,7 @@ import { getIsGantryEmpty } from '../utils' // TODO(jr, 11/3/22): uncomment out the get help link when we have // the correct URL to link it to -vi.mock('../../../molecules/InProgressModal/InProgressModal') +vi.mock('/app/molecules/InProgressModal/InProgressModal') vi.mock('../utils') const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/Carriage.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/Carriage.test.tsx index aea460b67e5..e55b41a87ad 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/Carriage.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/Carriage.test.tsx @@ -4,9 +4,9 @@ import { describe, it, beforeEach, vi, expect } from 'vitest' import { LEFT, NINETY_SIX_CHANNEL } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockAttachedPipetteInformation } from '../../../redux/pipettes/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockAttachedPipetteInformation } from '/app/redux/pipettes/__fixtures__' import { RUN_ID_1 } from '../../RunTimeControl/__fixtures__' import { FLOWS } from '../constants' import { Carriage } from '../Carriage' diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/CheckPipetteButton.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/CheckPipetteButton.test.tsx index 31bc7e6994c..2b30e682584 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/CheckPipetteButton.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/CheckPipetteButton.test.tsx @@ -4,7 +4,7 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { CheckPipetteButton } from '../CheckPipetteButton' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/ChoosePipette.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/ChoosePipette.test.tsx index 11a0f0f8452..04861963029 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/ChoosePipette.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/ChoosePipette.test.tsx @@ -9,17 +9,17 @@ import { describe, it, beforeEach, vi, expect, afterEach } from 'vitest' import { COLORS } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockAttachedPipetteInformation } from '../../../redux/pipettes/__fixtures__' -import { getIsOnDevice } from '../../../redux/config' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockAttachedPipetteInformation } from '/app/redux/pipettes/__fixtures__' +import { getIsOnDevice } from '/app/redux/config' import { useAttachedPipettesFromInstrumentsQuery } from '../../Devices/hooks' import { ChoosePipette } from '../ChoosePipette' import { getIsGantryEmpty } from '../utils' vi.mock('../utils') vi.mock('../../Devices/hooks') -vi.mock('../../../redux/config') +vi.mock('/app/redux/config') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/DetachPipette.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/DetachPipette.test.tsx index 7222e856496..b71a23b2d90 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/DetachPipette.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/DetachPipette.test.tsx @@ -8,19 +8,19 @@ import { SINGLE_MOUNT_PIPETTES, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { mock96ChannelAttachedPipetteInformation, mockAttachedPipetteInformation, -} from '../../../redux/pipettes/__fixtures__' -import { InProgressModal } from '../../../molecules/InProgressModal/InProgressModal' +} from '/app/redux/pipettes/__fixtures__' +import { InProgressModal } from '/app/molecules/InProgressModal/InProgressModal' import { RUN_ID_1 } from '../../RunTimeControl/__fixtures__' import { FLOWS } from '../constants' import { DetachPipette } from '../DetachPipette' vi.mock('../CheckPipetteButton') -vi.mock('../../../molecules/InProgressModal/InProgressModal') +vi.mock('/app/molecules/InProgressModal/InProgressModal') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/DetachProbe.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/DetachProbe.test.tsx index a32f683a6ff..57817b3e4c9 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/DetachProbe.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/DetachProbe.test.tsx @@ -4,15 +4,15 @@ import { describe, it, beforeEach, vi, expect } from 'vitest' import { LEFT, SINGLE_MOUNT_PIPETTES } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockAttachedPipetteInformation } from '../../../redux/pipettes/__fixtures__' -import { InProgressModal } from '../../../molecules/InProgressModal/InProgressModal' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockAttachedPipetteInformation } from '/app/redux/pipettes/__fixtures__' +import { InProgressModal } from '/app/molecules/InProgressModal/InProgressModal' import { RUN_ID_1 } from '../../RunTimeControl/__fixtures__' import { FLOWS } from '../constants' import { DetachProbe } from '../DetachProbe' -vi.mock('../../../molecules/InProgressModal/InProgressModal') +vi.mock('/app/molecules/InProgressModal/InProgressModal') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/ExitModal.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/ExitModal.test.tsx index 443535e4bcc..db576781700 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/ExitModal.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/ExitModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, vi, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { FLOWS } from '../constants' import { ExitModal } from '../ExitModal' diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/MountPipette.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/MountPipette.test.tsx index 550858c1983..996264589c9 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/MountPipette.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/MountPipette.test.tsx @@ -8,9 +8,9 @@ import { SINGLE_MOUNT_PIPETTES, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockAttachedPipetteInformation } from '../../../redux/pipettes/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockAttachedPipetteInformation } from '/app/redux/pipettes/__fixtures__' import { RUN_ID_1 } from '../../RunTimeControl/__fixtures__' import { FLOWS } from '../constants' import { CheckPipetteButton } from '../CheckPipetteButton' diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/MountingPlate.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/MountingPlate.test.tsx index 3ec113627be..201492533a7 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/MountingPlate.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/MountingPlate.test.tsx @@ -3,9 +3,9 @@ import { fireEvent, waitFor, screen } from '@testing-library/react' import { describe, it, expect, beforeEach, vi } from 'vitest' import { LEFT, NINETY_SIX_CHANNEL } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { mockAttachedPipetteInformation } from '../../../redux/pipettes/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockAttachedPipetteInformation } from '/app/redux/pipettes/__fixtures__' import { RUN_ID_1 } from '../../RunTimeControl/__fixtures__' import { FLOWS } from '../constants' import { MountingPlate } from '../MountingPlate' diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/Results.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/Results.test.tsx index b0cb919531c..41f918bf08e 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/Results.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/Results.test.tsx @@ -10,10 +10,10 @@ import { import { COLORS } from '@opentrons/components' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { mockAttachedPipetteInformation } from '../../../redux/pipettes/__fixtures__' -import { useIsOEMMode } from '../../../resources/robot-settings/hooks' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockAttachedPipetteInformation } from '/app/redux/pipettes/__fixtures__' +import { useIsOEMMode } from '/app/resources/robot-settings/hooks' +import { i18n } from '/app/i18n' import { RUN_ID_1 } from '../../RunTimeControl/__fixtures__' import { Results } from '../Results' import { FLOWS } from '../constants' @@ -21,7 +21,7 @@ import { FLOWS } from '../constants' import type { Mock } from 'vitest' vi.mock('@opentrons/react-api-client') -vi.mock('../../../resources/robot-settings/hooks') +vi.mock('/app/resources/robot-settings/hooks') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/UnskippableModal.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/UnskippableModal.test.tsx index 43fa441c7d1..6b4928a9581 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/UnskippableModal.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/UnskippableModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { UnskippableModal } from '../UnskippableModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/getPipetteWizardStepsForProtocol.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/getPipetteWizardStepsForProtocol.test.tsx index aa4ad467729..fce4dbcc57b 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/getPipetteWizardStepsForProtocol.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/getPipetteWizardStepsForProtocol.test.tsx @@ -3,7 +3,7 @@ import { LEFT, RIGHT } from '@opentrons/shared-data' import { mock96ChannelAttachedPipetteInformation, mockAttachedPipetteInformation, -} from '../../../redux/pipettes/__fixtures__' +} from '/app/redux/pipettes/__fixtures__' import { FLOWS, SECTIONS } from '../constants' import { getPipetteWizardStepsForProtocol } from '../getPipetteWizardStepsForProtocol' diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/hooks.test.tsx b/app/src/organisms/PipetteWizardFlows/__tests__/hooks.test.tsx index 9a3a6424ca3..6b1f8964459 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/hooks.test.tsx +++ b/app/src/organisms/PipetteWizardFlows/__tests__/hooks.test.tsx @@ -8,11 +8,11 @@ import { LEFT, SINGLE_MOUNT_PIPETTES, } from '@opentrons/shared-data' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { mock96ChannelAttachedPipetteInformation, mockAttachedPipetteInformation, -} from '../../../redux/pipettes/__fixtures__' +} from '/app/redux/pipettes/__fixtures__' import { FLOWS } from '../constants' import { usePipetteFlowWizardHeaderText } from '../hooks' diff --git a/app/src/organisms/PipetteWizardFlows/__tests__/utils.test.ts b/app/src/organisms/PipetteWizardFlows/__tests__/utils.test.ts index 4b5231430a4..4eb2fdfb457 100644 --- a/app/src/organisms/PipetteWizardFlows/__tests__/utils.test.ts +++ b/app/src/organisms/PipetteWizardFlows/__tests__/utils.test.ts @@ -1,7 +1,7 @@ import { render, screen } from '@testing-library/react' import { describe, it, expect } from 'vitest' import { LEFT, RIGHT } from '@opentrons/shared-data' -import { mockAttachedPipetteInformation } from '../../../redux/pipettes/__fixtures__' +import { mockAttachedPipetteInformation } from '/app/redux/pipettes/__fixtures__' import { getIsGantryEmpty, getPipetteAnimations, diff --git a/app/src/organisms/PipetteWizardFlows/getPipetteWizardStepsForProtocol.ts b/app/src/organisms/PipetteWizardFlows/getPipetteWizardStepsForProtocol.ts index c5fa4739161..50e271082e0 100644 --- a/app/src/organisms/PipetteWizardFlows/getPipetteWizardStepsForProtocol.ts +++ b/app/src/organisms/PipetteWizardFlows/getPipetteWizardStepsForProtocol.ts @@ -1,7 +1,7 @@ import { LEFT, RIGHT } from '@opentrons/shared-data' import { FLOWS, SECTIONS } from './constants' import type { LoadedPipette } from '@opentrons/shared-data' -import type { Mount } from '../../redux/pipettes/types' +import type { Mount } from '/app/redux/pipettes/types' import type { AttachedPipettesFromInstrumentsQuery } from '../Devices/hooks' import type { PipetteWizardStep } from './types' diff --git a/app/src/organisms/PipetteWizardFlows/index.tsx b/app/src/organisms/PipetteWizardFlows/index.tsx index 846af77c58b..3388d39dbfb 100644 --- a/app/src/organisms/PipetteWizardFlows/index.tsx +++ b/app/src/organisms/PipetteWizardFlows/index.tsx @@ -16,16 +16,16 @@ import { ApiHostProvider, } from '@opentrons/react-api-client' -import { useCreateTargetedMaintenanceRunMutation } from '../../resources/runs' +import { useCreateTargetedMaintenanceRunMutation } from '/app/resources/runs' import { useChainMaintenanceCommands, useNotifyCurrentMaintenanceRun, -} from '../../resources/maintenance_runs' +} from '/app/resources/maintenance_runs' import { getTopPortalEl } from '../../App/portal' -import { WizardHeader } from '../../molecules/WizardHeader' +import { WizardHeader } from '/app/molecules/WizardHeader' import { FirmwareUpdateModal } from '../FirmwareUpdateModal' -import { getIsOnDevice } from '../../redux/config' -import { SimpleWizardBody } from '../../molecules/SimpleWizardBody' +import { getIsOnDevice } from '/app/redux/config' +import { SimpleWizardBody } from '/app/molecules/SimpleWizardBody' import { useAttachedPipettesFromInstrumentsQuery } from '../Devices/hooks' import { usePipetteFlowWizardHeaderText } from './hooks' import { getPipetteWizardSteps } from './getPipetteWizardSteps' diff --git a/app/src/organisms/PipetteWizardFlows/utils.tsx b/app/src/organisms/PipetteWizardFlows/utils.tsx index 1466730b6ae..1eb2ad83632 100644 --- a/app/src/organisms/PipetteWizardFlows/utils.tsx +++ b/app/src/organisms/PipetteWizardFlows/utils.tsx @@ -4,25 +4,25 @@ import { LEFT, RIGHT } from '@opentrons/shared-data' import { SPACING } from '@opentrons/components' import { FLOWS, SECTIONS } from './constants' -import attachLeft18 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_1_8_L.webm' -import attachRight18 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_1_8_R.webm' -import detachLeft1 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_1_L.webm' -import detachRight1 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_1_R.webm' -import detachLeft8 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_8_L.webm' -import detachRight8 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_8_R.webm' -import attachProbe1 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_1.webm' -import attachProbe8 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_8.webm' -import detachProbe1 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_1.webm' -import detachProbe8 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_8.webm' +import attachLeft18 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_1_8_L.webm' +import attachRight18 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_1_8_R.webm' +import detachLeft1 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_1_L.webm' +import detachRight1 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_1_R.webm' +import detachLeft8 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_8_L.webm' +import detachRight8 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_8_R.webm' +import attachProbe1 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_1.webm' +import attachProbe8 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_8.webm' +import detachProbe1 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_1.webm' +import detachProbe8 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_8.webm' -import attach96 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_96.webm' -import attachPlate96 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_Plate_96.webm' -import detach96 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_96.webm' -import detachPlate96 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_Plate_96.webm' -import zAxisAttach96 from '../../assets/videos/pipette-wizard-flows/Pipette_Zaxis_Attach_96.webm' -import zAxisDetach96 from '../../assets/videos/pipette-wizard-flows/Pipette_Zaxis_Detach_96.webm' -import attachProbe96 from '../../assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_96.webm' -import detachProbe96 from '../../assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_96.webm' +import attach96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_96.webm' +import attachPlate96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_Plate_96.webm' +import detach96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_96.webm' +import detachPlate96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_Plate_96.webm' +import zAxisAttach96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Zaxis_Attach_96.webm' +import zAxisDetach96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Zaxis_Detach_96.webm' +import attachProbe96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Attach_Probe_96.webm' +import detachProbe96 from '/app/assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_96.webm' import type { AttachedPipettesFromInstrumentsQuery } from '../Devices/hooks' import type { PipetteWizardFlow, PipetteWizardStep } from './types' diff --git a/app/src/organisms/ProtocolAnalysisFailure/ProtocolAnalysisStale.tsx b/app/src/organisms/ProtocolAnalysisFailure/ProtocolAnalysisStale.tsx index 230f19f07c7..aa961fae559 100644 --- a/app/src/organisms/ProtocolAnalysisFailure/ProtocolAnalysisStale.tsx +++ b/app/src/organisms/ProtocolAnalysisFailure/ProtocolAnalysisStale.tsx @@ -13,10 +13,10 @@ import { WRAP_REVERSE, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' -import type { Dispatch } from '../../redux/types' -import { analyzeProtocol } from '../../redux/protocol-storage' +import type { Dispatch } from '/app/redux/types' +import { analyzeProtocol } from '/app/redux/protocol-storage' interface ProtocolAnalysisStaleProps { protocolKey: string } diff --git a/app/src/organisms/ProtocolAnalysisFailure/__tests__/ProtocolAnalysisFailure.test.tsx b/app/src/organisms/ProtocolAnalysisFailure/__tests__/ProtocolAnalysisFailure.test.tsx index 86f0feb7373..ff8d5fa225d 100644 --- a/app/src/organisms/ProtocolAnalysisFailure/__tests__/ProtocolAnalysisFailure.test.tsx +++ b/app/src/organisms/ProtocolAnalysisFailure/__tests__/ProtocolAnalysisFailure.test.tsx @@ -3,11 +3,11 @@ import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ProtocolAnalysisFailure } from '..' -import { analyzeProtocol } from '../../../redux/protocol-storage' +import { analyzeProtocol } from '/app/redux/protocol-storage' const render = ( props: Partial> = {} diff --git a/app/src/organisms/ProtocolAnalysisFailure/index.tsx b/app/src/organisms/ProtocolAnalysisFailure/index.tsx index 72622a6746a..a5d35f32a42 100644 --- a/app/src/organisms/ProtocolAnalysisFailure/index.tsx +++ b/app/src/organisms/ProtocolAnalysisFailure/index.tsx @@ -18,11 +18,11 @@ import { WRAP_REVERSE, } from '@opentrons/components' -import { analyzeProtocol } from '../../redux/protocol-storage' -import { Banner } from '../../atoms/Banner' +import { analyzeProtocol } from '/app/redux/protocol-storage' +import { Banner } from '/app/atoms/Banner' import { getTopPortalEl } from '../../App/portal' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' interface ProtocolAnalysisFailureProps { errors: string[] protocolKey: string diff --git a/app/src/organisms/ProtocolDetails/AnnotatedSteps.tsx b/app/src/organisms/ProtocolDetails/AnnotatedSteps.tsx index 0db91523268..4e15ad14b62 100644 --- a/app/src/organisms/ProtocolDetails/AnnotatedSteps.tsx +++ b/app/src/organisms/ProtocolDetails/AnnotatedSteps.tsx @@ -12,7 +12,7 @@ import { TYPOGRAPHY, OVERFLOW_AUTO, } from '@opentrons/components' -import { CommandIcon, CommandText } from '../../molecules/Command' +import { CommandIcon, CommandText } from '/app/molecules/Command' import type { CompletedProtocolAnalysis, diff --git a/app/src/organisms/ProtocolDetails/ProtocolLabwareDetails.tsx b/app/src/organisms/ProtocolDetails/ProtocolLabwareDetails.tsx index b2270f6552e..4c180b59f88 100644 --- a/app/src/organisms/ProtocolDetails/ProtocolLabwareDetails.tsx +++ b/app/src/organisms/ProtocolDetails/ProtocolLabwareDetails.tsx @@ -19,12 +19,12 @@ import { useMenuHandleClickOutside, } from '@opentrons/components' import { getLabwareDefURI } from '@opentrons/shared-data' -import { Divider } from '../../atoms/structure' +import { Divider } from '/app/atoms/structure' import { getTopPortalEl } from '../../App/portal' import { LabwareDetails } from '../LabwareDetails' import type { LoadLabwareRunTimeCommand } from '@opentrons/shared-data' -import type { LabwareDefAndDate } from '../../pages/Desktop/Labware/hooks' +import type { LabwareDefAndDate } from '/app/pages/Desktop/Labware/hooks' interface ProtocolLabwareDetailsProps { requiredLabwareDetails: LoadLabwareRunTimeCommand[] | null diff --git a/app/src/organisms/ProtocolDetails/ProtocolLiquidsDetails.tsx b/app/src/organisms/ProtocolDetails/ProtocolLiquidsDetails.tsx index 7d390f3eb0a..0cb9780dee7 100644 --- a/app/src/organisms/ProtocolDetails/ProtocolLiquidsDetails.tsx +++ b/app/src/organisms/ProtocolDetails/ProtocolLiquidsDetails.tsx @@ -19,7 +19,7 @@ import { } from '@opentrons/components' import { parseLiquidsInLoadOrder } from '@opentrons/shared-data' -import { Divider } from '../../atoms/structure' +import { Divider } from '/app/atoms/structure' import type { Liquid, RunTimeCommand } from '@opentrons/shared-data' diff --git a/app/src/organisms/ProtocolDetails/ProtocolParameters/__tests__/ProtocolParameters.test.tsx b/app/src/organisms/ProtocolDetails/ProtocolParameters/__tests__/ProtocolParameters.test.tsx index 93d4386487f..e87c660e0d9 100644 --- a/app/src/organisms/ProtocolDetails/ProtocolParameters/__tests__/ProtocolParameters.test.tsx +++ b/app/src/organisms/ProtocolDetails/ProtocolParameters/__tests__/ProtocolParameters.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { describe, it, vi, beforeEach, afterEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ProtocolParameters } from '..' import type { RunTimeParameter } from '@opentrons/shared-data' diff --git a/app/src/organisms/ProtocolDetails/ProtocolParameters/index.tsx b/app/src/organisms/ProtocolDetails/ProtocolParameters/index.tsx index db25d7f6228..6e7067204d0 100644 --- a/app/src/organisms/ProtocolDetails/ProtocolParameters/index.tsx +++ b/app/src/organisms/ProtocolDetails/ProtocolParameters/index.tsx @@ -9,7 +9,7 @@ import { SPACING, StyledText, } from '@opentrons/components' -import { Banner } from '../../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import type { RunTimeParameter } from '@opentrons/shared-data' diff --git a/app/src/organisms/ProtocolDetails/RobotConfigurationDetails.tsx b/app/src/organisms/ProtocolDetails/RobotConfigurationDetails.tsx index 423bb307a03..d2fc14e63eb 100644 --- a/app/src/organisms/ProtocolDetails/RobotConfigurationDetails.tsx +++ b/app/src/organisms/ProtocolDetails/RobotConfigurationDetails.tsx @@ -26,8 +26,8 @@ import { FLEX_USB_MODULE_FIXTURES, } from '@opentrons/shared-data' -import { InstrumentContainer } from '../../atoms/InstrumentContainer' -import { Divider } from '../../atoms/structure' +import { InstrumentContainer } from '/app/atoms/InstrumentContainer' +import { Divider } from '/app/atoms/structure' import { getRobotTypeDisplayName } from '../ProtocolsLanding/utils' import { getSlotsForThermocycler } from './utils' diff --git a/app/src/organisms/ProtocolDetails/__tests__/ProtocolDetails.test.tsx b/app/src/organisms/ProtocolDetails/__tests__/ProtocolDetails.test.tsx index 140cf3f6373..faf7cd40053 100644 --- a/app/src/organisms/ProtocolDetails/__tests__/ProtocolDetails.test.tsx +++ b/app/src/organisms/ProtocolDetails/__tests__/ProtocolDetails.test.tsx @@ -3,38 +3,38 @@ import { act, screen, waitFor } from '@testing-library/react' import { MemoryRouter } from 'react-router-dom' import { describe, it, beforeEach, vi, expect, afterEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { ChooseRobotToRunProtocolSlideout } from '../../../organisms/ChooseRobotToRunProtocolSlideout' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { ChooseRobotToRunProtocolSlideout } from '/app/organisms/ChooseRobotToRunProtocolSlideout' import { useTrackEvent, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, -} from '../../../redux/analytics' -import { getValidCustomLabwareFiles } from '../../../redux/custom-labware/selectors' +} from '/app/redux/analytics' +import { getValidCustomLabwareFiles } from '/app/redux/custom-labware/selectors' import { getConnectableRobots, getReachableRobots, getScanning, getUnreachableRobots, -} from '../../../redux/discovery' -import { getIsProtocolAnalysisInProgress } from '../../../redux/protocol-storage/selectors' +} from '/app/redux/discovery' +import { getIsProtocolAnalysisInProgress } from '/app/redux/protocol-storage/selectors' import { mockConnectableRobot, mockReachableRobot, mockUnreachableRobot, -} from '../../../redux/discovery/__fixtures__' -import { storedProtocolData } from '../../../redux/protocol-storage/__fixtures__' +} from '/app/redux/discovery/__fixtures__' +import { storedProtocolData } from '/app/redux/protocol-storage/__fixtures__' import { ProtocolDetails } from '..' import type { Mock } from 'vitest' import type { ProtocolAnalysisOutput } from '@opentrons/shared-data' -vi.mock('../../../redux/analytics') -vi.mock('../../../redux/custom-labware/selectors') -vi.mock('../../../redux/discovery/selectors') -vi.mock('../../../redux/protocol-storage/selectors') -vi.mock('../../../organisms/ChooseRobotToRunProtocolSlideout') -vi.mock('../../../organisms/SendProtocolToFlexSlideout') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/custom-labware/selectors') +vi.mock('/app/redux/discovery/selectors') +vi.mock('/app/redux/protocol-storage/selectors') +vi.mock('/app/organisms/ChooseRobotToRunProtocolSlideout') +vi.mock('/app/organisms/SendProtocolToFlexSlideout') const render = ( props: Partial> = {} diff --git a/app/src/organisms/ProtocolDetails/__tests__/ProtocolLabwareDetails.test.tsx b/app/src/organisms/ProtocolDetails/__tests__/ProtocolLabwareDetails.test.tsx index d2ba44d60de..3d22f3d813e 100644 --- a/app/src/organisms/ProtocolDetails/__tests__/ProtocolLabwareDetails.test.tsx +++ b/app/src/organisms/ProtocolDetails/__tests__/ProtocolLabwareDetails.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ProtocolLabwareDetails } from '../ProtocolLabwareDetails' import type { LoadLabwareRunTimeCommand } from '@opentrons/shared-data' diff --git a/app/src/organisms/ProtocolDetails/__tests__/ProtocolLiquidsDetails.test.tsx b/app/src/organisms/ProtocolDetails/__tests__/ProtocolLiquidsDetails.test.tsx index 74aa1a031a9..eeb761277b1 100644 --- a/app/src/organisms/ProtocolDetails/__tests__/ProtocolLiquidsDetails.test.tsx +++ b/app/src/organisms/ProtocolDetails/__tests__/ProtocolLiquidsDetails.test.tsx @@ -3,8 +3,8 @@ import { screen } from '@testing-library/react' import { describe, it, beforeEach, vi } from 'vitest' import { parseLiquidsInLoadOrder } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ProtocolLiquidsDetails } from '../ProtocolLiquidsDetails' import type * as SharedData from '@opentrons/shared-data' diff --git a/app/src/organisms/ProtocolDetails/__tests__/RobotConfigurationDetails.test.tsx b/app/src/organisms/ProtocolDetails/__tests__/RobotConfigurationDetails.test.tsx index ad491c0b5f5..e7f473c837d 100644 --- a/app/src/organisms/ProtocolDetails/__tests__/RobotConfigurationDetails.test.tsx +++ b/app/src/organisms/ProtocolDetails/__tests__/RobotConfigurationDetails.test.tsx @@ -4,8 +4,8 @@ import { screen } from '@testing-library/react' import { OT2_STANDARD_MODEL, FLEX_STANDARD_MODEL } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { RobotConfigurationDetails } from '../RobotConfigurationDetails' import type { LoadModuleRunTimeCommand } from '@opentrons/shared-data' diff --git a/app/src/organisms/ProtocolDetails/index.tsx b/app/src/organisms/ProtocolDetails/index.tsx index dda6e06d4a4..e4a27365e37 100644 --- a/app/src/organisms/ProtocolDetails/index.tsx +++ b/app/src/organisms/ProtocolDetails/index.tsx @@ -49,16 +49,16 @@ import { } from '@opentrons/shared-data' import { getTopPortalEl } from '../../App/portal' -import { Divider } from '../../atoms/structure' +import { Divider } from '/app/atoms/structure' import { useTrackEvent, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, -} from '../../redux/analytics' +} from '/app/redux/analytics' import { getIsProtocolAnalysisInProgress, analyzeProtocol, -} from '../../redux/protocol-storage' -import { useFeatureFlag } from '../../redux/config' +} from '/app/redux/protocol-storage' +import { useFeatureFlag } from '/app/redux/config' import { ChooseRobotToRunProtocolSlideout } from '../ChooseRobotToRunProtocolSlideout' import { SendProtocolToFlexSlideout } from '../SendProtocolToFlexSlideout' import { ProtocolAnalysisFailure } from '../ProtocolAnalysisFailure' @@ -67,7 +67,7 @@ import { getAnalysisStatus, getProtocolDisplayName, } from '../ProtocolsLanding/utils' -import { getProtocolUsesGripper } from '../../transformations/commands' +import { getProtocolUsesGripper } from '/app/transformations/commands' import { ProtocolOverflowMenu } from '../ProtocolsLanding/ProtocolOverflowMenu' import { ProtocolStats } from './ProtocolStats' import { ProtocolLabwareDetails } from './ProtocolLabwareDetails' @@ -77,8 +77,8 @@ import { ProtocolParameters } from './ProtocolParameters' import { AnnotatedSteps } from './AnnotatedSteps' import type { JsonConfig, PythonConfig } from '@opentrons/shared-data' -import type { StoredProtocolData } from '../../redux/protocol-storage' -import type { State, Dispatch } from '../../redux/types' +import type { StoredProtocolData } from '/app/redux/protocol-storage' +import type { State, Dispatch } from '/app/redux/types' const GRID_STYLE = css` display: grid; diff --git a/app/src/organisms/ProtocolStatusBanner/__tests__/ProtocolStatusBanner.test.tsx b/app/src/organisms/ProtocolStatusBanner/__tests__/ProtocolStatusBanner.test.tsx index 55fd1ba7249..a7de3ba7ef1 100644 --- a/app/src/organisms/ProtocolStatusBanner/__tests__/ProtocolStatusBanner.test.tsx +++ b/app/src/organisms/ProtocolStatusBanner/__tests__/ProtocolStatusBanner.test.tsx @@ -4,8 +4,8 @@ import { describe, it, expect } from 'vitest' import { COLORS } from '@opentrons/components' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { ProtocolStatusBanner } from '../index' const render = () => { diff --git a/app/src/organisms/ProtocolStatusBanner/index.tsx b/app/src/organisms/ProtocolStatusBanner/index.tsx index 7f1ab307d41..6037d88596a 100644 --- a/app/src/organisms/ProtocolStatusBanner/index.tsx +++ b/app/src/organisms/ProtocolStatusBanner/index.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { useTranslation } from 'react-i18next' import { SPACING, LegacyStyledText } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' +import { Banner } from '/app/atoms/Banner' import type { IconProps } from '@opentrons/components' diff --git a/app/src/organisms/ProtocolTimelineScrubber/CommandItem.tsx b/app/src/organisms/ProtocolTimelineScrubber/CommandItem.tsx index 0a3fb16f660..fee6d977cf7 100644 --- a/app/src/organisms/ProtocolTimelineScrubber/CommandItem.tsx +++ b/app/src/organisms/ProtocolTimelineScrubber/CommandItem.tsx @@ -8,8 +8,8 @@ import { LegacyStyledText, OVERFLOW_SCROLL, } from '@opentrons/components' -import { getCommandTextData } from '../../molecules/Command/utils/getCommandTextData' -import { CommandText } from '../../molecules/Command' +import { getCommandTextData } from '/app/molecules/Command/utils/getCommandTextData' +import { CommandText } from '/app/molecules/Command' import { COMMAND_WIDTH_PX } from './index' import type { diff --git a/app/src/organisms/ProtocolUpload/hooks/__tests__/useCloneRun.test.tsx b/app/src/organisms/ProtocolUpload/hooks/__tests__/useCloneRun.test.tsx index 3056c99211e..c40a3f21a3e 100644 --- a/app/src/organisms/ProtocolUpload/hooks/__tests__/useCloneRun.test.tsx +++ b/app/src/organisms/ProtocolUpload/hooks/__tests__/useCloneRun.test.tsx @@ -11,12 +11,12 @@ import { } from '@opentrons/react-api-client' import { useCloneRun } from '../useCloneRun' -import { useNotifyRunQuery } from '../../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import type { HostConfig } from '@opentrons/api-client' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') const HOST_CONFIG: HostConfig = { hostname: 'localhost' } const RUN_ID_NO_RTP: string = 'run_id_no_rtp' diff --git a/app/src/organisms/ProtocolUpload/hooks/__tests__/useMostRecentRunId.test.tsx b/app/src/organisms/ProtocolUpload/hooks/__tests__/useMostRecentRunId.test.tsx index e385b2d8f77..d22def6500f 100644 --- a/app/src/organisms/ProtocolUpload/hooks/__tests__/useMostRecentRunId.test.tsx +++ b/app/src/organisms/ProtocolUpload/hooks/__tests__/useMostRecentRunId.test.tsx @@ -2,10 +2,10 @@ import { when } from 'vitest-when' import { renderHook } from '@testing-library/react' import { describe, it, afterEach, vi, expect } from 'vitest' -import { useNotifyAllRunsQuery } from '../../../../resources/runs' +import { useNotifyAllRunsQuery } from '/app/resources/runs' import { useMostRecentRunId } from '../useMostRecentRunId' -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') describe('useMostRecentRunId hook', () => { afterEach(() => { diff --git a/app/src/organisms/ProtocolUpload/hooks/useCloneRun.ts b/app/src/organisms/ProtocolUpload/hooks/useCloneRun.ts index d15bee033ed..a1be96c9bec 100644 --- a/app/src/organisms/ProtocolUpload/hooks/useCloneRun.ts +++ b/app/src/organisms/ProtocolUpload/hooks/useCloneRun.ts @@ -5,7 +5,7 @@ import { useCreateRunMutation, useCreateProtocolAnalysisMutation, } from '@opentrons/react-api-client' -import { useNotifyRunQuery } from '../../../resources/runs' +import { useNotifyRunQuery } from '/app/resources/runs' import { getRunTimeParameterValuesForRun, getRunTimeParameterFilesForRun, diff --git a/app/src/organisms/ProtocolUpload/hooks/useCloseCurrentRun.ts b/app/src/organisms/ProtocolUpload/hooks/useCloseCurrentRun.ts index 6c38ed1aae3..a95bf357ce5 100644 --- a/app/src/organisms/ProtocolUpload/hooks/useCloseCurrentRun.ts +++ b/app/src/organisms/ProtocolUpload/hooks/useCloseCurrentRun.ts @@ -1,7 +1,7 @@ import * as React from 'react' import { useDismissCurrentRunMutation } from '@opentrons/react-api-client' -import { useCurrentRunId } from '../../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import type { UseDismissCurrentRunMutationOptions } from '@opentrons/react-api-client/src/runs/useDismissCurrentRunMutation' diff --git a/app/src/organisms/ProtocolUpload/hooks/useCurrentRun.ts b/app/src/organisms/ProtocolUpload/hooks/useCurrentRun.ts index 0c19e86c097..3e414a48aa0 100644 --- a/app/src/organisms/ProtocolUpload/hooks/useCurrentRun.ts +++ b/app/src/organisms/ProtocolUpload/hooks/useCurrentRun.ts @@ -1,4 +1,4 @@ -import { useNotifyRunQuery, useCurrentRunId } from '../../../resources/runs' +import { useNotifyRunQuery, useCurrentRunId } from '/app/resources/runs' import type { Run } from '@opentrons/api-client' diff --git a/app/src/organisms/ProtocolUpload/hooks/useCurrentRunCommands.ts b/app/src/organisms/ProtocolUpload/hooks/useCurrentRunCommands.ts index 543d90cb899..c04f2b0d1db 100644 --- a/app/src/organisms/ProtocolUpload/hooks/useCurrentRunCommands.ts +++ b/app/src/organisms/ProtocolUpload/hooks/useCurrentRunCommands.ts @@ -1,4 +1,4 @@ -import { useCurrentRunId } from '../../../resources/runs' +import { useCurrentRunId } from '/app/resources/runs' import { useRunCommands } from './useRunCommands' import type { UseQueryOptions } from 'react-query' import type { diff --git a/app/src/organisms/ProtocolUpload/hooks/useMostRecentRunId.ts b/app/src/organisms/ProtocolUpload/hooks/useMostRecentRunId.ts index f8f9898d170..c0221ae27a4 100644 --- a/app/src/organisms/ProtocolUpload/hooks/useMostRecentRunId.ts +++ b/app/src/organisms/ProtocolUpload/hooks/useMostRecentRunId.ts @@ -1,6 +1,6 @@ import last from 'lodash/last' -import { useNotifyAllRunsQuery } from '../../../resources/runs' +import { useNotifyAllRunsQuery } from '/app/resources/runs' export function useMostRecentRunId(): string | null { const { data: allRuns } = useNotifyAllRunsQuery() diff --git a/app/src/organisms/ProtocolUpload/hooks/useRunCommands.ts b/app/src/organisms/ProtocolUpload/hooks/useRunCommands.ts index cb3e70296f8..543262fbf54 100644 --- a/app/src/organisms/ProtocolUpload/hooks/useRunCommands.ts +++ b/app/src/organisms/ProtocolUpload/hooks/useRunCommands.ts @@ -1,4 +1,4 @@ -import { useNotifyAllCommandsQuery } from '../../../resources/runs' +import { useNotifyAllCommandsQuery } from '/app/resources/runs' import type { UseQueryOptions } from 'react-query' import type { diff --git a/app/src/organisms/ProtocolsLanding/ProtocolCard.tsx b/app/src/organisms/ProtocolsLanding/ProtocolCard.tsx index 55e48479245..14363a9db61 100644 --- a/app/src/organisms/ProtocolsLanding/ProtocolCard.tsx +++ b/app/src/organisms/ProtocolsLanding/ProtocolCard.tsx @@ -34,12 +34,12 @@ import { WRAP, } from '@opentrons/components' -import { getIsProtocolAnalysisInProgress } from '../../redux/protocol-storage' -import { InstrumentContainer } from '../../atoms/InstrumentContainer' +import { getIsProtocolAnalysisInProgress } from '/app/redux/protocol-storage' +import { InstrumentContainer } from '/app/atoms/InstrumentContainer' import { ProtocolOverflowMenu } from './ProtocolOverflowMenu' import { ProtocolAnalysisFailure } from '../ProtocolAnalysisFailure' import { ProtocolStatusBanner } from '../ProtocolStatusBanner' -import { getProtocolUsesGripper } from '../../transformations/commands' +import { getProtocolUsesGripper } from '/app/transformations/commands' import { ProtocolAnalysisStale } from '../ProtocolAnalysisFailure/ProtocolAnalysisStale' import { getAnalysisStatus, @@ -48,8 +48,8 @@ import { } from './utils' import type { ProtocolAnalysisOutput } from '@opentrons/shared-data' -import type { StoredProtocolData } from '../../redux/protocol-storage' -import type { State } from '../../redux/types' +import type { StoredProtocolData } from '/app/redux/protocol-storage' +import type { State } from '/app/redux/types' interface ProtocolCardProps { handleRunProtocol: (storedProtocolData: StoredProtocolData) => void diff --git a/app/src/organisms/ProtocolsLanding/ProtocolList.tsx b/app/src/organisms/ProtocolsLanding/ProtocolList.tsx index 084fd93f17b..af38e901d09 100644 --- a/app/src/organisms/ProtocolsLanding/ProtocolList.tsx +++ b/app/src/organisms/ProtocolsLanding/ProtocolList.tsx @@ -26,18 +26,18 @@ import { import { getProtocolsDesktopSortKey, updateConfigValue, -} from '../../redux/config' +} from '/app/redux/config' import { useSortedProtocols } from './hooks' -import { Slideout } from '../../atoms/Slideout' +import { Slideout } from '/app/atoms/Slideout' import { ChooseRobotToRunProtocolSlideout } from '../ChooseRobotToRunProtocolSlideout' import { SendProtocolToFlexSlideout } from '../SendProtocolToFlexSlideout' import { ProtocolUploadInput } from './ProtocolUploadInput' import { ProtocolCard } from './ProtocolCard' import { EmptyStateLinks } from './EmptyStateLinks' -import type { StoredProtocolData } from '../../redux/protocol-storage' +import type { StoredProtocolData } from '/app/redux/protocol-storage' import type { ProtocolSort } from './hooks' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' const SORT_BY_BUTTON_STYLE = css` background-color: ${COLORS.transparent}; diff --git a/app/src/organisms/ProtocolsLanding/ProtocolOverflowMenu.tsx b/app/src/organisms/ProtocolsLanding/ProtocolOverflowMenu.tsx index 20f8cc1b33b..d813fad1563 100644 --- a/app/src/organisms/ProtocolsLanding/ProtocolOverflowMenu.tsx +++ b/app/src/organisms/ProtocolsLanding/ProtocolOverflowMenu.tsx @@ -26,18 +26,18 @@ import { useTrackEvent, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, ANALYTICS_DELETE_PROTOCOL_FROM_APP, -} from '../../redux/analytics' -import { useFeatureFlag } from '../../redux/config' +} from '/app/redux/analytics' +import { useFeatureFlag } from '/app/redux/config' import { analyzeProtocol, removeProtocol, viewProtocolSourceFolder, -} from '../../redux/protocol-storage' +} from '/app/redux/protocol-storage' import { ConfirmDeleteProtocolModal } from './ConfirmDeleteProtocolModal' import type { StyleProps } from '@opentrons/components' -import type { StoredProtocolData } from '../../redux/protocol-storage' -import type { Dispatch } from '../../redux/types' +import type { StoredProtocolData } from '/app/redux/protocol-storage' +import type { Dispatch } from '/app/redux/types' interface ProtocolOverflowMenuProps extends StyleProps { handleRunProtocol: (storedProtocolData: StoredProtocolData) => void diff --git a/app/src/organisms/ProtocolsLanding/ProtocolUploadInput.tsx b/app/src/organisms/ProtocolsLanding/ProtocolUploadInput.tsx index a8a03d085e0..d5249565b30 100644 --- a/app/src/organisms/ProtocolsLanding/ProtocolUploadInput.tsx +++ b/app/src/organisms/ProtocolsLanding/ProtocolUploadInput.tsx @@ -11,16 +11,16 @@ import { SPACING, LegacyStyledText, } from '@opentrons/components' -import { UploadInput } from '../../molecules/UploadInput' -import { addProtocol } from '../../redux/protocol-storage' +import { UploadInput } from '/app/molecules/UploadInput' +import { addProtocol } from '/app/redux/protocol-storage' import { useTrackEvent, ANALYTICS_IMPORT_PROTOCOL_TO_APP, -} from '../../redux/analytics' +} from '/app/redux/analytics' import { useLogger } from '../../logger' import { useToaster } from '../ToasterOven' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' export interface UploadInputProps { onUpload?: () => void diff --git a/app/src/organisms/ProtocolsLanding/__tests__/ConfirmDeleteProtocolModal.test.tsx b/app/src/organisms/ProtocolsLanding/__tests__/ConfirmDeleteProtocolModal.test.tsx index ed2f816ded0..4ace14978d5 100644 --- a/app/src/organisms/ProtocolsLanding/__tests__/ConfirmDeleteProtocolModal.test.tsx +++ b/app/src/organisms/ProtocolsLanding/__tests__/ConfirmDeleteProtocolModal.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect, beforeEach, afterEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ConfirmDeleteProtocolModal } from '../ConfirmDeleteProtocolModal' const render = ( diff --git a/app/src/organisms/ProtocolsLanding/__tests__/EmptyStateLinks.test.tsx b/app/src/organisms/ProtocolsLanding/__tests__/EmptyStateLinks.test.tsx index 06b11ec4b17..6b65c2e5dfc 100644 --- a/app/src/organisms/ProtocolsLanding/__tests__/EmptyStateLinks.test.tsx +++ b/app/src/organisms/ProtocolsLanding/__tests__/EmptyStateLinks.test.tsx @@ -3,8 +3,8 @@ import { screen } from '@testing-library/react' import { BrowserRouter } from 'react-router-dom' import { describe, it, expect, afterEach, vi } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { EmptyStateLinks } from '../EmptyStateLinks' describe('EmptyStateLinks', () => { diff --git a/app/src/organisms/ProtocolsLanding/__tests__/ProtocolList.test.tsx b/app/src/organisms/ProtocolsLanding/__tests__/ProtocolList.test.tsx index 0e6cd8131d4..41f25ecf491 100644 --- a/app/src/organisms/ProtocolsLanding/__tests__/ProtocolList.test.tsx +++ b/app/src/organisms/ProtocolsLanding/__tests__/ProtocolList.test.tsx @@ -4,21 +4,21 @@ import { when } from 'vitest-when' import { fireEvent, screen } from '@testing-library/react' import { describe, it, beforeEach, vi, afterEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { getProtocolsDesktopSortKey } from '../../../redux/config' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { getProtocolsDesktopSortKey } from '/app/redux/config' import { storedProtocolData, storedProtocolDataTwo, -} from '../../../redux/protocol-storage/__fixtures__' +} from '/app/redux/protocol-storage/__fixtures__' import { ProtocolList } from '../ProtocolList' import { useSortedProtocols } from '../hooks' import { EmptyStateLinks } from '../EmptyStateLinks' import { ProtocolCard } from '../ProtocolCard' vi.mock('../hooks') -vi.mock('../../../redux/protocol-storage') -vi.mock('../../../redux/config') +vi.mock('/app/redux/protocol-storage') +vi.mock('/app/redux/config') vi.mock('../EmptyStateLinks') vi.mock('../ProtocolCard') diff --git a/app/src/organisms/ProtocolsLanding/__tests__/ProtocolOverflowMenu.test.tsx b/app/src/organisms/ProtocolsLanding/__tests__/ProtocolOverflowMenu.test.tsx index dcf090f7c62..daf81b68e2e 100644 --- a/app/src/organisms/ProtocolsLanding/__tests__/ProtocolOverflowMenu.test.tsx +++ b/app/src/organisms/ProtocolsLanding/__tests__/ProtocolOverflowMenu.test.tsx @@ -3,25 +3,25 @@ import { fireEvent, screen } from '@testing-library/react' import { MemoryRouter } from 'react-router-dom' import { describe, it, vi, beforeEach, afterEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useTrackEvent, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, -} from '../../../redux/analytics' -import { storedProtocolData } from '../../../redux/protocol-storage/__fixtures__' +} from '/app/redux/analytics' +import { storedProtocolData } from '/app/redux/protocol-storage/__fixtures__' import { analyzeProtocol, removeProtocol, viewProtocolSourceFolder, -} from '../../../redux/protocol-storage' +} from '/app/redux/protocol-storage' import { ProtocolOverflowMenu } from '../ProtocolOverflowMenu' import type { Mock } from 'vitest' -vi.mock('../../../redux/analytics') -vi.mock('../../../redux/protocol-storage') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/protocol-storage') const mockHandleRunProtocol = vi.fn() const mockHandleSendProtocolToFlex = vi.fn() diff --git a/app/src/organisms/ProtocolsLanding/__tests__/UploadInput.test.tsx b/app/src/organisms/ProtocolsLanding/__tests__/UploadInput.test.tsx index b039aef5b88..821e23077cd 100644 --- a/app/src/organisms/ProtocolsLanding/__tests__/UploadInput.test.tsx +++ b/app/src/organisms/ProtocolsLanding/__tests__/UploadInput.test.tsx @@ -2,17 +2,17 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { BrowserRouter } from 'react-router-dom' import { describe, it, vi, beforeEach, afterEach, expect } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useTrackEvent, ANALYTICS_IMPORT_PROTOCOL_TO_APP, -} from '../../../redux/analytics' +} from '/app/redux/analytics' import { ProtocolUploadInput } from '../ProtocolUploadInput' import type { Mock } from 'vitest' -vi.mock('../../../redux/analytics') +vi.mock('/app/redux/analytics') describe('ProtocolUploadInput', () => { let onUpload: Mock diff --git a/app/src/organisms/ProtocolsLanding/__tests__/hooks.test.tsx b/app/src/organisms/ProtocolsLanding/__tests__/hooks.test.tsx index b8ec09243b6..722ba2a70da 100644 --- a/app/src/organisms/ProtocolsLanding/__tests__/hooks.test.tsx +++ b/app/src/organisms/ProtocolsLanding/__tests__/hooks.test.tsx @@ -10,8 +10,8 @@ import { useSortedProtocols } from '../hooks' import type { Store } from 'redux' import type { ProtocolAnalysisOutput } from '@opentrons/shared-data' -import type { StoredProtocolData } from '../../../redux/protocol-storage' -import type { State } from '../../../redux/types' +import type { StoredProtocolData } from '/app/redux/protocol-storage' +import type { State } from '/app/redux/types' const mockStoredProtocolData = [ { diff --git a/app/src/organisms/ProtocolsLanding/hooks.tsx b/app/src/organisms/ProtocolsLanding/hooks.tsx index c067cd34f98..c243a44febf 100644 --- a/app/src/organisms/ProtocolsLanding/hooks.tsx +++ b/app/src/organisms/ProtocolsLanding/hooks.tsx @@ -1,6 +1,6 @@ import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' import { getProtocolDisplayName } from './utils' -import type { StoredProtocolData } from '../../redux/protocol-storage' +import type { StoredProtocolData } from '/app/redux/protocol-storage' export type ProtocolSort = | 'alphabetical' diff --git a/app/src/organisms/QuickTransferFlow/ConfirmExitModal.tsx b/app/src/organisms/QuickTransferFlow/ConfirmExitModal.tsx index 9ea40d081bf..f92fa2eab8e 100644 --- a/app/src/organisms/QuickTransferFlow/ConfirmExitModal.tsx +++ b/app/src/organisms/QuickTransferFlow/ConfirmExitModal.tsx @@ -8,8 +8,8 @@ import { DIRECTION_COLUMN, TYPOGRAPHY, } from '@opentrons/components' -import { OddModal } from '../../molecules/OddModal' -import { SmallButton } from '../../atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' interface ConfirmExitModalProps { confirmExit: () => void diff --git a/app/src/organisms/QuickTransferFlow/CreateNewTransfer.tsx b/app/src/organisms/QuickTransferFlow/CreateNewTransfer.tsx index e7d2319b4ea..49a6bcced3c 100644 --- a/app/src/organisms/QuickTransferFlow/CreateNewTransfer.tsx +++ b/app/src/organisms/QuickTransferFlow/CreateNewTransfer.tsx @@ -11,8 +11,8 @@ import { } from '@opentrons/components' import { ChildNavigation } from '../ChildNavigation' -import { useNotifyDeckConfigurationQuery } from '../../resources/deck_configuration' -import type { SmallButton } from '../../atoms/buttons' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' +import type { SmallButton } from '/app/atoms/buttons' interface CreateNewTransferProps { onNext: () => void diff --git a/app/src/organisms/QuickTransferFlow/NameQuickTransfer.tsx b/app/src/organisms/QuickTransferFlow/NameQuickTransfer.tsx index 7a79306314e..5aa111c79c0 100644 --- a/app/src/organisms/QuickTransferFlow/NameQuickTransfer.tsx +++ b/app/src/organisms/QuickTransferFlow/NameQuickTransfer.tsx @@ -15,7 +15,7 @@ import { } from '@opentrons/components' import { getTopPortalEl } from '../../App/portal' -import { FullKeyboard } from '../../atoms/SoftwareKeyboard' +import { FullKeyboard } from '/app/atoms/SoftwareKeyboard' import { ChildNavigation } from '../ChildNavigation' interface NameQuickTransferProps { diff --git a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/AirGap.tsx b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/AirGap.tsx index 1f9589dce61..99815f39097 100644 --- a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/AirGap.tsx +++ b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/AirGap.tsx @@ -22,8 +22,8 @@ import type { QuickTransferSummaryAction, FlowRateKind, } from '../types' -import { i18n } from '../../../i18n' -import { NumericalKeyboard } from '../../../atoms/SoftwareKeyboard' +import { i18n } from '/app/i18n' +import { NumericalKeyboard } from '/app/atoms/SoftwareKeyboard' interface AirGapProps { onBack: () => void diff --git a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/BlowOut.tsx b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/BlowOut.tsx index e43ab686481..34073d18b8e 100644 --- a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/BlowOut.tsx +++ b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/BlowOut.tsx @@ -16,7 +16,7 @@ import { TRASH_BIN_ADAPTER_FIXTURE, } from '@opentrons/shared-data' import { getTopPortalEl } from '../../../App/portal' -import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import { ChildNavigation } from '../../ChildNavigation' import { ACTIONS } from '../constants' @@ -28,7 +28,7 @@ import type { BlowOutLocation, TransferType, } from '../types' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' interface BlowOutProps { onBack: () => void diff --git a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/Delay.tsx b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/Delay.tsx index c2a1046c807..75e2389bf5d 100644 --- a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/Delay.tsx +++ b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/Delay.tsx @@ -22,8 +22,8 @@ import type { QuickTransferSummaryAction, FlowRateKind, } from '../types' -import { i18n } from '../../../i18n' -import { NumericalKeyboard } from '../../../atoms/SoftwareKeyboard' +import { i18n } from '/app/i18n' +import { NumericalKeyboard } from '/app/atoms/SoftwareKeyboard' interface DelayProps { onBack: () => void diff --git a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/FlowRate.tsx b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/FlowRate.tsx index de7af18592c..dbbad16c11c 100644 --- a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/FlowRate.tsx +++ b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/FlowRate.tsx @@ -18,7 +18,7 @@ import { import { getTopPortalEl } from '../../../App/portal' import { ChildNavigation } from '../../ChildNavigation' -import { NumericalKeyboard } from '../../../atoms/SoftwareKeyboard' +import { NumericalKeyboard } from '/app/atoms/SoftwareKeyboard' import { ACTIONS } from '../constants' import type { SupportedTip } from '@opentrons/shared-data' diff --git a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/Mix.tsx b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/Mix.tsx index 93dd5f46cd4..c4413cdc04d 100644 --- a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/Mix.tsx +++ b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/Mix.tsx @@ -22,8 +22,8 @@ import type { QuickTransferSummaryAction, FlowRateKind, } from '../types' -import { i18n } from '../../../i18n' -import { NumericalKeyboard } from '../../../atoms/SoftwareKeyboard' +import { i18n } from '/app/i18n' +import { NumericalKeyboard } from '/app/atoms/SoftwareKeyboard' interface MixProps { onBack: () => void diff --git a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/PipettePath.tsx b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/PipettePath.tsx index 51ea069ba5f..86ef6cddf1a 100644 --- a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/PipettePath.tsx +++ b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/PipettePath.tsx @@ -14,14 +14,14 @@ import { SPACING, } from '@opentrons/components' -import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import { getTopPortalEl } from '../../../App/portal' import { ChildNavigation } from '../../ChildNavigation' import { useBlowOutLocationOptions } from './BlowOut' import { ACTIONS } from '../constants' -import { i18n } from '../../../i18n' -import { NumericalKeyboard } from '../../../atoms/SoftwareKeyboard' +import { i18n } from '/app/i18n' +import { NumericalKeyboard } from '/app/atoms/SoftwareKeyboard' import type { PathOption, diff --git a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/TipPosition.tsx b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/TipPosition.tsx index 6bd48f51cf3..3d831200bca 100644 --- a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/TipPosition.tsx +++ b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/TipPosition.tsx @@ -13,7 +13,7 @@ import { import { getTopPortalEl } from '../../../App/portal' import { ChildNavigation } from '../../ChildNavigation' -import { NumericalKeyboard } from '../../../atoms/SoftwareKeyboard' +import { NumericalKeyboard } from '/app/atoms/SoftwareKeyboard' import { ACTIONS } from '../constants' import { createPortal } from 'react-dom' diff --git a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/TouchTip.tsx b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/TouchTip.tsx index 9cf8949b897..1bc81c09c97 100644 --- a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/TouchTip.tsx +++ b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/TouchTip.tsx @@ -16,8 +16,8 @@ import { import { getTopPortalEl } from '../../../App/portal' import { ChildNavigation } from '../../ChildNavigation' import { ACTIONS } from '../constants' -import { i18n } from '../../../i18n' -import { NumericalKeyboard } from '../../../atoms/SoftwareKeyboard' +import { i18n } from '/app/i18n' +import { NumericalKeyboard } from '/app/atoms/SoftwareKeyboard' import type { QuickTransferSummaryState, diff --git a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/index.tsx b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/index.tsx index 2521cc900ca..de45a16fff1 100644 --- a/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/index.tsx +++ b/app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/index.tsx @@ -20,7 +20,7 @@ import { WASTE_CHUTE_FIXTURES, } from '@opentrons/shared-data' import { ACTIONS } from '../constants' -import { useToaster } from '../../../organisms/ToasterOven' +import { useToaster } from '/app/organisms/ToasterOven' import { FlowRateEntry } from './FlowRate' import { PipettePath } from './PipettePath' import { TipPositionEntry } from './TipPosition' diff --git a/app/src/organisms/QuickTransferFlow/SaveOrRunModal.tsx b/app/src/organisms/QuickTransferFlow/SaveOrRunModal.tsx index cfcb20835b6..46f4c63d7ee 100644 --- a/app/src/organisms/QuickTransferFlow/SaveOrRunModal.tsx +++ b/app/src/organisms/QuickTransferFlow/SaveOrRunModal.tsx @@ -8,8 +8,8 @@ import { DIRECTION_COLUMN, TYPOGRAPHY, } from '@opentrons/components' -import { OddModal } from '../../molecules/OddModal' -import { SmallButton } from '../../atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' import { NameQuickTransfer } from './NameQuickTransfer' interface SaveOrRunModalProps { diff --git a/app/src/organisms/QuickTransferFlow/SelectDestLabware.tsx b/app/src/organisms/QuickTransferFlow/SelectDestLabware.tsx index 5ab2e8a19dc..bdc89e6a79d 100644 --- a/app/src/organisms/QuickTransferFlow/SelectDestLabware.tsx +++ b/app/src/organisms/QuickTransferFlow/SelectDestLabware.tsx @@ -16,8 +16,8 @@ import { ChildNavigation } from '../ChildNavigation' import { getCompatibleLabwareByCategory } from './utils' import type { LabwareDefinition2 } from '@opentrons/shared-data' -import type { SmallButton } from '../../atoms/buttons' -import type { LabwareFilter } from '../../pages/Desktop/Labware/types' +import type { SmallButton } from '/app/atoms/buttons' +import type { LabwareFilter } from '/app/pages/Desktop/Labware/types' import type { QuickTransferWizardState, QuickTransferWizardAction, diff --git a/app/src/organisms/QuickTransferFlow/SelectDestWells.tsx b/app/src/organisms/QuickTransferFlow/SelectDestWells.tsx index 63a70549121..d05f8993bc3 100644 --- a/app/src/organisms/QuickTransferFlow/SelectDestWells.tsx +++ b/app/src/organisms/QuickTransferFlow/SelectDestWells.tsx @@ -13,17 +13,17 @@ import { import { getAllDefinitions } from '@opentrons/shared-data' import { getTopPortalEl } from '../../App/portal' -import { OddModal } from '../../molecules/OddModal' -import { ChildNavigation } from '../../organisms/ChildNavigation' -import { useToaster } from '../../organisms/ToasterOven' -import { WellSelection } from '../../organisms/WellSelection' +import { OddModal } from '/app/molecules/OddModal' +import { ChildNavigation } from '/app/organisms/ChildNavigation' +import { useToaster } from '/app/organisms/ToasterOven' +import { WellSelection } from '/app/organisms/WellSelection' import { CIRCULAR_WELL_96_PLATE_DEFINITION_URI, RECTANGULAR_WELL_96_PLATE_DEFINITION_URI, } from './SelectSourceWells' -import type { SmallButton } from '../../atoms/buttons' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { SmallButton } from '/app/atoms/buttons' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' import type { QuickTransferWizardState, QuickTransferWizardAction, diff --git a/app/src/organisms/QuickTransferFlow/SelectPipette.tsx b/app/src/organisms/QuickTransferFlow/SelectPipette.tsx index a9e87d00831..18831b06dd3 100644 --- a/app/src/organisms/QuickTransferFlow/SelectPipette.tsx +++ b/app/src/organisms/QuickTransferFlow/SelectPipette.tsx @@ -10,11 +10,11 @@ import { } from '@opentrons/components' import { useInstrumentsQuery } from '@opentrons/react-api-client' import { RIGHT, LEFT } from '@opentrons/shared-data' -import { usePipetteSpecsV2 } from '../../resources/instruments/hooks' +import { usePipetteSpecsV2 } from '/app/resources/instruments/hooks' import { ChildNavigation } from '../ChildNavigation' import type { PipetteData, Mount } from '@opentrons/api-client' -import type { SmallButton } from '../../atoms/buttons' +import type { SmallButton } from '/app/atoms/buttons' import type { QuickTransferWizardState, QuickTransferWizardAction, diff --git a/app/src/organisms/QuickTransferFlow/SelectSourceLabware.tsx b/app/src/organisms/QuickTransferFlow/SelectSourceLabware.tsx index f26a10c68e1..7f6fd371c14 100644 --- a/app/src/organisms/QuickTransferFlow/SelectSourceLabware.tsx +++ b/app/src/organisms/QuickTransferFlow/SelectSourceLabware.tsx @@ -16,8 +16,8 @@ import { ChildNavigation } from '../ChildNavigation' import { getCompatibleLabwareByCategory } from './utils' import type { LabwareDefinition2 } from '@opentrons/shared-data' -import type { SmallButton } from '../../atoms/buttons' -import type { LabwareFilter } from '../../pages/Desktop/Labware/types' +import type { SmallButton } from '/app/atoms/buttons' +import type { LabwareFilter } from '/app/pages/Desktop/Labware/types' import type { QuickTransferWizardState, QuickTransferWizardAction, diff --git a/app/src/organisms/QuickTransferFlow/SelectSourceWells.tsx b/app/src/organisms/QuickTransferFlow/SelectSourceWells.tsx index 5f95482fe92..9e23f101c83 100644 --- a/app/src/organisms/QuickTransferFlow/SelectSourceWells.tsx +++ b/app/src/organisms/QuickTransferFlow/SelectSourceWells.tsx @@ -9,10 +9,10 @@ import { } from '@opentrons/components' import { getAllDefinitions } from '@opentrons/shared-data' -import { ChildNavigation } from '../../organisms/ChildNavigation' -import { WellSelection } from '../../organisms/WellSelection' +import { ChildNavigation } from '/app/organisms/ChildNavigation' +import { WellSelection } from '/app/organisms/WellSelection' -import type { SmallButton } from '../../atoms/buttons' +import type { SmallButton } from '/app/atoms/buttons' import type { QuickTransferWizardState, QuickTransferWizardAction, diff --git a/app/src/organisms/QuickTransferFlow/SelectTipRack.tsx b/app/src/organisms/QuickTransferFlow/SelectTipRack.tsx index 3ef35fb9677..588db092b06 100644 --- a/app/src/organisms/QuickTransferFlow/SelectTipRack.tsx +++ b/app/src/organisms/QuickTransferFlow/SelectTipRack.tsx @@ -10,7 +10,7 @@ import { getAllDefinitions } from '@opentrons/shared-data' import { ChildNavigation } from '../ChildNavigation' import type { LabwareDefinition2 } from '@opentrons/shared-data' -import type { SmallButton } from '../../atoms/buttons' +import type { SmallButton } from '/app/atoms/buttons' import type { QuickTransferWizardState, QuickTransferWizardAction, diff --git a/app/src/organisms/QuickTransferFlow/SummaryAndSettings.tsx b/app/src/organisms/QuickTransferFlow/SummaryAndSettings.tsx index 44cfd13f5eb..cfc7d96e21d 100644 --- a/app/src/organisms/QuickTransferFlow/SummaryAndSettings.tsx +++ b/app/src/organisms/QuickTransferFlow/SummaryAndSettings.tsx @@ -17,7 +17,7 @@ import { useCreateRunMutation, useHost, } from '@opentrons/react-api-client' -import { useNotifyDeckConfigurationQuery } from '../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import { ChildNavigation } from '../ChildNavigation' import { Overview } from './Overview' @@ -27,7 +27,7 @@ import { SaveOrRunModal } from './SaveOrRunModal' import { getInitialSummaryState, createQuickTransferFile } from './utils' import { quickTransferSummaryReducer } from './reducers' -import type { SmallButton } from '../../atoms/buttons' +import type { SmallButton } from '/app/atoms/buttons' import type { QuickTransferWizardState } from './types' interface SummaryAndSettingsProps { diff --git a/app/src/organisms/QuickTransferFlow/TipManagement/TipDropLocation.tsx b/app/src/organisms/QuickTransferFlow/TipManagement/TipDropLocation.tsx index 58f20918b82..5f11e432326 100644 --- a/app/src/organisms/QuickTransferFlow/TipManagement/TipDropLocation.tsx +++ b/app/src/organisms/QuickTransferFlow/TipManagement/TipDropLocation.tsx @@ -15,7 +15,7 @@ import { TRASH_BIN_ADAPTER_FIXTURE, } from '@opentrons/shared-data' import { getTopPortalEl } from '../../../App/portal' -import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import { ChildNavigation } from '../../ChildNavigation' import type { diff --git a/app/src/organisms/QuickTransferFlow/VolumeEntry.tsx b/app/src/organisms/QuickTransferFlow/VolumeEntry.tsx index 231b89a02bf..ce5b96b7316 100644 --- a/app/src/organisms/QuickTransferFlow/VolumeEntry.tsx +++ b/app/src/organisms/QuickTransferFlow/VolumeEntry.tsx @@ -10,11 +10,11 @@ import { } from '@opentrons/components' import { ChildNavigation } from '../ChildNavigation' -import { NumericalKeyboard } from '../../atoms/SoftwareKeyboard' +import { NumericalKeyboard } from '/app/atoms/SoftwareKeyboard' import { getVolumeRange } from './utils' import { CONSOLIDATE, DISTRIBUTE } from './constants' -import type { SmallButton } from '../../atoms/buttons' +import type { SmallButton } from '/app/atoms/buttons' import type { QuickTransferWizardState, QuickTransferWizardAction, diff --git a/app/src/organisms/QuickTransferFlow/__tests__/ConfirmExitModal.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/ConfirmExitModal.test.tsx index f1e3681a93a..a35a2b3eb5f 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/ConfirmExitModal.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/ConfirmExitModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ConfirmExitModal } from '../ConfirmExitModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/QuickTransferFlow/__tests__/CreateNewTransfer.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/CreateNewTransfer.test.tsx index abeba9a2b1d..0b72abd3627 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/CreateNewTransfer.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/CreateNewTransfer.test.tsx @@ -3,8 +3,8 @@ import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' import { DeckConfigurator } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CreateNewTransfer } from '../CreateNewTransfer' import type * as OpentronsComponents from '@opentrons/components' diff --git a/app/src/organisms/QuickTransferFlow/__tests__/NameQuickTransfer.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/NameQuickTransfer.test.tsx index ad2820d3921..58339b4abb8 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/NameQuickTransfer.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/NameQuickTransfer.test.tsx @@ -2,14 +2,14 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { NameQuickTransfer } from '../NameQuickTransfer' import type { InputField } from '@opentrons/components' vi.mock('../utils') -vi.mock('../../../atoms/InputField', async importOriginal => { +vi.mock('/app/atoms/InputField', async importOriginal => { const actualComponents = await importOriginal() return { ...actualComponents, diff --git a/app/src/organisms/QuickTransferFlow/__tests__/Overview.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/Overview.test.tsx index 12b079cecd6..a60804414f4 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/Overview.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/Overview.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, afterEach, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { Overview } from '../Overview' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/QuickTransferFlow/__tests__/SelectDestLabware.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/SelectDestLabware.test.tsx index 84e194834d0..848921eb76e 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/SelectDestLabware.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/SelectDestLabware.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SelectDestLabware } from '../SelectDestLabware' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/QuickTransferFlow/__tests__/SelectPipette.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/SelectPipette.test.tsx index 0f40c6f29b0..463b2b7bb61 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/SelectPipette.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/SelectPipette.test.tsx @@ -3,13 +3,13 @@ import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { useIsOEMMode } from '../../../resources/robot-settings/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useIsOEMMode } from '/app/resources/robot-settings/hooks' import { SelectPipette } from '../SelectPipette' vi.mock('@opentrons/react-api-client') -vi.mock('../../../resources/robot-settings/hooks') +vi.mock('/app/resources/robot-settings/hooks') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/QuickTransferFlow/__tests__/SelectSourceLabware.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/SelectSourceLabware.test.tsx index 43b8c1a1e15..1f353557e1c 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/SelectSourceLabware.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/SelectSourceLabware.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SelectSourceLabware } from '../SelectSourceLabware' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/QuickTransferFlow/__tests__/SelectTipRack.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/SelectTipRack.test.tsx index b32b3188910..39f9f7cb5fb 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/SelectTipRack.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/SelectTipRack.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SelectTipRack } from '../SelectTipRack' vi.mock('@opentrons/react-api-client') diff --git a/app/src/organisms/QuickTransferFlow/__tests__/SummaryAndSettings.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/SummaryAndSettings.test.tsx index a6cfc429cb1..ff04b25c6e0 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/SummaryAndSettings.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/SummaryAndSettings.test.tsx @@ -5,10 +5,10 @@ import { useCreateProtocolMutation, useCreateRunMutation, } from '@opentrons/react-api-client' -import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import { createQuickTransferFile } from '../utils' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { SummaryAndSettings } from '../SummaryAndSettings' import { NameQuickTransfer } from '../NameQuickTransfer' import { Overview } from '../Overview' @@ -34,7 +34,7 @@ vi.mock('../utils', async () => { }) vi.mock('../utils/createQuickTransferFile') vi.mock('@opentrons/react-api-client') -vi.mock('../../../resources/deck_configuration') +vi.mock('/app/resources/deck_configuration') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/ChangeTip.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/ChangeTip.test.tsx index a45a8381035..2ca682f75f0 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/ChangeTip.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/ChangeTip.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ChangeTip } from '../../TipManagement/ChangeTip' const render = (props: React.ComponentProps): any => { diff --git a/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/TipDropLocation.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/TipDropLocation.test.tsx index faaf3c16ca7..92d119a80c6 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/TipDropLocation.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/TipDropLocation.test.tsx @@ -2,12 +2,12 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import { TipDropLocation } from '../../TipManagement/TipDropLocation' -vi.mock('../../../../resources/deck_configuration') +vi.mock('/app/resources/deck_configuration') const render = (props: React.ComponentProps): any => { return renderWithProviders(, { diff --git a/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/TipManagement.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/TipManagement.test.tsx index 97e231a15ec..79f50c4c09b 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/TipManagement.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/TipManagement/TipManagement.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ChangeTip } from '../../TipManagement/ChangeTip' import { TipDropLocation } from '../../TipManagement/TipDropLocation' import { TipManagement } from '../../TipManagement/' diff --git a/app/src/organisms/QuickTransferFlow/__tests__/VolumeEntry.test.tsx b/app/src/organisms/QuickTransferFlow/__tests__/VolumeEntry.test.tsx index bc5eeb04a34..007adf2e98e 100644 --- a/app/src/organisms/QuickTransferFlow/__tests__/VolumeEntry.test.tsx +++ b/app/src/organisms/QuickTransferFlow/__tests__/VolumeEntry.test.tsx @@ -4,13 +4,13 @@ import { describe, it, expect, afterEach, vi, beforeEach } from 'vitest' import { InputField } from '@opentrons/components' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' -import { NumericalKeyboard } from '../../../atoms/SoftwareKeyboard' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { NumericalKeyboard } from '/app/atoms/SoftwareKeyboard' import { getVolumeRange } from '../utils' import { VolumeEntry } from '../VolumeEntry' -vi.mock('../../../atoms/SoftwareKeyboard') +vi.mock('/app/atoms/SoftwareKeyboard') vi.mock('../utils') vi.mock('@opentrons/components', async importOriginal => { diff --git a/app/src/organisms/QuickTransferFlow/index.tsx b/app/src/organisms/QuickTransferFlow/index.tsx index 6b589ca0b45..149c52b3c07 100644 --- a/app/src/organisms/QuickTransferFlow/index.tsx +++ b/app/src/organisms/QuickTransferFlow/index.tsx @@ -18,7 +18,7 @@ import { VolumeEntry } from './VolumeEntry' import { SummaryAndSettings } from './SummaryAndSettings' import { quickTransferWizardReducer } from './reducers' -import type { SmallButton } from '../../atoms/buttons' +import type { SmallButton } from '/app/atoms/buttons' import type { QuickTransferWizardState } from './types' const QUICK_TRANSFER_WIZARD_STEPS = 8 diff --git a/app/src/organisms/QuickTransferFlow/utils/generateCompatibleLabwareForPipette.ts b/app/src/organisms/QuickTransferFlow/utils/generateCompatibleLabwareForPipette.ts index 55c5ead6b30..64a9bf84e1e 100644 --- a/app/src/organisms/QuickTransferFlow/utils/generateCompatibleLabwareForPipette.ts +++ b/app/src/organisms/QuickTransferFlow/utils/generateCompatibleLabwareForPipette.ts @@ -1,5 +1,5 @@ import { makeWellSetHelpers, getLabwareDefURI } from '@opentrons/shared-data' -import { getAllDefinitions as getAllLatestDefValues } from '../../../pages/Desktop/Labware/helpers/definitions' +import { getAllDefinitions as getAllLatestDefValues } from '/app/pages/Desktop/Labware/helpers/definitions' import type { PipetteV2Specs, WellSetHelpers } from '@opentrons/shared-data' diff --git a/app/src/organisms/QuickTransferFlow/utils/getCompatibleLabwareByCategory.ts b/app/src/organisms/QuickTransferFlow/utils/getCompatibleLabwareByCategory.ts index ed75679cd39..84321eaf944 100644 --- a/app/src/organisms/QuickTransferFlow/utils/getCompatibleLabwareByCategory.ts +++ b/app/src/organisms/QuickTransferFlow/utils/getCompatibleLabwareByCategory.ts @@ -6,7 +6,7 @@ import { } from '../constants' import type { LabwareDefinition2 } from '@opentrons/shared-data' -import type { LabwareFilter } from '../../../pages/Desktop/Labware/types' +import type { LabwareFilter } from '/app/pages/Desktop/Labware/types' export function getCompatibleLabwareByCategory( pipetteChannels: 1 | 8 | 96, diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDataDownload.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationDataDownload.tsx index 8d32509367d..e8f0e9b9d88 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDataDownload.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDataDownload.tsx @@ -17,19 +17,19 @@ import { useInstrumentsQuery, useModulesQuery, } from '@opentrons/react-api-client' -import { TertiaryButton } from '../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' import { useDeckCalibrationData, useIsFlex, usePipetteOffsetCalibrations, useRobot, useTipLengthCalibrations, -} from '../../organisms/Devices/hooks' +} from '/app/organisms/Devices/hooks' import { useTrackEvent, ANALYTICS_CALIBRATION_DATA_DOWNLOADED, -} from '../../redux/analytics' -import { useIsEstopNotDisengaged } from '../../resources/devices/hooks/useIsEstopNotDisengaged' +} from '/app/redux/analytics' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' // TODO(bc, 2022-02-08): replace with support article when available const FLEX_CALIBRATION_SUPPORT_URL = 'https://support.opentrons.com' diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/ModuleCalibrationOverflowMenu.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/ModuleCalibrationOverflowMenu.tsx index 8f8a4076a69..c5bddca39c5 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/ModuleCalibrationOverflowMenu.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/ModuleCalibrationOverflowMenu.tsx @@ -17,14 +17,14 @@ import { useOnClickOutside, } from '@opentrons/components' -import { useChainLiveCommands } from '../../../resources/runs' +import { useChainLiveCommands } from '/app/resources/runs' import { useRunStatuses } from '../../Devices/hooks' import { getModulePrepCommands } from '../../Devices/getModulePrepCommands' import { ModuleWizardFlows } from '../../ModuleWizardFlows' import { getModuleTooHot } from '../../Devices/getModuleTooHot' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' -import type { AttachedModule } from '../../../redux/modules/types' +import type { AttachedModule } from '/app/redux/modules/types' import type { FormattedPipetteOffsetCalibration } from '..' interface ModuleCalibrationOverflowMenuProps { isCalibrated: boolean diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/OverflowMenu.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/OverflowMenu.tsx index a885f98cf48..6687e42af93 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/OverflowMenu.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/OverflowMenu.tsx @@ -24,18 +24,18 @@ import { useAllTipLengthCalibrationsQuery, } from '@opentrons/react-api-client' -import { Divider } from '../../../atoms/structure' +import { Divider } from '/app/atoms/structure' import { useTrackEvent, ANALYTICS_CALIBRATION_DATA_DOWNLOADED, -} from '../../../redux/analytics' +} from '/app/redux/analytics' import { useRunStatuses, useAttachedPipettesFromInstrumentsQuery, -} from '../../../organisms/Devices/hooks' +} from '/app/organisms/Devices/hooks' import { PipetteWizardFlows } from '../../PipetteWizardFlows' import { FLOWS } from '../../PipetteWizardFlows/constants' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import type { Mount } from '@opentrons/components' import type { PipetteName } from '@opentrons/shared-data' diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/PipetteOffsetCalibrationItems.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/PipetteOffsetCalibrationItems.tsx index 5f4d30b4bb4..39b28861876 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/PipetteOffsetCalibrationItems.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/PipetteOffsetCalibrationItems.tsx @@ -15,15 +15,15 @@ import { import { OverflowMenu } from './OverflowMenu' import { formatLastCalibrated, getDisplayNameForTipRack } from './utils' -import { getCustomLabwareDefinitions } from '../../../redux/custom-labware' -import { LEFT } from '../../../redux/pipettes' +import { getCustomLabwareDefinitions } from '/app/redux/custom-labware' +import { LEFT } from '/app/redux/pipettes' import { useAttachedPipettes, useIsFlex, useAttachedPipettesFromInstrumentsQuery, -} from '../../../organisms/Devices/hooks' +} from '/app/organisms/Devices/hooks' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' import type { FormattedPipetteOffsetCalibration } from '..' const StyledTable = styled.table` diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/TipLengthCalibrationItems.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/TipLengthCalibrationItems.tsx index 5fb899a28b7..5734e7180c3 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/TipLengthCalibrationItems.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/TipLengthCalibrationItems.tsx @@ -11,13 +11,13 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { useAttachedPipettes } from '../../../organisms/Devices/hooks' -import { getCustomLabwareDefinitions } from '../../../redux/custom-labware' +import { useAttachedPipettes } from '/app/organisms/Devices/hooks' +import { getCustomLabwareDefinitions } from '/app/redux/custom-labware' import { OverflowMenu } from './OverflowMenu' import { formatLastCalibrated, getDisplayNameForTipRack } from './utils' import type { Mount } from '@opentrons/components' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' import type { FormattedTipLengthCalibration } from '../RobotSettingsTipLengthCalibration' import type { FormattedPipetteOffsetCalibration } from '..' diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__fixtures__/index.ts b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__fixtures__/index.ts index c0f5ebc23ed..8931ab68693 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__fixtures__/index.ts +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__fixtures__/index.ts @@ -1,7 +1,7 @@ import type { PipetteOffsetCalibration, TipLengthCalibration, -} from '../../../../redux/calibration/api-types' +} from '/app/redux/calibration/api-types' export const mockPipetteOffsetCalibrationsResponse: PipetteOffsetCalibration = { id: 'pipetteName&left', diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/ModuleCalibrationItems.test.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/ModuleCalibrationItems.test.tsx index 703829eef32..77b2f3ee6ae 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/ModuleCalibrationItems.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/ModuleCalibrationItems.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../../i18n' -import { renderWithProviders } from '../../../../__testing-utils__' -import { mockFetchModulesSuccessActionPayloadModules } from '../../../../redux/modules/__fixtures__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockFetchModulesSuccessActionPayloadModules } from '/app/redux/modules/__fixtures__' import { ModuleCalibrationOverflowMenu } from '../ModuleCalibrationOverflowMenu' import { formatLastCalibrated } from '../utils' import { ModuleCalibrationItems } from '../ModuleCalibrationItems' diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/ModuleCalibrationOverflowMenu.test.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/ModuleCalibrationOverflowMenu.test.tsx index 02823e085a0..d6473115675 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/ModuleCalibrationOverflowMenu.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/ModuleCalibrationOverflowMenu.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { fireEvent, screen, waitFor } from '@testing-library/react' import { when } from 'vitest-when' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../../i18n' -import { renderWithProviders } from '../../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { ModuleWizardFlows } from '../../../ModuleWizardFlows' -import { useChainLiveCommands } from '../../../../resources/runs' -import { mockThermocyclerGen2 } from '../../../../redux/modules/__fixtures__' +import { useChainLiveCommands } from '/app/resources/runs' +import { mockThermocyclerGen2 } from '/app/redux/modules/__fixtures__' import { useRunStatuses } from '../../../Devices/hooks' -import { useIsEstopNotDisengaged } from '../../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { ModuleCalibrationOverflowMenu } from '../ModuleCalibrationOverflowMenu' @@ -17,8 +17,8 @@ import type { Mount } from '@opentrons/components' vi.mock('@opentrons/react-api-client') vi.mock('../../../ModuleWizardFlows') vi.mock('../../../Devices/hooks') -vi.mock('../../../../resources/runs') -vi.mock('../../../../resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/resources/runs') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') const mockPipetteOffsetCalibrations = [ { diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/OverflowMenu.test.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/OverflowMenu.test.tsx index 3bdb82574c5..f112040edc5 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/OverflowMenu.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/OverflowMenu.test.tsx @@ -10,8 +10,8 @@ import { useAllTipLengthCalibrationsQuery, } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' -import { mockDeckCalData } from '../../../../redux/calibration/__fixtures__' +import { i18n } from '/app/i18n' +import { mockDeckCalData } from '/app/redux/calibration/__fixtures__' import { PipetteWizardFlows } from '../../../PipetteWizardFlows' import { useCalibratePipetteOffset } from '../../../CalibratePipetteOffset/useCalibratePipetteOffset' import { @@ -19,13 +19,13 @@ import { useRunStatuses, useAttachedPipettesFromInstrumentsQuery, } from '../../../Devices/hooks' -import { mockAttachedPipetteInformation } from '../../../../redux/pipettes/__fixtures__' +import { mockAttachedPipetteInformation } from '/app/redux/pipettes/__fixtures__' import { mockPipetteOffsetCalibrationsResponse, mockTipLengthCalibrationResponse, } from '../__fixtures__' -import { renderWithProviders } from '../../../../__testing-utils__' -import { useIsEstopNotDisengaged } from '../../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { renderWithProviders } from '/app/__testing-utils__' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { OverflowMenu } from '../OverflowMenu' import type { Mount } from '@opentrons/components' @@ -61,16 +61,14 @@ vi.mock('@opentrons/shared-data', async () => { } }) vi.mock('@opentrons/react-api-client') -vi.mock('../../../../redux/sessions/selectors') -vi.mock('../../../../redux/discovery') -vi.mock('../../../../redux/robot-api/selectors') -vi.mock( - '../../../../organisms/CalibratePipetteOffset/useCalibratePipetteOffset' -) -vi.mock('../../../../organisms/ProtocolUpload/hooks') -vi.mock('../../../../organisms/Devices/hooks') +vi.mock('/app/redux/sessions/selectors') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-api/selectors') +vi.mock('/app/organisms/CalibratePipetteOffset/useCalibratePipetteOffset') +vi.mock('/app/organisms/ProtocolUpload/hooks') +vi.mock('/app/organisms/Devices/hooks') vi.mock('../../../PipetteWizardFlows') -vi.mock('../../../../resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') const RUN_STATUSES = { isRunRunning: false, diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/PipetteOffsetCalibrationItems.test.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/PipetteOffsetCalibrationItems.test.tsx index 5be4b555fc1..d4025443a86 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/PipetteOffsetCalibrationItems.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/PipetteOffsetCalibrationItems.test.tsx @@ -4,23 +4,23 @@ import { screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { mockAttachedPipette, mockAttachedPipetteInformation, -} from '../../../../redux/pipettes/__fixtures__' +} from '/app/redux/pipettes/__fixtures__' import { useAttachedPipettes, useIsFlex, useAttachedPipettesFromInstrumentsQuery, } from '../../../Devices/hooks' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { PipetteOffsetCalibrationItems } from '../PipetteOffsetCalibrationItems' import { OverflowMenu } from '../OverflowMenu' import { formatLastCalibrated } from '../utils' import type { Mount } from '@opentrons/components' -import type { AttachedPipettesByMount } from '../../../../redux/pipettes/types' +import type { AttachedPipettesByMount } from '/app/redux/pipettes/types' const render = ( props: React.ComponentProps @@ -58,11 +58,11 @@ const mockPipetteOffsetCalibrationsForOt3 = [ }, ] -vi.mock('../../../../redux/custom-labware/selectors') -vi.mock('../../../../redux/sessions/selectors') -vi.mock('../../../../redux/discovery') -vi.mock('../../../../assets/labware/findLabware') -vi.mock('../../../../organisms/Devices/hooks') +vi.mock('/app/redux/custom-labware/selectors') +vi.mock('/app/redux/sessions/selectors') +vi.mock('/app/redux/discovery') +vi.mock('/app/assets/labware/findLabware') +vi.mock('/app/organisms/Devices/hooks') vi.mock('../OverflowMenu') const mockAttachedPipettes: AttachedPipettesByMount = { diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/TipLengthCalibrationItems.test.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/TipLengthCalibrationItems.test.tsx index 39bcde401d0..44481da6f3d 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/TipLengthCalibrationItems.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/__tests__/TipLengthCalibrationItems.test.tsx @@ -2,18 +2,18 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../../i18n' -import { renderWithProviders } from '../../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { TipLengthCalibrationItems } from '../TipLengthCalibrationItems' import { OverflowMenu } from '../OverflowMenu' import type { Mount } from '@opentrons/components' -vi.mock('../../../../redux/custom-labware/selectors') -vi.mock('../../../../redux/config') -vi.mock('../../../../redux/sessions/selectors') -vi.mock('../../../../redux/discovery') -vi.mock('../../../../assets/labware/findLabware') -vi.mock('../../../../organisms/Devices/hooks') +vi.mock('/app/redux/custom-labware/selectors') +vi.mock('/app/redux/config') +vi.mock('/app/redux/sessions/selectors') +vi.mock('/app/redux/discovery') +vi.mock('/app/assets/labware/findLabware') +vi.mock('/app/organisms/Devices/hooks') vi.mock('../OverflowMenu') const ROBOT_NAME = 'otie' diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/utils.ts b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/utils.ts index e8317d2e124..d37f12fa490 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/utils.ts +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationDetails/utils.ts @@ -1,7 +1,7 @@ import { format } from 'date-fns' import { getLabwareDisplayName } from '@opentrons/shared-data' -import { findLabwareDefWithCustom } from '../../../assets/labware/findLabware' +import { findLabwareDefWithCustom } from '/app/assets/labware/findLabware' import type { LabwareDefinition2 } from '@opentrons/shared-data' diff --git a/app/src/organisms/RobotSettingsCalibration/CalibrationHealthCheck.tsx b/app/src/organisms/RobotSettingsCalibration/CalibrationHealthCheck.tsx index 76b15e2f7b9..15592842d02 100644 --- a/app/src/organisms/RobotSettingsCalibration/CalibrationHealthCheck.tsx +++ b/app/src/organisms/RobotSettingsCalibration/CalibrationHealthCheck.tsx @@ -17,28 +17,28 @@ import { } from '@opentrons/components' import { getTopPortalEl } from '../../App/portal' -import { TertiaryButton } from '../../atoms/buttons' -import { AskForCalibrationBlockModal } from '../../organisms/CalibrateTipLength/AskForCalibrationBlockModal' +import { TertiaryButton } from '/app/atoms/buttons' +import { AskForCalibrationBlockModal } from '/app/organisms/CalibrateTipLength/AskForCalibrationBlockModal' import { useTrackEvent, ANALYTICS_CALIBRATION_HEALTH_CHECK_BUTTON_CLICKED, -} from '../../redux/analytics' -import * as Calibration from '../../redux/calibration' -import * as Config from '../../redux/config' -import * as Pipettes from '../../redux/pipettes' -import * as Sessions from '../../redux/sessions' +} from '/app/redux/analytics' +import * as Calibration from '/app/redux/calibration' +import * as Config from '/app/redux/config' +import * as Pipettes from '/app/redux/pipettes' +import * as Sessions from '/app/redux/sessions' import { useDeckCalibrationStatus, useAttachedPipettes, useAttachedPipetteCalibrations, useRunStatuses, -} from '../../organisms/Devices/hooks' +} from '/app/organisms/Devices/hooks' import type { AttachedPipettesByMount, PipetteCalibrationsByMount, -} from '../../redux/pipettes/types' -import type { DispatchRequestsType } from '../../redux/robot-api' +} from '/app/redux/pipettes/types' +import type { DispatchRequestsType } from '/app/redux/robot-api' interface CalibrationHealthCheckProps { buttonDisabledReason: string | null diff --git a/app/src/organisms/RobotSettingsCalibration/RobotSettingsDeckCalibration.tsx b/app/src/organisms/RobotSettingsCalibration/RobotSettingsDeckCalibration.tsx index 208eb995a67..ca14e8db3d1 100644 --- a/app/src/organisms/RobotSettingsCalibration/RobotSettingsDeckCalibration.tsx +++ b/app/src/organisms/RobotSettingsCalibration/RobotSettingsDeckCalibration.tsx @@ -11,11 +11,11 @@ import { LegacyStyledText, } from '@opentrons/components' -import { formatLastModified } from '../../organisms/CalibrationPanels/utils' -import { useDeckCalibrationData, useRobot } from '../../organisms/Devices/hooks' -import * as RobotApi from '../../redux/robot-api' +import { formatLastModified } from '/app/organisms/CalibrationPanels/utils' +import { useDeckCalibrationData, useRobot } from '/app/organisms/Devices/hooks' +import * as RobotApi from '/app/redux/robot-api' -import type { State } from '../../redux/types' +import type { State } from '/app/redux/types' interface RobotSettingsDeckCalibrationProps { robotName: string diff --git a/app/src/organisms/RobotSettingsCalibration/RobotSettingsGripperCalibration.tsx b/app/src/organisms/RobotSettingsCalibration/RobotSettingsGripperCalibration.tsx index 424e2849d64..fef63c269ad 100644 --- a/app/src/organisms/RobotSettingsCalibration/RobotSettingsGripperCalibration.tsx +++ b/app/src/organisms/RobotSettingsCalibration/RobotSettingsGripperCalibration.tsx @@ -21,9 +21,9 @@ import { useOnClickOutside, } from '@opentrons/components' -import { GripperWizardFlows } from '../../organisms/GripperWizardFlows' +import { GripperWizardFlows } from '/app/organisms/GripperWizardFlows' import { formatLastCalibrated } from './CalibrationDetails/utils' -import { useIsEstopNotDisengaged } from '../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import type { GripperData } from '@opentrons/api-client' diff --git a/app/src/organisms/RobotSettingsCalibration/RobotSettingsTipLengthCalibration.tsx b/app/src/organisms/RobotSettingsCalibration/RobotSettingsTipLengthCalibration.tsx index 75d6aa73153..362bd05ed28 100644 --- a/app/src/organisms/RobotSettingsCalibration/RobotSettingsTipLengthCalibration.tsx +++ b/app/src/organisms/RobotSettingsCalibration/RobotSettingsTipLengthCalibration.tsx @@ -11,13 +11,13 @@ import { } from '@opentrons/components' import { useAllTipLengthCalibrationsQuery } from '@opentrons/react-api-client' -import { useAttachedPipettes } from '../../organisms/Devices/hooks' +import { useAttachedPipettes } from '/app/organisms/Devices/hooks' import { getDefaultTiprackDefForPipetteName } from '../Devices/constants' import { TipLengthCalibrationItems } from './CalibrationDetails/TipLengthCalibrationItems' import type { PipetteName } from '@opentrons/shared-data' import type { FormattedPipetteOffsetCalibration } from '.' -import type { TipLengthCalibration } from '../../redux/calibration/api-types' +import type { TipLengthCalibration } from '/app/redux/calibration/api-types' interface RobotSettingsTipLengthCalibrationProps { formattedPipetteOffsetCalibrations: FormattedPipetteOffsetCalibration[] diff --git a/app/src/organisms/RobotSettingsCalibration/__tests__/CalibrationDataDownload.test.tsx b/app/src/organisms/RobotSettingsCalibration/__tests__/CalibrationDataDownload.test.tsx index 3aec090b394..a7ba764f7f0 100644 --- a/app/src/organisms/RobotSettingsCalibration/__tests__/CalibrationDataDownload.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/__tests__/CalibrationDataDownload.test.tsx @@ -18,32 +18,32 @@ import { } from '@opentrons/react-api-client' import { instrumentsResponseFixture } from '@opentrons/api-client' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { useTrackEvent, ANALYTICS_CALIBRATION_DATA_DOWNLOADED, -} from '../../../redux/analytics' -import { mockDeckCalData } from '../../../redux/calibration/__fixtures__' +} from '/app/redux/analytics' +import { mockDeckCalData } from '/app/redux/calibration/__fixtures__' import { mockPipetteOffsetCalibration1, mockPipetteOffsetCalibration2, mockPipetteOffsetCalibration3, -} from '../../../redux/calibration/pipette-offset/__fixtures__' +} from '/app/redux/calibration/pipette-offset/__fixtures__' import { mockTipLengthCalibration1, mockTipLengthCalibration2, mockTipLengthCalibration3, -} from '../../../redux/calibration/tip-length/__fixtures__' -import { mockConnectableRobot } from '../../../redux/discovery/__fixtures__' +} from '/app/redux/calibration/tip-length/__fixtures__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import { useDeckCalibrationData, useIsFlex, usePipetteOffsetCalibrations, useRobot, useTipLengthCalibrations, -} from '../../../organisms/Devices/hooks' -import { renderWithProviders } from '../../../__testing-utils__' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' +} from '/app/organisms/Devices/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { CalibrationDataDownload } from '../CalibrationDataDownload' // file-saver has circular dep, need to mock with factory to prevent error @@ -55,9 +55,9 @@ vi.mock('file-saver', async importOriginal => { } }) vi.mock('@opentrons/react-api-client') -vi.mock('../../../redux/analytics') -vi.mock('../../../organisms/Devices/hooks') -vi.mock('../../../resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/redux/analytics') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') let mockTrackEvent: any const mockSetShowHowCalibrationWorksModal = vi.fn() diff --git a/app/src/organisms/RobotSettingsCalibration/__tests__/CalibrationHealthCheck.test.tsx b/app/src/organisms/RobotSettingsCalibration/__tests__/CalibrationHealthCheck.test.tsx index 2c2232db5d3..2fafaf3acce 100644 --- a/app/src/organisms/RobotSettingsCalibration/__tests__/CalibrationHealthCheck.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/__tests__/CalibrationHealthCheck.test.tsx @@ -4,38 +4,38 @@ import { fireEvent, screen, waitFor } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useTrackEvent, ANALYTICS_CALIBRATION_HEALTH_CHECK_BUTTON_CLICKED, -} from '../../../redux/analytics' +} from '/app/redux/analytics' import { mockPipetteOffsetCalibration1, mockPipetteOffsetCalibration2, -} from '../../../redux/calibration/pipette-offset/__fixtures__' +} from '/app/redux/calibration/pipette-offset/__fixtures__' import { mockTipLengthCalibration1, mockTipLengthCalibration2, -} from '../../../redux/calibration/tip-length/__fixtures__' -import { mockAttachedPipette } from '../../../redux/pipettes/__fixtures__' +} from '/app/redux/calibration/tip-length/__fixtures__' +import { mockAttachedPipette } from '/app/redux/pipettes/__fixtures__' import { useAttachedPipettes, useAttachedPipetteCalibrations, useRunStatuses, -} from '../../../organisms/Devices/hooks' +} from '/app/organisms/Devices/hooks' import { CalibrationHealthCheck } from '../CalibrationHealthCheck' import type { AttachedPipettesByMount, PipetteCalibrationsByMount, -} from '../../../redux/pipettes/types' +} from '/app/redux/pipettes/types' -vi.mock('../../../redux/analytics') -vi.mock('../../../redux/config') -vi.mock('../../../redux/pipettes') -vi.mock('../../../organisms/Devices/hooks') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/config') +vi.mock('/app/redux/pipettes') +vi.mock('/app/organisms/Devices/hooks') const mockAttachedPipettes: AttachedPipettesByMount = { left: mockAttachedPipette, diff --git a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsCalibration.test.tsx b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsCalibration.test.tsx index 0a075843352..4fa99a7f68d 100644 --- a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsCalibration.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsCalibration.test.tsx @@ -4,21 +4,21 @@ import { screen } from '@testing-library/react' import { describe, it, expect, beforeEach, vi } from 'vitest' import '@testing-library/jest-dom/vitest' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../i18n' -import { CalibrationStatusCard } from '../../../organisms/CalibrationStatusCard' -import { useFeatureFlag } from '../../../redux/config' -import * as RobotApi from '../../../redux/robot-api' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { CalibrationStatusCard } from '/app/organisms/CalibrationStatusCard' +import { useFeatureFlag } from '/app/redux/config' +import * as RobotApi from '/app/redux/robot-api' +import { renderWithProviders } from '/app/__testing-utils__' import { mockPipetteOffsetCalibration1, mockPipetteOffsetCalibration2, mockPipetteOffsetCalibration3, -} from '../../../redux/calibration/pipette-offset/__fixtures__' -import { mockConnectableRobot } from '../../../redux/discovery/__fixtures__' +} from '/app/redux/calibration/pipette-offset/__fixtures__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import { mockAttachedPipette, mockAttachedPipetteInformation, -} from '../../../redux/pipettes/__fixtures__' +} from '/app/redux/pipettes/__fixtures__' import { useIsFlex, usePipetteOffsetCalibrations, @@ -26,7 +26,7 @@ import { useAttachedPipettes, useRunStatuses, useAttachedPipettesFromInstrumentsQuery, -} from '../../../organisms/Devices/hooks' +} from '/app/organisms/Devices/hooks' import { CalibrationDataDownload } from '../CalibrationDataDownload' import { CalibrationHealthCheck } from '../CalibrationHealthCheck' @@ -37,7 +37,7 @@ import { RobotSettingsTipLengthCalibration } from '../RobotSettingsTipLengthCali import { RobotSettingsModuleCalibration } from '../RobotSettingsModuleCalibration' import { RobotSettingsCalibration } from '..' import type * as ReactApiClient from '@opentrons/react-api-client' -import type { AttachedPipettesByMount } from '../../../redux/pipettes/types' +import type { AttachedPipettesByMount } from '/app/redux/pipettes/types' vi.mock('@opentrons/react-api-client', async importOriginal => { const actual = await importOriginal() @@ -46,11 +46,11 @@ vi.mock('@opentrons/react-api-client', async importOriginal => { useInstrumentsQuery: vi.fn(), } }) -vi.mock('../../../organisms/CalibrationStatusCard') -vi.mock('../../../redux/config') -vi.mock('../../../redux/sessions/selectors') -vi.mock('../../../redux/robot-api/selectors') -vi.mock('../../../organisms/Devices/hooks') +vi.mock('/app/organisms/CalibrationStatusCard') +vi.mock('/app/redux/config') +vi.mock('/app/redux/sessions/selectors') +vi.mock('/app/redux/robot-api/selectors') +vi.mock('/app/organisms/Devices/hooks') vi.mock('../CalibrationDataDownload') vi.mock('../CalibrationHealthCheck') vi.mock('../RobotSettingsDeckCalibration') diff --git a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsDeckCalibration.test.tsx b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsDeckCalibration.test.tsx index 501141a6f82..bee9866267f 100644 --- a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsDeckCalibration.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsDeckCalibration.test.tsx @@ -2,28 +2,28 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' -import * as RobotApi from '../../../redux/robot-api' +import { i18n } from '/app/i18n' +import * as RobotApi from '/app/redux/robot-api' import { mockDeckCalData, mockWarningDeckCalData, -} from '../../../redux/calibration/__fixtures__' -import { mockConnectableRobot } from '../../../redux/discovery/__fixtures__' -import { mockAttachedPipette } from '../../../redux/pipettes/__fixtures__' +} from '/app/redux/calibration/__fixtures__' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' +import { mockAttachedPipette } from '/app/redux/pipettes/__fixtures__' import { useDeckCalibrationData, useRobot, useAttachedPipettes, -} from '../../../organisms/Devices/hooks' -import { renderWithProviders } from '../../../__testing-utils__' +} from '/app/organisms/Devices/hooks' +import { renderWithProviders } from '/app/__testing-utils__' import { RobotSettingsDeckCalibration } from '../RobotSettingsDeckCalibration' -import type { AttachedPipettesByMount } from '../../../redux/pipettes/types' +import type { AttachedPipettesByMount } from '/app/redux/pipettes/types' -vi.mock('../../../organisms/CalibrationStatusCard') -vi.mock('../../../redux/robot-api/selectors') -vi.mock('../../../organisms/Devices/hooks') +vi.mock('/app/organisms/CalibrationStatusCard') +vi.mock('/app/redux/robot-api/selectors') +vi.mock('/app/organisms/Devices/hooks') const mockAttachedPipettes: AttachedPipettesByMount = { left: mockAttachedPipette, diff --git a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsGripperCalibration.test.tsx b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsGripperCalibration.test.tsx index 9d02f3894d5..3e5d952ea09 100644 --- a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsGripperCalibration.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsGripperCalibration.test.tsx @@ -3,18 +3,18 @@ import { when } from 'vitest-when' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' -import { GripperWizardFlows } from '../../../organisms/GripperWizardFlows' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { GripperWizardFlows } from '/app/organisms/GripperWizardFlows' import { formatLastCalibrated } from '../CalibrationDetails/utils' -import { useIsEstopNotDisengaged } from '../../../resources/devices/hooks/useIsEstopNotDisengaged' +import { useIsEstopNotDisengaged } from '/app/resources/devices/hooks/useIsEstopNotDisengaged' import { RobotSettingsGripperCalibration } from '../RobotSettingsGripperCalibration' import type { GripperData } from '@opentrons/api-client' -vi.mock('../../../organisms/GripperWizardFlows') +vi.mock('/app/organisms/GripperWizardFlows') vi.mock('../CalibrationDetails/utils') -vi.mock('../../../resources/devices/hooks/useIsEstopNotDisengaged') +vi.mock('/app/resources/devices/hooks/useIsEstopNotDisengaged') const mockGripperData = { serialNumber: 'mockSerial123', diff --git a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsModuleCalibration.test.tsx b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsModuleCalibration.test.tsx index b3795b939f2..8c2f9fa9a4c 100644 --- a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsModuleCalibration.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsModuleCalibration.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach } from 'vitest' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' -import { mockFetchModulesSuccessActionPayloadModules } from '../../../redux/modules/__fixtures__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockFetchModulesSuccessActionPayloadModules } from '/app/redux/modules/__fixtures__' import { RobotSettingsModuleCalibration } from '../RobotSettingsModuleCalibration' import { ModuleCalibrationItems } from '../CalibrationDetails/ModuleCalibrationItems' diff --git a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsPipetteOffsetCalibration.test.tsx b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsPipetteOffsetCalibration.test.tsx index 230a26c3fe8..db842e179fe 100644 --- a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsPipetteOffsetCalibration.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsPipetteOffsetCalibration.test.tsx @@ -3,26 +3,26 @@ import { when } from 'vitest-when' import { describe, it, vi, beforeEach } from 'vitest' import { screen } from '@testing-library/react' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { mockPipetteOffsetCalibration1, mockPipetteOffsetCalibration2, mockPipetteOffsetCalibration3, -} from '../../../redux/calibration/pipette-offset/__fixtures__' +} from '/app/redux/calibration/pipette-offset/__fixtures__' import { useIsFlex, usePipetteOffsetCalibrations, useAttachedPipettesFromInstrumentsQuery, -} from '../../../organisms/Devices/hooks' -import { renderWithProviders } from '../../../__testing-utils__' -import { mockAttachedPipetteInformation } from '../../../redux/pipettes/__fixtures__' +} from '/app/organisms/Devices/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockAttachedPipetteInformation } from '/app/redux/pipettes/__fixtures__' import { RobotSettingsPipetteOffsetCalibration } from '../RobotSettingsPipetteOffsetCalibration' import { PipetteOffsetCalibrationItems } from '../CalibrationDetails/PipetteOffsetCalibrationItems' import type { FormattedPipetteOffsetCalibration } from '..' -vi.mock('../../../organisms/Devices/hooks') +vi.mock('/app/organisms/Devices/hooks') vi.mock('../CalibrationDetails/PipetteOffsetCalibrationItems') const mockFormattedPipetteOffsetCalibrations: FormattedPipetteOffsetCalibration[] = [] diff --git a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsTipLengthCalibration.test.tsx b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsTipLengthCalibration.test.tsx index 9225f487259..0549050d7e1 100644 --- a/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsTipLengthCalibration.test.tsx +++ b/app/src/organisms/RobotSettingsCalibration/__tests__/RobotSettingsTipLengthCalibration.test.tsx @@ -1,28 +1,28 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach, vi } from 'vitest' -import { i18n } from '../../../i18n' -import { useFeatureFlag } from '../../../redux/config' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { useFeatureFlag } from '/app/redux/config' +import { renderWithProviders } from '/app/__testing-utils__' import { mockTipLengthCalibration1, mockTipLengthCalibration2, mockTipLengthCalibration3, -} from '../../../redux/calibration/tip-length/__fixtures__' -import { mockAttachedPipette } from '../../../redux/pipettes/__fixtures__' +} from '/app/redux/calibration/tip-length/__fixtures__' +import { mockAttachedPipette } from '/app/redux/pipettes/__fixtures__' import { useAttachedPipettes, useTipLengthCalibrations, -} from '../../../organisms/Devices/hooks' +} from '/app/organisms/Devices/hooks' import { RobotSettingsTipLengthCalibration } from '../RobotSettingsTipLengthCalibration' import { TipLengthCalibrationItems } from '../CalibrationDetails/TipLengthCalibrationItems' import type { FormattedPipetteOffsetCalibration } from '..' -import type { AttachedPipettesByMount } from '../../../redux/pipettes/types' +import type { AttachedPipettesByMount } from '/app/redux/pipettes/types' -vi.mock('../../../redux/config') -vi.mock('../../../organisms/Devices/hooks') +vi.mock('/app/redux/config') +vi.mock('/app/organisms/Devices/hooks') vi.mock('../CalibrationDetails/TipLengthCalibrationItems') const mockFormattedPipetteOffsetCalibrations: FormattedPipetteOffsetCalibration[] = [] diff --git a/app/src/organisms/RobotSettingsCalibration/index.tsx b/app/src/organisms/RobotSettingsCalibration/index.tsx index cffd63ce573..8276d107f74 100644 --- a/app/src/organisms/RobotSettingsCalibration/index.tsx +++ b/app/src/organisms/RobotSettingsCalibration/index.tsx @@ -17,21 +17,21 @@ import { } from '@opentrons/react-api-client' import { getTopPortalEl } from '../../App/portal' -import { Line } from '../../atoms/structure' -import { CalibrateDeck } from '../../organisms/CalibrateDeck' -import { CalibrationStatusCard } from '../../organisms/CalibrationStatusCard' -import { CheckCalibration } from '../../organisms/CheckCalibration' +import { Line } from '/app/atoms/structure' +import { CalibrateDeck } from '/app/organisms/CalibrateDeck' +import { CalibrationStatusCard } from '/app/organisms/CalibrationStatusCard' +import { CheckCalibration } from '/app/organisms/CheckCalibration' import { useRobot, useRunStatuses, useIsFlex, useAttachedPipettesFromInstrumentsQuery, -} from '../../organisms/Devices/hooks' -import { HowCalibrationWorksModal } from '../../organisms/HowCalibrationWorksModal' -import { CONNECTABLE } from '../../redux/discovery' -import * as RobotApi from '../../redux/robot-api' -import { getDeckCalibrationSession } from '../../redux/sessions/deck-calibration/selectors' -import * as Sessions from '../../redux/sessions' +} from '/app/organisms/Devices/hooks' +import { HowCalibrationWorksModal } from '/app/organisms/HowCalibrationWorksModal' +import { CONNECTABLE } from '/app/redux/discovery' +import * as RobotApi from '/app/redux/robot-api' +import { getDeckCalibrationSession } from '/app/redux/sessions/deck-calibration/selectors' +import * as Sessions from '/app/redux/sessions' import { CalibrationDataDownload } from './CalibrationDataDownload' import { CalibrationHealthCheck } from './CalibrationHealthCheck' import { RobotSettingsDeckCalibration } from './RobotSettingsDeckCalibration' @@ -42,12 +42,12 @@ import { RobotSettingsModuleCalibration } from './RobotSettingsModuleCalibration import type { GripperData } from '@opentrons/api-client' import type { Mount } from '@opentrons/components' -import type { RequestState } from '../../redux/robot-api/types' +import type { RequestState } from '/app/redux/robot-api/types' import type { SessionCommandString, DeckCalibrationSession, -} from '../../redux/sessions/types' -import type { State, Dispatch } from '../../redux/types' +} from '/app/redux/sessions/types' +import type { State, Dispatch } from '/app/redux/types' const CALS_FETCH_MS = 5000 diff --git a/app/src/organisms/RobotSetupHeader/index.tsx b/app/src/organisms/RobotSetupHeader/index.tsx index b68011f2224..3a192c28148 100644 --- a/app/src/organisms/RobotSetupHeader/index.tsx +++ b/app/src/organisms/RobotSetupHeader/index.tsx @@ -14,10 +14,10 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { SmallButton } from '../../atoms/buttons' -import { InlineNotification } from '../../atoms/InlineNotification' +import { SmallButton } from '/app/atoms/buttons' +import { InlineNotification } from '/app/atoms/InlineNotification' -import type { InlineNotificationProps } from '../../atoms/InlineNotification' +import type { InlineNotificationProps } from '/app/atoms/InlineNotification' interface RobotSetupHeaderProps { header: string diff --git a/app/src/organisms/RunPreview/index.tsx b/app/src/organisms/RunPreview/index.tsx index 27ed73fedf9..8ab0704014a 100644 --- a/app/src/organisms/RunPreview/index.tsx +++ b/app/src/organisms/RunPreview/index.tsx @@ -25,9 +25,9 @@ import { useMostRecentCompletedAnalysis } from '../LabwarePositionCheck/useMostR import { useNotifyAllCommandsAsPreSerializedList, useNotifyRunQuery, -} from '../../resources/runs' -import { CommandText, CommandIcon } from '../../molecules/Command' -import { Divider } from '../../atoms/structure' +} from '/app/resources/runs' +import { CommandText, CommandIcon } from '/app/molecules/Command' +import { Divider } from '/app/atoms/structure' import { NAV_BAR_WIDTH } from '../../App/constants' import { useRunStatus } from '../RunTimeControl/hooks' import { useLastRunCommand } from '../Devices/hooks/useLastRunCommand' diff --git a/app/src/organisms/RunProgressMeter/__tests__/InterventionTicks.test.tsx b/app/src/organisms/RunProgressMeter/__tests__/InterventionTicks.test.tsx index 60f6fb9ecce..8c25d7359d9 100644 --- a/app/src/organisms/RunProgressMeter/__tests__/InterventionTicks.test.tsx +++ b/app/src/organisms/RunProgressMeter/__tests__/InterventionTicks.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { InterventionTicks } from '../InterventionTicks' import { Tick } from '../Tick' diff --git a/app/src/organisms/RunProgressMeter/__tests__/RunProgressMeter.test.tsx b/app/src/organisms/RunProgressMeter/__tests__/RunProgressMeter.test.tsx index f84087b4c3c..f00d0d0896f 100644 --- a/app/src/organisms/RunProgressMeter/__tests__/RunProgressMeter.test.tsx +++ b/app/src/organisms/RunProgressMeter/__tests__/RunProgressMeter.test.tsx @@ -12,18 +12,18 @@ import { RUN_STATUS_STOPPED, } from '@opentrons/api-client' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { useInterventionModal, InterventionModal, } from '../../InterventionModal' -import { ProgressBar } from '../../../atoms/ProgressBar' +import { ProgressBar } from '/app/atoms/ProgressBar' import { useRunControls, useRunStatus } from '../../RunTimeControl/hooks' import { useMostRecentCompletedAnalysis } from '../../LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useNotifyRunQuery, useNotifyAllCommandsQuery, -} from '../../../resources/runs' +} from '/app/resources/runs' import { useDownloadRunLog } from '../../Devices/hooks' import { mockUseAllCommandsResponseNonDeterministic, @@ -32,9 +32,9 @@ import { } from '../__fixtures__' import { RunProgressMeter } from '..' -import { renderWithProviders } from '../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useLastRunCommand } from '../../Devices/hooks/useLastRunCommand' -import { useRunningStepCounts } from '../../../resources/protocols/hooks' +import { useRunningStepCounts } from '/app/resources/protocols/hooks' import type { RunCommandSummary } from '@opentrons/api-client' import type * as ApiClient from '@opentrons/react-api-client' @@ -48,12 +48,12 @@ vi.mock('@opentrons/react-api-client', async importOriginal => { }) vi.mock('../../RunTimeControl/hooks') vi.mock('../../LabwarePositionCheck/useMostRecentCompletedAnalysis') -vi.mock('../../../resources/runs') +vi.mock('/app/resources/runs') vi.mock('../../Devices/hooks') -vi.mock('../../../atoms/ProgressBar') +vi.mock('/app/atoms/ProgressBar') vi.mock('../../InterventionModal') vi.mock('../../Devices/hooks/useLastRunCommand') -vi.mock('../../../resources/protocols/hooks') +vi.mock('/app/resources/protocols/hooks') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/RunProgressMeter/hooks/useRunProgressCopy.tsx b/app/src/organisms/RunProgressMeter/hooks/useRunProgressCopy.tsx index 9484a785f82..ee5cce24cea 100644 --- a/app/src/organisms/RunProgressMeter/hooks/useRunProgressCopy.tsx +++ b/app/src/organisms/RunProgressMeter/hooks/useRunProgressCopy.tsx @@ -4,9 +4,9 @@ import { } from '@opentrons/api-client' import * as React from 'react' import { useTranslation } from 'react-i18next' -import { getCommandTextData } from '../../../molecules/Command/utils/getCommandTextData' +import { getCommandTextData } from '/app/molecules/Command/utils/getCommandTextData' import { LegacyStyledText } from '@opentrons/components' -import { CommandText } from '../../../molecules/Command' +import { CommandText } from '/app/molecules/Command' import { TERMINAL_RUN_STATUSES } from '../constants' import type { CommandDetail, RunStatus } from '@opentrons/api-client' diff --git a/app/src/organisms/RunProgressMeter/index.tsx b/app/src/organisms/RunProgressMeter/index.tsx index 7dc38da1716..6bc2d1510c3 100644 --- a/app/src/organisms/RunProgressMeter/index.tsx +++ b/app/src/organisms/RunProgressMeter/index.tsx @@ -33,14 +33,14 @@ import { useMostRecentCompletedAnalysis } from '../LabwarePositionCheck/useMostR import { getModalPortalEl } from '../../App/portal' import { useRunControls, useRunStatus } from '../RunTimeControl/hooks' import { InterventionModal, useInterventionModal } from '../InterventionModal' -import { ProgressBar } from '../../atoms/ProgressBar' +import { ProgressBar } from '/app/atoms/ProgressBar' import { useDownloadRunLog, useRobotType } from '../Devices/hooks' import { InterventionTicks } from './InterventionTicks' import { useNotifyRunQuery, useNotifyAllCommandsQuery, -} from '../../resources/runs' -import { useRunningStepCounts } from '../../resources/protocols/hooks' +} from '/app/resources/runs' +import { useRunningStepCounts } from '/app/resources/protocols/hooks' import { useRunProgressCopy } from './hooks' interface RunProgressMeterProps { diff --git a/app/src/organisms/RunTimeControl/__tests__/hooks.test.tsx b/app/src/organisms/RunTimeControl/__tests__/hooks.test.tsx index 04bff11ab8f..8e37eb70ab0 100644 --- a/app/src/organisms/RunTimeControl/__tests__/hooks.test.tsx +++ b/app/src/organisms/RunTimeControl/__tests__/hooks.test.tsx @@ -12,7 +12,7 @@ import { useRunTimestamps, useRunErrors, } from '../hooks' -import { useNotifyRunQuery, useCurrentRunId } from '../../../resources/runs' +import { useNotifyRunQuery, useCurrentRunId } from '/app/resources/runs' import { RUN_ID_2, @@ -39,7 +39,7 @@ vi.mock('@opentrons/react-api-client', async importOriginal => { }) vi.mock('../../ProtocolUpload/hooks') -vi.mock('../../../resources/runs') +vi.mock('/app/resources/runs') describe('useRunControls hook', () => { it('returns run controls hooks', () => { diff --git a/app/src/organisms/RunTimeControl/hooks.ts b/app/src/organisms/RunTimeControl/hooks.ts index f6be73a0706..050a9058c84 100644 --- a/app/src/organisms/RunTimeControl/hooks.ts +++ b/app/src/organisms/RunTimeControl/hooks.ts @@ -17,7 +17,7 @@ import { import { useRunActionMutations } from '@opentrons/react-api-client' import { useCloneRun, useRunCommands } from '../ProtocolUpload/hooks' -import { useNotifyRunQuery, useCurrentRunId } from '../../resources/runs' +import { useNotifyRunQuery, useCurrentRunId } from '/app/resources/runs' import { useMostRecentCompletedAnalysis } from '../LabwarePositionCheck/useMostRecentCompletedAnalysis' import type { UseQueryOptions } from 'react-query' diff --git a/app/src/organisms/SendProtocolToFlexSlideout/__tests__/SendProtocolToFlexSlideout.test.tsx b/app/src/organisms/SendProtocolToFlexSlideout/__tests__/SendProtocolToFlexSlideout.test.tsx index 31791a278e9..2c7c9aebe1c 100644 --- a/app/src/organisms/SendProtocolToFlexSlideout/__tests__/SendProtocolToFlexSlideout.test.tsx +++ b/app/src/organisms/SendProtocolToFlexSlideout/__tests__/SendProtocolToFlexSlideout.test.tsx @@ -11,8 +11,8 @@ import { import { useCreateProtocolMutation } from '@opentrons/react-api-client' import { mockSuccessQueryResults } from '../../../__fixtures__' -import { i18n } from '../../../i18n' -import { useToaster } from '../../../organisms/ToasterOven' +import { i18n } from '/app/i18n' +import { useToaster } from '/app/organisms/ToasterOven' import { getConnectableRobots, getReachableRobots, @@ -21,20 +21,20 @@ import { startDiscovery, ROBOT_MODEL_OT2, ROBOT_MODEL_OT3, -} from '../../../redux/discovery' -import { getValidCustomLabwareFiles } from '../../../redux/custom-labware' -import { renderWithProviders } from '../../../__testing-utils__' -import { useIsRobotOnWrongVersionOfSoftware } from '../../../redux/robot-update' +} from '/app/redux/discovery' +import { getValidCustomLabwareFiles } from '/app/redux/custom-labware' +import { renderWithProviders } from '/app/__testing-utils__' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' import { mockConnectableRobot, mockReachableRobot, mockUnreachableRobot, -} from '../../../redux/discovery/__fixtures__' -import { getNetworkInterfaces } from '../../../redux/networking' -import { getIsProtocolAnalysisInProgress } from '../../../redux/protocol-storage/selectors' -import { storedProtocolData as storedProtocolDataFixture } from '../../../redux/protocol-storage/__fixtures__' +} from '/app/redux/discovery/__fixtures__' +import { getNetworkInterfaces } from '/app/redux/networking' +import { getIsProtocolAnalysisInProgress } from '/app/redux/protocol-storage/selectors' +import { storedProtocolData as storedProtocolDataFixture } from '/app/redux/protocol-storage/__fixtures__' import { SendProtocolToFlexSlideout } from '..' -import { useNotifyAllRunsQuery } from '../../../resources/runs' +import { useNotifyAllRunsQuery } from '/app/resources/runs' import type * as ApiClient from '@opentrons/react-api-client' @@ -45,13 +45,13 @@ vi.mock('@opentrons/react-api-client', async importOriginal => { useCreateProtocolMutation: vi.fn(), } }) -vi.mock('../../../organisms/ToasterOven') -vi.mock('../../../redux/robot-update') -vi.mock('../../../redux/discovery') -vi.mock('../../../redux/networking') -vi.mock('../../../redux/custom-labware') -vi.mock('../../../redux/protocol-storage/selectors') -vi.mock('../../../resources/runs') +vi.mock('/app/organisms/ToasterOven') +vi.mock('/app/redux/robot-update') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/networking') +vi.mock('/app/redux/custom-labware') +vi.mock('/app/redux/protocol-storage/selectors') +vi.mock('/app/resources/runs') const render = ( props: React.ComponentProps diff --git a/app/src/organisms/SendProtocolToFlexSlideout/index.tsx b/app/src/organisms/SendProtocolToFlexSlideout/index.tsx index ed5375c340a..969f080fb3a 100644 --- a/app/src/organisms/SendProtocolToFlexSlideout/index.tsx +++ b/app/src/organisms/SendProtocolToFlexSlideout/index.tsx @@ -12,23 +12,23 @@ import { INFO_TOAST, SUCCESS_TOAST, } from '@opentrons/components' -import { ChooseRobotSlideout } from '../../organisms/ChooseRobotSlideout' +import { ChooseRobotSlideout } from '/app/organisms/ChooseRobotSlideout' import { getAnalysisStatus, getProtocolDisplayName, -} from '../../organisms/ProtocolsLanding/utils' -import { useToaster } from '../../organisms/ToasterOven' -import { appShellRequestor } from '../../redux/shell/remote' -import { OPENTRONS_USB } from '../../redux/discovery' -import { getIsProtocolAnalysisInProgress } from '../../redux/protocol-storage' -import { useIsRobotOnWrongVersionOfSoftware } from '../../redux/robot-update' -import { getValidCustomLabwareFiles } from '../../redux/custom-labware' +} from '/app/organisms/ProtocolsLanding/utils' +import { useToaster } from '/app/organisms/ToasterOven' +import { appShellRequestor } from '/app/redux/shell/remote' +import { OPENTRONS_USB } from '/app/redux/discovery' +import { getIsProtocolAnalysisInProgress } from '/app/redux/protocol-storage' +import { useIsRobotOnWrongVersionOfSoftware } from '/app/redux/robot-update' +import { getValidCustomLabwareFiles } from '/app/redux/custom-labware' import type { AxiosError } from 'axios' import type { IconProps, StyleProps } from '@opentrons/components' -import type { Robot } from '../../redux/discovery/types' -import type { StoredProtocolData } from '../../redux/protocol-storage' -import type { State } from '../../redux/types' +import type { Robot } from '/app/redux/discovery/types' +import type { StoredProtocolData } from '/app/redux/protocol-storage' +import type { State } from '/app/redux/types' const _getFileBaseName = (filePath: string): string => { return filePath.split('/').reverse()[0] diff --git a/app/src/organisms/TakeoverModal/MaintenanceRunStatusProvider.tsx b/app/src/organisms/TakeoverModal/MaintenanceRunStatusProvider.tsx index 46b2062de39..6ba2707752b 100644 --- a/app/src/organisms/TakeoverModal/MaintenanceRunStatusProvider.tsx +++ b/app/src/organisms/TakeoverModal/MaintenanceRunStatusProvider.tsx @@ -1,6 +1,6 @@ import * as React from 'react' -import { useNotifyCurrentMaintenanceRun } from '../../resources/maintenance_runs' +import { useNotifyCurrentMaintenanceRun } from '/app/resources/maintenance_runs' interface MaintenanceRunIds { currentRunId: string | null diff --git a/app/src/organisms/TakeoverModal/TakeoverModal.tsx b/app/src/organisms/TakeoverModal/TakeoverModal.tsx index d8cc732d445..713df38cdc7 100644 --- a/app/src/organisms/TakeoverModal/TakeoverModal.tsx +++ b/app/src/organisms/TakeoverModal/TakeoverModal.tsx @@ -15,10 +15,10 @@ import { } from '@opentrons/components' import { getTopPortalEl } from '../../App/portal' -import { SmallButton } from '../../atoms/buttons' -import { OddModal } from '../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' -import type { OddModalHeaderBaseProps } from '../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface TakeoverModalProps { title: string diff --git a/app/src/organisms/TakeoverModal/__tests__/MaintenanceRunTakeover.test.tsx b/app/src/organisms/TakeoverModal/__tests__/MaintenanceRunTakeover.test.tsx index 0b236577a97..c67518c2ecc 100644 --- a/app/src/organisms/TakeoverModal/__tests__/MaintenanceRunTakeover.test.tsx +++ b/app/src/organisms/TakeoverModal/__tests__/MaintenanceRunTakeover.test.tsx @@ -2,16 +2,16 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { useMaintenanceRunTakeover } from '../useMaintenanceRunTakeover' import { MaintenanceRunTakeover } from '../MaintenanceRunTakeover' -import { useNotifyCurrentMaintenanceRun } from '../../../resources/maintenance_runs' +import { useNotifyCurrentMaintenanceRun } from '/app/resources/maintenance_runs' import type { MaintenanceRunStatus } from '../MaintenanceRunStatusProvider' vi.mock('../useMaintenanceRunTakeover') -vi.mock('../../../resources/maintenance_runs') +vi.mock('/app/resources/maintenance_runs') const MOCK_MAINTENANCE_RUN: MaintenanceRunStatus = { getRunIds: () => ({ diff --git a/app/src/organisms/TakeoverModal/__tests__/TakeoverModal.test.tsx b/app/src/organisms/TakeoverModal/__tests__/TakeoverModal.test.tsx index eff8b68c101..96314e1b6ce 100644 --- a/app/src/organisms/TakeoverModal/__tests__/TakeoverModal.test.tsx +++ b/app/src/organisms/TakeoverModal/__tests__/TakeoverModal.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { TakeoverModal } from '../TakeoverModal' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/TaskList/index.tsx b/app/src/organisms/TaskList/index.tsx index e6f6bef54e1..0fd37fc0394 100644 --- a/app/src/organisms/TaskList/index.tsx +++ b/app/src/organisms/TaskList/index.tsx @@ -20,7 +20,7 @@ import { useHoverTooltip, } from '@opentrons/components' -import { TertiaryButton } from '../../atoms/buttons' +import { TertiaryButton } from '/app/atoms/buttons' import type { SubTaskProps, TaskListProps, TaskProps } from './types' diff --git a/app/src/organisms/ToasterOven/ToasterOven.tsx b/app/src/organisms/ToasterOven/ToasterOven.tsx index 8a69390e7a3..4f29be519ae 100644 --- a/app/src/organisms/ToasterOven/ToasterOven.tsx +++ b/app/src/organisms/ToasterOven/ToasterOven.tsx @@ -14,7 +14,7 @@ import { Toast, } from '@opentrons/components' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import { ToasterContext } from './ToasterContext' import type { SnackbarProps } from '@opentrons/components' diff --git a/app/src/organisms/UpdateAppModal/__tests__/UpdateAppModal.test.tsx b/app/src/organisms/UpdateAppModal/__tests__/UpdateAppModal.test.tsx index 761cb07f0f8..83cd713c2ef 100644 --- a/app/src/organisms/UpdateAppModal/__tests__/UpdateAppModal.test.tsx +++ b/app/src/organisms/UpdateAppModal/__tests__/UpdateAppModal.test.tsx @@ -3,19 +3,19 @@ import { screen, fireEvent } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../i18n' -import * as Shell from '../../../redux/shell' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import * as Shell from '/app/redux/shell' +import { renderWithProviders } from '/app/__testing-utils__' import { useRemoveActiveAppUpdateToast } from '../../Alerts' import { UpdateAppModal, RELEASE_NOTES_URL_BASE } from '..' -import type { State } from '../../../redux/types' -import type { ShellUpdateState } from '../../../redux/shell/types' -import type * as ShellState from '../../../redux/shell' +import type { State } from '/app/redux/types' +import type { ShellUpdateState } from '/app/redux/shell/types' +import type * as ShellState from '/app/redux/shell' import type * as Dom from 'react-router-dom' import type { UpdateAppModalProps } from '..' -vi.mock('../../../redux/shell/update', async importOriginal => { +vi.mock('/app/redux/shell/update', async importOriginal => { const actual = await importOriginal() return { ...actual, diff --git a/app/src/organisms/UpdateAppModal/index.tsx b/app/src/organisms/UpdateAppModal/index.tsx index 510bf824e75..b29c4e66528 100644 --- a/app/src/organisms/UpdateAppModal/index.tsx +++ b/app/src/organisms/UpdateAppModal/index.tsx @@ -24,15 +24,15 @@ import { getAvailableShellUpdate, downloadShellUpdate, applyShellUpdate, -} from '../../redux/shell' +} from '/app/redux/shell' -import { ExternalLink } from '../../atoms/Link/ExternalLink' -import { ReleaseNotes } from '../../molecules/ReleaseNotes' -import { Banner } from '../../atoms/Banner' -import { ProgressBar } from '../../atoms/ProgressBar' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' +import { ReleaseNotes } from '/app/molecules/ReleaseNotes' +import { Banner } from '/app/atoms/Banner' +import { ProgressBar } from '/app/atoms/ProgressBar' import { useRemoveActiveAppUpdateToast } from '../Alerts' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' interface PlaceHolderErrorProps { errorMessage?: string diff --git a/app/src/organisms/UpdateRobotBanner/__tests__/UpdateRobotBanner.test.tsx b/app/src/organisms/UpdateRobotBanner/__tests__/UpdateRobotBanner.test.tsx index 605965dc379..6742d808999 100644 --- a/app/src/organisms/UpdateRobotBanner/__tests__/UpdateRobotBanner.test.tsx +++ b/app/src/organisms/UpdateRobotBanner/__tests__/UpdateRobotBanner.test.tsx @@ -2,17 +2,17 @@ import * 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 { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' -import * as Buildroot from '../../../redux/robot-update' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import * as Buildroot from '/app/redux/robot-update' import { mockConnectableRobot, mockReachableRobot, -} from '../../../redux/discovery/__fixtures__' +} from '/app/redux/discovery/__fixtures__' import { handleUpdateBuildroot } from '../../Devices/RobotSettings/UpdateBuildroot' import { UpdateRobotBanner } from '..' -vi.mock('../../../redux/robot-update') +vi.mock('/app/redux/robot-update') vi.mock('../../Devices/RobotSettings/UpdateBuildroot') const getUpdateDisplayInfo = Buildroot.getRobotUpdateDisplayInfo diff --git a/app/src/organisms/UpdateRobotBanner/index.tsx b/app/src/organisms/UpdateRobotBanner/index.tsx index 7d443e3ddfd..57fcae39aff 100644 --- a/app/src/organisms/UpdateRobotBanner/index.tsx +++ b/app/src/organisms/UpdateRobotBanner/index.tsx @@ -9,13 +9,13 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { Banner } from '../../atoms/Banner' -import { getRobotUpdateDisplayInfo } from '../../redux/robot-update' +import { Banner } from '/app/atoms/Banner' +import { getRobotUpdateDisplayInfo } from '/app/redux/robot-update' import { handleUpdateBuildroot } from '../Devices/RobotSettings/UpdateBuildroot' import type { StyleProps } from '@opentrons/components' -import type { State } from '../../redux/types' -import type { DiscoveredRobot } from '../../redux/discovery/types' +import type { State } from '/app/redux/types' +import type { DiscoveredRobot } from '/app/redux/discovery/types' interface UpdateRobotBannerProps extends StyleProps { robot: DiscoveredRobot diff --git a/app/src/organisms/UpdateRobotSoftware/CompleteUpdateSoftware.tsx b/app/src/organisms/UpdateRobotSoftware/CompleteUpdateSoftware.tsx index d35891880a5..f75a1777146 100644 --- a/app/src/organisms/UpdateRobotSoftware/CompleteUpdateSoftware.tsx +++ b/app/src/organisms/UpdateRobotSoftware/CompleteUpdateSoftware.tsx @@ -14,7 +14,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { ProgressBar } from '../../atoms/ProgressBar' +import { ProgressBar } from '/app/atoms/ProgressBar' interface CompleteUpdateSoftwareProps { robotName: string diff --git a/app/src/organisms/UpdateRobotSoftware/NoUpdateFound.tsx b/app/src/organisms/UpdateRobotSoftware/NoUpdateFound.tsx index 2f173cf0eda..35eed9fcc1b 100644 --- a/app/src/organisms/UpdateRobotSoftware/NoUpdateFound.tsx +++ b/app/src/organisms/UpdateRobotSoftware/NoUpdateFound.tsx @@ -14,7 +14,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { MediumButton } from '../../atoms/buttons' +import { MediumButton } from '/app/atoms/buttons' export interface NoUpdateFoundProps { onContinue: () => void diff --git a/app/src/organisms/UpdateRobotSoftware/__tests__/CheckUpdates.test.tsx b/app/src/organisms/UpdateRobotSoftware/__tests__/CheckUpdates.test.tsx index a9611b8b456..80bef11873f 100644 --- a/app/src/organisms/UpdateRobotSoftware/__tests__/CheckUpdates.test.tsx +++ b/app/src/organisms/UpdateRobotSoftware/__tests__/CheckUpdates.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it } from 'vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CheckUpdates } from '../CheckUpdates' const render = () => diff --git a/app/src/organisms/UpdateRobotSoftware/__tests__/CompleteUpdateSoftware.test.tsx b/app/src/organisms/UpdateRobotSoftware/__tests__/CompleteUpdateSoftware.test.tsx index f06f48a5f85..ab9f20849e1 100644 --- a/app/src/organisms/UpdateRobotSoftware/__tests__/CompleteUpdateSoftware.test.tsx +++ b/app/src/organisms/UpdateRobotSoftware/__tests__/CompleteUpdateSoftware.test.tsx @@ -2,11 +2,11 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, expect, vi, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { i18n } from '../../../i18n' -import { renderWithProviders } from '../../../__testing-utils__' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' import { CompleteUpdateSoftware } from '../CompleteUpdateSoftware' -vi.mock('../../../redux/robot-admin') +vi.mock('/app/redux/robot-admin') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/organisms/UpdateRobotSoftware/__tests__/ErrorUpdateSoftware.test.tsx b/app/src/organisms/UpdateRobotSoftware/__tests__/ErrorUpdateSoftware.test.tsx index bc5f690a1d7..eef021fe01e 100644 --- a/app/src/organisms/UpdateRobotSoftware/__tests__/ErrorUpdateSoftware.test.tsx +++ b/app/src/organisms/UpdateRobotSoftware/__tests__/ErrorUpdateSoftware.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { ErrorUpdateSoftware } from '../ErrorUpdateSoftware' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/UpdateRobotSoftware/__tests__/NoUpdateFound.test.tsx b/app/src/organisms/UpdateRobotSoftware/__tests__/NoUpdateFound.test.tsx index 66a0daab9b0..5e6fec3bdca 100644 --- a/app/src/organisms/UpdateRobotSoftware/__tests__/NoUpdateFound.test.tsx +++ b/app/src/organisms/UpdateRobotSoftware/__tests__/NoUpdateFound.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { describe, it, vi, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { NoUpdateFound } from '../NoUpdateFound' diff --git a/app/src/organisms/UpdateRobotSoftware/__tests__/UpdateRobotSoftware.test.tsx b/app/src/organisms/UpdateRobotSoftware/__tests__/UpdateRobotSoftware.test.tsx index 5db3c1358eb..86bbb93b1ec 100644 --- a/app/src/organisms/UpdateRobotSoftware/__tests__/UpdateRobotSoftware.test.tsx +++ b/app/src/organisms/UpdateRobotSoftware/__tests__/UpdateRobotSoftware.test.tsx @@ -2,25 +2,25 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, vi, beforeEach, expect } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' -import * as RobotUpdate from '../../../redux/robot-update' +import * as RobotUpdate from '/app/redux/robot-update' import * as UpdateRobotSoftware from '../' import { CompleteUpdateSoftware, UpdateSoftware, -} from '../../../organisms/UpdateRobotSoftware' +} from '/app/organisms/UpdateRobotSoftware' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../redux/discovery') -vi.mock('../../../redux/robot-update') -vi.mock('../../../organisms/UpdateRobotSoftware/CheckUpdates') -vi.mock('../../../organisms/UpdateRobotSoftware/CompleteUpdateSoftware') -vi.mock('../../../organisms/UpdateRobotSoftware/ErrorUpdateSoftware') -vi.mock('../../../organisms/UpdateRobotSoftware/NoUpdateFound') -vi.mock('../../../organisms/UpdateRobotSoftware/UpdateSoftware') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-update') +vi.mock('/app/organisms/UpdateRobotSoftware/CheckUpdates') +vi.mock('/app/organisms/UpdateRobotSoftware/CompleteUpdateSoftware') +vi.mock('/app/organisms/UpdateRobotSoftware/ErrorUpdateSoftware') +vi.mock('/app/organisms/UpdateRobotSoftware/NoUpdateFound') +vi.mock('/app/organisms/UpdateRobotSoftware/UpdateSoftware') const getRobotUpdateSession = RobotUpdate.getRobotUpdateSession diff --git a/app/src/organisms/UpdateRobotSoftware/__tests__/UpdateSoftware.test.tsx b/app/src/organisms/UpdateRobotSoftware/__tests__/UpdateSoftware.test.tsx index 680de1b0147..2a54550eae2 100644 --- a/app/src/organisms/UpdateRobotSoftware/__tests__/UpdateSoftware.test.tsx +++ b/app/src/organisms/UpdateRobotSoftware/__tests__/UpdateSoftware.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it, beforeEach } from 'vitest' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../__testing-utils__' -import { i18n } from '../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { UpdateSoftware } from '../UpdateSoftware' const render = (props: React.ComponentProps) => { diff --git a/app/src/organisms/UpdateRobotSoftware/index.tsx b/app/src/organisms/UpdateRobotSoftware/index.tsx index 4d61272ac6f..42b907ddb17 100644 --- a/app/src/organisms/UpdateRobotSoftware/index.tsx +++ b/app/src/organisms/UpdateRobotSoftware/index.tsx @@ -1,16 +1,16 @@ import * as React from 'react' import { useDispatch, useSelector } from 'react-redux' -import type { Dispatch } from '../../redux/types' +import type { Dispatch } from '/app/redux/types' import { getRobotUpdateSession, startRobotUpdate, -} from '../../redux/robot-update' +} from '/app/redux/robot-update' -import type { ViewableRobot } from '../../redux/discovery/types' +import type { ViewableRobot } from '/app/redux/discovery/types' -import { CompleteUpdateSoftware } from '../../organisms/UpdateRobotSoftware/CompleteUpdateSoftware' -import { UpdateSoftware } from '../../organisms/UpdateRobotSoftware/UpdateSoftware' +import { CompleteUpdateSoftware } from '/app/organisms/UpdateRobotSoftware/CompleteUpdateSoftware' +import { UpdateSoftware } from '/app/organisms/UpdateRobotSoftware/UpdateSoftware' import { CheckUpdates } from './CheckUpdates' import { NoUpdateFound } from './NoUpdateFound' diff --git a/app/src/organisms/WellSelection/Selection384Wells.tsx b/app/src/organisms/WellSelection/Selection384Wells.tsx index 5db84c16cd9..d0fcddef752 100644 --- a/app/src/organisms/WellSelection/Selection384Wells.tsx +++ b/app/src/organisms/WellSelection/Selection384Wells.tsx @@ -13,7 +13,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { IconButton } from '../../atoms/buttons/IconButton' +import { IconButton } from '/app/atoms/buttons/IconButton' import type { WellGroup } from '@opentrons/components' import type { diff --git a/app/src/pages/Desktop/AppSettings/AdvancedSettings.tsx b/app/src/pages/Desktop/AppSettings/AdvancedSettings.tsx index 94c8f6e628b..686e64ce782 100644 --- a/app/src/pages/Desktop/AppSettings/AdvancedSettings.tsx +++ b/app/src/pages/Desktop/AppSettings/AdvancedSettings.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import { Box, SPACING } from '@opentrons/components' -import { Divider } from '../../../atoms/structure' +import { Divider } from '/app/atoms/structure' import { ClearUnavailableRobots, EnableDevTools, @@ -12,7 +12,7 @@ import { U2EInformation, UpdatedChannel, AdditionalCustomLabwareSourceFolder, -} from '../../../organisms/AdvancedSettings' +} from '/app/organisms/AdvancedSettings' export function AdvancedSettings(): JSX.Element { return ( diff --git a/app/src/pages/Desktop/AppSettings/GeneralSettings.tsx b/app/src/pages/Desktop/AppSettings/GeneralSettings.tsx index 3c20b9953c3..45918056041 100644 --- a/app/src/pages/Desktop/AppSettings/GeneralSettings.tsx +++ b/app/src/pages/Desktop/AppSettings/GeneralSettings.tsx @@ -21,31 +21,31 @@ import { useMountEffect, } from '@opentrons/components' -import { TertiaryButton, ToggleButton } from '../../../atoms/buttons' -import { ExternalLink } from '../../../atoms/Link/ExternalLink' -import { Divider } from '../../../atoms/structure' -import { Banner } from '../../../atoms/Banner' +import { TertiaryButton, ToggleButton } from '/app/atoms/buttons' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' +import { Divider } from '/app/atoms/structure' +import { Banner } from '/app/atoms/Banner' import { CURRENT_VERSION, getAvailableShellUpdate, checkShellUpdate, -} from '../../../redux/shell' +} from '/app/redux/shell' import { ALERT_APP_UPDATE_AVAILABLE, getAlertIsPermanentlyIgnored, alertPermanentlyIgnored, alertUnignored, -} from '../../../redux/alerts' +} from '/app/redux/alerts' import { useTrackEvent, ANALYTICS_APP_UPDATE_NOTIFICATIONS_TOGGLED, -} from '../../../redux/analytics' -import { UpdateAppModal } from '../../../organisms/UpdateAppModal' -import { PreviousVersionModal } from '../../../organisms/AppSettings/PreviousVersionModal' -import { ConnectRobotSlideout } from '../../../organisms/AppSettings/ConnectRobotSlideout' +} from '/app/redux/analytics' +import { UpdateAppModal } from '/app/organisms/UpdateAppModal' +import { PreviousVersionModal } from '/app/organisms/AppSettings/PreviousVersionModal' +import { ConnectRobotSlideout } from '/app/organisms/AppSettings/ConnectRobotSlideout' import { getTopPortalEl } from '../../../App/portal' -import type { Dispatch, State } from '../../../redux/types' +import type { Dispatch, State } from '/app/redux/types' const SOFTWARE_SYNC_URL = 'https://support.opentrons.com/s/' const GITHUB_LINK = diff --git a/app/src/pages/Desktop/AppSettings/PrivacySettings.tsx b/app/src/pages/Desktop/AppSettings/PrivacySettings.tsx index 8d1d4b8662d..b0e75b3671c 100644 --- a/app/src/pages/Desktop/AppSettings/PrivacySettings.tsx +++ b/app/src/pages/Desktop/AppSettings/PrivacySettings.tsx @@ -15,10 +15,10 @@ import { import { toggleAnalyticsOptedIn, getAnalyticsOptedIn, -} from '../../../redux/analytics' -import { ToggleButton } from '../../../atoms/buttons' +} from '/app/redux/analytics' +import { ToggleButton } from '/app/atoms/buttons' -import type { Dispatch, State } from '../../../redux/types' +import type { Dispatch, State } from '/app/redux/types' export function PrivacySettings(): JSX.Element { const { t } = useTranslation('branded') diff --git a/app/src/pages/Desktop/AppSettings/__test__/AdvancedSettings.test.tsx b/app/src/pages/Desktop/AppSettings/__test__/AdvancedSettings.test.tsx index 20bef60d73c..2b5bcca9faf 100644 --- a/app/src/pages/Desktop/AppSettings/__test__/AdvancedSettings.test.tsx +++ b/app/src/pages/Desktop/AppSettings/__test__/AdvancedSettings.test.tsx @@ -3,9 +3,9 @@ import { MemoryRouter } from 'react-router-dom' import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { AdditionalCustomLabwareSourceFolder, ClearUnavailableRobots, @@ -17,19 +17,19 @@ import { ShowLabwareOffsetSnippets, U2EInformation, UpdatedChannel, -} from '../../../../organisms/AdvancedSettings' +} from '/app/organisms/AdvancedSettings' import { AdvancedSettings } from '../AdvancedSettings' -vi.mock('../../../../redux/config') -vi.mock('../../../../redux/calibration') -vi.mock('../../../../redux/custom-labware') -vi.mock('../../../../redux/discovery') -vi.mock('../../../../redux/protocol-analysis') -vi.mock('../../../../redux/system-info') +vi.mock('/app/redux/config') +vi.mock('/app/redux/calibration') +vi.mock('/app/redux/custom-labware') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/protocol-analysis') +vi.mock('/app/redux/system-info') vi.mock('@opentrons/components/src/hooks') -vi.mock('../../../../redux/analytics') -vi.mock('../../../../organisms/AdvancedSettings') +vi.mock('/app/redux/analytics') +vi.mock('/app/organisms/AdvancedSettings') const render = (): ReturnType => { return renderWithProviders( diff --git a/app/src/pages/Desktop/AppSettings/__test__/AppSettings.test.tsx b/app/src/pages/Desktop/AppSettings/__test__/AppSettings.test.tsx index b4402f9661d..5002dec5407 100644 --- a/app/src/pages/Desktop/AppSettings/__test__/AppSettings.test.tsx +++ b/app/src/pages/Desktop/AppSettings/__test__/AppSettings.test.tsx @@ -3,21 +3,21 @@ import { vi, describe, beforeEach, it, expect, afterEach } from 'vitest' import { Route } from 'react-router' import { MemoryRouter, Routes } from 'react-router-dom' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' -import * as Config from '../../../../redux/config' +import { i18n } from '/app/i18n' +import * as Config from '/app/redux/config' import { GeneralSettings } from '../GeneralSettings' import { PrivacySettings } from '../PrivacySettings' import { AdvancedSettings } from '../AdvancedSettings' -import { FeatureFlags } from '../../../../organisms/AppSettings/FeatureFlags' +import { FeatureFlags } from '/app/organisms/AppSettings/FeatureFlags' import { AppSettings } from '..' -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('../GeneralSettings') vi.mock('../PrivacySettings') vi.mock('../AdvancedSettings') -vi.mock('../../../../organisms/AppSettings/FeatureFlags') +vi.mock('/app/organisms/AppSettings/FeatureFlags') const render = (path = '/'): ReturnType => { return renderWithProviders( diff --git a/app/src/pages/Desktop/AppSettings/__test__/GeneralSettings.test.tsx b/app/src/pages/Desktop/AppSettings/__test__/GeneralSettings.test.tsx index 7e9727bac34..5965baac3e2 100644 --- a/app/src/pages/Desktop/AppSettings/__test__/GeneralSettings.test.tsx +++ b/app/src/pages/Desktop/AppSettings/__test__/GeneralSettings.test.tsx @@ -3,17 +3,17 @@ import { MemoryRouter } from 'react-router-dom' import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' -import { getAlertIsPermanentlyIgnored } from '../../../../redux/alerts' -import * as Shell from '../../../../redux/shell' +import { i18n } from '/app/i18n' +import { getAlertIsPermanentlyIgnored } from '/app/redux/alerts' +import * as Shell from '/app/redux/shell' import { GeneralSettings } from '../GeneralSettings' -vi.mock('../../../../redux/config') -vi.mock('../../../../redux/shell') -vi.mock('../../../../redux/analytics') -vi.mock('../../../../redux/alerts') +vi.mock('/app/redux/config') +vi.mock('/app/redux/shell') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/alerts') const render = (): ReturnType => { return renderWithProviders( diff --git a/app/src/pages/Desktop/AppSettings/__test__/PrivacySettings.test.tsx b/app/src/pages/Desktop/AppSettings/__test__/PrivacySettings.test.tsx index 94a37b4b6fe..9635ae518a7 100644 --- a/app/src/pages/Desktop/AppSettings/__test__/PrivacySettings.test.tsx +++ b/app/src/pages/Desktop/AppSettings/__test__/PrivacySettings.test.tsx @@ -2,13 +2,13 @@ import * as React from 'react' import { vi, it, describe } from 'vitest' import { MemoryRouter } from 'react-router-dom' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { PrivacySettings } from '../PrivacySettings' -vi.mock('../../../../redux/analytics') -vi.mock('../../../../redux/config') +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/config') const render = (): ReturnType => { return renderWithProviders( diff --git a/app/src/pages/Desktop/AppSettings/index.tsx b/app/src/pages/Desktop/AppSettings/index.tsx index 831b9ee25b1..f11aa930187 100644 --- a/app/src/pages/Desktop/AppSettings/index.tsx +++ b/app/src/pages/Desktop/AppSettings/index.tsx @@ -15,13 +15,13 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import * as Config from '../../../redux/config' +import * as Config from '/app/redux/config' import { GeneralSettings } from './GeneralSettings' import { PrivacySettings } from './PrivacySettings' import { AdvancedSettings } from './AdvancedSettings' -import { FeatureFlags } from '../../../organisms/AppSettings/FeatureFlags' -import { NavTab } from '../../../molecules/NavTab' -import { Line } from '../../../atoms/structure' +import { FeatureFlags } from '/app/organisms/AppSettings/FeatureFlags' +import { NavTab } from '/app/molecules/NavTab' +import { Line } from '/app/atoms/structure' import type { DesktopRouteParams, AppSettingsTab } from '../../../App/types' diff --git a/app/src/pages/Desktop/Devices/CalibrationDashboard/__tests__/CalibrationDashboard.test.tsx b/app/src/pages/Desktop/Devices/CalibrationDashboard/__tests__/CalibrationDashboard.test.tsx index b3249904391..767ba94d4af 100644 --- a/app/src/pages/Desktop/Devices/CalibrationDashboard/__tests__/CalibrationDashboard.test.tsx +++ b/app/src/pages/Desktop/Devices/CalibrationDashboard/__tests__/CalibrationDashboard.test.tsx @@ -3,26 +3,26 @@ import { vi, describe, it, beforeEach } from 'vitest' import { screen } from '@testing-library/react' import { MemoryRouter, Route, Routes } from 'react-router-dom' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { CalibrationDashboard } from '..' import { useCalibrationTaskList, useAttachedPipettes, -} from '../../../../../organisms/Devices/hooks' +} from '/app/organisms/Devices/hooks' import { useDashboardCalibratePipOffset } from '../hooks/useDashboardCalibratePipOffset' import { useDashboardCalibrateTipLength } from '../hooks/useDashboardCalibrateTipLength' import { useDashboardCalibrateDeck } from '../hooks/useDashboardCalibrateDeck' -import { expectedTaskList } from '../../../../../organisms/Devices/hooks/__fixtures__/taskListFixtures' -import { mockLeftProtoPipette } from '../../../../../redux/pipettes/__fixtures__' -import { useNotifyAllRunsQuery } from '../../../../../resources/runs' +import { expectedTaskList } from '/app/organisms/Devices/hooks/__fixtures__/taskListFixtures' +import { mockLeftProtoPipette } from '/app/redux/pipettes/__fixtures__' +import { useNotifyAllRunsQuery } from '/app/resources/runs' -vi.mock('../../../../../organisms/Devices/hooks') +vi.mock('/app/organisms/Devices/hooks') vi.mock('../hooks/useDashboardCalibratePipOffset') vi.mock('../hooks/useDashboardCalibrateTipLength') vi.mock('../hooks/useDashboardCalibrateDeck') -vi.mock('../../../../../resources/runs') +vi.mock('/app/resources/runs') const render = (path = '/') => { return renderWithProviders( diff --git a/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateDeck.tsx b/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateDeck.tsx index 5542768bf15..faf8111bf0d 100644 --- a/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateDeck.tsx +++ b/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateDeck.tsx @@ -5,17 +5,17 @@ import { useTranslation } from 'react-i18next' import { ModalShell } from '@opentrons/components' import { getTopPortalEl } from '../../../../../App/portal' -import { WizardHeader } from '../../../../../molecules/WizardHeader' -import { CalibrateDeck } from '../../../../../organisms/CalibrateDeck' -import { LoadingState } from '../../../../../organisms/CalibrationPanels' -import * as RobotApi from '../../../../../redux/robot-api' -import * as Sessions from '../../../../../redux/sessions' -import { getDeckCalibrationSession } from '../../../../../redux/sessions/deck-calibration/selectors' +import { WizardHeader } from '/app/molecules/WizardHeader' +import { CalibrateDeck } from '/app/organisms/CalibrateDeck' +import { LoadingState } from '/app/organisms/CalibrationPanels' +import * as RobotApi from '/app/redux/robot-api' +import * as Sessions from '/app/redux/sessions' +import { getDeckCalibrationSession } from '/app/redux/sessions/deck-calibration/selectors' -import type { State } from '../../../../../redux/types' -import type { DeckCalibrationSession } from '../../../../../redux/sessions' -import type { SessionCommandString } from '../../../../../redux/sessions/types' -import type { RequestState } from '../../../../../redux/robot-api/types' +import type { State } from '/app/redux/types' +import type { DeckCalibrationSession } from '/app/redux/sessions' +import type { SessionCommandString } from '/app/redux/sessions/types' +import type { RequestState } from '/app/redux/robot-api/types' // deck calibration commands for which the full page spinner should not appear const spinnerCommandBlockList: SessionCommandString[] = [ diff --git a/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibratePipOffset.tsx b/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibratePipOffset.tsx index d48e690c824..7719f46c3e1 100644 --- a/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibratePipOffset.tsx +++ b/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibratePipOffset.tsx @@ -5,21 +5,21 @@ import { useTranslation } from 'react-i18next' import { ModalShell } from '@opentrons/components' import { getTopPortalEl } from '../../../../../App/portal' -import { WizardHeader } from '../../../../../molecules/WizardHeader' -import { CalibratePipetteOffset } from '../../../../../organisms/CalibratePipetteOffset' -import { LoadingState } from '../../../../../organisms/CalibrationPanels' -import * as RobotApi from '../../../../../redux/robot-api' -import * as Sessions from '../../../../../redux/sessions' -import { getPipetteOffsetCalibrationSession } from '../../../../../redux/sessions/pipette-offset-calibration/selectors' -import { pipetteOffsetCalibrationStarted } from '../../../../../redux/analytics' - -import type { State } from '../../../../../redux/types' +import { WizardHeader } from '/app/molecules/WizardHeader' +import { CalibratePipetteOffset } from '/app/organisms/CalibratePipetteOffset' +import { LoadingState } from '/app/organisms/CalibrationPanels' +import * as RobotApi from '/app/redux/robot-api' +import * as Sessions from '/app/redux/sessions' +import { getPipetteOffsetCalibrationSession } from '/app/redux/sessions/pipette-offset-calibration/selectors' +import { pipetteOffsetCalibrationStarted } from '/app/redux/analytics' + +import type { State } from '/app/redux/types' import type { SessionCommandString, PipetteOffsetCalibrationSession, PipetteOffsetCalibrationSessionParams, -} from '../../../../../redux/sessions/types' -import type { RequestState } from '../../../../../redux/robot-api/types' +} from '/app/redux/sessions/types' +import type { RequestState } from '/app/redux/robot-api/types' // pipette calibration commands for which the full page spinner should not appear const spinnerCommandBlockList: SessionCommandString[] = [ diff --git a/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength.tsx b/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength.tsx index 04cc353db7e..03c93e9bfcc 100644 --- a/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength.tsx +++ b/app/src/pages/Desktop/Devices/CalibrationDashboard/hooks/useDashboardCalibrateTipLength.tsx @@ -5,23 +5,23 @@ import { useTranslation } from 'react-i18next' import { ModalShell } from '@opentrons/components' import { getTopPortalEl } from '../../../../../App/portal' -import { WizardHeader } from '../../../../../molecules/WizardHeader' -import { CalibrateTipLength } from '../../../../../organisms/CalibrateTipLength' -import { AskForCalibrationBlockModal } from '../../../../../organisms/CalibrateTipLength/AskForCalibrationBlockModal' -import { LoadingState } from '../../../../../organisms/CalibrationPanels' -import * as RobotApi from '../../../../../redux/robot-api' -import * as Sessions from '../../../../../redux/sessions' -import { tipLengthCalibrationStarted } from '../../../../../redux/analytics' -import { getHasCalibrationBlock } from '../../../../../redux/config' -import { getTipLengthCalibrationSession } from '../../../../../redux/sessions/tip-length-calibration/selectors' - -import type { RequestState } from '../../../../../redux/robot-api/types' +import { WizardHeader } from '/app/molecules/WizardHeader' +import { CalibrateTipLength } from '/app/organisms/CalibrateTipLength' +import { AskForCalibrationBlockModal } from '/app/organisms/CalibrateTipLength/AskForCalibrationBlockModal' +import { LoadingState } from '/app/organisms/CalibrationPanels' +import * as RobotApi from '/app/redux/robot-api' +import * as Sessions from '/app/redux/sessions' +import { tipLengthCalibrationStarted } from '/app/redux/analytics' +import { getHasCalibrationBlock } from '/app/redux/config' +import { getTipLengthCalibrationSession } from '/app/redux/sessions/tip-length-calibration/selectors' + +import type { RequestState } from '/app/redux/robot-api/types' import type { SessionCommandString, TipLengthCalibrationSession, TipLengthCalibrationSessionParams, -} from '../../../../../redux/sessions/types' -import type { State } from '../../../../../redux/types' +} from '/app/redux/sessions/types' +import type { State } from '/app/redux/types' // tip length calibration commands for which the full page spinner should not appear const spinnerCommandBlockList: SessionCommandString[] = [ diff --git a/app/src/pages/Desktop/Devices/CalibrationDashboard/index.tsx b/app/src/pages/Desktop/Devices/CalibrationDashboard/index.tsx index e3dff770f1e..76edb05d0bd 100644 --- a/app/src/pages/Desktop/Devices/CalibrationDashboard/index.tsx +++ b/app/src/pages/Desktop/Devices/CalibrationDashboard/index.tsx @@ -1,13 +1,13 @@ import * as React from 'react' import { useParams } from 'react-router-dom' import { ApiHostProvider } from '@opentrons/react-api-client' -import { CalibrationTaskList } from '../../../../organisms/CalibrationTaskList' -import { OPENTRONS_USB } from '../../../../redux/discovery' -import { appShellRequestor } from '../../../../redux/shell/remote' +import { CalibrationTaskList } from '/app/organisms/CalibrationTaskList' +import { OPENTRONS_USB } from '/app/redux/discovery' +import { appShellRequestor } from '/app/redux/shell/remote' import { useDashboardCalibrateDeck } from './hooks/useDashboardCalibrateDeck' import { useDashboardCalibratePipOffset } from './hooks/useDashboardCalibratePipOffset' import { useDashboardCalibrateTipLength } from './hooks/useDashboardCalibrateTipLength' -import { useRobot } from '../../../../organisms/Devices/hooks' +import { useRobot } from '/app/organisms/Devices/hooks' import type { DesktopRouteParams } from '../../../../App/types' diff --git a/app/src/pages/Desktop/Devices/DeviceDetails/DeviceDetailsComponent.tsx b/app/src/pages/Desktop/Devices/DeviceDetails/DeviceDetailsComponent.tsx index 3dccb792af0..c100282c9ec 100644 --- a/app/src/pages/Desktop/Devices/DeviceDetails/DeviceDetailsComponent.tsx +++ b/app/src/pages/Desktop/Devices/DeviceDetails/DeviceDetailsComponent.tsx @@ -10,16 +10,13 @@ import { SPACING, } from '@opentrons/components' -import { DeviceDetailsDeckConfiguration } from '../../../../organisms/DeviceDetailsDeckConfiguration' -import { RobotOverview } from '../../../../organisms/Devices/RobotOverview' -import { InstrumentsAndModules } from '../../../../organisms/Devices/InstrumentsAndModules' -import { RecentProtocolRuns } from '../../../../organisms/Devices/RecentProtocolRuns' -import { EstopBanner } from '../../../../organisms/Devices/EstopBanner' -import { - DISENGAGED, - useEstopContext, -} from '../../../../organisms/EmergencyStop' -import { useIsFlex } from '../../../../organisms/Devices/hooks' +import { DeviceDetailsDeckConfiguration } from '/app/organisms/DeviceDetailsDeckConfiguration' +import { RobotOverview } from '/app/organisms/Devices/RobotOverview' +import { InstrumentsAndModules } from '/app/organisms/Devices/InstrumentsAndModules' +import { RecentProtocolRuns } from '/app/organisms/Devices/RecentProtocolRuns' +import { EstopBanner } from '/app/organisms/Devices/EstopBanner' +import { DISENGAGED, useEstopContext } from '/app/organisms/EmergencyStop' +import { useIsFlex } from '/app/organisms/Devices/hooks' interface DeviceDetailsComponentProps { robotName: string diff --git a/app/src/pages/Desktop/Devices/DeviceDetails/__tests__/DeviceDetails.test.tsx b/app/src/pages/Desktop/Devices/DeviceDetails/__tests__/DeviceDetails.test.tsx index e44f32c103c..d437e2757d5 100644 --- a/app/src/pages/Desktop/Devices/DeviceDetails/__tests__/DeviceDetails.test.tsx +++ b/app/src/pages/Desktop/Devices/DeviceDetails/__tests__/DeviceDetails.test.tsx @@ -4,27 +4,24 @@ import { when } from 'vitest-when' import { screen } from '@testing-library/react' import { MemoryRouter, Route, Routes } from 'react-router-dom' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' -import { - useRobot, - useSyncRobotClock, -} from '../../../../../organisms/Devices/hooks' -import { InstrumentsAndModules } from '../../../../../organisms/Devices/InstrumentsAndModules' -import { RecentProtocolRuns } from '../../../../../organisms/Devices/RecentProtocolRuns' -import { RobotOverview } from '../../../../../organisms/Devices/RobotOverview' -import { getScanning } from '../../../../../redux/discovery' -import { mockConnectableRobot } from '../../../../../redux/discovery/__fixtures__' +import { i18n } from '/app/i18n' +import { useRobot, useSyncRobotClock } from '/app/organisms/Devices/hooks' +import { InstrumentsAndModules } from '/app/organisms/Devices/InstrumentsAndModules' +import { RecentProtocolRuns } from '/app/organisms/Devices/RecentProtocolRuns' +import { RobotOverview } from '/app/organisms/Devices/RobotOverview' +import { getScanning } from '/app/redux/discovery' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import { DeviceDetails } from '..' -import type { State } from '../../../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../../../organisms/Devices/hooks') -vi.mock('../../../../../organisms/Devices/InstrumentsAndModules') -vi.mock('../../../../../organisms/Devices/RecentProtocolRuns') -vi.mock('../../../../../organisms/Devices/RobotOverview') -vi.mock('../../../../../redux/discovery') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/organisms/Devices/InstrumentsAndModules') +vi.mock('/app/organisms/Devices/RecentProtocolRuns') +vi.mock('/app/organisms/Devices/RobotOverview') +vi.mock('/app/redux/discovery') const render = (path = '/') => { return renderWithProviders( diff --git a/app/src/pages/Desktop/Devices/DeviceDetails/__tests__/DeviceDetailsComponent.test.tsx b/app/src/pages/Desktop/Devices/DeviceDetails/__tests__/DeviceDetailsComponent.test.tsx index 4905abd3393..42c0903e39a 100644 --- a/app/src/pages/Desktop/Devices/DeviceDetails/__tests__/DeviceDetailsComponent.test.tsx +++ b/app/src/pages/Desktop/Devices/DeviceDetails/__tests__/DeviceDetailsComponent.test.tsx @@ -2,25 +2,25 @@ import * as React from 'react' import { vi, it, describe, expect, beforeEach } from 'vitest' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useEstopQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../../../i18n' -import { InstrumentsAndModules } from '../../../../../organisms/Devices/InstrumentsAndModules' -import { RecentProtocolRuns } from '../../../../../organisms/Devices/RecentProtocolRuns' -import { RobotOverview } from '../../../../../organisms/Devices/RobotOverview' -import { DISENGAGED, NOT_PRESENT } from '../../../../../organisms/EmergencyStop' -import { DeviceDetailsDeckConfiguration } from '../../../../../organisms/DeviceDetailsDeckConfiguration' -import { useIsFlex } from '../../../../../organisms/Devices/hooks' +import { i18n } from '/app/i18n' +import { InstrumentsAndModules } from '/app/organisms/Devices/InstrumentsAndModules' +import { RecentProtocolRuns } from '/app/organisms/Devices/RecentProtocolRuns' +import { RobotOverview } from '/app/organisms/Devices/RobotOverview' +import { DISENGAGED, NOT_PRESENT } from '/app/organisms/EmergencyStop' +import { DeviceDetailsDeckConfiguration } from '/app/organisms/DeviceDetailsDeckConfiguration' +import { useIsFlex } from '/app/organisms/Devices/hooks' import { DeviceDetailsComponent } from '../DeviceDetailsComponent' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../../organisms/Devices/hooks') -vi.mock('../../../../../organisms/Devices/InstrumentsAndModules') -vi.mock('../../../../../organisms/Devices/RecentProtocolRuns') -vi.mock('../../../../../organisms/Devices/RobotOverview') -vi.mock('../../../../../organisms/DeviceDetailsDeckConfiguration') -vi.mock('../../../../../redux/discovery') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/organisms/Devices/InstrumentsAndModules') +vi.mock('/app/organisms/Devices/RecentProtocolRuns') +vi.mock('/app/organisms/Devices/RobotOverview') +vi.mock('/app/organisms/DeviceDetailsDeckConfiguration') +vi.mock('/app/redux/discovery') const ROBOT_NAME = 'otie' const mockEstopStatus = { diff --git a/app/src/pages/Desktop/Devices/DeviceDetails/index.tsx b/app/src/pages/Desktop/Devices/DeviceDetails/index.tsx index 543a0f58be8..944f46f5dc7 100644 --- a/app/src/pages/Desktop/Devices/DeviceDetails/index.tsx +++ b/app/src/pages/Desktop/Devices/DeviceDetails/index.tsx @@ -4,12 +4,9 @@ import { Navigate, useParams } from 'react-router-dom' import { ApiHostProvider } from '@opentrons/react-api-client' -import { - useRobot, - useSyncRobotClock, -} from '../../../../organisms/Devices/hooks' -import { getScanning, OPENTRONS_USB } from '../../../../redux/discovery' -import { appShellRequestor } from '../../../../redux/shell/remote' +import { useRobot, useSyncRobotClock } from '/app/organisms/Devices/hooks' +import { getScanning, OPENTRONS_USB } from '/app/redux/discovery' +import { appShellRequestor } from '/app/redux/shell/remote' import { DeviceDetailsComponent } from './DeviceDetailsComponent' import type { DesktopRouteParams } from '../../../../App/types' diff --git a/app/src/pages/Desktop/Devices/DevicesLanding/NewRobotSetupHelp.tsx b/app/src/pages/Desktop/Devices/DevicesLanding/NewRobotSetupHelp.tsx index a0b54194621..c9c9ea6d2cd 100644 --- a/app/src/pages/Desktop/Devices/DevicesLanding/NewRobotSetupHelp.tsx +++ b/app/src/pages/Desktop/Devices/DevicesLanding/NewRobotSetupHelp.tsx @@ -15,7 +15,7 @@ import { } from '@opentrons/components' import { getTopPortalEl } from '../../../../App/portal' -import { ExternalLink } from '../../../../atoms/Link/ExternalLink' +import { ExternalLink } from '/app/atoms/Link/ExternalLink' const NEW_FLEX_SETUP_SUPPORT_ARTICLE_HREF = 'https://insights.opentrons.com/hubfs/Products/Flex/Opentrons%20Flex%20Quickstart%20Guide.pdf' diff --git a/app/src/pages/Desktop/Devices/DevicesLanding/__tests__/DevicesLanding.test.tsx b/app/src/pages/Desktop/Devices/DevicesLanding/__tests__/DevicesLanding.test.tsx index d4c68a9fa7a..b23625de551 100644 --- a/app/src/pages/Desktop/Devices/DevicesLanding/__tests__/DevicesLanding.test.tsx +++ b/app/src/pages/Desktop/Devices/DevicesLanding/__tests__/DevicesLanding.test.tsx @@ -2,26 +2,26 @@ import * as React from 'react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { DevicesEmptyState } from '../../../../../organisms/Devices/DevicesEmptyState' -import { RobotCard } from '../../../../../organisms/Devices/RobotCard' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { DevicesEmptyState } from '/app/organisms/Devices/DevicesEmptyState' +import { RobotCard } from '/app/organisms/Devices/RobotCard' import { getScanning, getConnectableRobots, getReachableRobots, getUnreachableRobots, -} from '../../../../../redux/discovery' +} from '/app/redux/discovery' import { mockConnectableRobot, mockReachableRobot, mockUnreachableRobot, -} from '../../../../../redux/discovery/__fixtures__' +} from '/app/redux/discovery/__fixtures__' import { DevicesLanding } from '..' -vi.mock('../../../../../organisms/Devices/DevicesEmptyState') -vi.mock('../../../../../organisms/Devices/RobotCard') -vi.mock('../../../../../redux/discovery') +vi.mock('/app/organisms/Devices/DevicesEmptyState') +vi.mock('/app/organisms/Devices/RobotCard') +vi.mock('/app/redux/discovery') const render = () => { return renderWithProviders(, { diff --git a/app/src/pages/Desktop/Devices/DevicesLanding/__tests__/NewRobotSetupHelp.test.tsx b/app/src/pages/Desktop/Devices/DevicesLanding/__tests__/NewRobotSetupHelp.test.tsx index ef9a3bbcf50..7c21a22a938 100644 --- a/app/src/pages/Desktop/Devices/DevicesLanding/__tests__/NewRobotSetupHelp.test.tsx +++ b/app/src/pages/Desktop/Devices/DevicesLanding/__tests__/NewRobotSetupHelp.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { it, describe, expect } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { NewRobotSetupHelp } from '../NewRobotSetupHelp' const render = () => { diff --git a/app/src/pages/Desktop/Devices/DevicesLanding/index.tsx b/app/src/pages/Desktop/Devices/DevicesLanding/index.tsx index 1423d7e8f32..7ee8afd2993 100644 --- a/app/src/pages/Desktop/Devices/DevicesLanding/index.tsx +++ b/app/src/pages/Desktop/Devices/DevicesLanding/index.tsx @@ -26,16 +26,16 @@ import { getReachableRobots, getUnreachableRobots, OPENTRONS_USB, -} from '../../../../redux/discovery' -import { appShellRequestor } from '../../../../redux/shell/remote' -import { RobotCard } from '../../../../organisms/Devices/RobotCard' -import { DevicesEmptyState } from '../../../../organisms/Devices/DevicesEmptyState' -import { CollapsibleSection } from '../../../../molecules/CollapsibleSection' +} from '/app/redux/discovery' +import { appShellRequestor } from '/app/redux/shell/remote' +import { RobotCard } from '/app/organisms/Devices/RobotCard' +import { DevicesEmptyState } from '/app/organisms/Devices/DevicesEmptyState' +import { CollapsibleSection } from '/app/molecules/CollapsibleSection' -import { Divider } from '../../../../atoms/structure' +import { Divider } from '/app/atoms/structure' import { NewRobotSetupHelp } from './NewRobotSetupHelp' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' export const TROUBLESHOOTING_CONNECTION_PROBLEMS_URL = 'https://support.opentrons.com/en/articles/2687601-troubleshooting-connection-problems' diff --git a/app/src/pages/Desktop/Devices/ProtocolRunDetails/__tests__/ProtocolRunDetails.test.tsx b/app/src/pages/Desktop/Devices/ProtocolRunDetails/__tests__/ProtocolRunDetails.test.tsx index 3d3317ef021..f66ba14c947 100644 --- a/app/src/pages/Desktop/Devices/ProtocolRunDetails/__tests__/ProtocolRunDetails.test.tsx +++ b/app/src/pages/Desktop/Devices/ProtocolRunDetails/__tests__/ProtocolRunDetails.test.tsx @@ -4,43 +4,37 @@ import { Route, MemoryRouter, Routes } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { mockConnectableRobot } from '../../../../../redux/discovery/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' import { useModuleRenderInfoForProtocolById, useRobot, useRunStatuses, useSyncRobotClock, useRunHasStarted, -} from '../../../../../organisms/Devices/hooks' -import { useMostRecentCompletedAnalysis } from '../../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -import { ProtocolRunHeader } from '../../../../../organisms/Devices/ProtocolRun/ProtocolRunHeader' -import { ProtocolRunModuleControls } from '../../../../../organisms/Devices/ProtocolRun/ProtocolRunModuleControls' -import { ProtocolRunSetup } from '../../../../../organisms/Devices/ProtocolRun/ProtocolRunSetup' -import { RunPreviewComponent } from '../../../../../organisms/RunPreview' -import { ProtocolRunRuntimeParameters } from '../../../../../organisms/Devices/ProtocolRun/ProtocolRunRunTimeParameters' -import { useCurrentRunId } from '../../../../../resources/runs' -import { mockRobotSideAnalysis } from '../../../../../molecules/Command/__fixtures__' +} from '/app/organisms/Devices/hooks' +import { useMostRecentCompletedAnalysis } from '/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' +import { ProtocolRunHeader } from '/app/organisms/Devices/ProtocolRun/ProtocolRunHeader' +import { ProtocolRunModuleControls } from '/app/organisms/Devices/ProtocolRun/ProtocolRunModuleControls' +import { ProtocolRunSetup } from '/app/organisms/Devices/ProtocolRun/ProtocolRunSetup' +import { RunPreviewComponent } from '/app/organisms/RunPreview' +import { ProtocolRunRuntimeParameters } from '/app/organisms/Devices/ProtocolRun/ProtocolRunRunTimeParameters' +import { useCurrentRunId } from '/app/resources/runs' +import { mockRobotSideAnalysis } from '/app/molecules/Command/__fixtures__' import { ProtocolRunDetails } from '..' import type { ModuleModel, ModuleType } from '@opentrons/shared-data' -vi.mock( - '../../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -) -vi.mock('../../../../../organisms/Devices/hooks') -vi.mock('../../../../../organisms/Devices/ProtocolRun/ProtocolRunHeader') -vi.mock('../../../../../organisms/Devices/ProtocolRun/ProtocolRunSetup') -vi.mock('../../../../../organisms/RunPreview') -vi.mock( - '../../../../../organisms/Devices/ProtocolRun/ProtocolRunModuleControls' -) -vi.mock('../../../../../resources/runs') -vi.mock( - '../../../../../organisms/Devices/ProtocolRun/ProtocolRunRunTimeParameters' -) -vi.mock('../../../../../redux/config') +vi.mock('/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/organisms/Devices/ProtocolRun/ProtocolRunHeader') +vi.mock('/app/organisms/Devices/ProtocolRun/ProtocolRunSetup') +vi.mock('/app/organisms/RunPreview') +vi.mock('/app/organisms/Devices/ProtocolRun/ProtocolRunModuleControls') +vi.mock('/app/resources/runs') +vi.mock('/app/organisms/Devices/ProtocolRun/ProtocolRunRunTimeParameters') +vi.mock('/app/redux/config') const MOCK_MAGNETIC_MODULE_COORDS = [10, 20, 0] diff --git a/app/src/pages/Desktop/Devices/ProtocolRunDetails/index.tsx b/app/src/pages/Desktop/Devices/ProtocolRunDetails/index.tsx index eb17aa5ba3f..ba1e4124ac5 100644 --- a/app/src/pages/Desktop/Devices/ProtocolRunDetails/index.tsx +++ b/app/src/pages/Desktop/Devices/ProtocolRunDetails/index.tsx @@ -29,28 +29,28 @@ import { useRunHasStarted, useRunStatuses, useSyncRobotClock, -} from '../../../../organisms/Devices/hooks' -import { ProtocolRunHeader } from '../../../../organisms/Devices/ProtocolRun/ProtocolRunHeader' -import { RunPreview } from '../../../../organisms/RunPreview' +} from '/app/organisms/Devices/hooks' +import { ProtocolRunHeader } from '/app/organisms/Devices/ProtocolRun/ProtocolRunHeader' +import { RunPreview } from '/app/organisms/RunPreview' import { ProtocolRunSetup, initialMissingSteps, -} from '../../../../organisms/Devices/ProtocolRun/ProtocolRunSetup' -import { BackToTopButton } from '../../../../organisms/Devices/ProtocolRun/BackToTopButton' -import { ProtocolRunModuleControls } from '../../../../organisms/Devices/ProtocolRun/ProtocolRunModuleControls' -import { ProtocolRunRuntimeParameters } from '../../../../organisms/Devices/ProtocolRun/ProtocolRunRunTimeParameters' -import { useCurrentRunId } from '../../../../resources/runs' -import { OPENTRONS_USB } from '../../../../redux/discovery' -import { fetchProtocols } from '../../../../redux/protocol-storage' -import { appShellRequestor } from '../../../../redux/shell/remote' -import { useMostRecentCompletedAnalysis } from '../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' +} from '/app/organisms/Devices/ProtocolRun/ProtocolRunSetup' +import { BackToTopButton } from '/app/organisms/Devices/ProtocolRun/BackToTopButton' +import { ProtocolRunModuleControls } from '/app/organisms/Devices/ProtocolRun/ProtocolRunModuleControls' +import { ProtocolRunRuntimeParameters } from '/app/organisms/Devices/ProtocolRun/ProtocolRunRunTimeParameters' +import { useCurrentRunId } from '/app/resources/runs' +import { OPENTRONS_USB } from '/app/redux/discovery' +import { fetchProtocols } from '/app/redux/protocol-storage' +import { appShellRequestor } from '/app/redux/shell/remote' +import { useMostRecentCompletedAnalysis } from '/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' import type { ViewportListRef } from 'react-viewport-list' import type { DesktopRouteParams, ProtocolRunDetailsTab, } from '../../../../App/types' -import type { Dispatch } from '../../../../redux/types' +import type { Dispatch } from '/app/redux/types' const baseRoundTabStyling = css` ${TYPOGRAPHY.pSemiBold} diff --git a/app/src/pages/Desktop/Devices/RobotSettings/__tests__/RobotSettings.test.tsx b/app/src/pages/Desktop/Devices/RobotSettings/__tests__/RobotSettings.test.tsx index 5d199ce9a5e..d10a7919dae 100644 --- a/app/src/pages/Desktop/Devices/RobotSettings/__tests__/RobotSettings.test.tsx +++ b/app/src/pages/Desktop/Devices/RobotSettings/__tests__/RobotSettings.test.tsx @@ -3,29 +3,27 @@ import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import { Route, MemoryRouter, Routes } from 'react-router-dom' -import { renderWithProviders } from '../../../../../__testing-utils__' -import { i18n } from '../../../../../i18n' -import { RobotSettingsCalibration } from '../../../../../organisms/RobotSettingsCalibration' -import { RobotSettingsNetworking } from '../../../../../organisms/Devices/RobotSettings/RobotSettingsNetworking' -import { RobotSettingsAdvanced } from '../../../../../organisms/Devices/RobotSettings/RobotSettingsAdvanced' -import { useRobot } from '../../../../../organisms/Devices/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { RobotSettingsCalibration } from '/app/organisms/RobotSettingsCalibration' +import { RobotSettingsNetworking } from '/app/organisms/Devices/RobotSettings/RobotSettingsNetworking' +import { RobotSettingsAdvanced } from '/app/organisms/Devices/RobotSettings/RobotSettingsAdvanced' +import { useRobot } from '/app/organisms/Devices/hooks' import { RobotSettings } from '..' import { when } from 'vitest-when' import { mockConnectableRobot, mockReachableRobot, mockUnreachableRobot, -} from '../../../../../redux/discovery/__fixtures__' -import { getRobotUpdateSession } from '../../../../../redux/robot-update' - -vi.mock('../../../../../organisms/RobotSettingsCalibration') -vi.mock( - '../../../../../organisms/Devices/RobotSettings/RobotSettingsNetworking' -) -vi.mock('../../../../../organisms/Devices/RobotSettings/RobotSettingsAdvanced') -vi.mock('../../../../../organisms/Devices/hooks') -vi.mock('../../../../../redux/discovery/selectors') -vi.mock('../../../../../redux/robot-update') +} from '/app/redux/discovery/__fixtures__' +import { getRobotUpdateSession } from '/app/redux/robot-update' + +vi.mock('/app/organisms/RobotSettingsCalibration') +vi.mock('/app/organisms/Devices/RobotSettings/RobotSettingsNetworking') +vi.mock('/app/organisms/Devices/RobotSettings/RobotSettingsAdvanced') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/redux/discovery/selectors') +vi.mock('/app/redux/robot-update') const render = (path = '/') => { return renderWithProviders( diff --git a/app/src/pages/Desktop/Devices/RobotSettings/index.tsx b/app/src/pages/Desktop/Devices/RobotSettings/index.tsx index 57d23297e56..a02eb45a235 100644 --- a/app/src/pages/Desktop/Devices/RobotSettings/index.tsx +++ b/app/src/pages/Desktop/Devices/RobotSettings/index.tsx @@ -21,19 +21,19 @@ import { UNREACHABLE, REACHABLE, OPENTRONS_USB, -} from '../../../../redux/discovery' -import { appShellRequestor } from '../../../../redux/shell/remote' -import { getRobotUpdateSession } from '../../../../redux/robot-update' -import { getDevtoolsEnabled } from '../../../../redux/config' -import { Banner } from '../../../../atoms/Banner' -import { useRobot } from '../../../../organisms/Devices/hooks' -import { Line } from '../../../../atoms/structure' -import { NavTab } from '../../../../molecules/NavTab' -import { RobotSettingsCalibration } from '../../../../organisms/RobotSettingsCalibration' -import { RobotSettingsAdvanced } from '../../../../organisms/Devices/RobotSettings/RobotSettingsAdvanced' -import { RobotSettingsNetworking } from '../../../../organisms/Devices/RobotSettings/RobotSettingsNetworking' -import { RobotSettingsFeatureFlags } from '../../../../organisms/Devices/RobotSettings/RobotSettingsFeatureFlags' -import { ReachableBanner } from '../../../../organisms/Devices/ReachableBanner' +} from '/app/redux/discovery' +import { appShellRequestor } from '/app/redux/shell/remote' +import { getRobotUpdateSession } from '/app/redux/robot-update' +import { getDevtoolsEnabled } from '/app/redux/config' +import { Banner } from '/app/atoms/Banner' +import { useRobot } from '/app/organisms/Devices/hooks' +import { Line } from '/app/atoms/structure' +import { NavTab } from '/app/molecules/NavTab' +import { RobotSettingsCalibration } from '/app/organisms/RobotSettingsCalibration' +import { RobotSettingsAdvanced } from '/app/organisms/Devices/RobotSettings/RobotSettingsAdvanced' +import { RobotSettingsNetworking } from '/app/organisms/Devices/RobotSettings/RobotSettingsNetworking' +import { RobotSettingsFeatureFlags } from '/app/organisms/Devices/RobotSettings/RobotSettingsFeatureFlags' +import { ReachableBanner } from '/app/organisms/Devices/ReachableBanner' import type { DesktopRouteParams, diff --git a/app/src/pages/Desktop/Labware/__tests__/Labware.test.tsx b/app/src/pages/Desktop/Labware/__tests__/Labware.test.tsx index 649a4bbac5d..1a4182966f4 100644 --- a/app/src/pages/Desktop/Labware/__tests__/Labware.test.tsx +++ b/app/src/pages/Desktop/Labware/__tests__/Labware.test.tsx @@ -2,24 +2,24 @@ import * as React from 'react' import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import { MemoryRouter } from 'react-router-dom' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { useTrackEvent, ANALYTICS_OPEN_LABWARE_CREATOR_FROM_BOTTOM_OF_LABWARE_LIBRARY_LIST, -} from '../../../../redux/analytics' -import { LabwareCard } from '../../../../organisms/LabwareCard' -import { AddCustomLabwareSlideout } from '../../../../organisms/AddCustomLabwareSlideout' -import { useToaster } from '../../../../organisms/ToasterOven' +} from '/app/redux/analytics' +import { LabwareCard } from '/app/organisms/LabwareCard' +import { AddCustomLabwareSlideout } from '/app/organisms/AddCustomLabwareSlideout' +import { useToaster } from '/app/organisms/ToasterOven' import { useAllLabware, useLabwareFailure, useNewLabwareName } from '../hooks' import { Labware } from '..' -import { mockDefinition } from '../../../../redux/custom-labware/__fixtures__' +import { mockDefinition } from '/app/redux/custom-labware/__fixtures__' -vi.mock('../../../../organisms/LabwareCard') -vi.mock('../../../../organisms/AddCustomLabwareSlideout') -vi.mock('../../../../organisms/ToasterOven') +vi.mock('/app/organisms/LabwareCard') +vi.mock('/app/organisms/AddCustomLabwareSlideout') +vi.mock('/app/organisms/ToasterOven') vi.mock('../hooks') -vi.mock('../../../../redux/analytics') +vi.mock('/app/redux/analytics') const mockTrackEvent = vi.fn() const mockMakeSnackbar = vi.fn() diff --git a/app/src/pages/Desktop/Labware/__tests__/hooks.test.tsx b/app/src/pages/Desktop/Labware/__tests__/hooks.test.tsx index 3824500f8a4..23ef20d72b3 100644 --- a/app/src/pages/Desktop/Labware/__tests__/hooks.test.tsx +++ b/app/src/pages/Desktop/Labware/__tests__/hooks.test.tsx @@ -3,7 +3,7 @@ import { Provider } from 'react-redux' import { createStore } from 'redux' import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { renderHook } from '@testing-library/react' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { I18nextProvider } from 'react-i18next' import { getAllDefs } from '../helpers/getAllDefs' @@ -11,19 +11,19 @@ import { getValidCustomLabware, getAddLabwareFailure, getAddNewLabwareName, -} from '../../../../redux/custom-labware' +} from '/app/redux/custom-labware' import { mockDefinition, mockValidLabware, -} from '../../../../redux/custom-labware/__fixtures__' +} from '/app/redux/custom-labware/__fixtures__' import { useAllLabware, useLabwareFailure, useNewLabwareName } from '../hooks' import type { Store } from 'redux' -import type { State } from '../../../../redux/types' -import type { FailedLabwareFile } from '../../../../redux/custom-labware/types' +import type { State } from '/app/redux/types' +import type { FailedLabwareFile } from '/app/redux/custom-labware/types' -vi.mock('../../../../redux/custom-labware') +vi.mock('/app/redux/custom-labware') vi.mock('../helpers/getAllDefs') describe('useAllLabware hook', () => { diff --git a/app/src/pages/Desktop/Labware/hooks.tsx b/app/src/pages/Desktop/Labware/hooks.tsx index c8e973682cd..d9c9d1a1ed1 100644 --- a/app/src/pages/Desktop/Labware/hooks.tsx +++ b/app/src/pages/Desktop/Labware/hooks.tsx @@ -6,9 +6,9 @@ import { getAddNewLabwareName, clearNewLabwareName, getValidCustomLabware, -} from '../../../redux/custom-labware' +} from '/app/redux/custom-labware' import { getAllDefinitions } from './helpers/definitions' -import type { Dispatch } from '../../../redux/types' +import type { Dispatch } from '/app/redux/types' import type { LabwareDefinition2 as LabwareDefinition } from '@opentrons/shared-data' import type { LabwareFilter, LabwareSort } from './types' diff --git a/app/src/pages/Desktop/Labware/index.tsx b/app/src/pages/Desktop/Labware/index.tsx index c08eecbea67..819e0b37b2f 100644 --- a/app/src/pages/Desktop/Labware/index.tsx +++ b/app/src/pages/Desktop/Labware/index.tsx @@ -33,13 +33,13 @@ import { LabwareCreator } from '@opentrons/labware-library' import { useTrackEvent, ANALYTICS_OPEN_LABWARE_CREATOR_FROM_BOTTOM_OF_LABWARE_LIBRARY_LIST, -} from '../../../redux/analytics' -import { addCustomLabwareFileFromCreator } from '../../../redux/custom-labware' -import { LabwareCard } from '../../../organisms/LabwareCard' -import { AddCustomLabwareSlideout } from '../../../organisms/AddCustomLabwareSlideout' -import { LabwareDetails } from '../../../organisms/LabwareDetails' -import { useToaster } from '../../../organisms/ToasterOven' -import { useFeatureFlag } from '../../../redux/config' +} from '/app/redux/analytics' +import { addCustomLabwareFileFromCreator } from '/app/redux/custom-labware' +import { LabwareCard } from '/app/organisms/LabwareCard' +import { AddCustomLabwareSlideout } from '/app/organisms/AddCustomLabwareSlideout' +import { LabwareDetails } from '/app/organisms/LabwareDetails' +import { useToaster } from '/app/organisms/ToasterOven' +import { useFeatureFlag } from '/app/redux/config' import { useAllLabware, useLabwareFailure, useNewLabwareName } from './hooks' import type { DropdownOption } from '@opentrons/components' diff --git a/app/src/pages/Desktop/Protocols/ProtocolDetails/ProtocolTimeline.tsx b/app/src/pages/Desktop/Protocols/ProtocolDetails/ProtocolTimeline.tsx index 1f3b32796cf..affaf82f9f3 100644 --- a/app/src/pages/Desktop/Protocols/ProtocolDetails/ProtocolTimeline.tsx +++ b/app/src/pages/Desktop/Protocols/ProtocolDetails/ProtocolTimeline.tsx @@ -2,13 +2,10 @@ import * as React from 'react' import { useParams } from 'react-router-dom' import { useDispatch, useSelector } from 'react-redux' import { Icon, Box, SPACING } from '@opentrons/components' -import { - fetchProtocols, - getStoredProtocol, -} from '../../../../redux/protocol-storage' -import { ProtocolTimelineScrubber } from '../../../../organisms/ProtocolTimelineScrubber' +import { fetchProtocols, getStoredProtocol } from '/app/redux/protocol-storage' +import { ProtocolTimelineScrubber } from '/app/organisms/ProtocolTimelineScrubber' -import type { Dispatch, State } from '../../../../redux/types' +import type { Dispatch, State } from '/app/redux/types' import type { DesktopRouteParams } from '../../../../App/types' export function ProtocolTimeline(): JSX.Element { diff --git a/app/src/pages/Desktop/Protocols/ProtocolDetails/__tests__/ProtocolDetails.test.tsx b/app/src/pages/Desktop/Protocols/ProtocolDetails/__tests__/ProtocolDetails.test.tsx index a4e97c9f544..e51038afbc9 100644 --- a/app/src/pages/Desktop/Protocols/ProtocolDetails/__tests__/ProtocolDetails.test.tsx +++ b/app/src/pages/Desktop/Protocols/ProtocolDetails/__tests__/ProtocolDetails.test.tsx @@ -3,21 +3,21 @@ import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { screen } from '@testing-library/react' import { Route, MemoryRouter, Routes } from 'react-router-dom' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../../i18n' -import { getStoredProtocol } from '../../../../../redux/protocol-storage' -import { storedProtocolData } from '../../../../../redux/protocol-storage/__fixtures__' -import { ProtocolDetails as ProtocolDetailsContents } from '../../../../../organisms/ProtocolDetails' +import { i18n } from '/app/i18n' +import { getStoredProtocol } from '/app/redux/protocol-storage' +import { storedProtocolData } from '/app/redux/protocol-storage/__fixtures__' +import { ProtocolDetails as ProtocolDetailsContents } from '/app/organisms/ProtocolDetails' import { ProtocolDetails } from '../' -import type { State } from '../../../../../redux/types' +import type { State } from '/app/redux/types' const mockProtocolKey = 'protocolKeyStub' -vi.mock('../../../../../redux/protocol-storage') -vi.mock('../../../../../organisms/ProtocolDetails') +vi.mock('/app/redux/protocol-storage') +vi.mock('/app/organisms/ProtocolDetails') const MOCK_STATE: State = { protocolStorage: { diff --git a/app/src/pages/Desktop/Protocols/ProtocolDetails/index.tsx b/app/src/pages/Desktop/Protocols/ProtocolDetails/index.tsx index a152a5d0bfc..e147fab13b5 100644 --- a/app/src/pages/Desktop/Protocols/ProtocolDetails/index.tsx +++ b/app/src/pages/Desktop/Protocols/ProtocolDetails/index.tsx @@ -2,13 +2,10 @@ import * as React from 'react' import { useParams, Navigate } from 'react-router-dom' import { useDispatch, useSelector } from 'react-redux' -import { - fetchProtocols, - getStoredProtocol, -} from '../../../../redux/protocol-storage' -import { ProtocolDetails as ProtocolDetailsContents } from '../../../../organisms/ProtocolDetails' +import { fetchProtocols, getStoredProtocol } from '/app/redux/protocol-storage' +import { ProtocolDetails as ProtocolDetailsContents } from '/app/organisms/ProtocolDetails' -import type { Dispatch, State } from '../../../../redux/types' +import type { Dispatch, State } from '/app/redux/types' import type { DesktopRouteParams } from '../../../../App/types' export function ProtocolDetails(): JSX.Element { diff --git a/app/src/pages/Desktop/Protocols/ProtocolsLanding/__tests__/ProtocolsLanding.test.tsx b/app/src/pages/Desktop/Protocols/ProtocolsLanding/__tests__/ProtocolsLanding.test.tsx index 1235ba08e20..61a35c9aefc 100644 --- a/app/src/pages/Desktop/Protocols/ProtocolsLanding/__tests__/ProtocolsLanding.test.tsx +++ b/app/src/pages/Desktop/Protocols/ProtocolsLanding/__tests__/ProtocolsLanding.test.tsx @@ -1,17 +1,17 @@ import * as React from 'react' import { vi, it, describe } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { ProtocolsEmptyState } from '../../../../../organisms/ProtocolsLanding/ProtocolsEmptyState' -import { getStoredProtocols } from '../../../../../redux/protocol-storage' -import { storedProtocolData } from '../../../../../redux/protocol-storage/__fixtures__' -import { ProtocolList } from '../../../../../organisms/ProtocolsLanding/ProtocolList' +import { ProtocolsEmptyState } from '/app/organisms/ProtocolsLanding/ProtocolsEmptyState' +import { getStoredProtocols } from '/app/redux/protocol-storage' +import { storedProtocolData } from '/app/redux/protocol-storage/__fixtures__' +import { ProtocolList } from '/app/organisms/ProtocolsLanding/ProtocolList' import { ProtocolsLanding } from '..' -vi.mock('../../../../../redux/protocol-storage') -vi.mock('../../../../../organisms/ProtocolsLanding/ProtocolsEmptyState') -vi.mock('../../../../../organisms/ProtocolsLanding/ProtocolList') +vi.mock('/app/redux/protocol-storage') +vi.mock('/app/organisms/ProtocolsLanding/ProtocolsEmptyState') +vi.mock('/app/organisms/ProtocolsLanding/ProtocolList') const render = () => { return renderWithProviders()[0] diff --git a/app/src/pages/Desktop/Protocols/ProtocolsLanding/index.tsx b/app/src/pages/Desktop/Protocols/ProtocolsLanding/index.tsx index 63a21c4f50b..628594247c6 100644 --- a/app/src/pages/Desktop/Protocols/ProtocolsLanding/index.tsx +++ b/app/src/pages/Desktop/Protocols/ProtocolsLanding/index.tsx @@ -1,13 +1,10 @@ import * as React from 'react' import { useDispatch, useSelector } from 'react-redux' -import { - fetchProtocols, - getStoredProtocols, -} from '../../../../redux/protocol-storage' -import { ProtocolsEmptyState } from '../../../../organisms/ProtocolsLanding/ProtocolsEmptyState' -import { ProtocolList } from '../../../../organisms/ProtocolsLanding/ProtocolList' +import { fetchProtocols, getStoredProtocols } from '/app/redux/protocol-storage' +import { ProtocolsEmptyState } from '/app/organisms/ProtocolsLanding/ProtocolsEmptyState' +import { ProtocolList } from '/app/organisms/ProtocolsLanding/ProtocolList' -import type { Dispatch, State } from '../../../../redux/types' +import type { Dispatch, State } from '/app/redux/types' export function ProtocolsLanding(): JSX.Element { const dispatch = useDispatch() diff --git a/app/src/pages/Desktop/Protocols/hooks/__tests__/hooks.test.tsx b/app/src/pages/Desktop/Protocols/hooks/__tests__/hooks.test.tsx index b72b60bd77f..acb9c03ba2d 100644 --- a/app/src/pages/Desktop/Protocols/hooks/__tests__/hooks.test.tsx +++ b/app/src/pages/Desktop/Protocols/hooks/__tests__/hooks.test.tsx @@ -17,7 +17,7 @@ import type { import type { Protocol } from '@opentrons/api-client' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../../organisms/Devices/hooks') +vi.mock('/app/organisms/Devices/hooks') const PROTOCOL_ID = 'fake_protocol_id' const mockRTPData = [ diff --git a/app/src/pages/Desktop/Protocols/hooks/index.ts b/app/src/pages/Desktop/Protocols/hooks/index.ts index 26941e94acd..2d4069e290c 100644 --- a/app/src/pages/Desktop/Protocols/hooks/index.ts +++ b/app/src/pages/Desktop/Protocols/hooks/index.ts @@ -7,7 +7,7 @@ import { import { getLabwareSetupItemGroups, useRequiredProtocolHardwareFromAnalysis, -} from '../../../../transformations/commands' +} from '/app/transformations/commands' import type { CompletedProtocolAnalysis, @@ -16,7 +16,7 @@ import type { import type { LabwareSetupItem, ProtocolHardware, -} from '../../../../transformations/commands' +} from '/app/transformations/commands' /** * Returns an array of RunTimeParameters objects that are optional by the given protocol ID. diff --git a/app/src/pages/ODD/ConnectViaEthernet/DisplayConnectionStatus.tsx b/app/src/pages/ODD/ConnectViaEthernet/DisplayConnectionStatus.tsx index c2632e05515..90bd374b948 100644 --- a/app/src/pages/ODD/ConnectViaEthernet/DisplayConnectionStatus.tsx +++ b/app/src/pages/ODD/ConnectViaEthernet/DisplayConnectionStatus.tsx @@ -16,7 +16,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { MediumButton } from '../../../atoms/buttons' +import { MediumButton } from '/app/atoms/buttons' interface DisplayConnectionStatusProps { isConnected: boolean diff --git a/app/src/pages/ODD/ConnectViaEthernet/__tests__/ConnectViaEthernet.test.tsx b/app/src/pages/ODD/ConnectViaEthernet/__tests__/ConnectViaEthernet.test.tsx index 8188371e4fd..c3288101571 100644 --- a/app/src/pages/ODD/ConnectViaEthernet/__tests__/ConnectViaEthernet.test.tsx +++ b/app/src/pages/ODD/ConnectViaEthernet/__tests__/ConnectViaEthernet.test.tsx @@ -2,16 +2,16 @@ import * as React from 'react' import { MemoryRouter } from 'react-router-dom' import { vi, it, describe, beforeEach, afterEach } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' -import * as Networking from '../../../../redux/networking' +import { i18n } from '/app/i18n' +import * as Networking from '/app/redux/networking' import { TitleHeader } from '../TitleHeader' import { DisplayConnectionStatus } from '../DisplayConnectionStatus' import { ConnectViaEthernet } from '../' -vi.mock('../../../../redux/networking') -vi.mock('../../../../redux/discovery') +vi.mock('/app/redux/networking') +vi.mock('/app/redux/discovery') vi.mock('../TitleHeader') vi.mock('../DisplayConnectionStatus') diff --git a/app/src/pages/ODD/ConnectViaEthernet/__tests__/DisplayConnectionStatus.test.tsx b/app/src/pages/ODD/ConnectViaEthernet/__tests__/DisplayConnectionStatus.test.tsx index 94dd9ab4d48..17bbb8e85b1 100644 --- a/app/src/pages/ODD/ConnectViaEthernet/__tests__/DisplayConnectionStatus.test.tsx +++ b/app/src/pages/ODD/ConnectViaEthernet/__tests__/DisplayConnectionStatus.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { vi, it, describe, expect, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { DisplayConnectionStatus } from '../DisplayConnectionStatus' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/pages/ODD/ConnectViaEthernet/__tests__/TitleHeader.test.tsx b/app/src/pages/ODD/ConnectViaEthernet/__tests__/TitleHeader.test.tsx index a6bc8902fa7..8b40ae71671 100644 --- a/app/src/pages/ODD/ConnectViaEthernet/__tests__/TitleHeader.test.tsx +++ b/app/src/pages/ODD/ConnectViaEthernet/__tests__/TitleHeader.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { vi, it, describe, expect, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { TitleHeader } from '../TitleHeader' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/pages/ODD/ConnectViaEthernet/index.tsx b/app/src/pages/ODD/ConnectViaEthernet/index.tsx index 5cede84110f..fe141f853ae 100644 --- a/app/src/pages/ODD/ConnectViaEthernet/index.tsx +++ b/app/src/pages/ODD/ConnectViaEthernet/index.tsx @@ -9,14 +9,14 @@ import { DIRECTION_COLUMN, } from '@opentrons/components' -import { StepMeter } from '../../../atoms/StepMeter' -import { NetworkDetailsModal } from '../../../organisms/ODD/RobotSettingsDashboard/NetworkSettings/NetworkDetailsModal' -import { getNetworkInterfaces, fetchStatus } from '../../../redux/networking' -import { getLocalRobot } from '../../../redux/discovery' +import { StepMeter } from '/app/atoms/StepMeter' +import { NetworkDetailsModal } from '/app/organisms/ODD/RobotSettingsDashboard/NetworkSettings/NetworkDetailsModal' +import { getNetworkInterfaces, fetchStatus } from '/app/redux/networking' +import { getLocalRobot } from '/app/redux/discovery' import { TitleHeader } from './TitleHeader' import { DisplayConnectionStatus } from './DisplayConnectionStatus' -import type { State, Dispatch } from '../../../redux/types' +import type { State, Dispatch } from '/app/redux/types' const STATUS_REFRESH_MS = 5000 diff --git a/app/src/pages/ODD/ConnectViaUSB/_tests__/ConnectedViaUSB.test.tsx b/app/src/pages/ODD/ConnectViaUSB/_tests__/ConnectedViaUSB.test.tsx index 2133f4388fa..dea215d9026 100644 --- a/app/src/pages/ODD/ConnectViaUSB/_tests__/ConnectedViaUSB.test.tsx +++ b/app/src/pages/ODD/ConnectViaUSB/_tests__/ConnectedViaUSB.test.tsx @@ -3,10 +3,10 @@ import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { MemoryRouter } from 'react-router-dom' import { fireEvent } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useConnectionsQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { ConnectViaUSB } from '../' import type { UseQueryResult } from 'react-query' diff --git a/app/src/pages/ODD/ConnectViaUSB/index.tsx b/app/src/pages/ODD/ConnectViaUSB/index.tsx index 86eb16124d6..e1ff45917e0 100644 --- a/app/src/pages/ODD/ConnectViaUSB/index.tsx +++ b/app/src/pages/ODD/ConnectViaUSB/index.tsx @@ -18,8 +18,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' import { useConnectionsQuery } from '@opentrons/react-api-client' -import { StepMeter } from '../../../atoms/StepMeter' -import { MediumButton } from '../../../atoms/buttons' +import { StepMeter } from '/app/atoms/StepMeter' +import { MediumButton } from '/app/atoms/buttons' export function ConnectViaUSB(): JSX.Element { const { i18n, t } = useTranslation(['device_settings', 'shared', 'branded']) diff --git a/app/src/pages/ODD/ConnectViaWifi/JoinOtherNetwork.tsx b/app/src/pages/ODD/ConnectViaWifi/JoinOtherNetwork.tsx index 25e663bd6a0..e956944122a 100644 --- a/app/src/pages/ODD/ConnectViaWifi/JoinOtherNetwork.tsx +++ b/app/src/pages/ODD/ConnectViaWifi/JoinOtherNetwork.tsx @@ -3,8 +3,8 @@ import { useTranslation } from 'react-i18next' import { Flex, DIRECTION_COLUMN } from '@opentrons/components' -import { SetWifiSsid } from '../../../organisms/ODD/NetworkSettings' -import { RobotSetupHeader } from '../../../organisms/RobotSetupHeader' +import { SetWifiSsid } from '/app/organisms/ODD/NetworkSettings' +import { RobotSetupHeader } from '/app/organisms/RobotSetupHeader' import type { WifiScreenOption } from './' diff --git a/app/src/pages/ODD/ConnectViaWifi/SelectAuthenticationType.tsx b/app/src/pages/ODD/ConnectViaWifi/SelectAuthenticationType.tsx index 2355383d1c1..9d367353d53 100644 --- a/app/src/pages/ODD/ConnectViaWifi/SelectAuthenticationType.tsx +++ b/app/src/pages/ODD/ConnectViaWifi/SelectAuthenticationType.tsx @@ -3,8 +3,8 @@ import { useTranslation } from 'react-i18next' import { Flex, DIRECTION_COLUMN } from '@opentrons/components' -import { SelectAuthenticationType as SelectAuthenticationTypeComponent } from '../../../organisms/ODD/NetworkSettings' -import { RobotSetupHeader } from '../../../organisms/RobotSetupHeader' +import { SelectAuthenticationType as SelectAuthenticationTypeComponent } from '/app/organisms/ODD/NetworkSettings' +import { RobotSetupHeader } from '/app/organisms/RobotSetupHeader' import type { WifiSecurityType } from '@opentrons/api-client' import type { WifiScreenOption } from './' diff --git a/app/src/pages/ODD/ConnectViaWifi/SetWifiCred.tsx b/app/src/pages/ODD/ConnectViaWifi/SetWifiCred.tsx index a1b76adb42a..0c022ea0f99 100644 --- a/app/src/pages/ODD/ConnectViaWifi/SetWifiCred.tsx +++ b/app/src/pages/ODD/ConnectViaWifi/SetWifiCred.tsx @@ -3,8 +3,8 @@ import { useTranslation } from 'react-i18next' import { Flex, DIRECTION_COLUMN } from '@opentrons/components' -import { SetWifiCred as SetWifiCredComponent } from '../../../organisms/ODD/NetworkSettings' -import { RobotSetupHeader } from '../../../organisms/RobotSetupHeader' +import { SetWifiCred as SetWifiCredComponent } from '/app/organisms/ODD/NetworkSettings' +import { RobotSetupHeader } from '/app/organisms/RobotSetupHeader' import type { WifiScreenOption } from './' diff --git a/app/src/pages/ODD/ConnectViaWifi/WifiConnectStatus.tsx b/app/src/pages/ODD/ConnectViaWifi/WifiConnectStatus.tsx index 3bf7cca8e58..f20e32ccb01 100644 --- a/app/src/pages/ODD/ConnectViaWifi/WifiConnectStatus.tsx +++ b/app/src/pages/ODD/ConnectViaWifi/WifiConnectStatus.tsx @@ -7,12 +7,12 @@ import { ConnectingNetwork, FailedToConnect, WifiConnectionDetails, -} from '../../../organisms/ODD/NetworkSettings' -import { RobotSetupHeader } from '../../../organisms/RobotSetupHeader' -import * as RobotApi from '../../../redux/robot-api' +} from '/app/organisms/ODD/NetworkSettings' +import { RobotSetupHeader } from '/app/organisms/RobotSetupHeader' +import * as RobotApi from '/app/redux/robot-api' import type { WifiSecurityType } from '@opentrons/api-client' -import type { RequestState } from '../../../redux/robot-api/types' +import type { RequestState } from '/app/redux/robot-api/types' import type { WifiScreenOption } from './' interface WifiConnectStatusProps { diff --git a/app/src/pages/ODD/ConnectViaWifi/__tests__/ConnectViaWifi.test.tsx b/app/src/pages/ODD/ConnectViaWifi/__tests__/ConnectViaWifi.test.tsx index 771a9264587..52c0e3c95dd 100644 --- a/app/src/pages/ODD/ConnectViaWifi/__tests__/ConnectViaWifi.test.tsx +++ b/app/src/pages/ODD/ConnectViaWifi/__tests__/ConnectViaWifi.test.tsx @@ -3,18 +3,18 @@ import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import * as RobotApi from '../../../../redux/robot-api' -import * as Fixtures from '../../../../redux/networking/__fixtures__' -import { useWifiList } from '../../../../resources/networking/hooks' -import * as Networking from '../../../../redux/networking' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import * as RobotApi from '/app/redux/robot-api' +import * as Fixtures from '/app/redux/networking/__fixtures__' +import { useWifiList } from '/app/resources/networking/hooks' +import * as Networking from '/app/redux/networking' import { ConnectViaWifi } from '../' -vi.mock('../../../../redux/discovery') -vi.mock('../../../../resources/networking/hooks') -vi.mock('../../../../redux/networking/selectors') -vi.mock('../../../../redux/robot-api/selectors') +vi.mock('/app/redux/discovery') +vi.mock('/app/resources/networking/hooks') +vi.mock('/app/redux/networking/selectors') +vi.mock('/app/redux/robot-api/selectors') const mockWifiList = [ { ...Fixtures.mockWifiNetwork, ssid: 'foo', active: true }, diff --git a/app/src/pages/ODD/ConnectViaWifi/index.tsx b/app/src/pages/ODD/ConnectViaWifi/index.tsx index 2207b17e386..df153941a3b 100644 --- a/app/src/pages/ODD/ConnectViaWifi/index.tsx +++ b/app/src/pages/ODD/ConnectViaWifi/index.tsx @@ -4,19 +4,19 @@ import last from 'lodash/last' import { Flex, DIRECTION_COLUMN, SPACING } from '@opentrons/components' -import { StepMeter } from '../../../atoms/StepMeter' -import { DisplayWifiList } from '../../../organisms/ODD/NetworkSettings' -import * as Networking from '../../../redux/networking' -import { getLocalRobot } from '../../../redux/discovery' -import * as RobotApi from '../../../redux/robot-api' -import { useWifiList } from '../../../resources/networking/hooks' +import { StepMeter } from '/app/atoms/StepMeter' +import { DisplayWifiList } from '/app/organisms/ODD/NetworkSettings' +import * as Networking from '/app/redux/networking' +import { getLocalRobot } from '/app/redux/discovery' +import * as RobotApi from '/app/redux/robot-api' +import { useWifiList } from '/app/resources/networking/hooks' import { JoinOtherNetwork } from './JoinOtherNetwork' import { SelectAuthenticationType } from './SelectAuthenticationType' import { SetWifiCred } from './SetWifiCred' import { WifiConnectStatus } from './WifiConnectStatus' import type { WifiSecurityType } from '@opentrons/api-client' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' const WIFI_LIST_POLL_MS = 5000 export type WifiScreenOption = diff --git a/app/src/pages/ODD/DeckConfiguration/__tests__/DeckConfiguration.test.tsx b/app/src/pages/ODD/DeckConfiguration/__tests__/DeckConfiguration.test.tsx index 4fd7159c028..9715b60b09a 100644 --- a/app/src/pages/ODD/DeckConfiguration/__tests__/DeckConfiguration.test.tsx +++ b/app/src/pages/ODD/DeckConfiguration/__tests__/DeckConfiguration.test.tsx @@ -4,18 +4,18 @@ import { vi, it, describe, expect, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import { DeckConfigurator } from '@opentrons/components' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useUpdateDeckConfigurationMutation } from '@opentrons/react-api-client' import { TRASH_BIN_ADAPTER_FIXTURE } from '@opentrons/shared-data' -import { i18n } from '../../../../i18n' -import { DeckFixtureSetupInstructionsModal } from '../../../../organisms/DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal' +import { i18n } from '/app/i18n' +import { DeckFixtureSetupInstructionsModal } from '/app/organisms/DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal' import { DeckConfigurationEditor } from '..' import { useNotifyDeckConfigurationQuery, useDeckConfigurationEditingTools, -} from '../../../../resources/deck_configuration' +} from '/app/resources/deck_configuration' import type { UseQueryResult } from 'react-query' import type { DeckConfiguration } from '@opentrons/shared-data' @@ -48,12 +48,12 @@ const mockDeckConfig = [ vi.mock('@opentrons/react-api-client') vi.mock( - '../../../../organisms/DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal' + '/app/organisms/DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal' ) vi.mock( - '../../../../organisms/DeviceDetailsDeckConfiguration/DeckConfigurationDiscardChangesModal' + '/app/organisms/DeviceDetailsDeckConfiguration/DeckConfigurationDiscardChangesModal' ) -vi.mock('../../../../resources/deck_configuration') +vi.mock('/app/resources/deck_configuration') const render = () => { return renderWithProviders( diff --git a/app/src/pages/ODD/DeckConfiguration/index.tsx b/app/src/pages/ODD/DeckConfiguration/index.tsx index ebb836dd750..e759572daf7 100644 --- a/app/src/pages/ODD/DeckConfiguration/index.tsx +++ b/app/src/pages/ODD/DeckConfiguration/index.tsx @@ -11,16 +11,16 @@ import { JUSTIFY_SPACE_AROUND, } from '@opentrons/components' -import { ChildNavigation } from '../../../organisms/ChildNavigation' -import { DeckFixtureSetupInstructionsModal } from '../../../organisms/DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal' -import { DeckConfigurationDiscardChangesModal } from '../../../organisms/DeviceDetailsDeckConfiguration/DeckConfigurationDiscardChangesModal' +import { ChildNavigation } from '/app/organisms/ChildNavigation' +import { DeckFixtureSetupInstructionsModal } from '/app/organisms/DeviceDetailsDeckConfiguration/DeckFixtureSetupInstructionsModal' +import { DeckConfigurationDiscardChangesModal } from '/app/organisms/DeviceDetailsDeckConfiguration/DeckConfigurationDiscardChangesModal' import { getTopPortalEl } from '../../../App/portal' import { useDeckConfigurationEditingTools, useNotifyDeckConfigurationQuery, -} from '../../../resources/deck_configuration' +} from '/app/resources/deck_configuration' -import type { SmallButton } from '../../../atoms/buttons' +import type { SmallButton } from '/app/atoms/buttons' export function DeckConfigurationEditor(): JSX.Element { const { t, i18n } = useTranslation([ diff --git a/app/src/pages/ODD/EmergencyStop/__tests__/EmergencyStop.test.tsx b/app/src/pages/ODD/EmergencyStop/__tests__/EmergencyStop.test.tsx index 9914995a321..2bfff093233 100644 --- a/app/src/pages/ODD/EmergencyStop/__tests__/EmergencyStop.test.tsx +++ b/app/src/pages/ODD/EmergencyStop/__tests__/EmergencyStop.test.tsx @@ -3,9 +3,9 @@ import { vi, it, describe, expect, beforeEach } from 'vitest' import { useEstopQuery } from '@opentrons/react-api-client' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { EmergencyStop } from '..' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/pages/ODD/EmergencyStop/index.tsx b/app/src/pages/ODD/EmergencyStop/index.tsx index c94c8e112eb..92806b6adef 100644 --- a/app/src/pages/ODD/EmergencyStop/index.tsx +++ b/app/src/pages/ODD/EmergencyStop/index.tsx @@ -16,10 +16,10 @@ import { } from '@opentrons/components' import { useEstopQuery } from '@opentrons/react-api-client' -import { MediumButton } from '../../../atoms/buttons' -import { StepMeter } from '../../../atoms/StepMeter' +import { MediumButton } from '/app/atoms/buttons' +import { StepMeter } from '/app/atoms/StepMeter' -import estopImg from '../../../assets/images/on-device-display/install_e_stop.png' +import estopImg from '/app/assets/images/on-device-display/install_e_stop.png' const ESTOP_STATUS_REFETCH_INTERVAL_MS = 10000 diff --git a/app/src/pages/ODD/InitialLoadingScreen/__tests__/InitialLoadingScreen.test.tsx b/app/src/pages/ODD/InitialLoadingScreen/__tests__/InitialLoadingScreen.test.tsx index 2c5ea7382e0..114b09ebb3f 100644 --- a/app/src/pages/ODD/InitialLoadingScreen/__tests__/InitialLoadingScreen.test.tsx +++ b/app/src/pages/ODD/InitialLoadingScreen/__tests__/InitialLoadingScreen.test.tsx @@ -4,9 +4,9 @@ import { screen } from '@testing-library/react' import { useRobotSettingsQuery } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { getIsShellReady } from '../../../../redux/shell' +import { getIsShellReady } from '/app/redux/shell' import { InitialLoadingScreen } from '..' @@ -14,8 +14,8 @@ import type { UseQueryResult } from 'react-query' import type { RobotSettingsResponse } from '@opentrons/api-client' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../redux/config') -vi.mock('../../../../redux/shell') +vi.mock('/app/redux/config') +vi.mock('/app/redux/shell') const render = () => { return renderWithProviders() diff --git a/app/src/pages/ODD/InitialLoadingScreen/index.tsx b/app/src/pages/ODD/InitialLoadingScreen/index.tsx index 4d4ef1d5503..9bbda2e6493 100644 --- a/app/src/pages/ODD/InitialLoadingScreen/index.tsx +++ b/app/src/pages/ODD/InitialLoadingScreen/index.tsx @@ -10,7 +10,7 @@ import { SPACING, } from '@opentrons/components' import { useRobotSettingsQuery } from '@opentrons/react-api-client' -import { getIsShellReady } from '../../../redux/shell' +import { getIsShellReady } from '/app/redux/shell' export function InitialLoadingScreen({ children, diff --git a/app/src/pages/ODD/InstrumentDetail/InstrumentDetailOverflowMenu.tsx b/app/src/pages/ODD/InstrumentDetail/InstrumentDetailOverflowMenu.tsx index f2572335241..5692653566a 100644 --- a/app/src/pages/ODD/InstrumentDetail/InstrumentDetailOverflowMenu.tsx +++ b/app/src/pages/ODD/InstrumentDetail/InstrumentDetailOverflowMenu.tsx @@ -20,14 +20,14 @@ import { } from '@opentrons/shared-data' import { ApiHostProvider } from '@opentrons/react-api-client' -import { PipetteWizardFlows } from '../../../organisms/PipetteWizardFlows' -import { GripperWizardFlows } from '../../../organisms/GripperWizardFlows' +import { PipetteWizardFlows } from '/app/organisms/PipetteWizardFlows' +import { GripperWizardFlows } from '/app/organisms/GripperWizardFlows' import { DropTipWizardFlows, useDropTipWizardFlows, -} from '../../../organisms/DropTipWizardFlows' -import { FLOWS } from '../../../organisms/PipetteWizardFlows/constants' -import { GRIPPER_FLOW_TYPES } from '../../../organisms/GripperWizardFlows/constants' +} from '/app/organisms/DropTipWizardFlows' +import { FLOWS } from '/app/organisms/PipetteWizardFlows/constants' +import { GRIPPER_FLOW_TYPES } from '/app/organisms/GripperWizardFlows/constants' import type { PipetteData, diff --git a/app/src/pages/ODD/InstrumentDetail/__tests__/InstrumentDetail.test.tsx b/app/src/pages/ODD/InstrumentDetail/__tests__/InstrumentDetail.test.tsx index 7baada93f77..1bfc5e53c00 100644 --- a/app/src/pages/ODD/InstrumentDetail/__tests__/InstrumentDetail.test.tsx +++ b/app/src/pages/ODD/InstrumentDetail/__tests__/InstrumentDetail.test.tsx @@ -4,15 +4,15 @@ import { screen } from '@testing-library/react' import { useParams } from 'react-router-dom' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { InstrumentDetail } from '..' import { useGripperDisplayName, usePipetteModelSpecs, -} from '../../../../resources/instruments/hooks' -import { useIsOEMMode } from '../../../../resources/robot-settings/hooks' +} from '/app/resources/instruments/hooks' +import { useIsOEMMode } from '/app/resources/robot-settings/hooks' import type { Instruments } from '@opentrons/api-client' @@ -21,8 +21,8 @@ vi.mock('react-router-dom', () => ({ useParams: vi.fn(), useNavigate: vi.fn(), })) -vi.mock('../../../../resources/instruments/hooks') -vi.mock('../../../../resources/robot-settings/hooks') +vi.mock('/app/resources/instruments/hooks') +vi.mock('/app/resources/robot-settings/hooks') const render = () => { return renderWithProviders(, { diff --git a/app/src/pages/ODD/InstrumentDetail/__tests__/InstrumentDetailOverflowMenu.test.tsx b/app/src/pages/ODD/InstrumentDetail/__tests__/InstrumentDetailOverflowMenu.test.tsx index a60ec5e2f4e..385e042bbb5 100644 --- a/app/src/pages/ODD/InstrumentDetail/__tests__/InstrumentDetailOverflowMenu.test.tsx +++ b/app/src/pages/ODD/InstrumentDetail/__tests__/InstrumentDetailOverflowMenu.test.tsx @@ -3,15 +3,15 @@ import NiceModal from '@ebay/nice-modal-react' import { fireEvent, screen } from '@testing-library/react' import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { getPipetteModelSpecs } from '@opentrons/shared-data' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { handleInstrumentDetailOverflowMenu } from '../InstrumentDetailOverflowMenu' -import { useNotifyCurrentMaintenanceRun } from '../../../../resources/maintenance_runs' -import { PipetteWizardFlows } from '../../../../organisms/PipetteWizardFlows' -import { GripperWizardFlows } from '../../../../organisms/GripperWizardFlows' -import { useDropTipWizardFlows } from '../../../../organisms/DropTipWizardFlows' +import { useNotifyCurrentMaintenanceRun } from '/app/resources/maintenance_runs' +import { PipetteWizardFlows } from '/app/organisms/PipetteWizardFlows' +import { GripperWizardFlows } from '/app/organisms/GripperWizardFlows' +import { useDropTipWizardFlows } from '/app/organisms/DropTipWizardFlows' import type { Mock } from 'vitest' import type { @@ -28,10 +28,10 @@ vi.mock('@opentrons/shared-data', async importOriginal => { getPipetteModelSpecs: vi.fn(), } }) -vi.mock('../../../../resources/maintenance_runs') -vi.mock('../../../../organisms/PipetteWizardFlows') -vi.mock('../../../../organisms/GripperWizardFlows') -vi.mock('../../../../organisms/DropTipWizardFlows') +vi.mock('/app/resources/maintenance_runs') +vi.mock('/app/organisms/PipetteWizardFlows') +vi.mock('/app/organisms/GripperWizardFlows') +vi.mock('/app/organisms/DropTipWizardFlows') const MOCK_PIPETTE = { mount: 'left', diff --git a/app/src/pages/ODD/InstrumentDetail/index.tsx b/app/src/pages/ODD/InstrumentDetail/index.tsx index d1f8b95ad79..4aaea61128b 100644 --- a/app/src/pages/ODD/InstrumentDetail/index.tsx +++ b/app/src/pages/ODD/InstrumentDetail/index.tsx @@ -15,14 +15,14 @@ import { SPACING, } from '@opentrons/components' -import { BackButton } from '../../../atoms/buttons/BackButton' -import { ODD_FOCUS_VISIBLE } from '../../../atoms/buttons/constants' -import { InstrumentInfo } from '../../../organisms/InstrumentInfo' +import { BackButton } from '/app/atoms/buttons/BackButton' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' +import { InstrumentInfo } from '/app/organisms/InstrumentInfo' import { handleInstrumentDetailOverflowMenu } from './InstrumentDetailOverflowMenu' import { useGripperDisplayName, usePipetteModelSpecs, -} from '../../../resources/instruments/hooks' +} from '/app/resources/instruments/hooks' import type { GripperData, PipetteData } from '@opentrons/api-client' import type { GripperModel, PipetteModel } from '@opentrons/shared-data' diff --git a/app/src/pages/ODD/InstrumentsDashboard/__tests__/InstrumentsDashboard.test.tsx b/app/src/pages/ODD/InstrumentsDashboard/__tests__/InstrumentsDashboard.test.tsx index b544f4a9e60..2b97dc274f5 100644 --- a/app/src/pages/ODD/InstrumentsDashboard/__tests__/InstrumentsDashboard.test.tsx +++ b/app/src/pages/ODD/InstrumentsDashboard/__tests__/InstrumentsDashboard.test.tsx @@ -1,15 +1,15 @@ import * as React from 'react' import { Route, MemoryRouter, Routes } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { vi, describe, it, afterEach, beforeEach, expect } from 'vitest' import { useInstrumentsQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' -import { ChoosePipette } from '../../../../organisms/PipetteWizardFlows/ChoosePipette' -import { GripperWizardFlows } from '../../../../organisms/GripperWizardFlows' +import { i18n } from '/app/i18n' +import { ChoosePipette } from '/app/organisms/PipetteWizardFlows/ChoosePipette' +import { GripperWizardFlows } from '/app/organisms/GripperWizardFlows' import { InstrumentsDashboard } from '..' -import { formatTimeWithUtcLabel } from '../../../../resources/runs' +import { formatTimeWithUtcLabel } from '/app/resources/runs' import { InstrumentDetail } from '../../InstrumentDetail' import type * as ReactApiClient from '@opentrons/react-api-client' @@ -88,10 +88,10 @@ vi.mock('@opentrons/react-api-client', async importOriginal => { ), } }) -vi.mock('../../../../organisms/GripperWizardFlows') -vi.mock('../../../../organisms/PipetteWizardFlows') -vi.mock('../../../../organisms/PipetteWizardFlows/ChoosePipette') -vi.mock('../../../../organisms/Navigation') +vi.mock('/app/organisms/GripperWizardFlows') +vi.mock('/app/organisms/PipetteWizardFlows') +vi.mock('/app/organisms/PipetteWizardFlows/ChoosePipette') +vi.mock('/app/organisms/Navigation') const render = (path = '/') => { return renderWithProviders( diff --git a/app/src/pages/ODD/InstrumentsDashboard/__tests__/PipetteRecalibrationODDWarning.test.tsx b/app/src/pages/ODD/InstrumentsDashboard/__tests__/PipetteRecalibrationODDWarning.test.tsx index c70156cec5f..0286a6571df 100644 --- a/app/src/pages/ODD/InstrumentsDashboard/__tests__/PipetteRecalibrationODDWarning.test.tsx +++ b/app/src/pages/ODD/InstrumentsDashboard/__tests__/PipetteRecalibrationODDWarning.test.tsx @@ -2,8 +2,8 @@ import * as React from 'react' import { screen } from '@testing-library/react' import { describe, it } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { PipetteRecalibrationODDWarning } from '../PipetteRecalibrationODDWarning' diff --git a/app/src/pages/ODD/InstrumentsDashboard/index.tsx b/app/src/pages/ODD/InstrumentsDashboard/index.tsx index 8595777f4b3..ea50825d359 100644 --- a/app/src/pages/ODD/InstrumentsDashboard/index.tsx +++ b/app/src/pages/ODD/InstrumentsDashboard/index.tsx @@ -1,11 +1,11 @@ import * as React from 'react' import { useInstrumentsQuery } from '@opentrons/react-api-client' import { DIRECTION_COLUMN, Flex, SPACING } from '@opentrons/components' -import { PipetteWizardFlows } from '../../../organisms/PipetteWizardFlows' -import { Navigation } from '../../../organisms/Navigation' -import { AttachedInstrumentMountItem } from '../../../organisms/InstrumentMountItem' -import { GripperWizardFlows } from '../../../organisms/GripperWizardFlows' -import { getShowPipetteCalibrationWarning } from '../../../organisms/Devices/utils' +import { PipetteWizardFlows } from '/app/organisms/PipetteWizardFlows' +import { Navigation } from '/app/organisms/Navigation' +import { AttachedInstrumentMountItem } from '/app/organisms/InstrumentMountItem' +import { GripperWizardFlows } from '/app/organisms/GripperWizardFlows' +import { getShowPipetteCalibrationWarning } from '/app/organisms/Devices/utils' import { PipetteRecalibrationODDWarning } from './PipetteRecalibrationODDWarning' import type { GripperData, PipetteData } from '@opentrons/api-client' diff --git a/app/src/pages/ODD/NameRobot/__tests__/NameRobot.test.tsx b/app/src/pages/ODD/NameRobot/__tests__/NameRobot.test.tsx index 0605da1b768..48657c9001d 100644 --- a/app/src/pages/ODD/NameRobot/__tests__/NameRobot.test.tsx +++ b/app/src/pages/ODD/NameRobot/__tests__/NameRobot.test.tsx @@ -3,28 +3,28 @@ import { vi, it, describe, expect, beforeEach } from 'vitest' import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen, waitFor } from '@testing-library/react' -import { i18n } from '../../../../i18n' -import { renderWithProviders } from '../../../../__testing-utils__' -import { useTrackEvent } from '../../../../redux/analytics' +import { i18n } from '/app/i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { useTrackEvent } from '/app/redux/analytics' import { getConnectableRobots, getReachableRobots, getUnreachableRobots, -} from '../../../../redux/discovery' -import { useIsUnboxingFlowOngoing } from '../../../../organisms/ODD/hooks' +} from '/app/redux/discovery' +import { useIsUnboxingFlowOngoing } from '/app/organisms/ODD/hooks' import { mockConnectableRobot, mockReachableRobot, mockUnreachableRobot, -} from '../../../../redux/discovery/__fixtures__' +} from '/app/redux/discovery/__fixtures__' import { NameRobot } from '..' import type { NavigateFunction } from 'react-router-dom' -vi.mock('../../../../redux/discovery/selectors') -vi.mock('../../../../redux/config') -vi.mock('../../../../redux/analytics') -vi.mock('../../../../organisms/ODD/hooks') +vi.mock('/app/redux/discovery/selectors') +vi.mock('/app/redux/config') +vi.mock('/app/redux/analytics') +vi.mock('/app/organisms/ODD/hooks') const mockNavigate = vi.fn() diff --git a/app/src/pages/ODD/NameRobot/index.tsx b/app/src/pages/ODD/NameRobot/index.tsx index a2ba5a918c0..0fefc554e7a 100644 --- a/app/src/pages/ODD/NameRobot/index.tsx +++ b/app/src/pages/ODD/NameRobot/index.tsx @@ -30,17 +30,17 @@ import { getReachableRobots, getUnreachableRobots, getLocalRobot, -} from '../../../redux/discovery' -import { useTrackEvent, ANALYTICS_RENAME_ROBOT } from '../../../redux/analytics' -import { AlphanumericKeyboard } from '../../../atoms/SoftwareKeyboard' -import { SmallButton } from '../../../atoms/buttons' -import { StepMeter } from '../../../atoms/StepMeter' -import { useIsUnboxingFlowOngoing } from '../../../organisms/ODD/hooks' -import { ConfirmRobotName } from '../../../organisms/ODD/NameRobot/ConfirmRobotName' +} from '/app/redux/discovery' +import { useTrackEvent, ANALYTICS_RENAME_ROBOT } from '/app/redux/analytics' +import { AlphanumericKeyboard } from '/app/atoms/SoftwareKeyboard' +import { SmallButton } from '/app/atoms/buttons' +import { StepMeter } from '/app/atoms/StepMeter' +import { useIsUnboxingFlowOngoing } from '/app/organisms/ODD/hooks' +import { ConfirmRobotName } from '/app/organisms/ODD/NameRobot/ConfirmRobotName' import type { FieldError, Resolver } from 'react-hook-form' import type { UpdatedRobotName } from '@opentrons/api-client' -import type { State, Dispatch } from '../../../redux/types' +import type { State, Dispatch } from '/app/redux/types' interface FormValues { newRobotName: string diff --git a/app/src/pages/ODD/NetworkSetupMenu/__tests__/NetworkSetupMenu.test.tsx b/app/src/pages/ODD/NetworkSetupMenu/__tests__/NetworkSetupMenu.test.tsx index 90bbf011997..f6bae4e30f6 100644 --- a/app/src/pages/ODD/NetworkSetupMenu/__tests__/NetworkSetupMenu.test.tsx +++ b/app/src/pages/ODD/NetworkSetupMenu/__tests__/NetworkSetupMenu.test.tsx @@ -2,9 +2,9 @@ import * as React from 'react' import { vi, it, describe, expect } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import { MemoryRouter } from 'react-router-dom' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { NetworkSetupMenu } from '..' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/pages/ODD/NetworkSetupMenu/index.tsx b/app/src/pages/ODD/NetworkSetupMenu/index.tsx index f2b6a0caadd..a453dc5e944 100644 --- a/app/src/pages/ODD/NetworkSetupMenu/index.tsx +++ b/app/src/pages/ODD/NetworkSetupMenu/index.tsx @@ -13,8 +13,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { StepMeter } from '../../../atoms/StepMeter' -import { CardButton } from '../../../molecules/CardButton' +import { StepMeter } from '/app/atoms/StepMeter' +import { CardButton } from '/app/molecules/CardButton' import type { IconName } from '@opentrons/components' diff --git a/app/src/pages/ODD/ProtocolDashboard/DeleteProtocolConfirmationModal.tsx b/app/src/pages/ODD/ProtocolDashboard/DeleteProtocolConfirmationModal.tsx index b09b9fcc394..8cd2cca8468 100644 --- a/app/src/pages/ODD/ProtocolDashboard/DeleteProtocolConfirmationModal.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/DeleteProtocolConfirmationModal.tsx @@ -17,11 +17,11 @@ import { } from '@opentrons/components' import { useHost, useProtocolQuery } from '@opentrons/react-api-client' -import { SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' -import { useToaster } from '../../../organisms/ToasterOven' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { useToaster } from '/app/organisms/ToasterOven' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface DeleteProtocolConfirmationModalProps { protocolId: string diff --git a/app/src/pages/ODD/ProtocolDashboard/LongPressModal.tsx b/app/src/pages/ODD/ProtocolDashboard/LongPressModal.tsx index 71a6ad16914..fe6315ebf5e 100644 --- a/app/src/pages/ODD/ProtocolDashboard/LongPressModal.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/LongPressModal.tsx @@ -13,12 +13,12 @@ import { import { useCreateRunMutation } from '@opentrons/react-api-client' import { MAXIMUM_PINNED_PROTOCOLS } from '../../../App/constants' -import { SmallModalChildren } from '../../../molecules/OddModal' -import { useToaster } from '../../../organisms/ToasterOven' -import { getPinnedProtocolIds, updateConfigValue } from '../../../redux/config' +import { SmallModalChildren } from '/app/molecules/OddModal' +import { useToaster } from '/app/organisms/ToasterOven' +import { getPinnedProtocolIds, updateConfigValue } from '/app/redux/config' import type { UseLongPressResult } from '@opentrons/components' -import type { Dispatch } from '../../../redux/types' +import type { Dispatch } from '/app/redux/types' interface LongPressModalProps { longpress: UseLongPressResult diff --git a/app/src/pages/ODD/ProtocolDashboard/NoProtocols.tsx b/app/src/pages/ODD/ProtocolDashboard/NoProtocols.tsx index 770ecc7c78c..da3d9af98e3 100644 --- a/app/src/pages/ODD/ProtocolDashboard/NoProtocols.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/NoProtocols.tsx @@ -13,7 +13,7 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import imgSrc from '../../../assets/images/on-device-display/empty_protocol_dashboard.png' +import imgSrc from '/app/assets/images/on-device-display/empty_protocol_dashboard.png' export function NoProtocols(): JSX.Element { const { t } = useTranslation(['protocol_info', 'branded']) diff --git a/app/src/pages/ODD/ProtocolDashboard/PinnedProtocol.tsx b/app/src/pages/ODD/ProtocolDashboard/PinnedProtocol.tsx index 8a1826ed62f..226000381ad 100644 --- a/app/src/pages/ODD/ProtocolDashboard/PinnedProtocol.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/PinnedProtocol.tsx @@ -21,7 +21,7 @@ import { } from '@opentrons/components' import { LongPressModal } from './LongPressModal' -import { formatTimeWithUtcLabel } from '../../../resources/runs' +import { formatTimeWithUtcLabel } from '/app/resources/runs' import type { UseLongPressResult } from '@opentrons/components' import type { ProtocolResource } from '@opentrons/shared-data' diff --git a/app/src/pages/ODD/ProtocolDashboard/PinnedProtocolCarousel.tsx b/app/src/pages/ODD/ProtocolDashboard/PinnedProtocolCarousel.tsx index 9a631c65210..d1afc219d0c 100644 --- a/app/src/pages/ODD/ProtocolDashboard/PinnedProtocolCarousel.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/PinnedProtocolCarousel.tsx @@ -6,7 +6,7 @@ import { SPACING, } from '@opentrons/components' -import { useNotifyAllRunsQuery } from '../../../resources/runs' +import { useNotifyAllRunsQuery } from '/app/resources/runs' import { PinnedProtocol } from './PinnedProtocol' import type { ProtocolResource } from '@opentrons/shared-data' diff --git a/app/src/pages/ODD/ProtocolDashboard/ProtocolCard.tsx b/app/src/pages/ODD/ProtocolDashboard/ProtocolCard.tsx index dc280db4cc9..4be3c6f0e69 100644 --- a/app/src/pages/ODD/ProtocolDashboard/ProtocolCard.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/ProtocolCard.tsx @@ -30,14 +30,14 @@ import { } from '@opentrons/react-api-client' import { deleteProtocol, deleteRun, getProtocol } from '@opentrons/api-client' -import { SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' import { LongPressModal } from './LongPressModal' -import { formatTimeWithUtcLabel } from '../../../resources/runs' +import { formatTimeWithUtcLabel } from '/app/resources/runs' import type { UseLongPressResult } from '@opentrons/components' import type { ProtocolResource } from '@opentrons/shared-data' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' const REFETCH_INTERVAL = 5000 diff --git a/app/src/pages/ODD/ProtocolDashboard/__tests__/DeleteProtocolConfirmationModal.test.tsx b/app/src/pages/ODD/ProtocolDashboard/__tests__/DeleteProtocolConfirmationModal.test.tsx index 987b328a998..34edf30a768 100644 --- a/app/src/pages/ODD/ProtocolDashboard/__tests__/DeleteProtocolConfirmationModal.test.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/__tests__/DeleteProtocolConfirmationModal.test.tsx @@ -4,17 +4,17 @@ import { when } from 'vitest-when' import { act, fireEvent, screen } from '@testing-library/react' import { getProtocol, deleteProtocol, deleteRun } from '@opentrons/api-client' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useHost, useProtocolQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' -import { useToaster } from '../../../../organisms/ToasterOven' +import { i18n } from '/app/i18n' +import { useToaster } from '/app/organisms/ToasterOven' import { DeleteProtocolConfirmationModal } from '../DeleteProtocolConfirmationModal' import type { HostConfig } from '@opentrons/api-client' vi.mock('@opentrons/api-client') vi.mock('@opentrons/react-api-client') -vi.mock('../../../../organisms/ToasterOven') +vi.mock('/app/organisms/ToasterOven') const mockFunc = vi.fn() const PROTOCOL_ID = 'mockProtocolId' diff --git a/app/src/pages/ODD/ProtocolDashboard/__tests__/LongPressModal.test.tsx b/app/src/pages/ODD/ProtocolDashboard/__tests__/LongPressModal.test.tsx index 3b5f0aaf912..5bb79efbba4 100644 --- a/app/src/pages/ODD/ProtocolDashboard/__tests__/LongPressModal.test.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/__tests__/LongPressModal.test.tsx @@ -7,8 +7,8 @@ import { fireEvent, renderHook, screen } from '@testing-library/react' import { useLongPress } from '@opentrons/components' import { useCreateRunMutation, useHost } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { LongPressModal } from '../LongPressModal' import type { HostConfig } from '@opentrons/api-client' diff --git a/app/src/pages/ODD/ProtocolDashboard/__tests__/NoProtocols.test.tsx b/app/src/pages/ODD/ProtocolDashboard/__tests__/NoProtocols.test.tsx index 0f4a8fbdd57..d8a31bbbddb 100644 --- a/app/src/pages/ODD/ProtocolDashboard/__tests__/NoProtocols.test.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/__tests__/NoProtocols.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { describe, it, expect } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { NoProtocols } from '../NoProtocols' import { screen } from '@testing-library/react' diff --git a/app/src/pages/ODD/ProtocolDashboard/__tests__/PinnedProtocol.test.tsx b/app/src/pages/ODD/ProtocolDashboard/__tests__/PinnedProtocol.test.tsx index fd363bf1f77..04bbb95aaf2 100644 --- a/app/src/pages/ODD/ProtocolDashboard/__tests__/PinnedProtocol.test.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/__tests__/PinnedProtocol.test.tsx @@ -5,9 +5,9 @@ import { MemoryRouter } from 'react-router-dom' import { COLORS, TYPOGRAPHY } from '@opentrons/components' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { useFeatureFlag } from '../../../../redux/config' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useFeatureFlag } from '/app/redux/config' import { PinnedProtocol } from '../PinnedProtocol' import type { Chip } from '@opentrons/components' @@ -30,7 +30,7 @@ vi.mock('@opentrons/components', async importOriginal => { Chip: () =>
mock Chip
, } }) -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') const mockProtocol: ProtocolResource = { id: 'mockProtocol1', diff --git a/app/src/pages/ODD/ProtocolDashboard/__tests__/ProtocolCard.test.tsx b/app/src/pages/ODD/ProtocolDashboard/__tests__/ProtocolCard.test.tsx index 2c783adcd37..bb829a3d9d9 100644 --- a/app/src/pages/ODD/ProtocolDashboard/__tests__/ProtocolCard.test.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/__tests__/ProtocolCard.test.tsx @@ -9,9 +9,9 @@ import { useProtocolAnalysisAsDocumentQuery, } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { useFeatureFlag } from '../../../../redux/config' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useFeatureFlag } from '/app/redux/config' import { ProtocolCard } from '../ProtocolCard' import type { NavigateFunction } from 'react-router-dom' @@ -32,7 +32,7 @@ vi.mock('react-router-dom', async importOriginal => { } }) vi.mock('@opentrons/react-api-client') -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('@opentrons/components', async importOriginal => { const actual = await importOriginal() return { diff --git a/app/src/pages/ODD/ProtocolDashboard/index.tsx b/app/src/pages/ODD/ProtocolDashboard/index.tsx index fa7e7aac10a..238371e1378 100644 --- a/app/src/pages/ODD/ProtocolDashboard/index.tsx +++ b/app/src/pages/ODD/ProtocolDashboard/index.tsx @@ -16,22 +16,22 @@ import { } from '@opentrons/components' import { useAllProtocolsQuery } from '@opentrons/react-api-client' -import { SmallButton } from '../../../atoms/buttons' -import { Navigation } from '../../../organisms/Navigation' +import { SmallButton } from '/app/atoms/buttons' +import { Navigation } from '/app/organisms/Navigation' import { getPinnedProtocolIds, getProtocolsOnDeviceSortKey, updateConfigValue, -} from '../../../redux/config' +} from '/app/redux/config' import { PinnedProtocolCarousel } from './PinnedProtocolCarousel' import { sortProtocols } from './utils' import { ProtocolCard } from './ProtocolCard' import { NoProtocols } from './NoProtocols' import { DeleteProtocolConfirmationModal } from './DeleteProtocolConfirmationModal' -import { useNotifyAllRunsQuery } from '../../../resources/runs' +import { useNotifyAllRunsQuery } from '/app/resources/runs' -import type { Dispatch } from '../../../redux/types' -import type { ProtocolsOnDeviceSortKey } from '../../../redux/config/types' +import type { Dispatch } from '/app/redux/types' +import type { ProtocolsOnDeviceSortKey } from '/app/redux/config/types' import type { ProtocolResource } from '@opentrons/shared-data' export function ProtocolDashboard(): JSX.Element { diff --git a/app/src/pages/ODD/ProtocolDashboard/utils.ts b/app/src/pages/ODD/ProtocolDashboard/utils.ts index cd8f3b9a2d0..2486aa99d3a 100644 --- a/app/src/pages/ODD/ProtocolDashboard/utils.ts +++ b/app/src/pages/ODD/ProtocolDashboard/utils.ts @@ -1,6 +1,6 @@ import type { ProtocolResource } from '@opentrons/shared-data' import type { RunData } from '@opentrons/api-client' -import type { ProtocolsOnDeviceSortKey } from '../../../redux/config/types' +import type { ProtocolsOnDeviceSortKey } from '/app/redux/config/types' const DUMMY_FOR_NO_DATE_CASE = -8640000000000000 diff --git a/app/src/pages/ODD/ProtocolDetails/Deck.tsx b/app/src/pages/ODD/ProtocolDetails/Deck.tsx index 6dc1a5e95bf..81b39a63550 100644 --- a/app/src/pages/ODD/ProtocolDetails/Deck.tsx +++ b/app/src/pages/ODD/ProtocolDetails/Deck.tsx @@ -8,9 +8,9 @@ import { } from '@opentrons/react-api-client' import { getLabwareDefURI } from '@opentrons/shared-data' -import { LabwareStackModal } from '../../../organisms/Devices/ProtocolRun/SetupLabware/LabwareStackModal' -import { SingleLabwareModal } from '../../../organisms/ODD/ProtocolSetup/ProtocolSetupLabware/SingleLabwareModal' -import { getLabwareSetupItemGroups } from '../../../transformations/commands' +import { LabwareStackModal } from '/app/organisms/Devices/ProtocolRun/SetupLabware/LabwareStackModal' +import { SingleLabwareModal } from '/app/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/SingleLabwareModal' +import { getLabwareSetupItemGroups } from '/app/transformations/commands' import type { LabwareDefinition2, diff --git a/app/src/pages/ODD/ProtocolDetails/Hardware.tsx b/app/src/pages/ODD/ProtocolDetails/Hardware.tsx index 66adc22594c..16d11b7601a 100644 --- a/app/src/pages/ODD/ProtocolDetails/Hardware.tsx +++ b/app/src/pages/ODD/ProtocolDetails/Hardware.tsx @@ -28,15 +28,15 @@ import { import { useGripperDisplayName, usePipetteNameSpecs, -} from '../../../resources/instruments/hooks' -import { useRequiredProtocolHardware } from '../../../pages/Desktop/Protocols/hooks' +} from '/app/resources/instruments/hooks' +import { useRequiredProtocolHardware } from '/app/pages/Desktop/Protocols/hooks' import { EmptySection } from './EmptySection' import type { TFunction } from 'i18next' import type { ProtocolHardware, ProtocolPipette, -} from '../../../transformations/commands' +} from '/app/transformations/commands' const Table = styled('table')` ${TYPOGRAPHY.labelRegular} diff --git a/app/src/pages/ODD/ProtocolDetails/Labware.tsx b/app/src/pages/ODD/ProtocolDetails/Labware.tsx index 555d67e70a8..90e9ad6e823 100644 --- a/app/src/pages/ODD/ProtocolDetails/Labware.tsx +++ b/app/src/pages/ODD/ProtocolDetails/Labware.tsx @@ -15,7 +15,7 @@ import { } from '@opentrons/components' import { getLabwareDisplayName } from '@opentrons/shared-data' -import { useRequiredProtocolLabware } from '../../../pages/Desktop/Protocols/hooks' +import { useRequiredProtocolLabware } from '/app/pages/Desktop/Protocols/hooks' import { EmptySection } from './EmptySection' const Table = styled('table')` diff --git a/app/src/pages/ODD/ProtocolDetails/Parameters.tsx b/app/src/pages/ODD/ProtocolDetails/Parameters.tsx index 9d5b692e2ba..71120f320a3 100644 --- a/app/src/pages/ODD/ProtocolDetails/Parameters.tsx +++ b/app/src/pages/ODD/ProtocolDetails/Parameters.tsx @@ -16,8 +16,8 @@ import { TYPOGRAPHY, WRAP, } from '@opentrons/components' -import { useToaster } from '../../../organisms/ToasterOven' -import { useRunTimeParameters } from '../../../pages/Desktop/Protocols/hooks' +import { useToaster } from '/app/organisms/ToasterOven' +import { useRunTimeParameters } from '/app/pages/Desktop/Protocols/hooks' import { EmptySection } from './EmptySection' import type { RunTimeParameter } from '@opentrons/shared-data' diff --git a/app/src/pages/ODD/ProtocolDetails/__tests__/Deck.test.tsx b/app/src/pages/ODD/ProtocolDetails/__tests__/Deck.test.tsx index 01d4efaac48..72e226c93e1 100644 --- a/app/src/pages/ODD/ProtocolDetails/__tests__/Deck.test.tsx +++ b/app/src/pages/ODD/ProtocolDetails/__tests__/Deck.test.tsx @@ -3,13 +3,13 @@ import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { screen } from '@testing-library/react' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useProtocolAnalysisAsDocumentQuery, useProtocolQuery, } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { Deck } from '../Deck' import type { UseQueryResult } from 'react-query' diff --git a/app/src/pages/ODD/ProtocolDetails/__tests__/EmptySection.test.tsx b/app/src/pages/ODD/ProtocolDetails/__tests__/EmptySection.test.tsx index 970f45d1514..e188187de95 100644 --- a/app/src/pages/ODD/ProtocolDetails/__tests__/EmptySection.test.tsx +++ b/app/src/pages/ODD/ProtocolDetails/__tests__/EmptySection.test.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { it, describe } from 'vitest' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { EmptySection } from '../EmptySection' const render = (props: React.ComponentProps) => { diff --git a/app/src/pages/ODD/ProtocolDetails/__tests__/Hardware.test.tsx b/app/src/pages/ODD/ProtocolDetails/__tests__/Hardware.test.tsx index 969641ab1de..a7458f38611 100644 --- a/app/src/pages/ODD/ProtocolDetails/__tests__/Hardware.test.tsx +++ b/app/src/pages/ODD/ProtocolDetails/__tests__/Hardware.test.tsx @@ -7,13 +7,13 @@ import { WASTE_CHUTE_RIGHT_ADAPTER_NO_COVER_FIXTURE, WASTE_CHUTE_CUTOUT, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { useRequiredProtocolHardware } from '../../../../pages/Desktop/Protocols/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useRequiredProtocolHardware } from '/app/pages/Desktop/Protocols/hooks' import { Hardware } from '../Hardware' -vi.mock('../../../../pages/Desktop/Protocols/hooks') -vi.mock('../../../../redux/config') +vi.mock('/app/pages/Desktop/Protocols/hooks') +vi.mock('/app/redux/config') const MOCK_PROTOCOL_ID = 'mock_protocol_id' diff --git a/app/src/pages/ODD/ProtocolDetails/__tests__/Labware.test.tsx b/app/src/pages/ODD/ProtocolDetails/__tests__/Labware.test.tsx index d68aa0bcb56..98506a8d1e4 100644 --- a/app/src/pages/ODD/ProtocolDetails/__tests__/Labware.test.tsx +++ b/app/src/pages/ODD/ProtocolDetails/__tests__/Labware.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { vi, it, describe, beforeEach, afterEach } from 'vitest' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { useRequiredProtocolLabware } from '../../../../pages/Desktop/Protocols/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useRequiredProtocolLabware } from '/app/pages/Desktop/Protocols/hooks' import { Labware } from '../Labware' import { @@ -15,7 +15,7 @@ import { import type { LabwareDefinition2 } from '@opentrons/shared-data' import { screen } from '@testing-library/react' -vi.mock('../../../../pages/Desktop/Protocols/hooks') +vi.mock('/app/pages/Desktop/Protocols/hooks') const MOCK_PROTOCOL_ID = 'mock_protocol_id' diff --git a/app/src/pages/ODD/ProtocolDetails/__tests__/Liquids.test.tsx b/app/src/pages/ODD/ProtocolDetails/__tests__/Liquids.test.tsx index e75efad6803..bfdbd6d74c2 100644 --- a/app/src/pages/ODD/ProtocolDetails/__tests__/Liquids.test.tsx +++ b/app/src/pages/ODD/ProtocolDetails/__tests__/Liquids.test.tsx @@ -12,8 +12,8 @@ import { parseLiquidsInLoadOrder, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { Liquids } from '../Liquids' import type { UseQueryResult } from 'react-query' diff --git a/app/src/pages/ODD/ProtocolDetails/__tests__/Parameters.test.tsx b/app/src/pages/ODD/ProtocolDetails/__tests__/Parameters.test.tsx index 26460dd6904..eca000b7abb 100644 --- a/app/src/pages/ODD/ProtocolDetails/__tests__/Parameters.test.tsx +++ b/app/src/pages/ODD/ProtocolDetails/__tests__/Parameters.test.tsx @@ -2,15 +2,15 @@ import * as React from 'react' import { when } from 'vitest-when' import { it, describe, beforeEach, vi } from 'vitest' import { screen } from '@testing-library/react' -import { i18n } from '../../../../i18n' -import { useToaster } from '../../../../organisms/ToasterOven' -import { renderWithProviders } from '../../../../__testing-utils__' -import { useRunTimeParameters } from '../../../../pages/Desktop/Protocols/hooks' +import { i18n } from '/app/i18n' +import { useToaster } from '/app/organisms/ToasterOven' +import { renderWithProviders } from '/app/__testing-utils__' +import { useRunTimeParameters } from '/app/pages/Desktop/Protocols/hooks' import { Parameters } from '../Parameters' import { mockRunTimeParameterData } from '../fixtures' -vi.mock('../../../../organisms/ToasterOven') -vi.mock('../../../../pages/Desktop/Protocols/hooks') +vi.mock('/app/organisms/ToasterOven') +vi.mock('/app/pages/Desktop/Protocols/hooks') const render = (props: React.ComponentProps) => { return renderWithProviders(, { diff --git a/app/src/pages/ODD/ProtocolDetails/__tests__/ProtocolDetails.test.tsx b/app/src/pages/ODD/ProtocolDetails/__tests__/ProtocolDetails.test.tsx index 9f48408c6be..ebd7206e9ac 100644 --- a/app/src/pages/ODD/ProtocolDetails/__tests__/ProtocolDetails.test.tsx +++ b/app/src/pages/ODD/ProtocolDetails/__tests__/ProtocolDetails.test.tsx @@ -4,7 +4,7 @@ import { fireEvent, screen, waitFor } from '@testing-library/react' import { when } from 'vitest-when' import { Route, MemoryRouter, Routes } from 'react-router-dom' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { deleteProtocol, deleteRun, getProtocol } from '@opentrons/api-client' import { useCreateRunMutation, @@ -12,13 +12,13 @@ import { useProtocolQuery, useProtocolAnalysisAsDocumentQuery, } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' -import { useHardwareStatusText } from '../../../../organisms/ODD/RobotDashboard/hooks' -import { useOffsetCandidatesForAnalysis } from '../../../../organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' -import { useRunTimeParameters } from '../../../../pages/Desktop/Protocols/hooks' -import { ProtocolSetupParameters } from '../../../../organisms/ODD/ProtocolSetup/ProtocolSetupParameters' -import { formatTimeWithUtcLabel } from '../../../../resources/runs' -import { useMissingProtocolHardware } from '../../../../transformations/commands' +import { i18n } from '/app/i18n' +import { useHardwareStatusText } from '/app/organisms/ODD/RobotDashboard/hooks' +import { useOffsetCandidatesForAnalysis } from '/app/organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' +import { useRunTimeParameters } from '/app/pages/Desktop/Protocols/hooks' +import { ProtocolSetupParameters } from '/app/organisms/ODD/ProtocolSetup/ProtocolSetupParameters' +import { formatTimeWithUtcLabel } from '/app/resources/runs' +import { useMissingProtocolHardware } from '/app/transformations/commands' import { ProtocolDetails } from '..' import { Deck } from '../Deck' import { Hardware } from '../Hardware' @@ -41,21 +41,21 @@ Object.defineProperty(window, 'IntersectionObserver', { value: IntersectionObserver, }) vi.mock( - '../../../../organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ProtocolSetupParameters' + '/app/organisms/ODD/ProtocolSetup/ProtocolSetupParameters/ProtocolSetupParameters' ) vi.mock('@opentrons/api-client') vi.mock('@opentrons/react-api-client') -vi.mock('../../../../organisms/ODD/RobotDashboard/hooks') +vi.mock('/app/organisms/ODD/RobotDashboard/hooks') vi.mock( - '../../../../organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' + '/app/organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' ) -vi.mock('../../../../pages/Desktop/Protocols/hooks') -vi.mock('../../../../transformations/commands') +vi.mock('/app/pages/Desktop/Protocols/hooks') +vi.mock('/app/transformations/commands') vi.mock('../Deck') vi.mock('../Hardware') vi.mock('../Labware') vi.mock('../Parameters') -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') const MOCK_HOST_CONFIG = {} as HostConfig const mockCreateRun = vi.fn((id: string) => {}) diff --git a/app/src/pages/ODD/ProtocolDetails/index.tsx b/app/src/pages/ODD/ProtocolDetails/index.tsx index 931baae070a..f763eb277ec 100644 --- a/app/src/pages/ODD/ProtocolDetails/index.tsx +++ b/app/src/pages/ODD/ProtocolDetails/index.tsx @@ -32,34 +32,34 @@ import { useProtocolQuery, } from '@opentrons/react-api-client' import { MAXIMUM_PINNED_PROTOCOLS } from '../../../App/constants' -import { MediumButton, SmallButton } from '../../../atoms/buttons' +import { MediumButton, SmallButton } from '/app/atoms/buttons' import { ProtocolDetailsHeaderChipSkeleton, ProcotolDetailsHeaderTitleSkeleton, ProtocolDetailsSectionContentSkeleton, -} from '../../../organisms/ODD/ProtocolDetails' -import { useHardwareStatusText } from '../../../organisms/ODD/RobotDashboard/hooks' -import { OddModal, SmallModalChildren } from '../../../molecules/OddModal' -import { useToaster } from '../../../organisms/ToasterOven' +} from '/app/organisms/ODD/ProtocolDetails' +import { useHardwareStatusText } from '/app/organisms/ODD/RobotDashboard/hooks' +import { OddModal, SmallModalChildren } from '/app/molecules/OddModal' +import { useToaster } from '/app/organisms/ToasterOven' import { getApplyHistoricOffsets, getPinnedProtocolIds, updateConfigValue, -} from '../../../redux/config' -import { useOffsetCandidatesForAnalysis } from '../../../organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' -import { useRunTimeParameters } from '../../../pages/Desktop/Protocols/hooks' -import { useMissingProtocolHardware } from '../../../transformations/commands' -import { ProtocolSetupParameters } from '../../../organisms/ODD/ProtocolSetup/ProtocolSetupParameters' +} from '/app/redux/config' +import { useOffsetCandidatesForAnalysis } from '/app/organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' +import { useRunTimeParameters } from '/app/pages/Desktop/Protocols/hooks' +import { useMissingProtocolHardware } from '/app/transformations/commands' +import { ProtocolSetupParameters } from '/app/organisms/ODD/ProtocolSetup/ProtocolSetupParameters' import { Parameters } from './Parameters' import { Deck } from './Deck' import { Hardware } from './Hardware' import { Labware } from './Labware' import { Liquids } from './Liquids' -import { formatTimeWithUtcLabel } from '../../../resources/runs' +import { formatTimeWithUtcLabel } from '/app/resources/runs' import type { Protocol } from '@opentrons/api-client' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' -import type { Dispatch } from '../../../redux/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' +import type { Dispatch } from '/app/redux/types' import type { OnDeviceRouteParams } from '../../../App/types' interface ProtocolHeaderProps { diff --git a/app/src/pages/ODD/ProtocolSetup/Buttons.tsx b/app/src/pages/ODD/ProtocolSetup/Buttons.tsx index 04d38d9be89..af7417a433c 100644 --- a/app/src/pages/ODD/ProtocolSetup/Buttons.tsx +++ b/app/src/pages/ODD/ProtocolSetup/Buttons.tsx @@ -11,7 +11,7 @@ import { Icon, } from '@opentrons/components' -import { ODD_FOCUS_VISIBLE } from '../../../atoms/buttons/constants' +import { ODD_FOCUS_VISIBLE } from '/app/atoms/buttons/constants' import type { FlattenSimpleInterpolation } from 'styled-components' diff --git a/app/src/pages/ODD/ProtocolSetup/ConfirmAttachedModal.tsx b/app/src/pages/ODD/ProtocolSetup/ConfirmAttachedModal.tsx index 62d8b23bdbe..5657ce7ae36 100644 --- a/app/src/pages/ODD/ProtocolSetup/ConfirmAttachedModal.tsx +++ b/app/src/pages/ODD/ProtocolSetup/ConfirmAttachedModal.tsx @@ -8,10 +8,10 @@ import { LegacyStyledText, } from '@opentrons/components' -import { SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface ConfirmAttachedModalProps { onCloseClick: () => void diff --git a/app/src/pages/ODD/ProtocolSetup/ConfirmSetupStepsCompleteModal.tsx b/app/src/pages/ODD/ProtocolSetup/ConfirmSetupStepsCompleteModal.tsx index c837d91f518..9c8c37697a5 100644 --- a/app/src/pages/ODD/ProtocolSetup/ConfirmSetupStepsCompleteModal.tsx +++ b/app/src/pages/ODD/ProtocolSetup/ConfirmSetupStepsCompleteModal.tsx @@ -8,10 +8,10 @@ import { LegacyStyledText, } from '@opentrons/components' -import { SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface ConfirmSetupStepsCompleteModalProps { onCloseClick: () => void diff --git a/app/src/pages/ODD/ProtocolSetup/__tests__/ConfirmAttachedModal.test.tsx b/app/src/pages/ODD/ProtocolSetup/__tests__/ConfirmAttachedModal.test.tsx index 7354352b53a..b573449b529 100644 --- a/app/src/pages/ODD/ProtocolSetup/__tests__/ConfirmAttachedModal.test.tsx +++ b/app/src/pages/ODD/ProtocolSetup/__tests__/ConfirmAttachedModal.test.tsx @@ -2,9 +2,9 @@ import * as React from 'react' import { vi, it, describe, expect, beforeEach } from 'vitest' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { ConfirmAttachedModal } from '../ConfirmAttachedModal' const mockOnCloseClick = vi.fn() diff --git a/app/src/pages/ODD/ProtocolSetup/__tests__/ProtocolSetup.test.tsx b/app/src/pages/ODD/ProtocolSetup/__tests__/ProtocolSetup.test.tsx index 2622c88e726..b93bd172389 100644 --- a/app/src/pages/ODD/ProtocolSetup/__tests__/ProtocolSetup.test.tsx +++ b/app/src/pages/ODD/ProtocolSetup/__tests__/ProtocolSetup.test.tsx @@ -13,8 +13,8 @@ import { useModulesQuery, useProtocolAnalysisAsDocumentQuery, } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { mockHeaterShaker } from '../../../../redux/modules/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockHeaterShaker } from '/app/redux/modules/__fixtures__' import { getDeckDefFromRobotType, FLEX_ROBOT_TYPE, @@ -22,9 +22,9 @@ import { flexDeckDefV5, } from '@opentrons/shared-data' -import { i18n } from '../../../../i18n' -import { useToaster } from '../../../../organisms/ToasterOven' -import { mockRobotSideAnalysis } from '../../../../molecules/Command/__fixtures__' +import { i18n } from '/app/i18n' +import { useToaster } from '/app/organisms/ToasterOven' +import { mockRobotSideAnalysis } from '/app/molecules/Command/__fixtures__' import { useAttachedModules, useLPCDisabledReason, @@ -33,10 +33,10 @@ import { useRobotType, useRunCreatedAtTimestamp, useTrackProtocolRunEvent, -} from '../../../../organisms/Devices/hooks' -import { getLocalRobot } from '../../../../redux/discovery' -import { ANALYTICS_PROTOCOL_RUN_ACTION } from '../../../../redux/analytics' -import { getProtocolModulesInfo } from '../../../../organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo' +} from '/app/organisms/Devices/hooks' +import { getLocalRobot } from '/app/redux/discovery' +import { ANALYTICS_PROTOCOL_RUN_ACTION } from '/app/redux/analytics' +import { getProtocolModulesInfo } from '/app/organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo' import { ProtocolSetupLabware, ProtocolSetupLiquids, @@ -47,24 +47,24 @@ import { ProtocolSetupStepSkeleton, getUnmatchedModulesForProtocol, getIncompleteInstrumentCount, -} from '../../../../organisms/ODD/ProtocolSetup' -import { useLaunchLPC } from '../../../../organisms/LabwarePositionCheck/useLaunchLPC' -import { ConfirmCancelRunModal } from '../../../../organisms/ODD/RunningProtocol' -import { mockProtocolModuleInfo } from '../../../../organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/__fixtures__' +} from '/app/organisms/ODD/ProtocolSetup' +import { useLaunchLPC } from '/app/organisms/LabwarePositionCheck/useLaunchLPC' +import { ConfirmCancelRunModal } from '/app/organisms/ODD/RunningProtocol' +import { mockProtocolModuleInfo } from '/app/organisms/ODD/ProtocolSetup/ProtocolSetupInstruments/__fixtures__' import { useProtocolHasRunTimeParameters, useRunControls, useRunStatus, -} from '../../../../organisms/RunTimeControl/hooks' -import { useIsHeaterShakerInProtocol } from '../../../../organisms/ModuleCard/hooks' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration/useNotifyDeckConfigurationQuery' -import { useDeckConfigurationCompatibility } from '../../../../resources/deck_configuration/hooks' +} from '/app/organisms/RunTimeControl/hooks' +import { useIsHeaterShakerInProtocol } from '/app/organisms/ModuleCard/hooks' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration/useNotifyDeckConfigurationQuery' +import { useDeckConfigurationCompatibility } from '/app/resources/deck_configuration/hooks' import { ConfirmAttachedModal } from '../ConfirmAttachedModal' import { ConfirmSetupStepsCompleteModal } from '../ConfirmSetupStepsCompleteModal' import { ProtocolSetup } from '../' -import { useNotifyRunQuery } from '../../../../resources/runs' -import { mockConnectableRobot } from '../../../../redux/discovery/__fixtures__' -import { mockRunTimeParameterData } from '../../../../pages/ODD/ProtocolDetails/fixtures' +import { useNotifyRunQuery } from '/app/resources/runs' +import { mockConnectableRobot } from '/app/redux/discovery/__fixtures__' +import { mockRunTimeParameterData } from '/app/pages/ODD/ProtocolDetails/fixtures' import type { UseQueryResult } from 'react-query' import type * as SharedData from '@opentrons/shared-data' @@ -101,9 +101,9 @@ vi.mock('react-router-dom', async importOriginal => { }) vi.mock('@opentrons/react-api-client') -vi.mock('../../../../organisms/LabwarePositionCheck/useLaunchLPC') -vi.mock('../../../../organisms/Devices/hooks') -vi.mock('../../../../organisms/ODD/ProtocolSetup', async importOriginal => { +vi.mock('/app/organisms/LabwarePositionCheck/useLaunchLPC') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/organisms/ODD/ProtocolSetup', async importOriginal => { const ACTUALS = ['ProtocolSetupStep'] const actual = await importOriginal() return Object.fromEntries( @@ -112,23 +112,17 @@ vi.mock('../../../../organisms/ODD/ProtocolSetup', async importOriginal => { ) ) }) -vi.mock( - '../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -) -vi.mock( - '../../../../organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo' -) -vi.mock('../../../../organisms/ODD/RunningProtocol') -vi.mock('../../../../organisms/RunTimeControl/hooks') -vi.mock('../../../../organisms/ModuleCard/hooks') -vi.mock('../../../../redux/discovery/selectors') +vi.mock('/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis') +vi.mock('/app/organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo') +vi.mock('/app/organisms/ODD/RunningProtocol') +vi.mock('/app/organisms/RunTimeControl/hooks') +vi.mock('/app/organisms/ModuleCard/hooks') +vi.mock('/app/redux/discovery/selectors') vi.mock('../ConfirmAttachedModal') -vi.mock('../../../../organisms/ToasterOven') -vi.mock('../../../../resources/runs') -vi.mock('../../../../resources/deck_configuration/hooks') -vi.mock( - '../../../../resources/deck_configuration/useNotifyDeckConfigurationQuery' -) +vi.mock('/app/organisms/ToasterOven') +vi.mock('/app/resources/runs') +vi.mock('/app/resources/deck_configuration/hooks') +vi.mock('/app/resources/deck_configuration/useNotifyDeckConfigurationQuery') vi.mock('../ConfirmSetupStepsCompleteModal') const render = (path = '/') => { diff --git a/app/src/pages/ODD/ProtocolSetup/index.tsx b/app/src/pages/ODD/ProtocolSetup/index.tsx index c0c0e0fe83d..82a06b8d252 100644 --- a/app/src/pages/ODD/ProtocolSetup/index.tsx +++ b/app/src/pages/ODD/ProtocolSetup/index.tsx @@ -41,9 +41,9 @@ import { useRobotAnalyticsData, useRobotType, useTrackProtocolRunEvent, -} from '../../../organisms/Devices/hooks' +} from '/app/organisms/Devices/hooks' -import { getProtocolModulesInfo } from '../../../organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo' +import { getProtocolModulesInfo } from '/app/organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo' import { AnalysisFailedModal, ProtocolSetupDeckConfiguration, @@ -58,45 +58,45 @@ import { getUnmatchedModulesForProtocol, getIncompleteInstrumentCount, ViewOnlyParameters, -} from '../../../organisms/ODD/ProtocolSetup' -import { useLaunchLPC } from '../../../organisms/LabwarePositionCheck/useLaunchLPC' -import { ConfirmCancelRunModal } from '../../../organisms/ODD/RunningProtocol' +} from '/app/organisms/ODD/ProtocolSetup' +import { useLaunchLPC } from '/app/organisms/LabwarePositionCheck/useLaunchLPC' +import { ConfirmCancelRunModal } from '/app/organisms/ODD/RunningProtocol' import { useRunControls, useRunStatus, -} from '../../../organisms/RunTimeControl/hooks' -import { useToaster } from '../../../organisms/ToasterOven' -import { useIsHeaterShakerInProtocol } from '../../../organisms/ModuleCard/hooks' -import { getLocalRobot, getRobotSerialNumber } from '../../../redux/discovery' +} from '/app/organisms/RunTimeControl/hooks' +import { useToaster } from '/app/organisms/ToasterOven' +import { useIsHeaterShakerInProtocol } from '/app/organisms/ModuleCard/hooks' +import { getLocalRobot, getRobotSerialNumber } from '/app/redux/discovery' import { ANALYTICS_PROTOCOL_PROCEED_TO_RUN, ANALYTICS_PROTOCOL_RUN_ACTION, useTrackEvent, -} from '../../../redux/analytics' -import { getIsHeaterShakerAttached } from '../../../redux/config' +} from '/app/redux/analytics' +import { getIsHeaterShakerAttached } from '/app/redux/config' import { ConfirmAttachedModal } from './ConfirmAttachedModal' import { ConfirmSetupStepsCompleteModal } from './ConfirmSetupStepsCompleteModal' -import { getLatestCurrentOffsets } from '../../../organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/utils' +import { getLatestCurrentOffsets } from '/app/organisms/Devices/ProtocolRun/SetupLabwarePositionCheck/utils' import { CloseButton, PlayButton } from './Buttons' -import { useDeckConfigurationCompatibility } from '../../../resources/deck_configuration/hooks' -import { getRequiredDeckConfig } from '../../../resources/deck_configuration/utils' -import { useNotifyRunQuery } from '../../../resources/runs' +import { useDeckConfigurationCompatibility } from '/app/resources/deck_configuration/hooks' +import { getRequiredDeckConfig } from '/app/resources/deck_configuration/utils' +import { useNotifyRunQuery } from '/app/resources/runs' import type { Run } from '@opentrons/api-client' import type { CutoutFixtureId, CutoutId } from '@opentrons/shared-data' import type { OnDeviceRouteParams } from '../../../App/types' -import type { ProtocolModuleInfo } from '../../../organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo' -import type { SetupScreens } from '../../../organisms/ODD/ProtocolSetup' +import type { ProtocolModuleInfo } from '/app/organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo' +import type { SetupScreens } from '/app/organisms/ODD/ProtocolSetup' import type { ProtocolHardware, ProtocolFixture, -} from '../../../transformations/commands' +} from '/app/transformations/commands' import { getLabwareSetupItemGroups, getProtocolUsesGripper, useRequiredProtocolHardwareFromAnalysis, useMissingProtocolHardwareFromAnalysis, -} from '../../../transformations/commands' +} from '/app/transformations/commands' const FETCH_DURATION_MS = 5000 diff --git a/app/src/pages/ODD/QuickTransferDashboard/DeleteTransferConfirmationModal.tsx b/app/src/pages/ODD/QuickTransferDashboard/DeleteTransferConfirmationModal.tsx index c612c1a6c82..b9d41644456 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/DeleteTransferConfirmationModal.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/DeleteTransferConfirmationModal.tsx @@ -15,11 +15,11 @@ import { } from '@opentrons/components' import { useHost, useProtocolQuery } from '@opentrons/react-api-client' -import { SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' -import { useToaster } from '../../../organisms/ToasterOven' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { useToaster } from '/app/organisms/ToasterOven' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' interface DeleteTransferConfirmationModalProps { transferId: string diff --git a/app/src/pages/ODD/QuickTransferDashboard/IntroductoryModal.tsx b/app/src/pages/ODD/QuickTransferDashboard/IntroductoryModal.tsx index 0d469669070..230cb07bca3 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/IntroductoryModal.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/IntroductoryModal.tsx @@ -8,10 +8,10 @@ import { ALIGN_CENTER, TEXT_ALIGN_CENTER, } from '@opentrons/components' -import { OddModal } from '../../../molecules/OddModal' -import { SmallButton } from '../../../atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' -import imgSrc from '../../../assets/images/on-device-display/odd-abstract-6.png' +import imgSrc from '/app/assets/images/on-device-display/odd-abstract-6.png' interface IntroductoryModalProps { onClose: () => void diff --git a/app/src/pages/ODD/QuickTransferDashboard/LongPressModal.tsx b/app/src/pages/ODD/QuickTransferDashboard/LongPressModal.tsx index 90e082ff276..a7b9401f968 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/LongPressModal.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/LongPressModal.tsx @@ -13,15 +13,12 @@ import { import { useCreateRunMutation } from '@opentrons/react-api-client' import { MAXIMUM_PINNED_PROTOCOLS } from '../../../App/constants' -import { SmallModalChildren } from '../../../molecules/OddModal' -import { useToaster } from '../../../organisms/ToasterOven' -import { - getPinnedQuickTransferIds, - updateConfigValue, -} from '../../../redux/config' +import { SmallModalChildren } from '/app/molecules/OddModal' +import { useToaster } from '/app/organisms/ToasterOven' +import { getPinnedQuickTransferIds, updateConfigValue } from '/app/redux/config' import type { UseLongPressResult } from '@opentrons/components' -import type { Dispatch } from '../../../redux/types' +import type { Dispatch } from '/app/redux/types' interface LongPressModalProps { longpress: UseLongPressResult diff --git a/app/src/pages/ODD/QuickTransferDashboard/NoQuickTransfers.tsx b/app/src/pages/ODD/QuickTransferDashboard/NoQuickTransfers.tsx index 66aae9b45c4..5848967fc71 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/NoQuickTransfers.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/NoQuickTransfers.tsx @@ -12,7 +12,7 @@ import { StyledText, } from '@opentrons/components' -import imgSrc from '../../../assets/images/on-device-display/empty_quick_transfer_dashboard.png' +import imgSrc from '/app/assets/images/on-device-display/empty_quick_transfer_dashboard.png' export function NoQuickTransfers(): JSX.Element { const { t } = useTranslation('quick_transfer') diff --git a/app/src/pages/ODD/QuickTransferDashboard/PinnedTransfer.tsx b/app/src/pages/ODD/QuickTransferDashboard/PinnedTransfer.tsx index f196bba7ecd..dcb282be9d7 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/PinnedTransfer.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/PinnedTransfer.tsx @@ -18,7 +18,7 @@ import { } from '@opentrons/components' import { LongPressModal } from './LongPressModal' -import { formatTimeWithUtcLabel } from '../../../resources/runs' +import { formatTimeWithUtcLabel } from '/app/resources/runs' import type { UseLongPressResult } from '@opentrons/components' import type { ProtocolResource } from '@opentrons/shared-data' diff --git a/app/src/pages/ODD/QuickTransferDashboard/PipetteNotAttachedErrorModal.tsx b/app/src/pages/ODD/QuickTransferDashboard/PipetteNotAttachedErrorModal.tsx index 1649db05846..4f26ca7bfb1 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/PipetteNotAttachedErrorModal.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/PipetteNotAttachedErrorModal.tsx @@ -8,8 +8,8 @@ import { DIRECTION_COLUMN, TYPOGRAPHY, } from '@opentrons/components' -import { OddModal } from '../../../molecules/OddModal' -import { SmallButton } from '../../../atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' interface PipetteNotAttachedErrorModalProps { onExit: () => void diff --git a/app/src/pages/ODD/QuickTransferDashboard/QuickTransferCard.tsx b/app/src/pages/ODD/QuickTransferDashboard/QuickTransferCard.tsx index 389566583cc..a0f99a4367e 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/QuickTransferCard.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/QuickTransferCard.tsx @@ -31,14 +31,14 @@ import { } from '@opentrons/react-api-client' import { deleteProtocol } from '@opentrons/api-client' -import { SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' import { LongPressModal } from './LongPressModal' -import { formatTimeWithUtcLabel } from '../../../resources/runs' +import { formatTimeWithUtcLabel } from '/app/resources/runs' import type { UseLongPressResult } from '@opentrons/components' import type { ProtocolResource } from '@opentrons/shared-data' -import type { OddModalHeaderBaseProps } from '../../../molecules/OddModal/types' +import type { OddModalHeaderBaseProps } from '/app/molecules/OddModal/types' const REFETCH_INTERVAL = 5000 diff --git a/app/src/pages/ODD/QuickTransferDashboard/StorageLimitReachedErrorModal.tsx b/app/src/pages/ODD/QuickTransferDashboard/StorageLimitReachedErrorModal.tsx index 41eb4b92ce8..2330489cdb7 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/StorageLimitReachedErrorModal.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/StorageLimitReachedErrorModal.tsx @@ -8,8 +8,8 @@ import { DIRECTION_COLUMN, TYPOGRAPHY, } from '@opentrons/components' -import { OddModal } from '../../../molecules/OddModal' -import { SmallButton } from '../../../atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' interface StorageLimitReachedErrorModalProps { onExit: () => void diff --git a/app/src/pages/ODD/QuickTransferDashboard/__tests__/DeleteTransferConfirmationModal.test.tsx b/app/src/pages/ODD/QuickTransferDashboard/__tests__/DeleteTransferConfirmationModal.test.tsx index 0dee122f94f..7e8fb028696 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/__tests__/DeleteTransferConfirmationModal.test.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/__tests__/DeleteTransferConfirmationModal.test.tsx @@ -4,11 +4,11 @@ import { when } from 'vitest-when' import { act, fireEvent, screen } from '@testing-library/react' import { getProtocol, deleteProtocol, deleteRun } from '@opentrons/api-client' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useHost, useProtocolQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' -import { useToaster } from '../../../../organisms/ToasterOven' +import { i18n } from '/app/i18n' +import { useToaster } from '/app/organisms/ToasterOven' import { DeleteTransferConfirmationModal } from '../DeleteTransferConfirmationModal' import type { NavigateFunction } from 'react-router-dom' @@ -18,7 +18,7 @@ const mockNavigate = vi.fn() vi.mock('@opentrons/api-client') vi.mock('@opentrons/react-api-client') -vi.mock('../../../../organisms/ToasterOven') +vi.mock('/app/organisms/ToasterOven') vi.mock('react-router-dom', async importOriginal => { const reactRouterDom = await importOriginal() return { diff --git a/app/src/pages/ODD/QuickTransferDashboard/__tests__/LongPressModal.test.tsx b/app/src/pages/ODD/QuickTransferDashboard/__tests__/LongPressModal.test.tsx index b2324325755..cea0e3e0174 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/__tests__/LongPressModal.test.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/__tests__/LongPressModal.test.tsx @@ -7,8 +7,8 @@ import { fireEvent, renderHook, screen } from '@testing-library/react' import { useLongPress } from '@opentrons/components' import { useCreateRunMutation, useHost } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { LongPressModal } from '../LongPressModal' import type { HostConfig } from '@opentrons/api-client' diff --git a/app/src/pages/ODD/QuickTransferDashboard/__tests__/NoQuickTransfers.test.tsx b/app/src/pages/ODD/QuickTransferDashboard/__tests__/NoQuickTransfers.test.tsx index 4ce4718e418..2112ad6a6ee 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/__tests__/NoQuickTransfers.test.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/__tests__/NoQuickTransfers.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { describe, it, expect } from 'vitest' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { NoQuickTransfers } from '../NoQuickTransfers' import { screen } from '@testing-library/react' diff --git a/app/src/pages/ODD/QuickTransferDashboard/__tests__/PinnedTransfer.test.tsx b/app/src/pages/ODD/QuickTransferDashboard/__tests__/PinnedTransfer.test.tsx index 2700ac9f133..df11b68ea1a 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/__tests__/PinnedTransfer.test.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/__tests__/PinnedTransfer.test.tsx @@ -3,8 +3,8 @@ import { vi, it, describe, expect } from 'vitest' import { act, fireEvent, screen } from '@testing-library/react' import { MemoryRouter } from 'react-router-dom' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { PinnedTransfer } from '../PinnedTransfer' import type { ProtocolResource } from '@opentrons/shared-data' diff --git a/app/src/pages/ODD/QuickTransferDashboard/__tests__/QuickTransferCard.test.tsx b/app/src/pages/ODD/QuickTransferDashboard/__tests__/QuickTransferCard.test.tsx index ad6e392e085..172817c7d74 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/__tests__/QuickTransferCard.test.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/__tests__/QuickTransferCard.test.tsx @@ -7,8 +7,8 @@ import { useProtocolAnalysisAsDocumentQuery, } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { QuickTransferCard } from '../QuickTransferCard' import { LongPressModal } from '../LongPressModal' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/pages/ODD/QuickTransferDashboard/index.tsx b/app/src/pages/ODD/QuickTransferDashboard/index.tsx index 40fbc87889f..6ed16838d89 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/index.tsx +++ b/app/src/pages/ODD/QuickTransferDashboard/index.tsx @@ -21,14 +21,14 @@ import { useInstrumentsQuery, } from '@opentrons/react-api-client' -import { SmallButton, FloatingActionButton } from '../../../atoms/buttons' -import { Navigation } from '../../../organisms/Navigation' +import { SmallButton, FloatingActionButton } from '/app/atoms/buttons' +import { Navigation } from '/app/organisms/Navigation' import { getPinnedQuickTransferIds, getQuickTransfersOnDeviceSortKey, getHasDismissedQuickTransferIntro, updateConfigValue, -} from '../../../redux/config' +} from '/app/redux/config' import { PinnedTransferCarousel } from './PinnedTransferCarousel' import { sortQuickTransfers } from './utils' import { QuickTransferCard } from './QuickTransferCard' @@ -40,8 +40,8 @@ import { DeleteTransferConfirmationModal } from './DeleteTransferConfirmationMod import type { ProtocolResource } from '@opentrons/shared-data' import type { PipetteData } from '@opentrons/api-client' -import type { Dispatch } from '../../../redux/types' -import type { QuickTransfersOnDeviceSortKey } from '../../../redux/config/types' +import type { Dispatch } from '/app/redux/types' +import type { QuickTransfersOnDeviceSortKey } from '/app/redux/config/types' export function QuickTransferDashboard(): JSX.Element { const protocols = useAllProtocolsQuery() diff --git a/app/src/pages/ODD/QuickTransferDashboard/utils.ts b/app/src/pages/ODD/QuickTransferDashboard/utils.ts index 706a5e4679b..86cbf2409ce 100644 --- a/app/src/pages/ODD/QuickTransferDashboard/utils.ts +++ b/app/src/pages/ODD/QuickTransferDashboard/utils.ts @@ -1,5 +1,5 @@ import type { ProtocolResource } from '@opentrons/shared-data' -import type { ProtocolsOnDeviceSortKey } from '../../../redux/config/types' +import type { ProtocolsOnDeviceSortKey } from '/app/redux/config/types' export function sortQuickTransfers( sortBy: ProtocolsOnDeviceSortKey, diff --git a/app/src/pages/ODD/QuickTransferDetails/Hardware.tsx b/app/src/pages/ODD/QuickTransferDetails/Hardware.tsx index f8765ead16d..6c217c0cc5c 100644 --- a/app/src/pages/ODD/QuickTransferDetails/Hardware.tsx +++ b/app/src/pages/ODD/QuickTransferDetails/Hardware.tsx @@ -26,13 +26,13 @@ import { import { useGripperDisplayName, usePipetteNameSpecs, -} from '../../../resources/instruments/hooks' -import { useRequiredProtocolHardware } from '../../../pages/Desktop/Protocols/hooks' +} from '/app/resources/instruments/hooks' +import { useRequiredProtocolHardware } from '/app/pages/Desktop/Protocols/hooks' import type { ProtocolHardware, ProtocolPipette, -} from '../../../transformations/commands' +} from '/app/transformations/commands' import type { TFunction } from 'i18next' const Table = styled('table')` diff --git a/app/src/pages/ODD/QuickTransferDetails/Labware.tsx b/app/src/pages/ODD/QuickTransferDetails/Labware.tsx index 09ad78714bd..1b0e3806655 100644 --- a/app/src/pages/ODD/QuickTransferDetails/Labware.tsx +++ b/app/src/pages/ODD/QuickTransferDetails/Labware.tsx @@ -15,7 +15,7 @@ import { } from '@opentrons/components' import { getLabwareDisplayName } from '@opentrons/shared-data' -import { useRequiredProtocolLabware } from '../../../pages/Desktop/Protocols/hooks' +import { useRequiredProtocolLabware } from '/app/pages/Desktop/Protocols/hooks' const Table = styled('table')` ${TYPOGRAPHY.labelRegular} diff --git a/app/src/pages/ODD/QuickTransferDetails/__tests__/Deck.test.tsx b/app/src/pages/ODD/QuickTransferDetails/__tests__/Deck.test.tsx index bd0b68c68f2..dbdf7b2b4fe 100644 --- a/app/src/pages/ODD/QuickTransferDetails/__tests__/Deck.test.tsx +++ b/app/src/pages/ODD/QuickTransferDetails/__tests__/Deck.test.tsx @@ -3,13 +3,13 @@ import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { screen } from '@testing-library/react' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useProtocolAnalysisAsDocumentQuery, useProtocolQuery, } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { Deck } from '../Deck' import type { UseQueryResult } from 'react-query' diff --git a/app/src/pages/ODD/QuickTransferDetails/__tests__/Hardware.test.tsx b/app/src/pages/ODD/QuickTransferDetails/__tests__/Hardware.test.tsx index 460f00178e7..80db6ec64b5 100644 --- a/app/src/pages/ODD/QuickTransferDetails/__tests__/Hardware.test.tsx +++ b/app/src/pages/ODD/QuickTransferDetails/__tests__/Hardware.test.tsx @@ -7,14 +7,14 @@ import { WASTE_CHUTE_RIGHT_ADAPTER_NO_COVER_FIXTURE, WASTE_CHUTE_CUTOUT, } from '@opentrons/shared-data' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { useRequiredProtocolHardware } from '../../../../pages/Desktop/Protocols/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useRequiredProtocolHardware } from '/app/pages/Desktop/Protocols/hooks' import { Hardware } from '../Hardware' -vi.mock('../../../../transformations/commands') -vi.mock('../../../../pages/Desktop/Protocols/hooks') -vi.mock('../../../../redux/config') +vi.mock('/app/transformations/commands') +vi.mock('/app/pages/Desktop/Protocols/hooks') +vi.mock('/app/redux/config') const MOCK_PROTOCOL_ID = 'mock_protocol_id' diff --git a/app/src/pages/ODD/QuickTransferDetails/__tests__/Labware.test.tsx b/app/src/pages/ODD/QuickTransferDetails/__tests__/Labware.test.tsx index a9eed293a6a..5d4bab9d08d 100644 --- a/app/src/pages/ODD/QuickTransferDetails/__tests__/Labware.test.tsx +++ b/app/src/pages/ODD/QuickTransferDetails/__tests__/Labware.test.tsx @@ -1,9 +1,9 @@ import * as React from 'react' import { vi, it, describe, beforeEach, afterEach } from 'vitest' import { when } from 'vitest-when' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' -import { useRequiredProtocolLabware } from '../../../../pages/Desktop/Protocols/hooks' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' +import { useRequiredProtocolLabware } from '/app/pages/Desktop/Protocols/hooks' import { Labware } from '../Labware' import { @@ -15,7 +15,7 @@ import { import type { LabwareDefinition2 } from '@opentrons/shared-data' import { screen } from '@testing-library/react' -vi.mock('../../../../pages/Desktop/Protocols/hooks') +vi.mock('/app/pages/Desktop/Protocols/hooks') const MOCK_PROTOCOL_ID = 'mock_protocol_id' diff --git a/app/src/pages/ODD/QuickTransferDetails/__tests__/QuickTransferDetails.test.tsx b/app/src/pages/ODD/QuickTransferDetails/__tests__/QuickTransferDetails.test.tsx index 9a5f16dbd02..0a18878ccd5 100644 --- a/app/src/pages/ODD/QuickTransferDetails/__tests__/QuickTransferDetails.test.tsx +++ b/app/src/pages/ODD/QuickTransferDetails/__tests__/QuickTransferDetails.test.tsx @@ -4,18 +4,18 @@ import { fireEvent, screen } from '@testing-library/react' import { when } from 'vitest-when' import { Route, MemoryRouter, Routes } from 'react-router-dom' import '@testing-library/jest-dom/vitest' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useCreateRunMutation, useHost, useProtocolQuery, useProtocolAnalysisAsDocumentQuery, } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' -import { useHardwareStatusText } from '../../../../organisms/ODD/RobotDashboard/hooks' -import { useOffsetCandidatesForAnalysis } from '../../../../organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' -import { useMissingProtocolHardware } from '../../../../transformations/commands' -import { formatTimeWithUtcLabel } from '../../../../resources/runs' +import { i18n } from '/app/i18n' +import { useHardwareStatusText } from '/app/organisms/ODD/RobotDashboard/hooks' +import { useOffsetCandidatesForAnalysis } from '/app/organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' +import { useMissingProtocolHardware } from '/app/transformations/commands' +import { formatTimeWithUtcLabel } from '/app/resources/runs' import { DeleteTransferConfirmationModal } from '../../QuickTransferDashboard/DeleteTransferConfirmationModal' import { QuickTransferDetails } from '..' import { Deck } from '../Deck' @@ -36,19 +36,19 @@ Object.defineProperty(window, 'IntersectionObserver', { configurable: true, value: IntersectionObserver, }) -vi.mock('../../../../organisms/ODD/ProtocolSetup/ProtocolSetupParameters') +vi.mock('/app/organisms/ODD/ProtocolSetup/ProtocolSetupParameters') vi.mock('@opentrons/api-client') vi.mock('@opentrons/react-api-client') -vi.mock('../../../../organisms/ODD/RobotDashboard/hooks') +vi.mock('/app/organisms/ODD/RobotDashboard/hooks') vi.mock( - '../../../../organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' + '/app/organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' ) vi.mock('../../QuickTransferDashboard/DeleteTransferConfirmationModal') -vi.mock('../../../../transformations/commands') +vi.mock('/app/transformations/commands') vi.mock('../Deck') vi.mock('../Hardware') vi.mock('../Labware') -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') const MOCK_HOST_CONFIG = {} as HostConfig const mockCreateRun = vi.fn((id: string) => {}) diff --git a/app/src/pages/ODD/QuickTransferDetails/index.tsx b/app/src/pages/ODD/QuickTransferDetails/index.tsx index e0b92bd1f6c..1af1541cab1 100644 --- a/app/src/pages/ODD/QuickTransferDetails/index.tsx +++ b/app/src/pages/ODD/QuickTransferDetails/index.tsx @@ -31,30 +31,30 @@ import { useProtocolQuery, } from '@opentrons/react-api-client' import { MAXIMUM_PINNED_PROTOCOLS } from '../../../App/constants' -import { MediumButton, SmallButton } from '../../../atoms/buttons' +import { MediumButton, SmallButton } from '/app/atoms/buttons' import { ProtocolDetailsHeaderChipSkeleton, ProcotolDetailsHeaderTitleSkeleton, ProtocolDetailsSectionContentSkeleton, -} from '../../../organisms/ODD/ProtocolDetails' -import { useHardwareStatusText } from '../../../organisms/ODD/RobotDashboard/hooks' -import { SmallModalChildren } from '../../../molecules/OddModal' -import { useToaster } from '../../../organisms/ToasterOven' +} from '/app/organisms/ODD/ProtocolDetails' +import { useHardwareStatusText } from '/app/organisms/ODD/RobotDashboard/hooks' +import { SmallModalChildren } from '/app/molecules/OddModal' +import { useToaster } from '/app/organisms/ToasterOven' import { getApplyHistoricOffsets, getPinnedQuickTransferIds, updateConfigValue, -} from '../../../redux/config' -import { useOffsetCandidatesForAnalysis } from '../../../organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' -import { useMissingProtocolHardware } from '../../../transformations/commands' +} from '/app/redux/config' +import { useOffsetCandidatesForAnalysis } from '/app/organisms/ApplyHistoricOffsets/hooks/useOffsetCandidatesForAnalysis' +import { useMissingProtocolHardware } from '/app/transformations/commands' import { DeleteTransferConfirmationModal } from '../QuickTransferDashboard/DeleteTransferConfirmationModal' import { Deck } from './Deck' import { Hardware } from './Hardware' import { Labware } from './Labware' -import { formatTimeWithUtcLabel } from '../../../resources/runs' +import { formatTimeWithUtcLabel } from '/app/resources/runs' import type { Protocol } from '@opentrons/api-client' -import type { Dispatch } from '../../../redux/types' +import type { Dispatch } from '/app/redux/types' import type { OnDeviceRouteParams } from '../../../App/types' interface QuickTransferHeaderProps { diff --git a/app/src/pages/ODD/RobotDashboard/WelcomeModal.tsx b/app/src/pages/ODD/RobotDashboard/WelcomeModal.tsx index ced380eca36..658c9f99fc0 100644 --- a/app/src/pages/ODD/RobotDashboard/WelcomeModal.tsx +++ b/app/src/pages/ODD/RobotDashboard/WelcomeModal.tsx @@ -12,10 +12,10 @@ import { } from '@opentrons/components' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' -import { SmallButton } from '../../../atoms/buttons' -import { OddModal } from '../../../molecules/OddModal' +import { SmallButton } from '/app/atoms/buttons' +import { OddModal } from '/app/molecules/OddModal' -import welcomeModalImage from '../../../assets/images/on-device-display/welcome_dashboard_modal.png' +import welcomeModalImage from '/app/assets/images/on-device-display/welcome_dashboard_modal.png' import type { SetStatusBarCreateCommand } from '@opentrons/shared-data' diff --git a/app/src/pages/ODD/RobotDashboard/__tests__/RobotDashboard.test.tsx b/app/src/pages/ODD/RobotDashboard/__tests__/RobotDashboard.test.tsx index 55a090c4fb8..d15b618b3e2 100644 --- a/app/src/pages/ODD/RobotDashboard/__tests__/RobotDashboard.test.tsx +++ b/app/src/pages/ODD/RobotDashboard/__tests__/RobotDashboard.test.tsx @@ -3,20 +3,20 @@ import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { MemoryRouter } from 'react-router-dom' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' import { useAllProtocolsQuery } from '@opentrons/react-api-client' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { RecentRunProtocolCarousel, EmptyRecentRun, -} from '../../../../organisms/ODD/RobotDashboard' -import { Navigation } from '../../../../organisms/Navigation' -import { useMissingProtocolHardware } from '../../../../transformations/commands' -import { getOnDeviceDisplaySettings } from '../../../../redux/config' +} from '/app/organisms/ODD/RobotDashboard' +import { Navigation } from '/app/organisms/Navigation' +import { useMissingProtocolHardware } from '/app/transformations/commands' +import { getOnDeviceDisplaySettings } from '/app/redux/config' import { WelcomeModal } from '../WelcomeModal' import { RobotDashboard } from '..' -import { useNotifyAllRunsQuery } from '../../../../resources/runs' +import { useNotifyAllRunsQuery } from '/app/resources/runs' import type { ProtocolResource } from '@opentrons/shared-data' import type { NavigateFunction } from 'react-router-dom' @@ -31,13 +31,13 @@ vi.mock('react-router-dom', async importOriginal => { } }) vi.mock('@opentrons/react-api-client') -vi.mock('../../../../organisms/ODD/RobotDashboard/EmptyRecentRun') -vi.mock('../../../../organisms/ODD/RobotDashboard/RecentRunProtocolCarousel') -vi.mock('../../../../organisms/Navigation') -vi.mock('../../../../transformations/commands') -vi.mock('../../../../redux/config') +vi.mock('/app/organisms/ODD/RobotDashboard/EmptyRecentRun') +vi.mock('/app/organisms/ODD/RobotDashboard/RecentRunProtocolCarousel') +vi.mock('/app/organisms/Navigation') +vi.mock('/app/transformations/commands') +vi.mock('/app/redux/config') vi.mock('../WelcomeModal') -vi.mock('../../../../resources/runs') +vi.mock('/app/resources/runs') const render = () => { return renderWithProviders( diff --git a/app/src/pages/ODD/RobotDashboard/__tests__/WelcomeModal.test.tsx b/app/src/pages/ODD/RobotDashboard/__tests__/WelcomeModal.test.tsx index c0b73b0bb8c..5f0d1b49b27 100644 --- a/app/src/pages/ODD/RobotDashboard/__tests__/WelcomeModal.test.tsx +++ b/app/src/pages/ODD/RobotDashboard/__tests__/WelcomeModal.test.tsx @@ -4,13 +4,13 @@ import { fireEvent, screen } from '@testing-library/react' import { useCreateLiveCommandMutation } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' import { WelcomeModal } from '../WelcomeModal' import type { SetStatusBarCreateCommand } from '@opentrons/shared-data' -vi.mock('../../../../redux/config') +vi.mock('/app/redux/config') vi.mock('@opentrons/react-api-client') const mockFunc = vi.fn() diff --git a/app/src/pages/ODD/RobotDashboard/index.tsx b/app/src/pages/ODD/RobotDashboard/index.tsx index 609e57bca65..d9598a2c046 100644 --- a/app/src/pages/ODD/RobotDashboard/index.tsx +++ b/app/src/pages/ODD/RobotDashboard/index.tsx @@ -12,15 +12,15 @@ import { } from '@opentrons/components' import { useAllProtocolsQuery } from '@opentrons/react-api-client' -import { Navigation } from '../../../organisms/Navigation' +import { Navigation } from '/app/organisms/Navigation' import { EmptyRecentRun, RecentRunProtocolCarousel, -} from '../../../organisms/ODD/RobotDashboard' -import { getOnDeviceDisplaySettings } from '../../../redux/config' +} from '/app/organisms/ODD/RobotDashboard' +import { getOnDeviceDisplaySettings } from '/app/redux/config' import { WelcomeModal } from './WelcomeModal' -import { ServerInitializing } from '../../../organisms/ODD/RobotDashboard/ServerInitializing' -import { useNotifyAllRunsQuery } from '../../../resources/runs' +import { ServerInitializing } from '/app/organisms/ODD/RobotDashboard/ServerInitializing' +import { useNotifyAllRunsQuery } from '/app/resources/runs' import type { RunData } from '@opentrons/api-client' export const MAXIMUM_RECENT_RUN_PROTOCOLS = 8 diff --git a/app/src/pages/ODD/RobotSettingsDashboard/RobotSettingsList.tsx b/app/src/pages/ODD/RobotSettingsDashboard/RobotSettingsList.tsx index 6ea3cc37e6e..40e45b1e725 100644 --- a/app/src/pages/ODD/RobotSettingsDashboard/RobotSettingsList.tsx +++ b/app/src/pages/ODD/RobotSettingsDashboard/RobotSettingsList.tsx @@ -21,8 +21,8 @@ import { TYPOGRAPHY, } from '@opentrons/components' -import { getLocalRobot, getRobotApiVersion } from '../../../redux/discovery' -import { getRobotUpdateAvailable } from '../../../redux/robot-update' +import { getLocalRobot, getRobotApiVersion } from '/app/redux/discovery' +import { getRobotUpdateAvailable } from '/app/redux/robot-update' import { DEV_INTERNAL_FLAGS, getApplyHistoricOffsets, @@ -31,20 +31,20 @@ import { toggleDevInternalFlag, toggleDevtools, toggleHistoricOffsets, -} from '../../../redux/config' -import { InlineNotification } from '../../../atoms/InlineNotification' -import { getRobotSettings, updateSetting } from '../../../redux/robot-settings' -import { UNREACHABLE } from '../../../redux/discovery/constants' -import { Navigation } from '../../../organisms/Navigation' -import { useLEDLights } from '../../../organisms/Devices/hooks' -import { useNetworkConnection } from '../../../resources/networking/hooks/useNetworkConnection' +} from '/app/redux/config' +import { InlineNotification } from '/app/atoms/InlineNotification' +import { getRobotSettings, updateSetting } from '/app/redux/robot-settings' +import { UNREACHABLE } from '/app/redux/discovery/constants' +import { Navigation } from '/app/organisms/Navigation' +import { useLEDLights } from '/app/organisms/Devices/hooks' +import { useNetworkConnection } from '/app/resources/networking/hooks/useNetworkConnection' import { RobotSettingButton, OnOffToggle, -} from '../../../organisms/ODD/RobotSettingsDashboard' +} from '/app/organisms/ODD/RobotSettingsDashboard' -import type { Dispatch, State } from '../../../redux/types' -import type { SetSettingOption } from '../../../organisms/ODD/RobotSettingsDashboard' +import type { Dispatch, State } from '/app/redux/types' +import type { SetSettingOption } from '/app/organisms/ODD/RobotSettingsDashboard' const HOME_GANTRY_SETTING_ID = 'disableHomeOnBoot' interface RobotSettingsListProps { diff --git a/app/src/pages/ODD/RobotSettingsDashboard/__tests__/RobotSettingsDashboard.test.tsx b/app/src/pages/ODD/RobotSettingsDashboard/__tests__/RobotSettingsDashboard.test.tsx index 78ba8bbd0b5..d7d6642f407 100644 --- a/app/src/pages/ODD/RobotSettingsDashboard/__tests__/RobotSettingsDashboard.test.tsx +++ b/app/src/pages/ODD/RobotSettingsDashboard/__tests__/RobotSettingsDashboard.test.tsx @@ -3,14 +3,14 @@ import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { MemoryRouter } from 'react-router-dom' import { fireEvent, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' - -import { i18n } from '../../../../i18n' -import { getRobotSettings } from '../../../../redux/robot-settings' -import { getLocalRobot } from '../../../../redux/discovery' -import { toggleDevtools, toggleHistoricOffsets } from '../../../../redux/config' -import { mockConnectedRobot } from '../../../../redux/discovery/__fixtures__' -import { Navigation } from '../../../../organisms/Navigation' +import { renderWithProviders } from '/app/__testing-utils__' + +import { i18n } from '/app/i18n' +import { getRobotSettings } from '/app/redux/robot-settings' +import { getLocalRobot } from '/app/redux/discovery' +import { toggleDevtools, toggleHistoricOffsets } from '/app/redux/config' +import { mockConnectedRobot } from '/app/redux/discovery/__fixtures__' +import { Navigation } from '/app/organisms/Navigation' import { DeviceReset, TouchScreenSleep, @@ -19,29 +19,27 @@ import { Privacy, RobotSystemVersion, UpdateChannel, -} from '../../../../organisms/ODD/RobotSettingsDashboard' -import { getRobotUpdateAvailable } from '../../../../redux/robot-update' -import { useNetworkConnection } from '../../../../resources/networking/hooks/useNetworkConnection' -import { useLEDLights } from '../../../../organisms/Devices/hooks' +} from '/app/organisms/ODD/RobotSettingsDashboard' +import { getRobotUpdateAvailable } from '/app/redux/robot-update' +import { useNetworkConnection } from '/app/resources/networking/hooks/useNetworkConnection' +import { useLEDLights } from '/app/organisms/Devices/hooks' import { RobotSettingsDashboard } from '../' -vi.mock('../../../../redux/discovery') -vi.mock('../../../../redux/robot-update') -vi.mock('../../../../redux/config') -vi.mock('../../../../redux/robot-settings') -vi.mock('../../../../resources/networking/hooks/useNetworkConnection') -vi.mock('../../../../organisms/Navigation') -vi.mock('../../../../organisms/ODD/RobotSettingsDashboard/TouchScreenSleep') -vi.mock('../../../../organisms/ODD/RobotSettingsDashboard/NetworkSettings') -vi.mock('../../../../organisms/ODD/RobotSettingsDashboard/DeviceReset') -vi.mock('../../../../organisms/ODD/RobotSettingsDashboard/RobotSystemVersion') -vi.mock( - '../../../../organisms/ODD/RobotSettingsDashboard/TouchscreenBrightness' -) -vi.mock('../../../../organisms/ODD/RobotSettingsDashboard/UpdateChannel') -vi.mock('../../../../organisms/Devices/hooks') -vi.mock('../../../../organisms/ODD/RobotSettingsDashboard/Privacy') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-update') +vi.mock('/app/redux/config') +vi.mock('/app/redux/robot-settings') +vi.mock('/app/resources/networking/hooks/useNetworkConnection') +vi.mock('/app/organisms/Navigation') +vi.mock('/app/organisms/ODD/RobotSettingsDashboard/TouchScreenSleep') +vi.mock('/app/organisms/ODD/RobotSettingsDashboard/NetworkSettings') +vi.mock('/app/organisms/ODD/RobotSettingsDashboard/DeviceReset') +vi.mock('/app/organisms/ODD/RobotSettingsDashboard/RobotSystemVersion') +vi.mock('/app/organisms/ODD/RobotSettingsDashboard/TouchscreenBrightness') +vi.mock('/app/organisms/ODD/RobotSettingsDashboard/UpdateChannel') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/organisms/ODD/RobotSettingsDashboard/Privacy') const mockToggleLights = vi.fn() diff --git a/app/src/pages/ODD/RobotSettingsDashboard/index.tsx b/app/src/pages/ODD/RobotSettingsDashboard/index.tsx index e144111b579..a7154598608 100644 --- a/app/src/pages/ODD/RobotSettingsDashboard/index.tsx +++ b/app/src/pages/ODD/RobotSettingsDashboard/index.tsx @@ -3,7 +3,7 @@ import { useDispatch, useSelector } from 'react-redux' import { useTranslation } from 'react-i18next' import last from 'lodash/last' -import { EthernetConnectionDetails } from '../../../organisms/ODD/RobotSettingsDashboard/NetworkSettings/EthernetConnectionDetails' +import { EthernetConnectionDetails } from '/app/organisms/ODD/RobotSettingsDashboard/NetworkSettings/EthernetConnectionDetails' import { DeviceReset, TouchscreenBrightness, @@ -18,25 +18,25 @@ import { RobotSettingsWifiConnect, RobotSystemVersion, UpdateChannel, -} from '../../../organisms/ODD/RobotSettingsDashboard' +} from '/app/organisms/ODD/RobotSettingsDashboard' import { getRobotUpdateAvailable, getRobotUpdateInfoForRobot, -} from '../../../redux/robot-update' +} from '/app/redux/robot-update' import { getLocalRobot, getRobotApiVersion, UNREACHABLE, -} from '../../../redux/discovery' -import { fetchStatus, postWifiConfigure } from '../../../redux/networking' -import { getRequestById, useDispatchApiRequest } from '../../../redux/robot-api' -import { useWifiList } from '../../../resources/networking/hooks' -import { useNetworkConnection } from '../../../resources/networking/hooks/useNetworkConnection' +} from '/app/redux/discovery' +import { fetchStatus, postWifiConfigure } from '/app/redux/networking' +import { getRequestById, useDispatchApiRequest } from '/app/redux/robot-api' +import { useWifiList } from '/app/resources/networking/hooks' +import { useNetworkConnection } from '/app/resources/networking/hooks/useNetworkConnection' import { RobotSettingsList } from './RobotSettingsList' import type { WifiSecurityType } from '@opentrons/api-client' -import type { Dispatch, State } from '../../../redux/types' -import type { SettingOption } from '../../../organisms/ODD/RobotSettingsDashboard' +import type { Dispatch, State } from '/app/redux/types' +import type { SettingOption } from '/app/organisms/ODD/RobotSettingsDashboard' export function RobotSettingsDashboard(): JSX.Element { const { i18n, t } = useTranslation('shared') diff --git a/app/src/pages/ODD/RunSummary/index.tsx b/app/src/pages/ODD/RunSummary/index.tsx index 800d14ec9c1..a0afb16a767 100644 --- a/app/src/pages/ODD/RunSummary/index.tsx +++ b/app/src/pages/ODD/RunSummary/index.tsx @@ -44,37 +44,37 @@ import { import { useRunTimestamps, useRunControls, -} from '../../../organisms/RunTimeControl/hooks' +} from '/app/organisms/RunTimeControl/hooks' import { useRunCreatedAtTimestamp, useTrackProtocolRunEvent, useRobotAnalyticsData, -} from '../../../organisms/Devices/hooks' -import { useCloseCurrentRun } from '../../../organisms/ProtocolUpload/hooks' -import { onDeviceDisplayFormatTimestamp } from '../../../organisms/Devices/utils' -import { EMPTY_TIMESTAMP } from '../../../organisms/Devices/constants' -import { RunTimer } from '../../../organisms/Devices/ProtocolRun/RunTimer' +} from '/app/organisms/Devices/hooks' +import { useCloseCurrentRun } from '/app/organisms/ProtocolUpload/hooks' +import { onDeviceDisplayFormatTimestamp } from '/app/organisms/Devices/utils' +import { EMPTY_TIMESTAMP } from '/app/organisms/Devices/constants' +import { RunTimer } from '/app/organisms/Devices/ProtocolRun/RunTimer' import { useTrackEvent, ANALYTICS_PROTOCOL_RUN_ACTION, ANALYTICS_PROTOCOL_PROCEED_TO_RUN, -} from '../../../redux/analytics' -import { getLocalRobot } from '../../../redux/discovery' -import { RunFailedModal } from '../../../organisms/ODD/RunningProtocol' +} from '/app/redux/analytics' +import { getLocalRobot } from '/app/redux/discovery' +import { RunFailedModal } from '/app/organisms/ODD/RunningProtocol' import { formatTimeWithUtcLabel, useIsRunCurrent, useNotifyRunQuery, -} from '../../../resources/runs' +} from '/app/resources/runs' import { useTipAttachmentStatus, handleTipsAttachedModal, -} from '../../../organisms/DropTipWizardFlows' -import { useRecoveryAnalytics } from '../../../organisms/ErrorRecoveryFlows/hooks' +} from '/app/organisms/DropTipWizardFlows' +import { useRecoveryAnalytics } from '/app/organisms/ErrorRecoveryFlows/hooks' import type { IconName } from '@opentrons/components' import type { OnDeviceRouteParams } from '../../../App/types' -import type { PipetteWithTip } from '../../../organisms/DropTipWizardFlows' +import type { PipetteWithTip } from '/app/organisms/DropTipWizardFlows' export function RunSummary(): JSX.Element { const { runId } = useParams< diff --git a/app/src/pages/ODD/RunningProtocol/__tests__/RunningProtocol.test.tsx b/app/src/pages/ODD/RunningProtocol/__tests__/RunningProtocol.test.tsx index 2757da982f2..464e9c725fe 100644 --- a/app/src/pages/ODD/RunningProtocol/__tests__/RunningProtocol.test.tsx +++ b/app/src/pages/ODD/RunningProtocol/__tests__/RunningProtocol.test.tsx @@ -17,58 +17,56 @@ import { useRunActionMutations, } from '@opentrons/react-api-client' -import { renderWithProviders } from '../../../../__testing-utils__' -import { mockRobotSideAnalysis } from '../../../../molecules/Command/__fixtures__' +import { renderWithProviders } from '/app/__testing-utils__' +import { mockRobotSideAnalysis } from '/app/molecules/Command/__fixtures__' import { CurrentRunningProtocolCommand, RunningProtocolSkeleton, -} from '../../../../organisms/ODD/RunningProtocol' -import { mockUseAllCommandsResponseNonDeterministic } from '../../../../organisms/RunProgressMeter/__fixtures__' +} from '/app/organisms/ODD/RunningProtocol' +import { mockUseAllCommandsResponseNonDeterministic } from '/app/organisms/RunProgressMeter/__fixtures__' import { useRunStatus, useRunTimestamps, -} from '../../../../organisms/RunTimeControl/hooks' -import { getLocalRobot } from '../../../../redux/discovery' -import { CancelingRunModal } from '../../../../organisms/ODD/RunningProtocol/CancelingRunModal' -import { useTrackProtocolRunEvent } from '../../../../organisms/Devices/hooks' -import { useMostRecentCompletedAnalysis } from '../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -import { OpenDoorAlertModal } from '../../../../organisms/OpenDoorAlertModal' +} from '/app/organisms/RunTimeControl/hooks' +import { getLocalRobot } from '/app/redux/discovery' +import { CancelingRunModal } from '/app/organisms/ODD/RunningProtocol/CancelingRunModal' +import { useTrackProtocolRunEvent } from '/app/organisms/Devices/hooks' +import { useMostRecentCompletedAnalysis } from '/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' +import { OpenDoorAlertModal } from '/app/organisms/OpenDoorAlertModal' import { RunningProtocol } from '..' import { useNotifyRunQuery, useNotifyAllCommandsQuery, -} from '../../../../resources/runs' -import { useFeatureFlag } from '../../../../redux/config' +} from '/app/resources/runs' +import { useFeatureFlag } from '/app/redux/config' import { ErrorRecoveryFlows, useErrorRecoveryFlows, -} from '../../../../organisms/ErrorRecoveryFlows' -import { useLastRunCommand } from '../../../../organisms/Devices/hooks/useLastRunCommand' +} from '/app/organisms/ErrorRecoveryFlows' +import { useLastRunCommand } from '/app/organisms/Devices/hooks/useLastRunCommand' import { useInterventionModal, InterventionModal, -} from '../../../../organisms/InterventionModal' +} from '/app/organisms/InterventionModal' import type { UseQueryResult } from 'react-query' import type { ProtocolAnalyses, RunCommandSummary } from '@opentrons/api-client' vi.mock('@opentrons/react-api-client') -vi.mock('../../../../organisms/Devices/hooks') -vi.mock('../../../../organisms/Devices/hooks/useLastRunCommandKey') -vi.mock('../../../../organisms/RunTimeControl/hooks') -vi.mock( - '../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -) -vi.mock('../../../../organisms/RunTimeControl/hooks') -vi.mock('../../../../organisms/ODD/RunningProtocol') -vi.mock('../../../../redux/discovery') -vi.mock('../../../../organisms/ODD/RunningProtocol/CancelingRunModal') -vi.mock('../../../../organisms/OpenDoorAlertModal') -vi.mock('../../../../resources/runs') -vi.mock('../../../../redux/config') -vi.mock('../../../../organisms/ErrorRecoveryFlows') -vi.mock('../../../../organisms/Devices/hooks/useLastRunCommand') -vi.mock('../../../../organisms/InterventionModal') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/organisms/Devices/hooks/useLastRunCommandKey') +vi.mock('/app/organisms/RunTimeControl/hooks') +vi.mock('/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis') +vi.mock('/app/organisms/RunTimeControl/hooks') +vi.mock('/app/organisms/ODD/RunningProtocol') +vi.mock('/app/redux/discovery') +vi.mock('/app/organisms/ODD/RunningProtocol/CancelingRunModal') +vi.mock('/app/organisms/OpenDoorAlertModal') +vi.mock('/app/resources/runs') +vi.mock('/app/redux/config') +vi.mock('/app/organisms/ErrorRecoveryFlows') +vi.mock('/app/organisms/Devices/hooks/useLastRunCommand') +vi.mock('/app/organisms/InterventionModal') const RUN_ID = 'run_id' const ROBOT_NAME = 'otie' diff --git a/app/src/pages/ODD/RunningProtocol/index.tsx b/app/src/pages/ODD/RunningProtocol/index.tsx index 02d961a0b3a..bf81cb46d3b 100644 --- a/app/src/pages/ODD/RunningProtocol/index.tsx +++ b/app/src/pages/ODD/RunningProtocol/index.tsx @@ -26,36 +26,36 @@ import { RUN_STATUS_BLOCKED_BY_OPEN_DOOR, } from '@opentrons/api-client' -import { StepMeter } from '../../../atoms/StepMeter' -import { useMostRecentCompletedAnalysis } from '../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -import { useNotifyRunQuery } from '../../../resources/runs' +import { StepMeter } from '/app/atoms/StepMeter' +import { useMostRecentCompletedAnalysis } from '/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' +import { useNotifyRunQuery } from '/app/resources/runs' import { InterventionModal, useInterventionModal, -} from '../../../organisms/InterventionModal' +} from '/app/organisms/InterventionModal' import { useRunStatus, useRunTimestamps, -} from '../../../organisms/RunTimeControl/hooks' +} from '/app/organisms/RunTimeControl/hooks' import { CurrentRunningProtocolCommand, RunningProtocolCommandList, RunningProtocolSkeleton, -} from '../../../organisms/ODD/RunningProtocol' +} from '/app/organisms/ODD/RunningProtocol' import { useTrackProtocolRunEvent, useRobotAnalyticsData, useRobotType, -} from '../../../organisms/Devices/hooks' -import { CancelingRunModal } from '../../../organisms/ODD/RunningProtocol/CancelingRunModal' -import { ConfirmCancelRunModal } from '../../../organisms/ODD/RunningProtocol/ConfirmCancelRunModal' -import { getLocalRobot } from '../../../redux/discovery' -import { OpenDoorAlertModal } from '../../../organisms/OpenDoorAlertModal' +} from '/app/organisms/Devices/hooks' +import { CancelingRunModal } from '/app/organisms/ODD/RunningProtocol/CancelingRunModal' +import { ConfirmCancelRunModal } from '/app/organisms/ODD/RunningProtocol/ConfirmCancelRunModal' +import { getLocalRobot } from '/app/redux/discovery' +import { OpenDoorAlertModal } from '/app/organisms/OpenDoorAlertModal' import { useErrorRecoveryFlows, ErrorRecoveryFlows, -} from '../../../organisms/ErrorRecoveryFlows' -import { useLastRunCommand } from '../../../organisms/Devices/hooks/useLastRunCommand' +} from '/app/organisms/ErrorRecoveryFlows' +import { useLastRunCommand } from '/app/organisms/Devices/hooks/useLastRunCommand' import type { OnDeviceRouteParams } from '../../../App/types' diff --git a/app/src/pages/ODD/UpdateRobot/UpdateRobot.tsx b/app/src/pages/ODD/UpdateRobot/UpdateRobot.tsx index 0a3929e04f9..5b2b32c69cc 100644 --- a/app/src/pages/ODD/UpdateRobot/UpdateRobot.tsx +++ b/app/src/pages/ODD/UpdateRobot/UpdateRobot.tsx @@ -5,22 +5,22 @@ import { useTranslation } from 'react-i18next' import { Flex, SPACING, DIRECTION_ROW } from '@opentrons/components' -import { getLocalRobot } from '../../../redux/discovery' +import { getLocalRobot } from '/app/redux/discovery' import { getRobotUpdateAvailable, clearRobotUpdateSession, -} from '../../../redux/robot-update' -import { useDispatchStartRobotUpdate } from '../../../redux/robot-update/hooks' -import { UNREACHABLE } from '../../../redux/discovery/constants' +} from '/app/redux/robot-update' +import { useDispatchStartRobotUpdate } from '/app/redux/robot-update/hooks' +import { UNREACHABLE } from '/app/redux/discovery/constants' -import { MediumButton } from '../../../atoms/buttons' +import { MediumButton } from '/app/atoms/buttons' import { UpdateRobotSoftware, NoUpdateFound, ErrorUpdateSoftware, -} from '../../../organisms/UpdateRobotSoftware' +} from '/app/organisms/UpdateRobotSoftware' -import type { State, Dispatch } from '../../../redux/types' +import type { State, Dispatch } from '/app/redux/types' export function UpdateRobot(): JSX.Element { const navigate = useNavigate() diff --git a/app/src/pages/ODD/UpdateRobot/UpdateRobotDuringOnboarding.tsx b/app/src/pages/ODD/UpdateRobot/UpdateRobotDuringOnboarding.tsx index 3efcc4bace2..9755336617e 100644 --- a/app/src/pages/ODD/UpdateRobot/UpdateRobotDuringOnboarding.tsx +++ b/app/src/pages/ODD/UpdateRobot/UpdateRobotDuringOnboarding.tsx @@ -5,27 +5,27 @@ import { useTranslation } from 'react-i18next' import { Flex, SPACING, DIRECTION_ROW } from '@opentrons/components' -import { useDispatchStartRobotUpdate } from '../../../redux/robot-update/hooks' +import { useDispatchStartRobotUpdate } from '/app/redux/robot-update/hooks' -import { getLocalRobot } from '../../../redux/discovery' +import { getLocalRobot } from '/app/redux/discovery' import { getRobotUpdateAvailable, clearRobotUpdateSession, -} from '../../../redux/robot-update' -import { UNREACHABLE } from '../../../redux/discovery/constants' +} from '/app/redux/robot-update' +import { UNREACHABLE } from '/app/redux/discovery/constants' import { getOnDeviceDisplaySettings, updateConfigValue, -} from '../../../redux/config' -import { MediumButton } from '../../../atoms/buttons' +} from '/app/redux/config' +import { MediumButton } from '/app/atoms/buttons' import { UpdateRobotSoftware, CheckUpdates, NoUpdateFound, ErrorUpdateSoftware, -} from '../../../organisms/UpdateRobotSoftware' +} from '/app/organisms/UpdateRobotSoftware' -import type { Dispatch, State } from '../../../redux/types' +import type { Dispatch, State } from '/app/redux/types' const CHECK_UPDATES_DURATION = 10000 // Note: kj 1/10/2023 Currently set 10 sec later we may use a status from state diff --git a/app/src/pages/ODD/UpdateRobot/__tests__/UpdateRobot.test.tsx b/app/src/pages/ODD/UpdateRobot/__tests__/UpdateRobot.test.tsx index de37b8c36c8..89d0ce8e855 100644 --- a/app/src/pages/ODD/UpdateRobot/__tests__/UpdateRobot.test.tsx +++ b/app/src/pages/ODD/UpdateRobot/__tests__/UpdateRobot.test.tsx @@ -4,19 +4,19 @@ import { MemoryRouter } from 'react-router-dom' import { when } from 'vitest-when' import { screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' -import * as RobotUpdate from '../../../../redux/robot-update' -import type { RobotUpdateSession } from '../../../../redux/robot-update/types' -import { getLocalRobot } from '../../../../redux/discovery' +import * as RobotUpdate from '/app/redux/robot-update' +import type { RobotUpdateSession } from '/app/redux/robot-update/types' +import { getLocalRobot } from '/app/redux/discovery' import { UpdateRobot } from '../UpdateRobot' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../../redux/discovery') -vi.mock('../../../../redux/robot-update') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-update') const MOCK_STATE: State = { discovery: { diff --git a/app/src/pages/ODD/UpdateRobot/__tests__/UpdateRobotDuringOnboarding.test.tsx b/app/src/pages/ODD/UpdateRobot/__tests__/UpdateRobotDuringOnboarding.test.tsx index 46711fa15a3..99bf8040a0b 100644 --- a/app/src/pages/ODD/UpdateRobot/__tests__/UpdateRobotDuringOnboarding.test.tsx +++ b/app/src/pages/ODD/UpdateRobot/__tests__/UpdateRobotDuringOnboarding.test.tsx @@ -2,19 +2,19 @@ import * as React from 'react' import { vi, it, describe, expect, beforeEach, afterEach } from 'vitest' import { MemoryRouter } from 'react-router-dom' import { act, screen } from '@testing-library/react' -import { renderWithProviders } from '../../../../__testing-utils__' -import { i18n } from '../../../../i18n' +import { renderWithProviders } from '/app/__testing-utils__' +import { i18n } from '/app/i18n' -import * as RobotUpdate from '../../../../redux/robot-update' -import type { RobotUpdateSession } from '../../../../redux/robot-update/types' -import { getLocalRobot } from '../../../../redux/discovery' +import * as RobotUpdate from '/app/redux/robot-update' +import type { RobotUpdateSession } from '/app/redux/robot-update/types' +import { getLocalRobot } from '/app/redux/discovery' import { UpdateRobotDuringOnboarding } from '../UpdateRobotDuringOnboarding' -import type { State } from '../../../../redux/types' +import type { State } from '/app/redux/types' -vi.mock('../../../../redux/discovery') -vi.mock('../../../../redux/robot-update') +vi.mock('/app/redux/discovery') +vi.mock('/app/redux/robot-update') const MOCK_STATE: State = { discovery: { diff --git a/app/src/pages/ODD/Welcome/__tests__/Welcome.test.tsx b/app/src/pages/ODD/Welcome/__tests__/Welcome.test.tsx index c591c1379d0..c176a840347 100644 --- a/app/src/pages/ODD/Welcome/__tests__/Welcome.test.tsx +++ b/app/src/pages/ODD/Welcome/__tests__/Welcome.test.tsx @@ -3,9 +3,9 @@ import { vi, it, describe, expect } from 'vitest' import { fireEvent, screen } from '@testing-library/react' import { MemoryRouter } from 'react-router-dom' -import { renderWithProviders } from '../../../../__testing-utils__' +import { renderWithProviders } from '/app/__testing-utils__' -import { i18n } from '../../../../i18n' +import { i18n } from '/app/i18n' import { Welcome } from '..' import type { NavigateFunction } from 'react-router-dom' diff --git a/app/src/pages/ODD/Welcome/index.tsx b/app/src/pages/ODD/Welcome/index.tsx index f4564904f0e..48642c7264b 100644 --- a/app/src/pages/ODD/Welcome/index.tsx +++ b/app/src/pages/ODD/Welcome/index.tsx @@ -10,9 +10,9 @@ import { LegacyStyledText, TYPOGRAPHY, } from '@opentrons/components' -import { MediumButton } from '../../../atoms/buttons' +import { MediumButton } from '/app/atoms/buttons' -import screenImage from '../../../assets/images/on-device-display/welcome_background.png' +import screenImage from '/app/assets/images/on-device-display/welcome_background.png' const IMAGE_ALT = 'Welcome screen background image' diff --git a/app/src/redux/config/schema-types.ts b/app/src/redux/config/schema-types.ts index 1d277c4e62a..d37cd10e155 100644 --- a/app/src/redux/config/schema-types.ts +++ b/app/src/redux/config/schema-types.ts @@ -1,5 +1,5 @@ import type { LogLevel } from '../../logger' -import type { ProtocolSort } from '../../organisms/ProtocolsLanding/hooks' +import type { ProtocolSort } from '/app/organisms/ProtocolsLanding/hooks' export type UrlProtocol = 'file:' | 'http:' diff --git a/app/src/redux/config/selectors.ts b/app/src/redux/config/selectors.ts index 76749e0a869..2ff13a2fdc2 100644 --- a/app/src/redux/config/selectors.ts +++ b/app/src/redux/config/selectors.ts @@ -9,8 +9,8 @@ import type { QuickTransfersOnDeviceSortKey, OnDeviceDisplaySettings, } from './types' -import type { SelectOption } from '../../atoms/SelectField/Select' -import type { ProtocolSort } from '../../organisms/ProtocolsLanding/hooks' +import type { SelectOption } from '/app/atoms/SelectField/Select' +import type { ProtocolSort } from '/app/organisms/ProtocolsLanding/hooks' export const getConfig = (state: State): Config | null => state.config diff --git a/app/src/redux/custom-labware/__fixtures__/index.ts b/app/src/redux/custom-labware/__fixtures__/index.ts index 3b2da5d77df..ba7db7d218f 100644 --- a/app/src/redux/custom-labware/__fixtures__/index.ts +++ b/app/src/redux/custom-labware/__fixtures__/index.ts @@ -1,5 +1,5 @@ import type { LabwareDefinition2 } from '@opentrons/shared-data' -import type { LabwareWellGroupProperties } from '../../../pages/Desktop/Labware/types' +import type { LabwareWellGroupProperties } from '/app/pages/Desktop/Labware/types' import type * as Types from '../types' export const mockDefinition: LabwareDefinition2 = { diff --git a/app/src/redux/pipettes/__fixtures__/index.ts b/app/src/redux/pipettes/__fixtures__/index.ts index f8433cf6465..8194b278b17 100644 --- a/app/src/redux/pipettes/__fixtures__/index.ts +++ b/app/src/redux/pipettes/__fixtures__/index.ts @@ -13,7 +13,7 @@ import { mockTipRackDefinition } from '../../custom-labware/__fixtures__' import type { PipetteInfo, PipetteInformation, -} from '../../../organisms/Devices/hooks' +} from '/app/organisms/Devices/hooks' import type { PipetteData } from '@opentrons/api-client' export const mockRobot = { name: 'robot', ip: '127.0.0.1', port: 31950 } diff --git a/app/src/redux/robot-api/http.ts b/app/src/redux/robot-api/http.ts index 63f961acf85..0246a80492b 100644 --- a/app/src/redux/robot-api/http.ts +++ b/app/src/redux/robot-api/http.ts @@ -7,8 +7,8 @@ import omitBy from 'lodash/omitBy' import inRange from 'lodash/inRange' import type { AxiosError } from 'axios' -import { OPENTRONS_USB } from '../../redux/discovery' -import { appShellRequestor } from '../../redux/shell/remote' +import { OPENTRONS_USB } from '../discovery' +import { appShellRequestor } from '../shell/remote' import { HTTP_API_VERSION } from './constants' import type { Observable } from 'rxjs' diff --git a/app/src/redux/robot-update/__tests__/hooks.test.tsx b/app/src/redux/robot-update/__tests__/hooks.test.tsx index a6366b5566e..d4f0101b754 100644 --- a/app/src/redux/robot-update/__tests__/hooks.test.tsx +++ b/app/src/redux/robot-update/__tests__/hooks.test.tsx @@ -5,7 +5,7 @@ import { renderHook } from '@testing-library/react' import { I18nextProvider } from 'react-i18next' import { Provider } from 'react-redux' -import { i18n } from '../../../i18n' +import { i18n } from '/app/i18n' import { useDispatchStartRobotUpdate } from '../hooks' import { startRobotUpdate, clearRobotUpdateSession } from '../actions' diff --git a/app/src/resources/__tests__/useNotifyDataReady.test.ts b/app/src/resources/__tests__/useNotifyDataReady.test.ts index 3ac0130a85d..c41477a49fa 100644 --- a/app/src/resources/__tests__/useNotifyDataReady.test.ts +++ b/app/src/resources/__tests__/useNotifyDataReady.test.ts @@ -6,10 +6,10 @@ import { when } from 'vitest-when' import { useHost } from '@opentrons/react-api-client' import { useNotifyDataReady } from '../useNotifyDataReady' -import { appShellListener } from '../../redux/shell/remote' -import { useTrackEvent } from '../../redux/analytics' -import { notifySubscribeAction } from '../../redux/shell' -import { useFeatureFlag } from '../../redux/config' +import { appShellListener } from '/app/redux/shell/remote' +import { useTrackEvent } from '/app/redux/analytics' +import { notifySubscribeAction } from '/app/redux/shell' +import { useFeatureFlag } from '/app/redux/config' import type { Mock } from 'vitest' import type { HostConfig } from '@opentrons/api-client' @@ -18,9 +18,9 @@ import type { QueryOptionsWithPolling } from '../useNotifyDataReady' vi.unmock('../useNotifyDataReady') vi.mock('react-redux') vi.mock('@opentrons/react-api-client') -vi.mock('../../redux/analytics') -vi.mock('../../redux/config') -vi.mock('../../redux/shell/remote', () => ({ +vi.mock('/app/redux/analytics') +vi.mock('/app/redux/config') +vi.mock('/app/redux/shell/remote', () => ({ appShellListener: vi.fn(), })) diff --git a/app/src/resources/client_data/recovery/useUpdateClientDataRecovery.ts b/app/src/resources/client_data/recovery/useUpdateClientDataRecovery.ts index da5164e2b85..ff4c87026a4 100644 --- a/app/src/resources/client_data/recovery/useUpdateClientDataRecovery.ts +++ b/app/src/resources/client_data/recovery/useUpdateClientDataRecovery.ts @@ -1,7 +1,7 @@ import { useUpdateClientData } from '@opentrons/react-api-client' import { useSelector } from 'react-redux' -import { getUserId } from '../../../redux/config' +import { getUserId } from '/app/redux/config' import { KEYS } from '../constants' import type { diff --git a/app/src/resources/deck_configuration/hooks.tsx b/app/src/resources/deck_configuration/hooks.tsx index 42b1e657a02..6e880e0d273 100644 --- a/app/src/resources/deck_configuration/hooks.tsx +++ b/app/src/resources/deck_configuration/hooks.tsx @@ -25,7 +25,7 @@ import type { } from '@opentrons/shared-data' import { useNotifyDeckConfigurationQuery } from './useNotifyDeckConfigurationQuery' -import { AddFixtureModal } from '../../organisms/DeviceDetailsDeckConfiguration/AddFixtureModal' +import { AddFixtureModal } from '/app/organisms/DeviceDetailsDeckConfiguration/AddFixtureModal' import { useUpdateDeckConfigurationMutation } from '@opentrons/react-api-client' const DECK_CONFIG_REFETCH_INTERVAL = 5000 diff --git a/app/src/resources/devices/__tests__/useIsEstopNotDisengaged.test.tsx b/app/src/resources/devices/__tests__/useIsEstopNotDisengaged.test.tsx index 7d64b32de17..069c1998527 100644 --- a/app/src/resources/devices/__tests__/useIsEstopNotDisengaged.test.tsx +++ b/app/src/resources/devices/__tests__/useIsEstopNotDisengaged.test.tsx @@ -1,17 +1,17 @@ import { when } from 'vitest-when' import { describe, it, expect, vi, beforeEach } from 'vitest' -import { useIsFlex } from '../../../organisms/Devices/hooks' +import { useIsFlex } from '/app/organisms/Devices/hooks' import { useEstopQuery } from '@opentrons/react-api-client' import { DISENGAGED, NOT_PRESENT, PHYSICALLY_ENGAGED, LOGICALLY_ENGAGED, -} from '../../../organisms/EmergencyStop' +} from '/app/organisms/EmergencyStop' import { useIsEstopNotDisengaged } from '../hooks/useIsEstopNotDisengaged' vi.mock('@opentrons/react-api-client') -vi.mock('../../../organisms/Devices/hooks') +vi.mock('/app/organisms/Devices/hooks') const ROBOT_NAME = 'mockRobot' const mockEstopStatus = { diff --git a/app/src/resources/devices/hooks/useIsEstopNotDisengaged.ts b/app/src/resources/devices/hooks/useIsEstopNotDisengaged.ts index 0897c16084c..62dc2497c7c 100644 --- a/app/src/resources/devices/hooks/useIsEstopNotDisengaged.ts +++ b/app/src/resources/devices/hooks/useIsEstopNotDisengaged.ts @@ -1,6 +1,6 @@ import { useEstopQuery } from '@opentrons/react-api-client' -import { useIsFlex } from '../../../organisms/Devices/hooks' -import { DISENGAGED } from '../../../organisms/EmergencyStop' +import { useIsFlex } from '/app/organisms/Devices/hooks' +import { DISENGAGED } from '/app/organisms/EmergencyStop' /** * Checks if the emergency stop is not disengaged. diff --git a/app/src/resources/networking/__tests__/useCanDisconnect.test.tsx b/app/src/resources/networking/__tests__/useCanDisconnect.test.tsx index f51f5dca2e0..7bd9d65b5f4 100644 --- a/app/src/resources/networking/__tests__/useCanDisconnect.test.tsx +++ b/app/src/resources/networking/__tests__/useCanDisconnect.test.tsx @@ -5,19 +5,19 @@ import { createStore } from 'redux' import { Provider } from 'react-redux' import { SECURITY_WPA_EAP } from '@opentrons/api-client' import { renderHook } from '@testing-library/react' -import { getRobotApiVersionByName } from '../../../redux/discovery' +import { getRobotApiVersionByName } from '/app/redux/discovery' -import { useIsFlex } from '../../../organisms/Devices/hooks' +import { useIsFlex } from '/app/organisms/Devices/hooks' import { useCanDisconnect } from '../hooks/useCanDisconnect' import { useWifiList } from '../hooks/useWifiList' import type { WifiNetwork } from '@opentrons/api-client' import type { Store } from 'redux' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' vi.mock('../hooks/useWifiList') -vi.mock('../../../organisms/Devices/hooks') -vi.mock('../../../redux/discovery') +vi.mock('/app/organisms/Devices/hooks') +vi.mock('/app/redux/discovery') const store: Store = createStore(state => state, {}) diff --git a/app/src/resources/networking/__tests__/useNetworkConnection.test.tsx b/app/src/resources/networking/__tests__/useNetworkConnection.test.tsx index f6f038dd081..211e398ab3f 100644 --- a/app/src/resources/networking/__tests__/useNetworkConnection.test.tsx +++ b/app/src/resources/networking/__tests__/useNetworkConnection.test.tsx @@ -7,17 +7,17 @@ import { createStore } from 'redux' import { renderHook } from '@testing-library/react' import { I18nextProvider } from 'react-i18next' -import { i18n } from '../../../i18n' -import { useWifiList } from '../../../resources/networking/hooks' -import * as Networking from '../../../redux/networking' -import * as Fixtures from '../../../redux/networking/__fixtures__' -import { getNetworkInterfaces } from '../../../redux/networking' +import { i18n } from '/app/i18n' +import { useWifiList } from '/app/resources/networking/hooks' +import * as Networking from '/app/redux/networking' +import * as Fixtures from '/app/redux/networking/__fixtures__' +import { getNetworkInterfaces } from '/app/redux/networking' import { useNetworkConnection } from '../hooks/useNetworkConnection' import type { Store } from 'redux' -vi.mock('../../../resources/networking/hooks') -vi.mock('../../../redux/networking/selectors') +vi.mock('/app/resources/networking/hooks') +vi.mock('/app/redux/networking/selectors') const mockRobotName = 'robot-name' const mockWifiList = [ diff --git a/app/src/resources/networking/__tests__/useWifiList.test.ts b/app/src/resources/networking/__tests__/useWifiList.test.ts index d616067c2b8..a9b49dc4a33 100644 --- a/app/src/resources/networking/__tests__/useWifiList.test.ts +++ b/app/src/resources/networking/__tests__/useWifiList.test.ts @@ -2,13 +2,13 @@ import { when } from 'vitest-when' import { describe, it, expect, vi, beforeEach } from 'vitest' import { SECURITY_WPA_EAP } from '@opentrons/api-client' import { useWifiQuery } from '@opentrons/react-api-client' -import { useRobot } from '../../../organisms/Devices/hooks' +import { useRobot } from '/app/organisms/Devices/hooks' import { useWifiList } from '../hooks' import type { UseQueryResult } from 'react-query' import type { WifiNetwork, WifiListResponse } from '@opentrons/api-client' vi.mock('@opentrons/react-api-client') -vi.mock('../../../organisms/Devices/hooks') +vi.mock('/app/organisms/Devices/hooks') const mockWifiNetwork: WifiNetwork = { ssid: 'linksys', diff --git a/app/src/resources/networking/hooks/useCanDisconnect.ts b/app/src/resources/networking/hooks/useCanDisconnect.ts index 0c0110250ae..05184ae0de8 100644 --- a/app/src/resources/networking/hooks/useCanDisconnect.ts +++ b/app/src/resources/networking/hooks/useCanDisconnect.ts @@ -1,10 +1,10 @@ import { useSelector } from 'react-redux' import Semver from 'semver' -import { useIsFlex } from '../../../organisms/Devices/hooks' -import { getRobotApiVersionByName } from '../../../redux/discovery' +import { useIsFlex } from '/app/organisms/Devices/hooks' +import { getRobotApiVersionByName } from '/app/redux/discovery' import { useWifiList } from './useWifiList' -import type { State } from '../../../redux/types' +import type { State } from '/app/redux/types' const API_MIN_DISCONNECT_VERSION = '3.17.0-alpha.0' diff --git a/app/src/resources/networking/hooks/useNetworkConnection.ts b/app/src/resources/networking/hooks/useNetworkConnection.ts index 6588a687334..9781b8cea5e 100644 --- a/app/src/resources/networking/hooks/useNetworkConnection.ts +++ b/app/src/resources/networking/hooks/useNetworkConnection.ts @@ -2,11 +2,11 @@ import { useDispatch, useSelector } from 'react-redux' import { useTranslation } from 'react-i18next' import { useInterval } from '@opentrons/components' -import { useWifiList } from '../../../resources/networking/hooks' -import { fetchStatus, getNetworkInterfaces } from '../../../redux/networking' +import { useWifiList } from '/app/resources/networking/hooks' +import { fetchStatus, getNetworkInterfaces } from '/app/redux/networking' import type { IconName } from '@opentrons/components' -import type { Dispatch, State } from '../../../redux/types' +import type { Dispatch, State } from '/app/redux/types' export interface NetworkConnection { isWifiConnected: boolean diff --git a/app/src/resources/networking/hooks/useWifiList.ts b/app/src/resources/networking/hooks/useWifiList.ts index c8534410d38..7cacb76556d 100644 --- a/app/src/resources/networking/hooks/useWifiList.ts +++ b/app/src/resources/networking/hooks/useWifiList.ts @@ -1,7 +1,7 @@ import uniqBy from 'lodash/uniqBy' import orderBy from 'lodash/orderBy' import { useWifiQuery } from '@opentrons/react-api-client' -import { useRobot } from '../../../organisms/Devices/hooks' +import { useRobot } from '/app/organisms/Devices/hooks' import type { WifiNetwork } from '@opentrons/api-client' diff --git a/app/src/resources/protocols/hooks/__tests__/useRunningStepCount.test.ts b/app/src/resources/protocols/hooks/__tests__/useRunningStepCount.test.ts index 43675879dd6..b2b98b7d0d4 100644 --- a/app/src/resources/protocols/hooks/__tests__/useRunningStepCount.test.ts +++ b/app/src/resources/protocols/hooks/__tests__/useRunningStepCount.test.ts @@ -1,14 +1,12 @@ import { describe, it, expect, vi } from 'vitest' import { renderHook } from '@testing-library/react' -import { useMostRecentCompletedAnalysis } from '../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' +import { useMostRecentCompletedAnalysis } from '/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useRunningStepCounts } from '../useRunningStepCounts' import { useLastRunProtocolCommand } from '../useLastRunProtocolCommand' vi.mock('../useLastRunProtocolCommand') -vi.mock( - '../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' -) +vi.mock('/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis') const mockRunId = 'mock-run-id' const mockCommandsData = { diff --git a/app/src/resources/protocols/hooks/useRunningStepCounts.ts b/app/src/resources/protocols/hooks/useRunningStepCounts.ts index 6acd290d2d7..53a60701d99 100644 --- a/app/src/resources/protocols/hooks/useRunningStepCounts.ts +++ b/app/src/resources/protocols/hooks/useRunningStepCounts.ts @@ -1,4 +1,4 @@ -import { useMostRecentCompletedAnalysis } from '../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' +import { useMostRecentCompletedAnalysis } from '/app/organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis' import { useLastRunProtocolCommand } from './useLastRunProtocolCommand' diff --git a/app/src/resources/robot-settings/hooks.ts b/app/src/resources/robot-settings/hooks.ts index a548b154b56..6c712bb57bf 100644 --- a/app/src/resources/robot-settings/hooks.ts +++ b/app/src/resources/robot-settings/hooks.ts @@ -1,6 +1,6 @@ import { useSelector } from 'react-redux' import { useRobotSettingsQuery } from '@opentrons/react-api-client' -import { getIsOnDevice } from '../../redux/config' +import { getIsOnDevice } from '/app/redux/config' import type { RobotSettingsField } from '@opentrons/api-client' diff --git a/app/src/resources/runs/hooks.ts b/app/src/resources/runs/hooks.ts index ffbf86abe28..49ddb0b0d87 100644 --- a/app/src/resources/runs/hooks.ts +++ b/app/src/resources/runs/hooks.ts @@ -12,12 +12,12 @@ import { chainRunCommandsRecursive, setCommandIntent, } from './utils' -import { getIsOnDevice } from '../../redux/config' -import { useMaintenanceRunTakeover } from '../../organisms/TakeoverModal' +import { getIsOnDevice } from '/app/redux/config' +import { useMaintenanceRunTakeover } from '/app/organisms/TakeoverModal' import type { CreateCommand } from '@opentrons/shared-data' import type { HostConfig } from '@opentrons/api-client' -import type { ModulePrepCommandsType } from '../../organisms/Devices/getModulePrepCommands' +import type { ModulePrepCommandsType } from '/app/organisms/Devices/getModulePrepCommands' import type { CreateMaintenanceRunType, UseCreateMaintenanceRunMutationOptions, diff --git a/app/src/resources/runs/useNotifyRunQuery.ts b/app/src/resources/runs/useNotifyRunQuery.ts index 1faf89e5c3f..ba742b69e03 100644 --- a/app/src/resources/runs/useNotifyRunQuery.ts +++ b/app/src/resources/runs/useNotifyRunQuery.ts @@ -5,7 +5,7 @@ import { useNotifyDataReady } from '../useNotifyDataReady' import type { UseQueryResult } from 'react-query' import type { Run, HostConfig } from '@opentrons/api-client' import type { QueryOptionsWithPolling } from '../useNotifyDataReady' -import type { NotifyTopic } from '../../redux/shell/types' +import type { NotifyTopic } from '/app/redux/shell/types' export function useNotifyRunQuery( runId: string | null, diff --git a/app/src/resources/runs/utils.ts b/app/src/resources/runs/utils.ts index 596b2ccba29..60b5cf855b6 100644 --- a/app/src/resources/runs/utils.ts +++ b/app/src/resources/runs/utils.ts @@ -5,7 +5,7 @@ import type { UseMutateAsyncFunction } from 'react-query' import type { CommandData } from '@opentrons/api-client' import type { CreateCommand } from '@opentrons/shared-data' import type { CreateLiveCommandMutateParams } from '@opentrons/react-api-client/src/runs/useCreateLiveCommandMutation' -import type { ModulePrepCommandsType } from '../../organisms/Devices/getModulePrepCommands' +import type { ModulePrepCommandsType } from '/app/organisms/Devices/getModulePrepCommands' import type { CreateMaintenanceCommand, CreateRunCommand } from './hooks' export const chainRunCommandsRecursive = ( diff --git a/app/src/resources/useNotifyDataReady.ts b/app/src/resources/useNotifyDataReady.ts index dfc0e066daf..c0044679b94 100644 --- a/app/src/resources/useNotifyDataReady.ts +++ b/app/src/resources/useNotifyDataReady.ts @@ -4,17 +4,17 @@ import { useDispatch } from 'react-redux' import { useHost } from '@opentrons/react-api-client' -import { appShellListener } from '../redux/shell/remote' -import { notifySubscribeAction } from '../redux/shell' +import { appShellListener } from '/app/redux/shell/remote' +import { notifySubscribeAction } from '/app/redux/shell' import { useTrackEvent, ANALYTICS_NOTIFICATION_PORT_BLOCK_ERROR, -} from '../redux/analytics' -import { useFeatureFlag } from '../redux/config' +} from '/app/redux/analytics' +import { useFeatureFlag } from '/app/redux/config' import type { UseQueryOptions } from 'react-query' import type { HostConfig } from '@opentrons/api-client' -import type { NotifyTopic, NotifyResponseData } from '../redux/shell/types' +import type { NotifyTopic, NotifyResponseData } from '/app/redux/shell/types' export type HTTPRefetchFrequency = 'once' | null diff --git a/app/src/transformations/commands/hooks/__tests__/useMissingProtocolHardware.test.tsx b/app/src/transformations/commands/hooks/__tests__/useMissingProtocolHardware.test.tsx index 303ea03a784..99ce33a9de3 100644 --- a/app/src/transformations/commands/hooks/__tests__/useMissingProtocolHardware.test.tsx +++ b/app/src/transformations/commands/hooks/__tests__/useMissingProtocolHardware.test.tsx @@ -19,14 +19,12 @@ import type { DeckConfiguration, LabwareDefinition2, } from '@opentrons/shared-data' -import { useNotifyDeckConfigurationQuery } from '../../../../resources/deck_configuration/useNotifyDeckConfigurationQuery' +import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration/useNotifyDeckConfigurationQuery' import { useMissingProtocolHardware } from '../useMissingProtocolHardware' -import { mockHeaterShaker } from '../../../../redux/modules/__fixtures__' +import { mockHeaterShaker } from '/app/redux/modules/__fixtures__' vi.mock('@opentrons/react-api-client') -vi.mock( - '../../../../resources/deck_configuration/useNotifyDeckConfigurationQuery' -) +vi.mock('/app/resources/deck_configuration/useNotifyDeckConfigurationQuery') const mockRTPData = [ { diff --git a/app/src/transformations/commands/hooks/useMissingProtocolHardwareFromRequiredProtocolHardware.ts b/app/src/transformations/commands/hooks/useMissingProtocolHardwareFromRequiredProtocolHardware.ts index 5b94be3cc87..32a907d52bf 100644 --- a/app/src/transformations/commands/hooks/useMissingProtocolHardwareFromRequiredProtocolHardware.ts +++ b/app/src/transformations/commands/hooks/useMissingProtocolHardwareFromRequiredProtocolHardware.ts @@ -4,7 +4,7 @@ import type { ProtocolAnalysisOutput, RobotType, } from '@opentrons/shared-data' -import { useDeckConfigurationCompatibility } from '../../../resources/deck_configuration/hooks' +import { useDeckConfigurationCompatibility } from '/app/resources/deck_configuration/hooks' import type { ProtocolHardware, ProtocolModule, ProtocolFixture } from './types' /** diff --git a/app/src/transformations/commands/hooks/useRequiredProtocolHardwareFromAnalysis.ts b/app/src/transformations/commands/hooks/useRequiredProtocolHardwareFromAnalysis.ts index 95b5886072c..4106cbdc391 100644 --- a/app/src/transformations/commands/hooks/useRequiredProtocolHardwareFromAnalysis.ts +++ b/app/src/transformations/commands/hooks/useRequiredProtocolHardwareFromAnalysis.ts @@ -17,7 +17,7 @@ import type { CompletedProtocolAnalysis } from '@opentrons/shared-data' import { useNotifyDeckConfigurationQuery, useDeckConfigurationCompatibility, -} from '../../../resources/deck_configuration' +} from '/app/resources/deck_configuration' import type { ProtocolHardware, ProtocolGripper, diff --git a/app/tsconfig-data.json b/app/tsconfig-data.json index f33614fd7ba..60c499bce70 100644 --- a/app/tsconfig-data.json +++ b/app/tsconfig-data.json @@ -5,7 +5,10 @@ "composite": true, "emitDeclarationOnly": false, "rootDir": "src", - "outDir": "lib" + "outDir": "lib", + "paths": { + "/app/*": ["./src/*"] + } }, "include": ["src/**/*.json"], "exclude": ["**/*.ts", "**/*.tsx"] diff --git a/app/tsconfig.json b/app/tsconfig.json index 2eeac4d318a..92921aa2b1c 100644 --- a/app/tsconfig.json +++ b/app/tsconfig.json @@ -32,7 +32,10 @@ "compilerOptions": { "composite": true, "rootDir": "src", - "outDir": "lib" + "outDir": "lib", + "paths": { + "/app/*": ["./src/*"] + } }, "include": ["typings", "src"], "exclude": ["**/*.stories.tsx"] diff --git a/app/vite.config.ts b/app/vite.config.ts index 5104827f50c..0d1ccadcc19 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -68,6 +68,9 @@ export default defineConfig( '@opentrons/react-api-client': path.resolve( '../react-api-client/src/index.ts' ), + // "The resulting path (...) trailing slashes are removed unless the path is resolved to the root directory." + // https://nodejs.org/api/path.html#pathresolvepaths + '/app/': path.resolve('./src/') + '/', }, }, } diff --git a/tsconfig-base.json b/tsconfig-base.json index 47271f50eba..b00d4abf87a 100644 --- a/tsconfig-base.json +++ b/tsconfig-base.json @@ -1,17 +1,17 @@ { - "compilerOptions": { - "target": "esnext", - "module": "ESNext", - "jsx": "preserve", - "declaration": true, - "emitDeclarationOnly": true, - "strict": true, - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "resolveJsonModule": true, - "noErrorTruncation": true, - "skipLibCheck": true, - "moduleResolution": "node", - "types": ["vite/client", "vitest/globals", "@testing-library/jest-dom"], - } + "compilerOptions": { + "target": "esnext", + "module": "ESNext", + "jsx": "preserve", + "declaration": true, + "emitDeclarationOnly": true, + "strict": true, + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "resolveJsonModule": true, + "noErrorTruncation": true, + "skipLibCheck": true, + "moduleResolution": "node", + "types": ["vite/client", "vitest/globals", "@testing-library/jest-dom"] + } } diff --git a/tsconfig-eslint.json b/tsconfig-eslint.json index 57e5c24b0cf..4fa07c72874 100644 --- a/tsconfig-eslint.json +++ b/tsconfig-eslint.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig-base.json", "compilerOptions": { + "paths": { + "/app/*": ["./app/src/*"] + }, "emitDeclarationOnly": false, "noEmit": true }, @@ -47,6 +50,6 @@ "**/dist/**/*", "**/lib/**/*", "**/build/**", - "**/venv/**", + "**/venv/**" ] } diff --git a/vite.config.ts b/vite.config.ts index bc5615122c6..9133cd75dc2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -63,6 +63,7 @@ export default defineConfig({ '@opentrons/step-generation': path.resolve( './step-generation/src/index.ts' ), + '/app/': path.resolve('./app/src/') + '/', }, }, }) diff --git a/vitest.config.ts b/vitest.config.ts index 27ef068eba2..d311b1485c2 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -47,6 +47,9 @@ export default mergeConfig( '@opentrons/labware-library': path.resolve( './labware-library/src/labware-creator/index.tsx' ), + // "The resulting path (...) trailing slashes are removed unless the path is resolved to the root directory." + // https://nodejs.org/api/path.html#pathresolvepaths + '/app/': path.resolve('./app/src/') + '/', }, }, })