Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Jan 17, 2025
1 parent 48cc042 commit 5625bf7
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 195 deletions.
5 changes: 3 additions & 2 deletions components/src/organisms/ProtocolTimelineScrubber/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const COMMAND_WIDTH_PX = 240

interface ProtocolTimelineScrubberProps {
analysis: CompletedProtocolAnalysis | ProtocolAnalysisOutput
height?: string
}

export const DECK_LAYER_BLOCKLIST = [
Expand All @@ -66,7 +67,7 @@ export const DECK_LAYER_BLOCKLIST = [
export function ProtocolTimelineScrubber(
props: ProtocolTimelineScrubberProps
): JSX.Element {
const { analysis } = props
const { analysis, height } = props
const { commands, robotType, liquids } = analysis
const wrapperRef = useRef<HTMLDivElement>(null)
const commandListRef = useRef<ViewportListRef>(null)
Expand Down Expand Up @@ -140,7 +141,7 @@ export function ProtocolTimelineScrubber(
gridGap={SPACING.spacing8}
>
<Flex gridGap={SPACING.spacing8} flex="1 1 0">
<Flex height="40vh">
<Flex height={height ?? '60vh'}>
<BaseDeck
robotType={robotType ?? FLEX_ROBOT_TYPE}
deckConfig={getSimplestDeckConfigForProtocol(analysis)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from '../../step-forms/selectors'
import { getLabwareNicknamesById } from '../../ui/labware/selectors'
import { selectors as ingredSelectors } from '../../labware-ingred/selectors'
import { getLoadCommands } from '../../file-data/selectors/utils'
import type {
AddressableAreaName,
CompletedProtocolAnalysis,
Expand All @@ -24,7 +25,6 @@ import type {
LoadedPipette,
RunTimeCommand,
} from '@opentrons/shared-data'
import { getLoadCommands } from '../../file-data/selectors/utils'

export function ScrubberContainer(): JSX.Element {
const robotType = useSelector(getRobotType)
Expand Down Expand Up @@ -163,5 +163,5 @@ export function ScrubberContainer(): JSX.Element {
robotType,
}

return <ProtocolTimelineScrubber analysis={analysis} />
return <ProtocolTimelineScrubber analysis={analysis} height="40vh" />
}
1 change: 0 additions & 1 deletion shared-data/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ export * from './liquidClasses'
export * from './modules'
export * from './pipettes'
export * from './protocols'
export * from './sharedLocalizations'
export * from './titleCase'
export * from './types'
3 changes: 0 additions & 3 deletions shared-data/js/sharedLocalizations/en/index.ts

This file was deleted.

100 changes: 0 additions & 100 deletions shared-data/js/sharedLocalizations/en/protocol_command_text.json

This file was deleted.

2 changes: 0 additions & 2 deletions shared-data/js/sharedLocalizations/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions shared-data/js/sharedLocalizations/zh/index.ts

This file was deleted.

80 changes: 0 additions & 80 deletions shared-data/js/sharedLocalizations/zh/protocol_command_text.json

This file was deleted.

4 changes: 2 additions & 2 deletions step-generation/src/utils/createTimelineFromRunCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export function getResultingTimelineFrameFromRunCommands(
): ResultingTimelineFrame {
const pipetteLocations = commands.reduce<RobotState['pipettes']>(
(acc, command) => {
if (command.commandType === 'loadPipette') {
if (command.commandType === 'loadPipette' && command.result != null) {
return {
...acc,
[command.params.pipetteId]: {
[command.result.pipetteId]: {
mount: command.params.mount,
},
}
Expand Down

0 comments on commit 5625bf7

Please sign in to comment.