>
}
@@ -310,10 +328,10 @@ interface ProtocolSetupModulesProps {
/**
* an ODD screen on the Protocol Setup page
*/
-export function ProtocolSetupModules({
+export function ProtocolSetupModulesAndDeck({
runId,
setSetupScreen,
-}: ProtocolSetupModulesProps): JSX.Element {
+}: ProtocolSetupModulesAndDeckProps): JSX.Element {
const { i18n, t } = useTranslation('protocol_setup')
const { chainLiveCommands, isCommandMutationLoading } = useChainLiveCommands()
const [
diff --git a/app/src/organisms/ProtocolSetupModules/utils.ts b/app/src/organisms/ProtocolSetupModulesAndDeck/utils.ts
similarity index 100%
rename from app/src/organisms/ProtocolSetupModules/utils.ts
rename to app/src/organisms/ProtocolSetupModulesAndDeck/utils.ts
diff --git a/app/src/pages/OnDeviceDisplay/ProtocolSetup/__tests__/ProtocolSetup.test.tsx b/app/src/pages/OnDeviceDisplay/ProtocolSetup/__tests__/ProtocolSetup.test.tsx
index eca5cca6fe6..4587c0e6a79 100644
--- a/app/src/pages/OnDeviceDisplay/ProtocolSetup/__tests__/ProtocolSetup.test.tsx
+++ b/app/src/pages/OnDeviceDisplay/ProtocolSetup/__tests__/ProtocolSetup.test.tsx
@@ -26,8 +26,8 @@ import {
import { useMostRecentCompletedAnalysis } from '../../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis'
import { ProtocolSetupLiquids } from '../../../../organisms/ProtocolSetupLiquids'
import { getProtocolModulesInfo } from '../../../../organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo'
-import { ProtocolSetupModules } from '../../../../organisms/ProtocolSetupModules'
-import { getUnmatchedModulesForProtocol } from '../../../../organisms/ProtocolSetupModules/utils'
+import { ProtocolSetupModulesAndDeck } from '../../../../organisms/ProtocolSetupModulesAndDeck'
+import { getUnmatchedModulesForProtocol } from '../../../../organisms/ProtocolSetupModulesAndDeck/utils'
import { useLaunchLPC } from '../../../../organisms/LabwarePositionCheck/useLaunchLPC'
import { ConfirmCancelRunModal } from '../../../../organisms/OnDeviceDisplay/RunningProtocol'
import { mockProtocolModuleInfo } from '../../../../organisms/ProtocolSetupInstruments/__fixtures__'
@@ -65,8 +65,8 @@ jest.mock(
jest.mock(
'../../../../organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo'
)
-jest.mock('../../../../organisms/ProtocolSetupModules')
-jest.mock('../../../../organisms/ProtocolSetupModules/utils')
+jest.mock('../../../../organisms/ProtocolSetupModulesAndDeck')
+jest.mock('../../../../organisms/ProtocolSetupModulesAndDeck/utils')
jest.mock('../../../../organisms/OnDeviceDisplay/RunningProtocol')
jest.mock('../../../../organisms/RunTimeControl/hooks')
jest.mock('../../../../organisms/ProtocolSetupLiquids')
@@ -87,8 +87,8 @@ const mockUseRunCreatedAtTimestamp = useRunCreatedAtTimestamp as jest.MockedFunc
const mockGetProtocolModulesInfo = getProtocolModulesInfo as jest.MockedFunction<
typeof getProtocolModulesInfo
>
-const mockProtocolSetupModules = ProtocolSetupModules as jest.MockedFunction<
- typeof ProtocolSetupModules
+const mockProtocolSetupModulesAndDeck = ProtocolSetupModulesAndDeck as jest.MockedFunction<
+ typeof ProtocolSetupModulesAndDeck
>
const mockGetUnmatchedModulesForProtocol = getUnmatchedModulesForProtocol as jest.MockedFunction<
typeof getUnmatchedModulesForProtocol
@@ -210,8 +210,8 @@ describe('ProtocolSetup', () => {
mockLaunchLPC = jest.fn()
mockUseLPCDisabledReason.mockReturnValue(null)
mockUseAttachedModules.mockReturnValue([])
- mockProtocolSetupModules.mockReturnValue(
- Mock ProtocolSetupModules
+ mockProtocolSetupModulesAndDeck.mockReturnValue(
+ Mock ProtocolSetupModulesAndDeck
)
mockProtocolSetupLiquids.mockReturnValue(
Mock ProtocolSetupLiquids
@@ -335,9 +335,9 @@ describe('ProtocolSetup', () => {
.calledWith([], mockProtocolModuleInfo)
.mockReturnValue({ missingModuleIds: [], remainingAttachedModules: [] })
const [{ getByText, queryByText }] = render(`/runs/${RUN_ID}/setup/`)
- expect(queryByText('Mock ProtocolSetupModules')).toBeNull()
+ expect(queryByText('Mock ProtocolSetupModulesAndDeck')).toBeNull()
queryByText('Modules')?.click()
- getByText('Mock ProtocolSetupModules')
+ getByText('Mock ProtocolSetupModulesAndDeck')
})
it('should launch protocol setup liquids screen when click liquids', () => {
diff --git a/app/src/pages/OnDeviceDisplay/ProtocolSetup/index.tsx b/app/src/pages/OnDeviceDisplay/ProtocolSetup/index.tsx
index 6dfaa1e0201..3226c91f281 100644
--- a/app/src/pages/OnDeviceDisplay/ProtocolSetup/index.tsx
+++ b/app/src/pages/OnDeviceDisplay/ProtocolSetup/index.tsx
@@ -49,11 +49,11 @@ import {
import { useMostRecentCompletedAnalysis } from '../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis'
import { getProtocolModulesInfo } from '../../../organisms/Devices/ProtocolRun/utils/getProtocolModulesInfo'
import { ProtocolSetupLabware } from '../../../organisms/ProtocolSetupLabware'
-import { ProtocolSetupModules } from '../../../organisms/ProtocolSetupModules'
+import { ProtocolSetupModulesAndDeck } from '../../../organisms/ProtocolSetupModulesAndDeck'
import { ProtocolSetupLiquids } from '../../../organisms/ProtocolSetupLiquids'
import { ProtocolSetupInstruments } from '../../../organisms/ProtocolSetupInstruments'
import { useLaunchLPC } from '../../../organisms/LabwarePositionCheck/useLaunchLPC'
-import { getUnmatchedModulesForProtocol } from '../../../organisms/ProtocolSetupModules/utils'
+import { getUnmatchedModulesForProtocol } from '../../../organisms/ProtocolSetupModulesAndDeck/utils'
import { ConfirmCancelRunModal } from '../../../organisms/OnDeviceDisplay/RunningProtocol'
import {
getAreInstrumentsReady,
@@ -701,7 +701,10 @@ export function ProtocolSetup(): JSX.Element {
),
modules: (
-
+
),
labware: (